repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
bugsnag/bugsnag-js
packages/react-native-cli/src/lib/__test__/Repo.test.ts
3325
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...
mit
bugsnag/bugsnag-js
packages/plugin-react-native-connectivity-breadcrumbs/test/connectivity.test.ts
2475
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...
mit
ryanheathers/seattle-composting
test/error_handler_test.js
531
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...
mit
vimeo/psalm
src/Psalm/Issue/ExtensionRequirementViolation.php
158
<?php namespace Psalm\Issue; class ExtensionRequirementViolation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 239; }
mit
cloudcastle/activerecord-simpledb-adapter
lib/generators/active_record/model/model_generator.rb
786
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, ...
mit
tswiackiewicz/ddd-workshops
src/Application/User/Command/ChangePasswordCommand.php
1054
<?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 */ ...
mit
4nonym0us/aspnetboilerplate
src/Abp/Configuration/Startup/IAbpStartupConfiguration.cs
3515
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...
mit
publify/publify
publify_core/spec/routing/articles_routing_spec.rb
2587
# 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...
mit
scottweaver/sfdc-connect
lib/sfdc-support.rb
1362
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']}"...
mit
johanste/azure-rest-api-specs
specification/mediaservices/resource-manager/readme.md
8685
# 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...
mit
Azure/azure-sdk-for-go
services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go
16836
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...
mit
azheng1984/jk2010
vendor/hyperframework/hyperframework/test/cli/tests/OptionConfigParserTest.php
4987
<?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...
mit
rrustia/code-katas
src/test_is_thue_morse.py
318
"""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
mit
arrayoutofbounds/my-ascii-art
README.md
166
# 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)
mit
dog-days/create-react-boilerplate-app
scripts/bootstrap.js
1512
// "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...
mit
tiangolo/fastapi
tests/test_tutorial/test_request_files/test_tutorial001.py
6215
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": { ...
mit
mskalandunas/parcel
models/user.js
997
'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, ...
mit
benjamin-james/robot
src/pc_demo.c
2708
#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...
mit
dsavransky/miscpy
miscpy/PlotFun/logHist.py
1435
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 ...
mit
Zimboboys/Zimboboys.github.io
_pages/categories.md
729
--- 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...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.16.0/datatable-scroll/assets/datatable-scroll-core.css
129
version https://git-lfs.github.com/spec/v1 oid sha256:79c814795789cdd1d3da53b7bc2bc13d73079bfd29ca518d91c8ec4f6e225b06 size 1659
mit
yogeshsaroya/new-cdnjs
ajax/libs/highlight.js/8.4/languages/step21.min.js
128
version https://git-lfs.github.com/spec/v1 oid sha256:bf2580cc3dbb5c69564e5338a736b949ba7f1c7d567f37e58589d9f573c7abbb size 481
mit
yogeshsaroya/new-cdnjs
ajax/libs/string.js/1.9.1/string.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:e7cf7648766782e7940410a3abb8126a98b94e57bd61bfc7c1523679e8ce7ed6 size 26807
mit
shileiyu/ncore
ncore/utils/thread_pool.cpp
2800
#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...
mit
timjb/svd-image-compression-demo
src/main-app/SingularValuesSlider.tsx
3237
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...
mit
Gianfranco97/flyve-mdm-web-ui
src/Utils/ChangeSessionToken.ts
128
version https://git-lfs.github.com/spec/v1 oid sha256:de6a4f96b6914035c33c21f63dc7fcb03b9203aa911b580501b99fbe3ea4b096 size 138
mit
teorges/fmobile
application/models/qualidade_fibra/PD_IS_10_model.php
2567
<?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...
mit
fezimmer89/kaleoChallenge
index.html
3034
<!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...
mit
magec/icontrol
spec/icontrol/base_spec.rb
951
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...
mit
djsegal/julia_observer
app/models/release.rb
348
# == 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...
mit
ROCmSoftwarePlatform/MIOpen
src/operator.cpp
3112
/******************************************************************************* * * 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 * ...
mit
julianmendez/desktop-search
search-core/src/main/java/com/semantic/swing/tree/querybuilder/QueryPipeline.java
1651
/* * 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 (...
mit
beyond/activerecord-confirmable
lib/activerecord-confirmable/active_record/confirmable.rb
383
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...
mit
low205/JavaTests
src/ru/sigma/test/learning/data/ExponentialDemo.java
780
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;...
mit
ocdogan/Sweet.BRE
Sweet.BRE/BRE/Statements/BreakStm.cs
3478
/* 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...
mit
dan-ding/nomener
spec/nomener/nomener_helper_spec.rb
764
#-- 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 ...
mit
ringohub/anzen
cookbooks/dovecot/recipes/default.rb
327
# # 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...
mit
roth1002/koa
Makefile
848
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...
mit
nanoc/nanoc
nanoc-core/spec/nanoc/core/textual_compiled_content_cache_spec.rb
1681
# 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...
mit
leisureq/study
02_let_const/let-1.html
165
<!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>
mit
andoma/PSL1GHT
sprx/libnet/socket.c
10924
#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 & ~...
mit
DualSpark/rust-aws
rusoto/services/transfer/src/lib.rs
1515
// ================================================================= // // * 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...
mit
ministryofjustice/apvs-external-web
app/routes/apply/new-eligibility/benefit-owner.js
2796
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...
mit
rinvex/cortex-foundation
src/Http/Middleware/SetCrawlingRobotsHeaders.php
1444
<?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 ...
mit
Sharepear/Sharepear
src/kosssi/MyAlbumsBundle/DependencyInjection/Configuration.php
874
<?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...
mit
ProfilerTeam/Profiler
protected/vendors/Zend/Validate/Hostname/Cn.php
168011
<?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...
mit
jquintozamora/react-taxonomypicker
public/index.html
365
<!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...
mit
katakumpo/nicedjango
tests/test_compact_csv_reader.py
1175
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...
mit
kush-team/pisku-afda
tests/integration/components/memo-card-test.js
661
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')...
mit
xsm-ue/xsm-page
Gruntfile.js
230
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']) }
mit
kevmo314/canigraduate.uchicago.edu
backend/uchicago/scraper/src/main/java/com/canigraduate/uchicago/models/Activity.java
73
package com.canigraduate.uchicago.models; public interface Activity { }
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_kusto/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb
5505
# 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...
mit
argybarg/readbacks
readbacks/wsgi.py
393
""" 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...
mit
komputerwiz/csp-solver
CODE_OF_CONDUCT.md
2389
# 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...
mit
fr101ed/mean
public/modules/users/config/users.client.routes.js
2628
(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'...
mit
ragingwind/electron-menu-loader
demo/menu/darwin.js
659
'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' },...
mit
PieceOfMeat/jaoselect
src/jquery.jaoselect.js
10820
(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...
mit
JeffProgrammer/Torque3D
Engine/source/T3D/assets/GUIAsset.h
3790
#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...
mit
desk467/pyxel
src/pxl_sprite.py
150
from pxl_object import PxlObject from pxl_vector import PxlVector class PxlSprite(PxlObject): def __init__(self, size, position): pass
mit
w0nche0l/milestone
routes/add-milestone.js
369
// 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....
mit
LaraPackage/LanguageFile
readme.md
1801
# 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...
mit
andrewseguin/material2
src/cdk/drag-drop/drop-list-ref.ts
41996
/** * @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}...
mit
adab1ts/jam-demo.adabits.org
src/_s-projectes-web_estatica_moderna/4-projectes-relacionats.md
120
--- order: 4 # Section display order include: projecte/related-projects.html # Section layout # Section variables ---
mit
raptorbox/raptorbox.github.io
docs/pages/overview/authentication.md
3100
# 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...
mit
DubFriend/chess
server/define.php
272
<?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'; ?>
mit
altcommunitycoin/altcommunitycoin-skunk
src/net.cpp
56430
// 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...
mit
rhannequin/stalkhub
config/environment.rb
152
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Stalkhub::Application.initialize!
mit
josuerangel/mark
php/index.php
46
<?php echo "holitas"; echo $_GET['url']; ?>
mit
lnwKodeDotCom/WeWish
client/templates/authenticated/index.js
307
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(); } });
mit
adaojunior/md
example/toolbar/example.html
1811
<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> ...
mit
cepko33/ember-cli-analytics
README.md
4496
# 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...
mit
sevas/csxj-crawler
tests/datasources/parser_tools/test_media_utils.py
4676
""" 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(...
mit
peterhogan/python
oop_test.py
2018
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 %%%...
mit
lpancescu/atlas-lint
setup.py
3767
# 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 ...
mit
dima117/devcon-demo
Todo/Bem/libs/bem-components/CHANGELOG.ru.md
14686
# История изменений ## 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...
mit
joshuajharris/ODUHackathon2015
survey-app.html
2545
<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...
mit
pombredanne/electron-starter-kit
readme.md
525
# 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...
mit
tongfa/vent
README.md
1757
# 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...
mit
kwhaler/thenewarkansans
menace/rw_common/themes/couture/scripts/banner/slide_7.js
61
jQuery(document).ready(function($){$(".slide8").remove();});
mit
hogelog/dmemo
app/decorators/markdown_description_decorator.rb
313
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
mit
ProperJS/throttle
test/test.js
195
var throttle = require( "../throttle" ); // Fire callback at end of detection period var func = throttle(function() { // Do stuff here console.log( "throttled" ); }, 200 ); func();
mit
shr1th1k/0fferc1t1
system/database/drivers/mssql/mssql_result.php
4846
<?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 ...
mit
Yndal/ArduPilot-SensorPlatform
Tower_with_3drservices/dependencyLibs/Core/src/org/droidplanner/core/MAVLink/WaypointManager.java
11062
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...
mit
jorgebg/tictactoe
time.py
74
from .game import Board for i in range(10): Board.all() print(i)
mit
cmackay/ionic-webpack
README.md
585
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...
mit
zzh8829/CompetitiveProgramming
CCC/Stage1/10/ccc10j1.cpp
162
#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; }
mit
xianjunzhengbackup/code
data science/machine_learning_for_the_web/chapter_4/movie/26812.html
9484
<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 ...
mit
ioos/comt
python/pyugrid_test.py
3158
# 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...
mit
yogeshsaroya/new-cdnjs
ajax/libs/fpsmeter/0.3.0/fpsmeter.min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:e1af4eb3952e50a1690c1d45f20c988b688e49f11938afc9f62e5384f71aaebb size 7470
mit
yogeshsaroya/new-cdnjs
ajax/libs/jsPlumb/1.4.1/mootools.jsPlumb-1.4.1-all.js
131
version https://git-lfs.github.com/spec/v1 oid sha256:ef8207110cddbc9ab9a056d5d654bd6d8615dca91bbba5f04af60bfa0a82e780 size 408546
mit
Niefee/My-study-records
2016/3/2016年3月15日.markdown
2517
#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...
mit
andhremattos/andhremattos.github.io
material/partials/language/sv.html
806
{#- 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...
mit
danpeirce/robot_diagnostic
code/menu.h
122
void menu_top(void); void menu_Mchar2(void); // motor void menu_Mchar3(void); // motor void menu_Schar2(void); // sensor
mit
markuswustenberg/jsense
jsense-protobuf/src/test/java/org/jsense/serialize/TestProtocolBuffersDeserializers.java
3943
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...
mit
rxjs-space/lyback
sockets/collection-versions.js
3763
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...
mit
desktop/desktop
script/changelog/git.ts
290
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')))
mit
Vardius/list-bundle
Filter/Types/Type/DateType.php
1881
<?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...
mit
toefel/web3-demo
gulpfile.js
3495
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...
mit
atreeyang/weixin-rss
README.md
1163
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作为标识 (坏消息...
mit
alaingalvan/alain.xyz
packages/portfolio/blog/image-editor-effects/example.ts
4422
// ⚪ 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 ...
mit