code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
<!--
~ Copyright (c) 2017. MIT-license for Jari Van Melckebeke
~ Note that there was a lot of educational work in this project,
~ this project was (or is) used for an assignment from Realdolmen in Belgium.
~ Please just don't abuse my work
-->
<html>
<head>
<meta charset="utf-8">
<script ... | N00bface/Real-Dolmen-Stage-Opdrachten | stageopdracht/src/main/resources/static/vendors/gentelella/vendors/echarts/test/polarScatter.html | HTML | mit | 2,536 |
# Contributing
I explicitly welcome contributions from people who have never contributed to open-source before: we were all beginners once!
I can help build on a partially working pull request with the aim of getting it merged.
I am also actively seeking to diversify our contributors and especially welcome contributi... | Dbz/Algorithms | CONTRIBUTING.md | Markdown | mit | 1,821 |
Alchemy sentiment analysis: fb12d2c55fff36e1e268584e261b6b010b37279f
Africa Is Talking: 676dbd926bbb04fa69ce90ee81d3f5ffee2692aaf80eb5793bd70fe93e77dc2e
| crakama/bc_7_twitment | keys.py | Python | mit | 156 |
module.exports = {
project: {
server: {
basePath: '',
ip: '0.0.0.0',
request: {
sesskey: 'sid',
limit: 5000,
parameters: 60
},
render: 'swig',
path: {
routes: 'app/routes',
views: 'app/views',
public: 'public/',
docs: fals... | PearlVentures/Crux | boilerplate/server/config.js | JavaScript | mit | 699 |
<?php
namespace RedMedica\ConsultasBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use RedMedica\ConsultasBundle\Entity\Article;
use FOS\ElasticaBundle\Configuration\Search;
/**
* Category
*
* @ORM\Table(name="category")
* @ORM\Entity()
* @Search(repositoryClass=... | dysan1376/hospi | src/RedMedica/ConsultasBundle/Entity/Category.php | PHP | mit | 1,682 |
import React from "react";
import styled from 'styled-components'
import Link from './link';
const nextArrow = "/icons/next-arrow.png";
const prevArrow = "/icons/prev-arrow.png";
const PatternLink = styled.span`
width: 100%;
display: flex;
flex-direction: column;
padding: 1em;
float: ${props => props.previo... | redfieldstefan/kibaktile.com | src/components/next-prev-pattern.js | JavaScript | mit | 1,640 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DIGIBYTE_NET_PROCESSING_H
#define DIGIBYTE_NET_PROCESSING_H
#include "ne... | DigiByte-Team/digibyte | src/net_processing.h | C | mit | 2,633 |
#
# $Header: svn://svn/SWM/trunk/web/Reports/ReportAdvanced_TXSold.pm 8251 2013-04-08 09:00:53Z rlee $
#
package Reports::ReportAdvanced_TXSold;
use strict;
use lib ".";
use ReportAdvanced_Common;
use Reports::ReportAdvanced;
our @ISA =qw(Reports::ReportAdvanced);
use strict;
sub _getConfiguration {
my $self = sh... | facascante/slimerp | fifs/web/Reports/ReportAdvanced_TXSold.pm | Perl | mit | 5,822 |
#!/usr/bin/node --harmony
'use strict'
const noble = require('noble'),
program = require('commander')
program
.version('0.0.1')
.option('-p, --prefix <integer>', 'Manufacturer identifier prefixed to all fan commands', parseInt)
.option('-t, --target [mac]', 'MAC address of devices to target', function(val){ ... | zwaldowski/homebridge-satellite-fan | test/poc.js | JavaScript | mit | 5,557 |
---
layout: post
category: "工具"
tags: [zsh,fish,linux]
---
[TOC]
### zsh 与yosemite 的bug? ###
在更新了Mac Yosemite 后,发现各种问题,首先是php,macport等问题
接着就是zsh了,不知道为什么,`zsh`总是几乎占了100%的cpu,这让我的macbook电池
暴跌,非常郁闷. 开始怀疑是插件的问题,但是即使把插件全部关了,也还是那样.
之前也用过fish,发现还是不错的一个shell,从设计上面说,非常方便.功能也不错.
于是就准备换到fish算了.
$/;
const HEX = /^#([a-fA-F0-9]{6})$/;
function roundColors(obj, round) {
if (!round) return obj;
const o = {};
for (let k in obj) {
o[k] = Math.round(obj[k]);
}
return o;
}
function hasProp(obj, key) {
return obj.hasOwnProperty(key);
}
function isRgb(obj) {
re... | tsuyoshiwada/color-classifier | src/utils/color.js | JavaScript | mit | 3,342 |
export { default } from 'ember-validation/components/ember-validation-error-list';
| ajile/ember-validation | app/components/ember-validation-error-list.js | JavaScript | mit | 83 |
.WeatherStations {
margin: 30px 30px 30px 30px;
}
.clear{
clear: both;
} | atSistemas/react-base | src/app/containers/WeatherStations/styles.css | CSS | mit | 77 |
/*global window */
/**
* @license countdown.js v2.5.2 http://countdownjs.org
* Copyright (c)2006-2014 Stephen M. McKamey.
* Licensed under The MIT License.
*/
/*jshint bitwise:false */
/**
* @public
* @type {Object|null}
*/
var module;
/**
* API entry
* @public
* @param {function(Object)|Date|number} start ... | entpy/beauty-and-pics | beauty_and_pics/website/static/website/js/vendor/countdown.js | JavaScript | mit | 27,520 |
---
layout: page
title: Avila - Wu Wedding
date: 2016-05-24
author: Abigail Heath
tags: weekly links, java
status: published
summary: Vestibulum enim odio, dapibus non turpis.
banner: images/banner/people.jpg
booking:
startDate: 05/10/2016
endDate: 05/13/2016
ctyhocn: HTSBVHX
groupCode: AWW
published: true
---
... | KlishGroup/prose-pogs | pogs/H/HTSBVHX/AWW/index.md | Markdown | mit | 2,344 |
file(REMOVE_RECURSE
"CMakeFiles/coverage_polymorphic.dir/polymorphic.cpp.o"
"../../../coverage/coverage_polymorphic.pdb"
"../../../coverage/coverage_polymorphic"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/coverage_polymorphic.dir/cmake_clean_${lang}.cmake OPTION... | noahhsmith/starid | libstarid/cereal-1.2.2/unittests/CMakeFiles/coverage_polymorphic.dir/cmake_clean.cmake | CMake | mit | 337 |
var formMode="detail"; /*formMode 页面模式 页面有三种模式 detail add modify*/
var panelType="form"; /*panelType 面板类型 form表单 search 查询 child 从表对象*/
var editIndex = undefined; /*datagrid 编辑对象的行号*/
var dg1EditIndex = undefined;
var objName=label.objName; /*页面管理对象名称*/
var lblDetailStr=label.detailStr; /*在不同的语种下应该不同*/
var lbl... | ldjking/wbscreen | web/wb/2tp/template/js/common/copy/a3.js | JavaScript | mit | 9,914 |
FROM ruby:2.3.3
RUN apt-get update && apt-get install -y \
#Packages
net-tools \
nodejs
#Install phantomjs
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
bzip2 \
libfontconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get u... | cthit/bookIT | Dockerfile | Dockerfile | mit | 1,372 |
## Capistrano
[](http://travis-ci.org/capistrano/capistrano)[](https://codeclimate.com/github/capistrano/capistrano)
Capistrano is a utility and framework for executing commands in parallel on
mul... | piousbox/microsites2-cities | vendor/ruby/1.9.1/gems/capistrano-2.15.4/README.md | Markdown | mit | 3,795 |
/*
* Jermit
*
* The MIT License (MIT)
*
* Copyright (C) 2018 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ... | klamonte/jermit | src/jermit/protocol/zmodem/ZEofHeader.java | Java | mit | 2,504 |
# fullstack-course4-submissions | aaronblair/fullstack-course4-submissions | README.md | Markdown | mit | 31 |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class FormLoader {
public static String connectionString = "jdbc:hsqldb:file:db-data/teamsandplayers";
static Connection con;
public static void main(String[] args) throws Exception {
try {
Class.forName("org.hsq... | a-r-d/java-1-class-demos | jframe-actionlistener-access-db-cxn/homework-start/Week13Assignment10/src/FormLoader.java | Java | mit | 788 |
<?php
namespace Memento\Test;
use Memento;
class SingleTest extends Harness
{
/** @dataProvider provideClients */
public function testStoreMethod(Memento\Client $client)
{
$success = $client->store($this->getKey(), array('foo' => 'bar'), $this->getExpires());
$this->assertTrue($success);
... | garyr/memento | test/Memento/Test/SingleTest.php | PHP | mit | 3,252 |
/*
Copyright (c) 2015 Shaps Mohsenin. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... | shaps80/SPXCore | Example/Pods/SPXDataSources/Pod/Classes/DataViews/UITableView+SPXDataViewAdditions.h | C | mit | 3,424 |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
@interface _IDEKitPrivateClassForFindingBundle : NSObject
{
}
@end
| kolinkrewinkel/Multiplex | Multiplex/IDEHeaders/IDEHeaders/IDEKit/_IDEKitPrivateClassForFindingBundle.h | C | mit | 234 |
<html lang="en">
<head>
<title>C - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Supported-Languages.html#Supp... | ChangsoonKim/STM32F7DiscTutor | toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/gdb/C.html | HTML | mit | 4,070 |
Answer these questions in your reflection:
What git concepts were you struggling with prior to the GPS session?
- Prior to the GPS session I was having trouble navigating between branches. I also was completely confused on remote and fetch. I thought that you could just use the command git pull which would fetch/merg... | mikelondon/phase-0-gps-1 | london-reflection.md | Markdown | mit | 1,202 |
#!/usr/bin/env python3
"""
Categorize and analyze user sessions.
Read in ecfs_obfuscated_filtered.gz file, output some fancy results.
"""
from collections import defaultdict
from collections import Counter
import sys
import time
import os
import resource
import json
import fnmatch
from pipes import Pipes
impo... | zdvresearch/fast15-paper-extras | ecfs_user_sessions/src/analyze_user_sessions.py | Python | mit | 7,526 |
package esl
import (
"io"
"errors"
"unicode/utf8"
)
// Buffer ...
type buffer []byte
// MemoryReader ...
type memReader [ ]byte
// MemoryWriter ...
type memWriter [ ]byte
// ErrBufferSize indicates that memory cannot be allocated to store data in a buffer.
var ErrBufferSize = errors.New(`could not allocate memory`... | navrotskyj/acr | src/pkg/esl/io.go | GO | mit | 2,905 |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_WZYUnlimitedScrollViewDemoVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_WZYUnlimit... | CoderZYWang/WZYUnlimitedScrollView | WZYUnlimitedScrollViewDemo/Pods/Target Support Files/Pods-WZYUnlimitedScrollViewDemo/Pods-WZYUnlimitedScrollViewDemo-umbrella.h | C | mit | 354 |
package com.zimbra.cs.versioncheck;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Date;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import com.zimbra.common.util.ZimbraLog;
import com.z... | nico01f/z-pec | ZimbraAdminVersionCheck/src/java/com/zimbra/cs/versioncheck/VersionCheckUtil.java | Java | mit | 7,334 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EmployeeFinder.Models
{
public enum Position
{
Bartender,
Waiter,
Bellboy,
Receptionist,
Manager,
Housekeeper,
Chef,
Man... | GeorgiNik/EmployeeFinder | EmployeeFinder.Models/Position.cs | C# | mit | 340 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Domain
{
public class Meeting
{
public int ConsultantId { get; set; }
public Consultant Consultant { get; set; }
public int UserId { get; set; }
public ... | rohansen/Code-Examples | Database/TransactionScopeWithGUI/Domain/Meeting.cs | C# | mit | 559 |
module PiwikAnalytics
module Helpers
def piwik_tracking_tag
config = PiwikAnalytics.configuration
return if config.disabled?
if config.use_async?
file = "piwik_analytics/piwik_tracking_tag_async"
else
file = "piwik_analytics/piwik_tracking_tag"
end
render({
... | piwik/piwik-ruby-tracking | lib/piwik_analytics/helpers.rb | Ruby | mit | 435 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author Stephan Reith
@date 31.08.2016
This is a simple example to demonstrate how the ROS Spinnaker Interface can be used.
You will also need a ROS Listener and a ROS Talker to send and receive data.
Make sure they communicate over the same ROS topics and std_msgs.... | reiths/ros_spinnaker_interface | examples/example_ros_spinnaker_interface.py | Python | mit | 2,533 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>area-method: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.1/area-method/8.5.0.html | HTML | mit | 7,612 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ieee754: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.9.1/ieee754/8.7.0.html | HTML | mit | 7,485 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CompileDirectiveMetadata, CompileStylesheetMetadata, CompileTemplateMetadata, templateSourceUrl} from './com... | matsko/angular | packages/compiler/src/directive_normalizer.ts | TypeScript | mit | 12,863 |
<?php
/* TwigBundle:Exception:error.atom.twig */
class __TwigTemplate_405349459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | Mchichou/UEOptionnelles | app/cache/dev/twig/40/53/49459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4.php | PHP | mit | 1,789 |
<HTML>
<!-- Created by HTTrack Website Copier/3.49-2 [XR&CO'2014] -->
<!-- Mirrored from thevillagedanang.com/?p=62 by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 02 Nov 2017 14:46:03 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<HEAD... | hoangphuc1494/sourd_codeigniter | assest/thevillage/index5c36.html | HTML | mit | 758 |
/**
* HTTP.test
*/
"use strict";
/* Node modules */
/* Third-party modules */
var steeplejack = require("steeplejack");
/* Files */
describe("HTTPError test", function () {
var HTTPError;
beforeEach(function () {
injector(function (_HTTPError_) {
HTTPError = _HTTPError_;
... | riggerthegeek/steeplejack-errors | test/unit/errors/HTTP.test.js | JavaScript | mit | 1,103 |
require File.join(File.dirname(__FILE__), './scribd-carrierwave/version')
require File.join(File.dirname(__FILE__), './scribd-carrierwave/config')
require 'carrierwave'
require 'rscribd'
require 'configatron'
module ScribdCarrierWave
class << self
def included(base)
base.extend ClassMethods
end
de... | milkfarm/scribd-carrierwave | lib/scribd-carrierwave.rb | Ruby | mit | 3,507 |
var gulp = require('gulp');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var merge = require('merge-stream');
var stylus = require('gulp-stylus');
var rename = require("gulp-rename");
var uglify = require("gulp-uglify");
var cssmin = require("gulp-cssmin");
var ngAnnotate = require('gulp-ng-a... | jlowcs/angular-chatbar | gulpfile.js | JavaScript | mit | 1,878 |
# -*- coding: utf-8 -*-
""" Resource Import Tools
@copyright: 2011-12 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
... | ashwyn/eden-message_parser | modules/s3/s3import.py | Python | mit | 123,322 |
package br.ufrj.g2matricula.domain;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
import br.ufrj.g2matricula.domain.enumeration.MatriculaStatus;
/**
* A Matricula.
*/
@En... | DamascenoRafael/cos482-qualidade-de-software | www/src/main/java/br/ufrj/g2matricula/domain/Matricula.java | Java | mit | 2,535 |
# rhodecode-ce-dockerized
Docker container for RhodeCode Community Edition repository management platform
# WIP
| darneta/rhodecode-ce-dockerized | README.md | Markdown | mit | 113 |
<?php
class Admin_GeneralModel extends CI_Model {
public function GetAdminModuleCategoryList()
{
$this->db->select('CID, CategoryName');
$this->db->from('admin_module_category');
$this->db->order_by('Ordering');
$query = $this->db->get();
if($query->num_rows())
return $query;
else
return FALSE;
}
... | dernst91/deCMS | application/models/Admin_GeneralModel.php | PHP | mit | 895 |
#ifndef SYMTAB_H
#define SYMTAB_H
#include "symbol.h"
void symtab_init();
void push_scope();
void pop_scope();
symbol *bind_symbol(char *name);
symbol *lookup_symbol(char *name);
void print_symtab();
#endif
| rayiner/ccpoc | symtab.h | C | mit | 213 |
RSpec.describe("executables", skip_db_cleaner: true) do
include SharedSpecSetup
before do
#migrations don't work if we are still connected to the db
ActiveRecord::Base.remove_connection
end
it "extracts the schema" do
output = `bin/extract #{config_filename} production #{schema_filename} 2>&1`
... | ifad/sybase-schema-extractor | spec/bin_spec.rb | Ruby | mit | 636 |
## S3proxy - serve S3 files simply
S3proxy is a simple flask-based REST web application which can expose files (keys) stored in the AWS Simple Storage Service (S3) via a simple REST api.
### What does this do?
S3proxy takes a set of AWS credentials and an S3 bucket name and provides GET and HEAD endpoints on the fil... | nkrumm/s3proxy | README.md | Markdown | mit | 5,632 |
Title: Survey data
Template: survey
Slug: survey/data
Github: True
The code to clean and process the survey data is available in the [GitHub repository](https://github.com/andrewheiss/From-the-Trenches-Anti-TIP-NGOs-and-US) for Andrew Heiss and Judith G. Kelley. 2016. "From the Trenches: A Global Survey of Anti-TIP N... | andrewheiss/scorecarddiplomacy-org | content/pages/survey-stuff/data.md | Markdown | mit | 952 |
// @flow
import { StyleSheet } from 'react-native';
import { colors } from '../../themes';
const styles = StyleSheet.create({
divider: {
height: 1,
marginHorizontal: 0,
backgroundColor: colors.darkDivider,
},
});
export default styles;
| Dennitz/Timetable | src/components/styles/HorizontalDividerList.styles.js | JavaScript | mit | 254 |
## Testing testing, 1, 2, 3
Let's see how *[this](https://github.com/imathis/jekyll-markdown-block)* does.
puts 'awesome' unless not_awesome?
- One item
- Two item
- Three Item
- Four!
And… scene!
| imathis/jekyll-markdown-block | test/source/_includes/test.md | Markdown | mit | 208 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_27) on Wed Nov 21 16:03:26 EST 2012 -->
<TITLE>
ResourceXmlPropertyEmitterInterface
</TITLE>
<META NAME="date" CONTENT="2012-11-21">
<LINK REL ="st... | ColFusion/PentahoKettle | kettle-data-integration/docs/api/org/pentaho/di/resource/ResourceXmlPropertyEmitterInterface.html | HTML | mit | 9,567 |
require 'ffi'
module ProcessShared
module Posix
module Errno
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_variable :errno, :int
# Replace methods in +syms+ with error checking wrappers that
# invoke the original method and raise a {SystemCallError} with
# the curre... | pmahoney/process_shared | lib/process_shared/posix/errno.rb | Ruby | mit | 1,066 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- UASR: Unified Approach to Speech Synthesis and Recognition
< - Documentation home page
<
< AUTHOR : Matthias Wolff
< PACKAGE: n/a
<
< Copyright 2013 UASR contributors (see COPYRIGHT f... | matthias-wolff/C-VAU | manual/toc.html | HTML | mit | 2,328 |
'use strict';
const _ = require('lodash');
const co = require('co');
const Promise = require('bluebird');
const AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
const cloudwatch = Promise.promisifyAll(new AWS.CloudWatch());
const Lambda = new AWS.Lambda();
const START_TI... | theburningmonk/lambda-coldstart-comparison | download-stats.js | JavaScript | mit | 2,153 |
from __future__ import absolute_import, division, print_function, unicode_literals
import string
import urllib
try:
from urllib.parse import urlparse, urlencode, urljoin, parse_qsl, urlunparse
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urlpars... | VulcanTechnologies/oauth2lib | oauth2lib/utils.py | Python | mit | 2,411 |
#!/bin/bash
# data in Empar_paper/data/simul_balanc4GenNonhSSM
#length1000_b100.tar length1000_b150.tar length1000_b200.tar
#length1000_b100_num98.fa
MOD=ssm
ITER=2 # number of data sets
bl=100
#prep output files
OUT_lik='likel_balanced4_gennonh_'$bl'_'$MOD'_E.txt'
OUT_iter='iter_balanced4_gennonh_'$bl'_'$MOD'_E.tx... | Algebraicphylogenetics/Empar_paper | scripts/process_balanced4_gennonh_ssm.sh | Shell | mit | 1,509 |
/*
The MIT License (MIT)
Copyright (c) 2014 Banbury & Play-Em
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... | Apelsin/UnitySpritesAndBones | Assets/SpritesAndBones/Scripts/Editor/Skin2DEditor.cs | C# | mit | 8,335 |
package com.thilko.springdoc;
@SuppressWarnings("all")
public class CredentialsCode {
Integer age;
double anotherValue;
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public double getAnotherValue() {
return anotherValu... | thilko/gradle-springdoc-plugin | src/test/java/com/thilko/springdoc/CredentialsCode.java | Java | mit | 435 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel yii2learning\chartbuilder\models\DatasourceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Datasources');
$this->params['breadcrumbs'][] = $this->tit... | Yii2Learning/yii2-chart-builder | views/datasource/index.php | PHP | mit | 1,401 |
module Web::Controllers::Books
class Create
include Web::Action
expose :book
params do
param :book do
param :title, presence: true
param :author, presence: true
end
end
def call(params)
if params.valid?
@book = BookRepository.create(Book.new(params[:bo... | matiasleidemer/lotus-bookshelf | apps/web/controllers/books/create.rb | Ruby | mit | 393 |
;idta.asm sets up all the intterupt entry points
extern default_handler
extern idt_ftoi
;error interrupt entry point, we need to only push the error code details to stack
%macro error_interrupt 1
global interrupt_handler_%1
interrupt_handler_%1:
push dword %1
jmp common_handler
%endmacro
;regular interrupt entry ... | MalcolmLorber/kernel | src/idta.asm | Assembly | mit | 1,579 |
// @flow
(require('../../lib/git'): any).rebaseRepoMaster = jest.fn();
import {
_clearCustomCacheDir as clearCustomCacheDir,
_setCustomCacheDir as setCustomCacheDir,
} from '../../lib/cacheRepoUtils';
import {copyDir, mkdirp} from '../../lib/fileUtils';
import {parseDirString as parseFlowDirString} from '../../... | splodingsocks/FlowTyped | cli/src/commands/__tests__/install-test.js | JavaScript | mit | 23,904 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../openssl_sys/fn.BN_exp.html">
</head>
<body>
<p>Redirecting to <a href="../../openssl_sys/fn.BN_exp.html">../../openssl_sys/fn.BN_exp.html</a>...</p>
<script>location.replace("../../openssl_sys/fn.BN_exp.html" + location.... | malept/guardhaus | main/openssl_sys/bn/fn.BN_exp.html | HTML | mit | 369 |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { assign } from 'lodash'
import autoBind from '../utils/autoBind'
const styles = {
'ClosedPanelWrapper': {
height: '40px'
},
'PanelWrapper': {
position: 'relative'
},
'Over': {
border: '1px dashed white',
ove... | jcgertig/react-struct-editor | src/components/Panel.js | JavaScript | mit | 4,120 |
'use strict';
// src\services\message\hooks\timestamp.js
//
// Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html
const defaults = {};
module.exports = function(options) {
options = Object.assign({}, defaults, options);
return ... | zorqie/bfests | src/services/message/hooks/timestamp.js | JavaScript | mit | 488 |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2021, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | andrerogers/Enjin | src/includes/assimp/Bitmap.h | C | mit | 4,360 |
# LeadifyTest | JomoLumina/LeadifyTest | README.md | Markdown | mit | 13 |
package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.AppFactory;
import fr.lteconsulting.pomexplorer.Client;
import fr.lteconsulting.pomexplorer.Log;
public class HelpCommand
{
@Help( "gives this message" )
public void main( Client client, Log log )
{
log.html( AppFactory.get().comm... | ltearno/pom-explorer | pom-explorer/src/main/java/fr/lteconsulting/pomexplorer/commands/HelpCommand.java | Java | mit | 342 |
//
// DORDoneHUD.h
// DORDoneHUD
//
// Created by Pawel Bednorz on 23/09/15.
// Copyright © 2015 Droids on Roids. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DORDoneHUD : NSObject
+ (void)show:(UIView *)view message:(NSString *)messageText completion:(void (^)(void))completionBlock;
+ (void)show:(U... | DroidsOnRoids/DORDoneHUD | Source/DORDoneHUD.h | C | mit | 401 |
namespace CAAssistant.Models
{
public class ClientFileViewModel
{
public ClientFileViewModel()
{
}
public ClientFileViewModel(ClientFile clientFile)
{
Id = clientFile.Id;
FileNumber = clientFile.FileNumber;
ClientName = clientFile.Cl... | vishipayyallore/CAAssitant | CAAssistant/Models/ClientFileViewModel.cs | C# | mit | 1,131 |
<?php
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2013, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* Th... | JoAutomation/todo-for-you | ext/assets/model/TodoyuAssetsTaskAsset.class.php | PHP | mit | 1,210 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... | MystFan/TelerikAcademy | ASP.NET WebForms/NewsSystem/NewsSystem.Web/Admin/Edit.aspx.designer.cs | C# | mit | 440 |
---
title: Stylesheets and JavaScript - Fabricator
layout: 2-column
section: Documentation
---
{{#markdown}}
# Stylesheets and JavaScript
> How to work with CSS and JS within Fabricator
Fabricator comes with little opinion about how you should architect your Stylesheets and JavaScript. Each use case is different, s... | fbrctr/fbrctr.github.io | src/views/docs/building-a-toolkit/assets.html | HTML | mit | 797 |
<?php
namespace IdeHelper\Test\TestCase\Utility;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;
use IdeHelper\Utility\Plugin;
class PluginTest extends TestCase {
/**
* @return void
*/
protected function setUp(): void {
parent::setUp();
Configure::delete('IdeHelper.plugins');
}
/**
* @return v... | dereuromark/cakephp-ide-helper | tests/TestCase/Utility/PluginTest.php | PHP | mit | 953 |
# Hubot: hubot-loggly-slack
A hubot script to post alerts from Loggly into a Slack room as an attachment.
An attachment has additional formatting options.
See [`src/loggly-slack.coffee`](src/loggly-slack.coffee) for documentation.
# Installation
npm install hubot-loggly-slack
# Add "hubot-loggly-slack" to ... | spanishdict/hubot-loggly-slack | README.md | Markdown | mit | 526 |
<?php
/**
* The Initial Developer of the Original Code is
* Tarmo Alexander Sundström <ta@sundstrom.im>.
*
* Portions created by the Initial Developer are
* Copyright (C) 2014 Tarmo Alexander Sundström <ta@sundstrom.im>
*
* All Rights Reserved.
*
* Contributor(s):
*
* Permission is hereby granted, free of c... | lahdekorpi/webvaloa | vendor/Webvaloa/Plugin.php | PHP | mit | 9,863 |
const electron = window.require('electron');
const events = window.require('events');
const {
ipcRenderer
} = electron;
const {
EventEmitter
} = events;
class Emitter extends EventEmitter {}
window.Events = new Emitter();
module.exports = () => {
let settings = window.localStorage.getItem('settings');
if (s... | vevix/focus | app/js/init.js | JavaScript | mit | 740 |
---
title: 'Production applications updated 9.1.2018 10:05 - 10:54'
lang: en
ref: 2018-01-09-release
image:
published: true
categories: en News
traffictypes:
- Road
tags:
- APIs
- Admin
---
Digitraffic production applications have been updated.
Changelog:
TIE
- DPO-336 - LAM binääritietovirta jakautuu kahdeks... | lapintom/digitraffic | _posts/2018-01-09-release-en.md | Markdown | mit | 549 |
using System;
using System.Collections.Generic;
using System.Linq;
using BohFoundation.ApplicantsRepository.Repositories.Implementations;
using BohFoundation.AzureStorage.TableStorage.Implementations.Essay.Entities;
using BohFoundation.AzureStorage.TableStorage.Interfaces.Essay;
using BohFoundation.AzureStorage.TableS... | Sobieck00/BOH-Bulldog-Scholarship-Application-Management | BohFoundation.ApplicantsRepository.Tests/IntegrationTests/ApplicantsEssayRepositoryIntegrationTests.cs | C# | mit | 17,599 |
class AddAuthorAndSubjectToClaimStateTransitions < ActiveRecord::Migration[4.2]
def change
add_column :claim_state_transitions, :author_id, :integer
add_column :claim_state_transitions, :subject_id, :integer
end
end
| ministryofjustice/advocate-defence-payments | db/migrate/20160909150238_add_author_and_subject_to_claim_state_transitions.rb | Ruby | mit | 228 |
# Using a compact OS
FROM registry.dataos.io/library/nginx
MAINTAINER Golfen Guo <golfen.guo@daocloud.io>
# Install Nginx
# Add 2048 stuff into Nginx server
COPY . /usr/share/nginx/html
EXPOSE 80
| yepengxj/dao-2048 | Dockerfile | Dockerfile | mit | 201 |
require 'test_helper'
require 'cache_value/util'
class UtilTest < Test::Unit::TestCase
include CacheValue::Util
context 'hex_digest' do
should 'return the same digest for identical hashes' do
hex_digest({ :ha => 'ha'}).should == hex_digest({ :ha => 'ha'})
end
end
end
| tobias/cache_value | test/util_test.rb | Ruby | mit | 298 |
# This migration comes from thinkspace_resource (originally 20150502000000)
class AddFingerprintToFile < ActiveRecord::Migration
def change
add_column :thinkspace_resource_files, :file_fingerprint, :string
end
end
| sixthedge/cellar | packages/opentbl/api/db/migrate/20170511210074_add_fingerprint_to_file.thinkspace_resource.rb | Ruby | mit | 222 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_04_01;
import java.util.Map;
impor... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/TagsObject.java | Java | mit | 954 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | kashike/SpongeCommon | src/main/java/org/spongepowered/common/mixin/core/server/network/MixinNetHandlerLoginServer.java | Java | mit | 5,729 |
from otp.ai.AIBaseGlobal import *
import DistributedCCharBaseAI
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from direct.task import Task
import random
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
impo... | ksmit799/Toontown-Source | toontown/classicchars/DistributedGoofySpeedwayAI.py | Python | mit | 6,450 |
<?php
namespace Rmc\Core\StaticPageBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http:/... | jignesh-russmediatech/rmcdemo | src/Rmc/Core/StaticPageBundle/DependencyInjection/Configuration.php | PHP | mit | 1,405 |
<!--?xml version="1.0"?--><html><head></head><body></body></html> | textlint/textlint-plugin-html | test/ast-test-case/doctype-quirksmode-xml/result.html | HTML | mit | 65 |
import React from 'react';
import {
Link
} from 'react-router';
import HotdotActions from '../actions/HotdotActions';
import HotdotObjStore from '../stores/HotdotObjStore';
import MyInfoNavbar from './MyInfoNavbar';
import Weixin from './Weixin';
class Hotdot extends React.Component {
constructor(props) {
... | kongchun/BigData-Web | app/m_components/Hotdot.js | JavaScript | mit | 5,621 |
// Copyright (c) 2013-2014 PropCoin Developers
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 5
#define CLIENT_VER... | demomint/prop | src/clientversion.h | C | mit | 829 |
varnish
=======
Varnish to run EOL site
sudo docker run -v /eol/varnish/default.vcl:/etc/varnish/default.vcl \
-p 80:80 eoldocker/varnish:v3.0.5
| EolDocker/varnish | README.md | Markdown | mit | 150 |
<?php
namespace PayU\Api\Response\Builder;
use PayU\Api\Request\RequestInterface;
use PayU\Api\Response\AbstractResponse;
use Psr\Http\Message\ResponseInterface;
/**
* Interface BuilderInterface
*
* Provides a common interface to build response objects based on request context
*
* @package PayU\Api\Response\Bui... | devsdmf/payu-php-sdk | src/PayU/Api/Response/Builder/BuilderInterface.php | PHP | mit | 713 |
using SolrExpress.Search.Parameter;
using System;
using System.Globalization;
using System.Linq;
using System.Text;
namespace SolrExpress.Utility
{
/// <summary>
/// Helper class used to extract information inside parameters
/// </summary>
internal static class ParameterUtil
{
/// <summary... | solr-express/solr-express | src/SolrExpress/Utility/ParameterUtil.cs | C# | mit | 4,034 |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import ReactDOM from 'react-dom';... | reicheltp/Sonic | src/client.js | JavaScript | mit | 4,372 |
var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$brk = $M.brk,
$lset = $M.lset,
$mcall = $M.mcall,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require__... | awto/effectfuljs | packages/core/test/samples/simple/expr/test04-out-ds.js | JavaScript | mit | 1,801 |
# INTRODUCTION
Triplie is an AI bot based on 2nd up to 5th order Markov model. It uses an
SQLite database for storage.
Triplie learns by creating
1. a dictionary of words
2. a graph representing valid 5-grams (consecutive groups of 5 words)
encountered in the text
3. a graph of associations between words from se... | spion/triplie-ng | README.md | Markdown | mit | 3,968 |
<!DOCTYPE html>
<html>
<head>
<!-- meta information -->
<meta charset="utf-8">
<meta name="description"
content="http://feedproxy.google.com/~r/geledes/~3/EdmSLCOQs3o/" >
<meta name="author" content="Kinho">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width,... | oentropista/oentropista.github.io | _site/post/index.html | HTML | mit | 2,129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.