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
import { detectState, RepoState } from '../Repo' import logger from '../../Logger' import { spawnSync, SpawnSyncOptionsWithStringEncoding, SpawnSyncReturns } from 'child_process' jest.mock('child_process') jest.mock('../../Logger') afterEach(() => jest.resetAllMocks()) type spawnSyncFn = (command: string, args?: rea...
bugsnag/bugsnag-js
packages/react-native-cli/src/lib/__test__/Repo.test.ts
TypeScript
mit
3,325
import Client from '@bugsnag/core/client' import _NetInfo, { NetInfoState } from '@react-native-community/netinfo' import plugin from '../' jest.mock('@react-native-community/netinfo', () => ({ addEventListener: jest.fn() })) const NetInfo = _NetInfo as jest.Mocked<typeof _NetInfo> describe('plugin: react native c...
bugsnag/bugsnag-js
packages/plugin-react-native-connectivity-breadcrumbs/test/connectivity.test.ts
TypeScript
mit
2,475
process.env.NODE_ENV = 'test'; var chai = require('chai'); var chaihttp = require('chai-http'); chai.use(chaihttp); var expect = chai.expect; require(__dirname + '/../app.js'); describe('the error handler function', function() { it('should return a status of 500', function(done) { chai.request('localhost:3000...
ryanheathers/seattle-composting
test/error_handler_test.js
JavaScript
mit
531
<?php namespace Psalm\Issue; class ExtensionRequirementViolation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 239; }
vimeo/psalm
src/Psalm/Issue/ExtensionRequirementViolation.php
PHP
mit
158
require 'rails/generators/active_record' module ActiveRecord module Generators class ModelGenerator < Base argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" check_class_collision class_option :timestamps, :type => :boolean class_option :parent, ...
cloudcastle/activerecord-simpledb-adapter
lib/generators/active_record/model/model_generator.rb
Ruby
mit
786
<?php declare(strict_types=1); namespace TSwiackiewicz\AwesomeApp\Application\User\Command; use TSwiackiewicz\AwesomeApp\DomainModel\User\Password\UserPassword; use TSwiackiewicz\AwesomeApp\SharedKernel\User\UserId; /** * Class ChangePasswordCommand * @package TSwiackiewicz\AwesomeApp\Application\User\Command */ ...
tswiackiewicz/ddd-workshops
src/Application/User/Command/ChangePasswordCommand.php
PHP
mit
1,054
using System; using Abp.Application.Features; using Abp.Auditing; using Abp.BackgroundJobs; using Abp.Dependency; using Abp.Domain.Uow; using Abp.Events.Bus; using Abp.Notifications; using Abp.Runtime.Caching.Configuration; namespace Abp.Configuration.Startup { /// <summary> /// Used to configure ABP and modu...
4nonym0us/aspnetboilerplate
src/Abp/Configuration/Startup/IAbpStartupConfiguration.cs
C#
mit
3,515
# frozen_string_literal: true require "rails_helper" RSpec.describe ArticlesController, type: :routing do describe "routing" do it "recognizes and generates #index" do expect(get: "/").to route_to(controller: "articles", action: "index") end it "recognizes and generates #index with rss format" do...
publify/publify
publify_core/spec/routing/articles_routing_spec.rb
Ruby
mit
2,587
module SfdcConnect # Utility for validating reponses from SFDC REST calls module ResponseValidator def validate_response(response) raise "HTTP Error #{response.code}: #{response.parsed_response}" if response.code >= 400 raise "SFDC Error: #{response['error']} - #{response['error_description']}"...
scottweaver/sfdc-connect
lib/sfdc-support.rb
Ruby
mit
1,362
# MediaServices > see https://aka.ms/autorest This is the AutoRest configuration file for MediaServices. --- ## Getting Started To build the SDK for MediaServices, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` To see additional help and options, run: > `autores...
johanste/azure-rest-api-specs
specification/mediaservices/resource-manager/readme.md
Markdown
mit
8,685
package storagesync // 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. // Changes may cause incorrect behavior and will be lost if the code is regener...
Azure/azure-sdk-for-go
services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go
GO
mit
16,836
<?php namespace Hyperframework\Cli; use Hyperframework\Cli\Test\TestCase as Base; class OptionConfigParserTest extends Base { public function testParse() { $result = OptionConfigParser::parse([[ 'name' => 'test', 'short_name' => 't', 'repeatable' => true, 'r...
azheng1984/jk2010
vendor/hyperframework/hyperframework/test/cli/tests/OptionConfigParserTest.php
PHP
mit
4,987
"""Test.""" import pytest TM_TABLE = [ ([0, 1, 1, 0, 1], True), ([0], True), ([1], False), ([0, 1, 0, 0], False), ] @pytest.mark.parametrize("n, result", TM_TABLE) def test_is_thue_morse(n, result): """Test.""" from is_thue_morse import is_thue_morse assert is_thue_morse(n) == result
rrustia/code-katas
src/test_is_thue_morse.py
Python
mit
318
# my-ascii-art package Converts to ascii ![A screenshot of your package](https://f.cloud.github.com/assets/69169/2290250/c35d867a-a017-11e3-86be-cd7c5bf3ff9b.gif)
arrayoutofbounds/my-ascii-art
README.md
Markdown
mit
166
// "node scripts/create-package-app-test.js && node packages/app-test/synchronize.js && node packages/react-boilerplate-app-scripts/scripts/link-react-boilerplates.js && lerna bootstrap", 'use strict'; require('./create-package-app-test.js'); require('../packages/app-test/synchronize.js'); require('../packages/react-b...
dog-days/create-react-boilerplate-app
scripts/bootstrap.js
JavaScript
mit
1,512
from fastapi.testclient import TestClient from docs_src.request_files.tutorial001 import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/files/": { "post": { "responses": { ...
tiangolo/fastapi
tests/test_tutorial/test_request_files/test_tutorial001.py
Python
mit
6,215
'use strict'; var mongoose = require('mongoose'); var bcrypt = require('bcrypt'); var eat = require('eat'); var userSchema = new mongoose.Schema({ name: { type: String, required: true }, email: { type: String, required: true, unique: true, trim: true }, username: { type: String, ...
mskalandunas/parcel
models/user.js
JavaScript
mit
997
#include "math.h" #include "robot.h" #include "stdio.h" #include "stdlib.h" #include "sys/time.h" #include "time.h" #define TIMES 500 int get_info(int argc, char **argv, double *arms, double *angles, double *gx, double *gy); void moveArm(int arm, double angle); void output(mat3_t m, double error, struct timeval tv, c...
benjamin-james/robot
src/pc_demo.c
C
mit
2,708
import matplotlib.pyplot as plt import numpy as np def logHist(X, N=30,fig=None, noclear=False, pdf=False, **kywds): ''' Plot logarithmic histogram or probability density function from sampled data. Args: X (numpy.ndarray): 1-D array of sampled values N (Optional[int]): Number of bins ...
dsavransky/miscpy
miscpy/PlotFun/logHist.py
Python
mit
1,435
--- layout: page permalink: /categories/ title: Categories --- <div id="archives"> {% for category in site.categories %} <div class="archive-group"> {% capture category_name %}{{ category | first }}{% endcapture %} <div id="#{{ category_name | slugize }}"></div> <p></p> <h3 class="category-head...
Zimboboys/Zimboboys.github.io
_pages/categories.md
Markdown
mit
729
version https://git-lfs.github.com/spec/v1 oid sha256:79c814795789cdd1d3da53b7bc2bc13d73079bfd29ca518d91c8ec4f6e225b06 size 1659
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.16.0/datatable-scroll/assets/datatable-scroll-core.css
CSS
mit
129
version https://git-lfs.github.com/spec/v1 oid sha256:bf2580cc3dbb5c69564e5338a736b949ba7f1c7d567f37e58589d9f573c7abbb size 481
yogeshsaroya/new-cdnjs
ajax/libs/highlight.js/8.4/languages/step21.min.js
JavaScript
mit
128
version https://git-lfs.github.com/spec/v1 oid sha256:e7cf7648766782e7940410a3abb8126a98b94e57bd61bfc7c1523679e8ce7ed6 size 26807
yogeshsaroya/new-cdnjs
ajax/libs/string.js/1.9.1/string.js
JavaScript
mit
130
#include <ncore/sys/wait.h> #include "thread_pool.h" namespace ncore { ThreadPool::ThreadPool() : work_threads_(), running_(0) { exec_proc_.Register(this, &ThreadPool::DoJobs); } ThreadPool::~ThreadPool() { fini(); } bool ThreadPool::init(size_t thread_number) { if(!thread_numb...
shileiyu/ncore
ncore/utils/thread_pool.cpp
C++
mit
2,800
import * as React from "react"; import * as noUiSlider from "nouislider"; export interface SVSliderProps { value: number; maxSvs: number; max: number; onUpdate: (svs: number) => void; } export class SingularValuesSlider extends React.Component<SVSliderProps> { private sliderElRef: React.RefObject<HTMLDivEle...
timjb/svd-image-compression-demo
src/main-app/SingularValuesSlider.tsx
TypeScript
mit
3,237
version https://git-lfs.github.com/spec/v1 oid sha256:de6a4f96b6914035c33c21f63dc7fcb03b9203aa911b580501b99fbe3ea4b096 size 138
Gianfranco97/flyve-mdm-web-ui
src/Utils/ChangeSessionToken.ts
TypeScript
mit
128
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class PD_IS_10_model extends CI_Model { protected $db2; protected $db3; public function __construct() { parent:: __construct(); $this->db2 = $this->load->database('lib', TRUE); $this->db3 = $this->load->datab...
teorges/fmobile
application/models/qualidade_fibra/PD_IS_10_model.php
PHP
mit
2,567
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <!-- Meta-Information --> <title>Ka...
fezimmer89/kaleoChallenge
index.html
HTML
mit
3,034
require File.expand_path(File.join(File.dirname(__FILE__),"..",'/spec_helper')) describe IControl::Base do use_vcr_cassette "IControl::Base", :record => :all, :match_requests_on => [:uri, :method, :body] # Change :record => :new_episodes when done describe "Concurrent invocation" do it "should allow to be call...
magec/icontrol
spec/icontrol/base_spec.rb
Ruby
mit
951
# == Schema Information # # Table name: releases # # id :integer not null, primary key # tag_name :string # published_at :datetime # created_at :datetime not null # updated_at :datetime not null # # Indexes # # index_releases_on_published_at (published_at) # class Rele...
djsegal/julia_observer
app/models/release.rb
Ruby
mit
348
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
ROCmSoftwarePlatform/MIOpen
src/operator.cpp
C++
mit
3,112
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.semantic.swing.tree.querybuilder; import java.util.ArrayList; import java.util.List; import org.apache.lucene.search.BooleanQuery; import org.apache.lucene.search.Query; /** * * @author Christian Plonka (...
julianmendez/desktop-search
search-core/src/main/java/com/semantic/swing/tree/querybuilder/QueryPipeline.java
Java
mit
1,651
module ActiveRecord module Confirmable extend ActiveSupport::Concern included do validates_acceptance_of :confirmed after_rollback :check_confirming end def check_confirming errors.messages.delete( :confirmed ) self.confirmed = errors.empty? ? '1' : '' if self.confirmed end d...
beyond/activerecord-confirmable
lib/activerecord-confirmable/active_record/confirmable.rb
Ruby
mit
383
package ru.sigma.test.learning.data; /** * Created with IntelliJ IDEA. * User: emaltsev * Date: 22.11.13 * Time: 10:37 * To change this template use File | Settings | File Templates. */ public class ExponentialDemo { public static void main(String[] args) { double x = 11.635; double y = 2.76;...
low205/JavaTests
src/ru/sigma/test/learning/data/ExponentialDemo.java
Java
mit
780
/* The MIT License(MIT) ===================== Copyright(c) 2008, Cagatay Dogan Permission is hereby granted, free of charge, to any person obtaining a cop of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the right to use...
ocdogan/Sweet.BRE
Sweet.BRE/BRE/Statements/BreakStm.cs
C#
mit
3,478
#-- encoding: UTF-8 require 'spec_helper' RSpec.describe "Nomener::Cleaner" do context "with reformat" do it "returns the same string given" do expect(Nomener::Cleaner.reformat("Joe \"John\" O'Smith")).to eq "Joe \"John\" O'Smith" end it "returns the string with curved double quotes replaced" do ...
dan-ding/nomener
spec/nomener/nomener_helper_spec.rb
Ruby
mit
764
# # Cookbook Name:: dovecot # Recipe:: default # # Copyright 2014, YOUR_COMPANY_NAME # # All rights reserved - Do Not Redistribute # %w{dovecot-core dovecot-imapd dovecot-pop3d}.each do |p| package "#{p}" do action :install end end cookbook_file '/etc/dovecot/dovecot.conf' do source 'dovecot.conf' mode 06...
ringohub/anzen
cookbooks/dovecot/recipes/default.rb
Ruby
mit
327
SRC = lib/*.js include node_modules/make-lint/index.mk BIN = iojs ifeq ($(findstring io.js, $(shell which node)),) BIN = node endif ifeq (node, $(BIN)) FLAGS = --harmony-generators endif TESTS = test/application \ test/context/* \ test/request/* \ test/response/* \ test/experimental/index.js test: @NODE_EN...
roth1002/koa
Makefile
Makefile
mit
848
# frozen_string_literal: true describe Nanoc::Core::TextualCompiledContentCache do let(:cache) { described_class.new(config: config) } let(:items) { [item] } let(:item) { Nanoc::Core::Item.new('asdf', {}, '/foo.md') } let(:item_rep) { Nanoc::Core::ItemRep.new(item, :default) } let(:other_item) { Nanoc::Co...
nanoc/nanoc
nanoc-core/spec/nanoc/core/textual_compiled_content_cache_spec.rb
Ruby
mit
1,681
<!DOCTYPE html> <html lang=ko> <head> <meta charset="utf-8"> <title>ES6+ES7</title> <script src="let-1.js" defer></script> </head> <body> </body> </html>
leisureq/study
02_let_const/let-1.html
HTML
mit
165
#include <psl1ght/lv2/net.h> #include <psl1ght/lv2/errno.h> #include <sys/socket.h> #include <sys/select.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <string.h> #define __LINUX_ERRNO_EXTENSIONS__ #include <errno.h> int h_errno = 0; #define FD(socket) (socket & ~...
andoma/PSL1GHT
sprx/libnet/socket.c
C
mit
10,924
// ================================================================= // // * WARNING * // // This file is generated! // // Changes made to this file will be overwritten. If changes are // required to the generated code, the service_crategen project // must be updated to g...
DualSpark/rust-aws
rusoto/services/transfer/src/lib.rs
Rust
mit
1,515
const UrlPathValidator = require('../../../services/validators/url-path-validator') const referenceIdHelper = require('../../helpers/reference-id-helper') const BenefitOwner = require('../../../services/domain/benefit-owner') const ValidationError = require('../../../services/errors/validation-error') const insertBenef...
ministryofjustice/apvs-external-web
app/routes/apply/new-eligibility/benefit-owner.js
JavaScript
mit
2,796
<?php declare(strict_types=1); namespace Cortex\Foundation\Http\Middleware; use Closure; use Exception; use Illuminate\Http\Request; class SetCrawlingRobotsHeaders { protected $response; /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure ...
rinvex/cortex-foundation
src/Http/Middleware/SetCrawlingRobotsHeaders.php
PHP
mit
1,444
<?php namespace kosssi\MyAlbumsBundle\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://sym...
Sharepear/Sharepear
src/kosssi/MyAlbumsBundle/DependencyInjection/Configuration.php
PHP
mit
874
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
ProfilerTeam/Profiler
protected/vendors/Zend/Validate/Hostname/Cn.php
PHP
mit
168,011
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>React Taxonomy Picker consumer</title> </head> <body> <noscript> You need to enable JavaScript to run this app. </noscript> <div...
jquintozamora/react-taxonomypicker
public/index.html
HTML
mit
365
from __future__ import unicode_literals from django.utils import six import pytest from nicedjango.utils.compact_csv import CsvReader @pytest.fixture def stream(): csv = b'''"a\xc2\x96b\\"c'd\\re\\nf,g\\\\",1,NULL,""\n'''.decode('utf-8') return six.StringIO(csv) def test_reader_raw(stream): r = CsvRea...
katakumpo/nicedjango
tests/test_compact_csv_reader.py
Python
mit
1,175
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('memo-card', 'Integration | Component | memo card', { integration: true }); test('it renders', function(assert) { assert.expect(2); // Set any properties with this.set('myProperty', 'value')...
kush-team/pisku-afda
tests/integration/components/memo-card-test.js
JavaScript
mit
661
module.exports = function (grunt) { grunt.initConfig({ less: { test: { src: 'test/test.less', dest: 'test/test.css' } } }) grunt.loadNpmTasks('grunt-contrib-less') grunt.registerTask('default', ['less']) }
xsm-ue/xsm-page
Gruntfile.js
JavaScript
mit
230
package com.canigraduate.uchicago.models; public interface Activity { }
kevmo314/canigraduate.uchicago.edu
backend/uchicago/scraper/src/main/java/com/canigraduate/uchicago/models/Activity.java
Java
mit
73
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Kusto::Mgmt::V2020_02_15 module Models # # Class representing an iot hub data connection. # class IotHubDataConnection < Dat...
Azure/azure-sdk-for-ruby
management/azure_mgmt_kusto/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb
Ruby
mit
5,505
""" WSGI config for readbacks project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readbacks.settings") from django.co...
argybarg/readbacks
readbacks/wsgi.py
Python
mit
393
# Contributor Code of Conduct As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other acti...
komputerwiz/csp-solver
CODE_OF_CONDUCT.md
Markdown
mit
2,389
(function () { 'use strict'; // Setting up route angular .module('app.users') .run(appRun); // appRun.$inject = ['$stateProvider']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [ { state: 'profile'...
fr101ed/mean
public/modules/users/config/users.client.routes.js
JavaScript
mit
2,628
'use strict'; const {app} = require('electron'); const appName = app.getName(); module.exports = { label: appName, submenu: [{ label: 'About ' + appName, role: 'about', params: { version: '1.0.0' } }, { type: 'separator' }, { label: 'Preferences', event: 'prefer', params: 'optional params' },...
ragingwind/electron-menu-loader
demo/menu/darwin.js
JavaScript
mit
659
(function($) { "use strict"; /** * Main controller class for jaoselect input * @param {Object} settings for widget * @param {JQuery} model initial <select> element, we hide it and use like a "model" layer */ var JaoSelect = function(settings, model) { // Delete previously created element if exists mode...
PieceOfMeat/jaoselect
src/jquery.jaoselect.js
JavaScript
mit
10,820
#pragma once //----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 witho...
JeffProgrammer/Torque3D
Engine/source/T3D/assets/GUIAsset.h
C
mit
3,790
from pxl_object import PxlObject from pxl_vector import PxlVector class PxlSprite(PxlObject): def __init__(self, size, position): pass
desk467/pyxel
src/pxl_sprite.py
Python
mit
150
// Get all of our fake login data //var login = require('../login.json'); exports.view = function(req, res){ var goalname =req.params.goalname; res.render('add-milestone', {'time' : req.cookies.startTime, 'goalname': goalname}); }; exports.timePost = function(req,res){ var startTime = req.params.startTime; res....
w0nche0l/milestone
routes/add-milestone.js
JavaScript
mit
369
# Laravel Language File Creator [![Build Status](https://travis-ci.org/LaraPackage/LanguageFile.svg)](https://travis-ci.org/LaraPackage/LanguageFile) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/3717a477-28d4-4688-8764-98e2e48f5e9e/mini.png)](https://insight.sensiolabs.com/projects/3717a477-28d4-4688...
LaraPackage/LanguageFile
readme.md
Markdown
mit
1,801
/** * @license * Copyright Google LLC 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 {ElementRef, NgZone} from '@angular/core'; import {Direction} from '@angular/cdk/bidi'; import {coerceElement}...
andrewseguin/material2
src/cdk/drag-drop/drop-list-ref.ts
TypeScript
mit
41,996
--- order: 4 # Section display order include: projecte/related-projects.html # Section layout # Section variables ---
adab1ts/jam-demo.adabits.org
src/_s-projectes-web_estatica_moderna/4-projectes-relacionats.md
Markdown
mit
120
# Authentication ## Introduction Raptor supports user login and token based authentication in order to handle authentication and authorization to access and use the Raptor APIs. Users will be able to get credentials for the various entities needing to access specific platform capabilities via Raptor API: credentials...
raptorbox/raptorbox.github.io
docs/pages/overview/authentication.md
Markdown
mit
3,100
<?php //constants for debug() function (in lib.php) define("DEBUG_OUTPUT_TYPE", "html"); // command_line, html define("IS_DEBUG_MESSAGES_ON", true); //error reporting level define("DEPLOYMENT", "development"); // production, development require 'database_config.php'; ?>
DubFriend/chess
server/define.php
PHP
mit
272
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "db.h" #include "net.h" #include "main.h" #inclu...
altcommunitycoin/altcommunitycoin-skunk
src/net.cpp
C++
mit
56,430
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Stalkhub::Application.initialize!
rhannequin/stalkhub
config/environment.rb
Ruby
mit
152
<?php echo "holitas"; echo $_GET['url']; ?>
josuerangel/mark
php/index.php
PHP
mit
46
Template.index.onCreated( () => { let template = Template.instance(); template.autorun(()=> { template.subscribe('wishList'); }); }); Template.index.helpers({ contentReady() { return Template.instance().subscriptionsReady(); }, wishItems() { return Wish.find().fetch(); } });
lnwKodeDotCom/WeWish
client/templates/authenticated/index.js
JavaScript
mit
307
<md-content> <br> <md-toolbar> <div class="md-toolbar-tools"> <button md-button class="md-icon-button" aria-label="Settings" (click)="clicked('Menu')"> <i md-icon>menu</i> </button> <h2> <span>Toolbar with Icon Buttons</span> ...
adaojunior/md
example/toolbar/example.html
HTML
mit
1,811
# Ember CLI segment [![Build Status](https://travis-ci.org/josemarluedke/ember-cli-segment.svg?branch=master)](https://travis-ci.org/josemarluedke/ember-cli-segment) [![Code Climate](https://codeclimate.com/github/josemarluedke/ember-cli-segment/badges/gpa.svg)](https://codeclimate.com/github/josemarluedke/ember-cli-se...
cepko33/ember-cli-analytics
README.md
Markdown
mit
4,496
""" Test suite for the embedded <script> extraction """ from BeautifulSoup import BeautifulSoup from nose.tools import raises, eq_ from csxj.datasources.parser_tools import media_utils from csxj.datasources.parser_tools import twitter_utils from tests.datasources.parser_tools import test_twitter_utils def make_soup(...
sevas/csxj-crawler
tests/datasources/parser_tools/test_media_utils.py
Python
mit
4,676
import random from urllib import urlopen import sys WORD_URL = "http://learncodethehardway.org/words.txt" WORDS = [] PHRASES = { "class %%%(%%%):": "Make a class named %%% that is-a %%%.", "class %%%(object):\n\tdef __init__(self, ***)" : "class %%% has-a __init__ hat takes self and *** parameter.", "class %%%...
peterhogan/python
oop_test.py
Python
mit
2,018
# vim: set fileencoding=utf-8 : """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from ...
lpancescu/atlas-lint
setup.py
Python
mit
3,767
# История изменений ## 3.0.0 ### Изменения, ломающие обратную совместимость * Библиотека [bem-core](https://en.bem.info/libs/bem-core/) была обновлена до версии [3.0.1](https://github.com/bem/bem-core/releases/tag/v3.0.1). С этим обновлением больше не используется библиотека [FastClick](https://github.com/ftlabs/fast...
dima117/devcon-demo
Todo/Bem/libs/bem-components/CHANGELOG.ru.md
Markdown
mit
14,686
<head> <title>survey-app</title> </head> <body> <nav class="navbar navbar-default"> <ol class="breadcrumb"> <li><h2><a class="homeLink" href="#">Survey App</a></h2></li> <li><a href="#">About</a></li> <li> {{> loginButtons }} </li> {{#if currentUser}} <li><a class="profileLink" href="#">Pro...
joshuajharris/ODUHackathon2015
survey-app.html
HTML
mit
2,545
# Electron Starter Kit [![Join the chat at https://gitter.im/electronkr/electron-starter-kit](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/electronkr/electron-starter-kit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) > Assemblable barebone project for Electron. This starte...
pombredanne/electron-starter-kit
readme.md
Markdown
mit
525
# Vent A simple tunneling system designed to make a small footprint HTTP server behind a firewall available on a different machine with a public IP address. ## details A complete running system would involve three machines: - A client running a web browser - The tunneling server running at least python, available o...
tongfa/vent
README.md
Markdown
mit
1,757
jQuery(document).ready(function($){$(".slide8").remove();});
kwhaler/thenewarkansans
menace/rw_common/themes/couture/scripts/banner/slide_7.js
JavaScript
mit
61
module MarkdownDescriptionDecorator def description_markdown @description_markdown ||= Markdown.new(description) end def description_html @description_html ||= description_markdown.html.html_safe end def description_text @description_text ||= description_markdown.text.html_safe end end
hogelog/dmemo
app/decorators/markdown_description_decorator.rb
Ruby
mit
313
var throttle = require( "../throttle" ); // Fire callback at end of detection period var func = throttle(function() { // Do stuff here console.log( "throttled" ); }, 200 ); func();
ProperJS/throttle
test/test.js
JavaScript
mit
195
<?php /** * CodeIgniter * * An open source app development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ...
shr1th1k/0fferc1t1
system/database/drivers/mssql/mssql_result.php
PHP
mit
4,846
package org.droidplanner.core.MAVLink; import com.MAVLink.Messages.MAVLinkMessage; import com.MAVLink.common.msg_mission_ack; import com.MAVLink.common.msg_mission_count; import com.MAVLink.common.msg_mission_current; import com.MAVLink.common.msg_mission_item; import com.MAVLink.common.msg_mission_item_reached; impor...
Yndal/ArduPilot-SensorPlatform
Tower_with_3drservices/dependencyLibs/Core/src/org/droidplanner/core/MAVLink/WaypointManager.java
Java
mit
11,062
from .game import Board for i in range(10): Board.all() print(i)
jorgebg/tictactoe
time.py
Python
mit
74
ionic-webpack ============= Ionic Webpack Starter ## Quick Start Clone the repository ```bash $ git clone https://github.com/cmackay/ionic-webpack.git ``` Install the dependencies ```bash $ npm install ``` Watch Mode (this will run the webpack dev server) ```bash $ gulp watch ``` Adding Cordova Plugins ```bas...
cmackay/ionic-webpack
README.md
Markdown
mit
585
#include <iostream> using namespace std; int main() { int n; cin >> n; if(n<6) cout << n/2+1 <<endl; else cout << (10-n)/2+1 <<endl; return 0; }
zzh8829/CompetitiveProgramming
CCC/Stage1/10/ccc10j1.cpp
C++
mit
162
<HTML><HEAD> <TITLE>Review for Quills (2000)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0180073">Quills (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Harvey+S.+Karten">Harvey ...
xianjunzhengbackup/code
data science/machine_learning_for_the_web/chapter_4/movie/26812.html
HTML
mit
9,484
# coding: utf-8 # ##Test out UGRID-0.9 compliant unstructured grid model datasets with PYUGRID # In[1]: name_list=['sea_surface_elevation', 'sea_surface_height_above_geoid', 'sea_surface_height','water level', 'sea_surface_height_above_sea_level', 'water_surface_height_ab...
ioos/comt
python/pyugrid_test.py
Python
mit
3,158
version https://git-lfs.github.com/spec/v1 oid sha256:e1af4eb3952e50a1690c1d45f20c988b688e49f11938afc9f62e5384f71aaebb size 7470
yogeshsaroya/new-cdnjs
ajax/libs/fpsmeter/0.3.0/fpsmeter.min.js
JavaScript
mit
129
version https://git-lfs.github.com/spec/v1 oid sha256:ef8207110cddbc9ab9a056d5d654bd6d8615dca91bbba5f04af60bfa0a82e780 size 408546
yogeshsaroya/new-cdnjs
ajax/libs/jsPlumb/1.4.1/mootools.jsPlumb-1.4.1-all.js
JavaScript
mit
131
#2016年3月15日 ##nodejs ###http模块 ```js //加载一个http模块 var http = require('http'); //通过http模块下的createServer创建并返回一个web服务器对象 var server = http.createServer(); server.on('error', function(err){ console.log(err); }); server.on('listening', function() { console.log('listening...'); }) server.on('request', function(re...
Niefee/My-study-records
2016/3/2016年3月15日.markdown
Markdown
mit
2,517
{#- This file was automatically generated - do not edit -#} {% macro t(key) %}{{ { "language": "sv", "clipboard.copy": "Kopiera till urklipp", "clipboard.copied": "Kopierat till urklipp", "edit.link.title": "Redigera sidan", "footer.previous": "Föregående", "footer.next": "Nästa", "meta.comments": "Komm...
andhremattos/andhremattos.github.io
material/partials/language/sv.html
HTML
mit
806
void menu_top(void); void menu_Mchar2(void); // motor void menu_Mchar3(void); // motor void menu_Schar2(void); // sensor
danpeirce/robot_diagnostic
code/menu.h
C
mit
122
package org.jsense.serialize; import com.google.common.collect.ImmutableList; import org.joda.time.Instant; import org.joda.time.ReadableInstant; import org.jsense.AccelerometerEvent; import org.jsense.ModelFactory; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.By...
markuswustenberg/jsense
jsense-protobuf/src/test/java/org/jsense/serialize/TestProtocolBuffersDeserializers.java
Java
mit
3,943
const jwt = require("jwt-simple"); const co = require('co'); const config = require('../config'); const dbX = require('../db'); const coForEach = require('co-foreach'); module.exports = (io) => { const collectionVersionsNS = io.of('/collectionVersions'); collectionVersionsNS.use((socket, next) => { let token...
rxjs-space/lyback
sockets/collection-versions.js
JavaScript
mit
3,763
import { sh } from '../sh' export const getLogLines = (previousVersion: string) => sh( 'git', 'log', `...${previousVersion}`, '--merges', '--grep="Merge pull request"', '--format=format:%s', '-z', '--' ).then(x => (x.length === 0 ? [] : x.split('\0')))
desktop/desktop
script/changelog/git.ts
TypeScript
mit
290
<?php /** * This file is part of the vardius/list-bundle package. * * (c) Rafał Lorenz <vardius@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Vardius\Bundle\ListBundle\Filter\Types\Type; use Doctrine\ORM\Qu...
Vardius/list-bundle
Filter/Types/Type/DateType.php
PHP
mit
1,881
var gulp = require('gulp'); var setup = require('web3-common-build-setup'); var DEPS_FOLDER = setup.depsFolder; // Build tools var _ = require(DEPS_FOLDER + 'lodash'); var insert = require(DEPS_FOLDER + 'gulp-insert'); var del = require(DEPS_FOLDER + 'del'); var plugins = {}; plugins.s...
toefel/web3-demo
gulpfile.js
JavaScript
mit
3,495
dfdsa # rss 提供基于Docker的镜像来拉取微信公众号,实测支持daocloud. 注意Readis的配置 提供微信公众号RSS订阅接口,基于nodejs koajs开发 演示地址:[http://rss.wlwr.net](http://rss.wlwr.net) 注意:因演示地址访问量过多,服务器IP被搜狗加入黑名单,故不定期关闭演示地址。建议取代码搭建在自己服务器上。 ## 更新日志 - 2015.04.26 搜狗接口变更 (已修复) 1. 去掉 `phantomjs` 依赖,不再需要定时生成cookie池 (好消息) 2. 以前搜狗的openid标识失效,改用微信号ID作为标识 (坏消息...
atreeyang/weixin-rss
README.md
Markdown
mit
1,163
// ⚪ Initialization let canvas = document.getElementById('game') as HTMLCanvasElement; var gl = canvas.getContext('webgl'); if (!gl) { throw new Error('Could not create WebGL Context!'); } // 🔲 Create NDC Space Quad (attribute vec2 position) let ndcQuad = [ 1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0 ]; let indices ...
alaingalvan/alain.xyz
packages/portfolio/blog/image-editor-effects/example.ts
TypeScript
mit
4,422