repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
mdchristopher/Protractor
node_modules/lodash/at.js
765
var baseAt = require('./_baseAt'), baseFlatten = require('./_baseFlatten'), rest = require('./rest'); /** * Creates an array of values corresponding to `paths` of `object`. * * @static * @memberOf _ * @category Object * @param {Object} object The object to iterate over. * @param {...(string|string[])} [...
mit
SlaxWeb/Config
tests/_support/TestConfig/PhpConfig.php
46
<?php $configuration["test.config"] = "test";
mit
hkpeprah/television-2.0
web/sources/television/__init__.py
7361
import re from datetime import datetime from client import (TelevisionApi, pad) from common import COUNTRY_CODES as country_codes API = TelevisionApi() def list_latest_episodes(*args, **kwargs): raise NotImplemented def fetch_episodes_data_for_country(country, date): """ Lists the new episodes for the ...
mit
richardschneider/club-server
lib/session/resolver.js
527
// graphql resolver for a game import { Game, Board, SessionPair } from '../../data/connectors'; module.exports = { club(session) { return session.getClub(); }, boards(session) { return session.getBoards(); }, games(session) { return Game.findAll({ include: [{ model: Bo...
mit
Tehelee/Spigot-AdvancedBeacons
src/com/tehelee/beacons/enchantments/Luck.java
829
package com.tehelee.beacons.enchantments; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.EnchantmentTarget; import org.bukkit.inventory.ItemStack; public class Luck extends Enchantment { public Luck() { super(526); } @Override public boole...
mit
cuckata23/wurfl-data
data/nokia_e71_ver1_sub3_11007127.php
499
<?php return array ( 'id' => 'nokia_e71_ver1_sub3_11007127', 'fallback' => 'nokia_e71_ver1', 'capabilities' => array ( 'model_name' => 'E71-3', 'release_date' => '2009_october', 'columns' => '28', 'rows' => '13', 'max_image_width' => '300', 'resolution_width' => '320', 'resolution_h...
mit
dyydyydyydyydyy/knowsharing
src/Biz/Like/Dao/Impl/LikeDaoImpl.php
1050
<?php namespace Biz\Like\Dao\Impl; use Biz\Like\Dao\LikeDao; use Codeages\Biz\Framework\Dao\GeneralDaoImpl; class LikeDaoImpl extends GeneralDaoImpl implements LikeDao { protected $table = 'user_like'; public function deleteByIdAndUserId($id, $userId) { $sql = "DELETE FROM {$this->table} WHERE u...
mit
weissj3/MWTools
Data/LuaFilesFullSkyErrors/params_14.lua
808
wedge = 14 background = { epsilon = 0.997179, q = 0.619347 } streams = { { epsilon = -1.297424, mu = 190.545111, r = 13.878006, theta = 0.198390, phi = 3.139994, sigma = 3.743833 }, { epsilon = -1.008419, mu = 199.646461, ...
mit
sidoh/riddlegate
db/db.rb
288
require 'data_mapper' require 'dm-core' require 'dm-timestamps' root = File.expand_path(File.join(__FILE__, '../..')) DataMapper::Logger.new($stdout, :debug) DataMapper.setup(:default, "sqlite://#{root}/db/sqlite3.db") require 'db/schema' DataMapper.finalize DataMapper.auto_upgrade!
mit
TrapKingg/Tescha-books
users/filters.py
275
from django.contrib.auth.models import User import django_filters class UserFilter(django_filters.FilterSet): first_name = django_filters.CharFilter(lookup_expr='icontains') class Meta: model = User fields = ['username', 'first_name', 'last_name']
mit
laschuet/geometrie_in_react
structure.config.js
493
const path = require('path'); const config = { paths: { dev: path.resolve(__dirname, 'dev'), dist: path.resolve(__dirname, 'dist'), nodeModules: path.resolve(__dirname, 'node_modules'), source: path.resolve(__dirname, 'src'), }, filenames: { dev: { JS: '[name].js', }, dist: { ...
mit
rgllm/uminho
03/DSS/src/BillSplitter/src/visual/conta.java
17705
package visual; import javax.swing.table.*; import java.util.ArrayList; import java.util.Map.*; import billsplitter.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; public class conta extends javax.swi...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_98/safe/CWE_98__SESSION__CAST-cast_int_sort_of__include_file_id-sprintf_%d_simple_quote.php
1174
<?php /* Safe sample input : get the UserData field of $_SESSION sanitize : cast via + = 0 construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and ...
mit
interdate/dating4disabled
src/D4D/AppBundle/Entity/Income.php
751
<?php namespace D4D\AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Income */ class Income { /** * @var integer */ private $incomeid; /** * @var string */ private $incomename; /** * Get incomeid * * @return integer */ public function getI...
mit
IbrahimCode/ReactReduxRouterStarter
src/containers/BookList/reducers.js
885
import * as BookActionTypes from './actionTypes' const initialState = [] const reducer = (state = initialState, action) => { switch (action.type) { case BookActionTypes.GET_BOOK_LIST: return [...action.payload.books] case BookActionTypes.POST_BOOK: return [...state, action.payload.book] ca...
mit
kaicataldo/babel
packages/babel-plugin-transform-classes/test/fixtures/get-set/set-semantics-not-defined-on-parent-not-on-obj/output.js
3766
"use strict"; function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, desc...
mit
facebookarchive/AntennaPod
src/de/danoeh/antennapod/activity/FeedInfoActivity.java
7137
package de.danoeh.antennapod.activity; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem...
mit
mathiasbynens/unicode-data
6.3.0/scripts/Thai-regex.js
122
// Regular expression that matches all symbols in the `Thai` script as per Unicode v6.3.0: /[\u0E01-\u0E3A\u0E40-\u0E5B]/;
mit
yosuaalvin/sipuskom
application/views/admin/header.php
5719
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Sistem Informasi Pelatihan UPT Puskom UNDIP</title> <link rel="shortcut icon" href="<?php echo base_url(); ?>assets/images/gundar.jp...
mit
dreamamine/structure_de_recherche
app/cache/dev/twig/30/30db38e01d124f5ae4aeed9b5c10f11b23647acce0d5e4af6b7d02af97a4b98f.php
4532
<?php /* :user:edit.html.twig */ class __TwigTemplate_96be3a8b4cbedd110067f700d362d99888b1d4bf706cd79a65ce1c20b130ff87 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("LgmBundle::layou...
mit
ldahleen54/learn-anything
server/helpers/votes.js
3270
const dynamo = require('../utils/dynamoClient'); const cache = require('../utils/cache'); const { cacheKeys } = require('../constants.json'); const { APIError } = require('../utils/errors'); // Possible directions for a vote. const directions = { '-1': 'down', 0: 'reset', 1: 'up', }; // Create or modify a vote...
mit
chk1/OpenSenseMap
app/scripts/services/validation.js
908
'use strict'; /** * @ngdoc service * @name openSenseMapApp.validation * @description * # validation * Factory in the openSenseMapApp. */ angular.module('openSenseMapApp') .factory('Validation', ["$http", "$q", "OpenSenseBoxAPI", function ($http, $q, OpenSenseBoxAPI) { var service = {}; var validApiKe...
mit
mjwestcott/chatroulette
twistedchat.py
6644
""" twistedchat.py A TCP chat server in the style of 'Chatroulette' using Twisted. Part of a study in concurrency and networking in Python: https://github.com/mjwestcott/chatroulette in which I create versions of this server using asyncio, gevent, Tornado, and Twisted. Some 'features': - on connection, clients a...
mit
Betterment/test_track
app/controllers/api/v1/split_configs_controller.rb
630
class Api::V1::SplitConfigsController < AuthenticatedApiController def create split_upsert = SplitUpsert.new(create_params.merge(app: current_app)) if split_upsert.save head :no_content else render_errors split_upsert end end def destroy split = current_app.splits.find_by!(name: p...
mit
clockworkpc/launchschool
notes/preparatory_work/100_programming_and_back-end_prep/100_theory/loops_1/09_thats_odd.rb
64
(1..100).each { |i| # puts i if i % 2 == 1 puts i if i.odd? }
mit
cliffano/swaggy-jenkins
clients/scala-lagom-server/generated/src/main/scala/io/swagger/client/model/Users.scala
520
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * OpenAPI spec version: 1.1.1 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually...
mit
Geal/MockCA
config/routes.rb
2372
MockCA::Application.routes.draw do get '/certificates', :controller => 'certificate', :action => 'index', :as => 'certificates' post 'certificates_root', :controller => 'certificate', :action => 'create_root', :as => 'certificates_root' post 'certificates', :controller => 'certificate', :action => 'create', :as =...
mit
Terminus-Project/Terminus-Bot
scripts/gizoogle.rb
1996
# # Terminus-Bot: An IRC bot to solve all of the problems with IRC bots. # # Copyright (C) 2010-2015 Kyle Johnson <kyle@vacantminded.com>, Alex Iadicicco # (http://terminus-bot.net/) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (t...
mit
Bogh/omckle
main.go
1789
package main import ( "log" "net/http" "time" "github.com/gin-gonic/gin" ) func main() { err := Check() if err != nil { log.Fatalln("Check method failed: ", err) } err = InitClient() if err != nil { log.Fatalln("Error initializing torrent client: ", err) } router := gin.Default() router.Static("/st...
mit
stripe/netsuite
spec/netsuite/records/customer_refund_apply_spec.rb
345
require 'spec_helper' describe NetSuite::Records::CustomerRefundApply do let(:apply) { NetSuite::Records::CustomerRefundApply.new } it 'has all the right fields' do [ :amount, :apply, :apply_date, :currency, :doc, :due, :line, :ref_num, :total, :type ].each do |field| apply.should have_field(f...
mit
wenerme/tellets
telletsj-core/src/main/java/me/wener/telletsj/collect/impl/SourceContent.java
1442
package me.wener.telletsj.collect.impl; import com.google.common.base.Throwables; import java.net.URI; import lombok.Data; import me.wener.telletsj.collect.CollectionException; import me.wener.telletsj.util.IO; /** * 收集到的内容<br> * 对于一些特殊的内容,可以考虑实现子类来做定制 */ @Data public class SourceContent { /** * 该源的属性 ...
mit
MDE4CPP/examples
fUMLExamples/Alf/fUMLTest/src-gen/NewModelexec/CoaIsOddExecution.hpp
862
#ifndef NEWMODEL_CHECKIFPRIMECOAISODD_EXECUTION_HPP #define NEWMODEL_CHECKIFPRIMECOAISODD_EXECUTION_HPP //******************************************************************** //* //* Warning: This file was generated by Mesapp Generator //* //******************************************************************** #i...
mit
DripEmail/drip-dot-net
DripDotNetTests/TagTests.cs
6305
/* The MIT License (MIT) Copyright (c) 2015 - 2017 Avenue 81 Inc. d/b/a Leadpages, All Rights Reserved 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 witho...
mit
1tush/reviewboard
reviewboard/webapi/resources/repository_commits.py
4469
from __future__ import unicode_literals from django.core.exceptions import ObjectDoesNotExist from django.utils import six from djblets.webapi.decorators import (webapi_response_errors, webapi_request_fields) from djblets.webapi.errors import DOES_NOT_EXIST from reviewboard.revi...
mit
kairera0467/TJAP2fPC
FDK17プロジェクト/コード/03.サウンド/ISoundDevice.cs
899
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Un4seen.Bass; using Un4seen.BassAsio; using Un4seen.BassWasapi; using Un4seen.Bass.AddOn.Mix; namespace FDK { public interface ISoundDevice : IDisposable { ESoundDeviceType e出力デバイス { get; } int nMasterVolume { get...
mit
Ketouem/py-showcase
tests/test_conf.py
431
from nose.tools import assert_is_not_none from py_showcase import create_app class TestConf(object): def setUp(self): self.app = create_app() self.client = self.app.test_client() def test_mandatory_data_exist(self): assert_is_not_none(self.app.config['SECRET_KEY']) assert_is...
mit
jjenki11/blaze-chem-rendering
qca_designer/lib/pnetlib-0.8.0/DotGNU.SSL/ISecureSession.cs
5673
/* * ISecureSession.cs - Implementation of the * "DotGNU.SSL.ISecureSession" class. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * This program is free software, you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Found...
mit
JohnGrekso/GeckoUBL
src/GeckoUBL.Tests/Ubl21/Documents/OrderResponseSimpleTests.cs
943
using GeckoUBL.Ubl21.Documents; using GeckoUBL.Ubl21.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace GeckoUBL.Tests.Ubl21.Documents { [TestClass] public class OrderResponseSimpleTests { private string _xsdFile; private OrderResponseSimpleType _document; [TestInitialize] public vo...
mit
xenadevel/xenascriptlibs
layer47/python/Info.py
3372
#!/usr/bin/python import os, sys, time, getopt, re, datetime lib_path = os.path.abspath('testutils') sys.path.append(lib_path) from TestUtilsL47 import XenaScriptTools def helptext(): print print "Usage: %s ipaddr\n" % (sys.argv[0]) print print " prints various version and serial numbers." print ...
mit
ajlopez/PLangRe
lib/python.js
3257
if (typeof checker === 'undefined') var checker = require('./checker'); if (typeof functions === 'undefined') var functions = require('./functions'); var python = (function () { var language = 'python'; var whitespace = checker.whitespace; var newline = checker.newline; ...
mit
kcsl/immutability-benchmark
benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xalan/xsltc/compiler/util/NumberType.java
1188
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); *...
mit
iitc/x86
src/main/java/com/iancaffey/x86/io/X86Visitor.java
1601
package com.iancaffey.x86.io; import com.iancaffey.x86.io.avx.AVXVisitor; import com.iancaffey.x86.io.crypto.AESVisitor; import com.iancaffey.x86.io.crypto.SHAVisitor; import com.iancaffey.x86.io.ext.MemoryProtectionVisitor; import com.iancaffey.x86.io.ext.SaferModeVisitor; import com.iancaffey.x86.io.ext.SecurityGuar...
mit
SilkStack/Silk.Data.SQL.ORM
Silk.Data.SQL.ORM/Silk.Data/DeferredCollectionExtensions.cs
1252
using System.Collections.Generic; using System.Threading.Tasks; namespace Silk.Data { public static class DeferredCollectionExtensions { public static void Execute(this IEnumerable<IDeferred> deferredTasks) => deferredTasks.ToExecutor().Execute(); public static Task ExecuteAsync(this IEnumerable<I...
mit
phpmob/changmin
src/PhpMob/ChangMinBundle/Factory/TaxonFactory.php
1421
<?php /* * This file is part of the PhpMob package. * * (c) Ishmael Doss <nukboon@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace PhpMob\ChangMinBundle\Factory; use Sylius\Component...
mit
sibbl/ParkenDD
ParkenDD/Converters/IntGreaterZeroToVisibilityConverter.cs
670
using System; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace ParkenDD.Converters { public class IntGreaterZeroToVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if (!(value is int)) ...
mit
pip-benchmark/pip-benchmark-node
obj/src/index.d.ts
421
export { Parameter } from './Parameter'; export { IExecutionContext } from './IExecutionContext'; export { Benchmark } from './Benchmark'; export { PassiveBenchmark } from './PassiveBenchmark'; export { DelegatedBenchmark } from './DelegatedBenchmark'; export { BenchmarkSuite } from './BenchmarkSuite'; export * from '....
mit
mplessis/navegar
samples/Navegar.WPF.Exemple.CRM/MainWindow.xaml.cs
288
using System.Windows; namespace Navegar.WPF.Exemple { /// <summary> /// Logique d'interaction pour MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } } }
mit
REBELinBLUE/deployer
tests/Unit/View/Composers/ActiveUserComposerTest.php
870
<?php namespace REBELinBLUE\Deployer\Tests\Unit\View\Composers; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\View\View; use Mockery as m; use REBELinBLUE\Deployer\Tests\TestCase; use REBELinBLUE\Deployer\View\Composers\ActiveUserComposer; /** * @coversDefaultClass \REBELinBLUE\Deployer\View\Compose...
mit
yogeshsaroya/new-cdnjs
ajax/libs/mathjax/2.4.0/localization/da/HTML-CSS.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:aef1763d9b78abad7495593b2d0ffd425820f3d11fc36a7f8ac57043d71b2053 size 1211
mit
thomaswinckell/reactfire-white-board
src/drawing/tool/Circle.js
1170
import Tool from './Tool'; export default class Circle extends Tool { constructor( context ){ super( context , 'Circle'); } onMouseDown( event ) { this.isDragging = true; this.initialPosition = { pageX : event.pageX, pageY : event.pageY }; } onMouseMove( event, color, bac...
mit
TradeMe/tractor
plugins/mock-requests/src/tractor/server/create.js
290
// Dependencies: import { MockRequests } from './mock-requests/mock-requests'; export function create (browser, config) { let mockRequests = new MockRequests(browser, config.mockRequests); mockRequests.clear(); return mockRequests; } create['@Inject'] = ['browser', 'config'];
mit
irmen/Pyro5
examples/autoproxy/client.py
466
import Pyro5.api uri = input("enter factory server object uri: ").strip() factory = Pyro5.api.Proxy(uri) # create several things. print("Creating things.") thing1 = factory.createSomething(1) thing2 = factory.createSomething(2) thing3 = factory.createSomething(3) print(repr(thing1)) # interact with them on the ser...
mit
sarariv/phase-0
week-4/simple-substrings/my_solution.rb
225
# Simple Substrings # I worked on this challenge myself # Your Solution Below def welcome (address) if address.include? 'CA' return "Welcome to California" else return "You should move to California" end end
mit
pearpages/angular-ticketing
www/js/helpdesk/helpdesk.module.js
1341
(function() { 'use strict'; angular.module("helpdesk",[]) .config(function($stateProvider, $urlRouterProvider) { $stateProvider .state('tab.inbox', { url: '/helpdesk', templateUrl: 'js/helpdesk/inbox.html', controller: 'InboxController', ...
mit
whalenut/winject
src/main/java/com/whalenut/winject/inject/exceptions/WinjectSetterException.java
304
package com.whalenut.winject.inject.exceptions; public class WinjectSetterException extends WinjectException { public WinjectSetterException(String message) { super(message); } public WinjectSetterException(String message, Throwable cause) { super(message, cause); } }
mit
levibostian/myBlanky
googleAppEngine/google/appengine/tools/api_server.py
33202
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
mit
c0shea/IdParser
IdParser/Parsers/AbstractParser.cs
3462
using System; using System.Globalization; namespace IdParser.Parsers { public abstract class AbstractParser { protected IdentificationCard IdCard { get; } protected DriversLicense License => IdCard as DriversLicense ?? throw new InvalidOperationException("IdCard is of type IdentificationCard a...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_78/unsafe/CWE_78__unserialize__func_preg_match-no_filtering__ls-sprintf_%s_simple_quote.php
1349
<?php /* Unsafe sample input : Get a serialize string in POST and unserialize it sanitize : regular expression accepts everything construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, mo...
mit
Akamon/oauth2-server
src/Akamon/OAuth2/Server/Infrastructure/SymfonyConsole/CreateClientCommand.php
1795
<?php namespace Akamon\OAuth2\Server\Infrastructure\SymfonyConsole; use Akamon\OAuth2\Server\Domain\Model\Client\Client; use Akamon\OAuth2\Server\Domain\Model\Client\ClientRepositoryInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Conso...
mit
xrorox/arelidon
gestion/tresors/modif.php
2217
<?php /* * Created on 5 mars 2010 */ echo '<div>'; echo '<form id="form_item" method="post" action="panneauAdmin.php?category=13&update=1&tresor_id='.$_GET['tresor_id'].'">'; echo '<table border="1" class="backgroundBodyNoRadius" cellspacing="0" style="border:solid 1px black;text-align:center;width:800px;">'; echo...
mit
robotbird/Shadowsocks.py
Shadowsocks.py
746
import urllib2 import urllib import re import os import json res= urllib2.urlopen("http://www.ishadowsocks.net/") con = res.read().decode("utf-8") pattern = re.compile('<section id="free">(.*?)</section>',re.S) result = re.search(pattern,con) items = re.findall("<h4>(.*?)</h4>",result.group(0)) pwdus = items[2][4...
mit
mindwind/craft-atom
craft-atom-protocol-rpc/src/test/java/io/craft/atom/protocol/rpc/RpcService.java
158
package io.craft.atom.protocol.rpc; /** * @author mindwind * @version 1.0, Jul 22, 2014 */ public interface RpcService { void rpc(String s, int i); }
mit
grant/hawk
private/models/trips.js
234
var mongoose = require('mongoose'); module.exports = mongoose.model('trips', { family_id: Number, vin: String, start_time: String, end_time: String, stats: { fuel_eff: Number, fuel_consumed: Number, distance: Number, } });
mit
mkwia/jc2atc
scripts/admin/client/guiclass.lua
6166
class "GUI" local sx, sy = Game:GetSetting ( 30 ), Game:GetSetting ( 31 ) local textBoxTypes = { [ "text" ] = TextBox, [ "numeric" ] = TextBoxNumeric, [ "multiline" ] = TextBoxMultiline, [ "password" ] = PasswordTextBox } local protected = { } function GUI:Window ( title, pos, size ) local window = Window....
mit
danielrohers/bory
lib/types/urlencoded.js
5152
/*! * bory * Copyright(c) 2017 Daniel Röhers Moura * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ const createError = require('http-errors'); const debug = require('debug')('bory:urlencoded'); const deprecate = require('depd')('bory'); const read = require('../read'); const typeis = ...
mit
ValeriiVasin/angular2-redux-todo
src/app/containers/todos-counter.ts
498
import { Component } from '@angular/core'; import { getRemainingTodosCount } from '../reducers/todos'; import { connect } from '../lib'; const mapStateToProps = (state) => { return { counter: getRemainingTodosCount(state.todos) }; }; @Component({ selector: 'todos-counter-container', template: ` <span...
mit
socomj/Illuminati-Coin
src/qt/bitcoingui.cpp
30230
// Copyright (c) 2011-2013 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 <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "optionsdialog.h" #include "abou...
mit
Hellenic/dashboard-frontend
server/core-routes.js
658
var React = require('react'); var ReactDOMServer = require('react-dom/server'); var ReactRouter = require('react-router'); var history = require('history'); var routes = require('../app/routes.js'); var RoutingContext = ReactRouter.RoutingContext; var match = ReactRouter.match; module.exports = function(app) { app....
mit
Kuree/Faker.Net
Faker.Net/Locales/De.cs
205804
namespace Faker.Locales { [Locale(LocaleType.de)] internal class De : En { public override string Title { get { return "German"; } } #region Geography public override string[] CityPrefix { get { return new[] { ...
mit
alawatthe/MathLib
src/Permutation/init.ts
610
/*es6 import {sign} from 'Functn'; import {Matrix} from 'Matrix'; es6*/ /// import Functn, Matrix /** * The permutation class for MathLib * * @class * @this {Permutation} */ export class Permutation { type = 'permutation'; length: number; cycle: any[]; constructor (p) { var cycle, permutation; if (A...
mit
LivelyKernel/lively4-core
src/external/event-drops/interval.js
1025
import uniqBy from 'src/external/lodash/lodash.js'; export default (config, xScale) => selection => { const { interval: { color, width, id, startDate, endDate, onClick, onMouseOver, onMouseOut, }, } ...
mit
meziantou/Meziantou.Framework
common/Range.cs
11546
#pragma warning disable #if NETSTANDARD2_0 || NET45 || NET461|| NET472 || NETCOREAPP2_0 || NETCOREAPP2_1 // https://github.com/dotnet/corefx/blob/1597b894a2e9cac668ce6e484506eca778a85197/src/Common/src/CoreLib/System/Index.cs // https://github.com/dotnet/corefx/blob/1597b894a2e9cac668ce6e484506eca778a85197/src/Common/...
mit
sudent/symfony
src/Symfony/Component/Routing/Tests/RouteCollectionTest.php
13079
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Tests; use Symfony\Component\Routing\RouteCol...
mit
olivierlizotte/Proteomics.Utilities
PolynomialRegression.cs
2866
/* * Copyright 2013 Olivier Caron-Lizotte * olivierlizotte@gmail.com * Licensed under the MIT license: <http://www.opensource.org/licenses/mit-license.php> */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using MathNet.Numerics.LinearAlgebra.Generic; using MathNet.Numerics....
mit
zcoinofficial/zcoin
src/coins.cpp
10628
// Copyright (c) 2012-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. #include "coins.h" #include "util.h" #include "consensus/consensus.h" #include "memusage.h" #include "random.h" #include <a...
mit
milesj/boost
packages/pipeline/src/ConcurrentPipeline.ts
854
import { Context } from './Context'; import { debug } from './debug'; import { ParallelPipeline } from './ParallelPipeline'; export class ConcurrentPipeline< Ctx extends Context, Input = unknown, Output = Input, > extends ParallelPipeline<{}, Ctx, Input, Output> { /** * Execute all work units in parallel with a ...
mit
Tao-Oak/LeetCodeProblems
Problems/Array/hard/45_jump_game_ii/JumpGameTwo.java
3926
// // Created by Joshua.Cao, 2018/12/02 // // https://leetcode.com/problems/jump-game-ii/ // import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; /* * Given an array of non-negative integers, you are initially positioned at th...
mit
hpolthof/php-mt940
src/Parser/Banking/Mt940/Engine/Ing.php
3703
<?php namespace Kingsquare\Parser\Banking\Mt940\Engine; use Kingsquare\Parser\Banking\Mt940\Engine; /** * @package Kingsquare\Parser\Banking\Mt940\Engine * @author Kingsquare (source@kingsquare.nl) * @license http://opensource.org/licenses/MIT MIT */ class Ing extends Engine { /** * returns the name of t...
mit
cezarsa/was_tracer
benchmark/benchmark.rb
393
$:.unshift File.expand_path('../../lib', __FILE__) require "was_tracer" require "fileutils" require "benchmark" tmp_name = 'tmp_dkjsady83hai' t = nil Benchmark.bmbm do |x| x.report("Parsing") { t = WasTracer::Trace.new(File.expand_path('../trace.log', __FILE__)) } x.report("Rendering") { t.render_html_...
mit
bluewitch/Code-Blue-Python
HR_solveMeFirst.py
303
#HR_solveMeFirst.py def solveMeFirst(a,b) #Hint: Type return a+b below return a+b #Gotcha! #You must cast your parameters as int #or else they will concatenate as defult #string instead of defult integer add sum num1 = int(input()) num2 = int(input()) res = solveMeFirst(num1, num2) print(res)
mit
jacobsalmela/AdminLTE
scripts/pi-hole/js/groups.js
7980
/* Pi-hole: A black hole for Internet advertisements * (c) 2017 Pi-hole, LLC (https://pi-hole.net) * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ /* global utils:false */ var t...
mit
holoed/AwesomeProject
node_modules/Prelude.Unsafe/index.js
242
// Generated by psc-make version 0.6.9.5 "use strict"; var Prelude = require("Prelude"); function unsafeIndex(xs) { return function(n) { return xs[n]; }; } ; module.exports = { unsafeIndex: unsafeIndex };
mit
Adeynack/finances
app/models/book_role.rb
587
# frozen_string_literal: true # == Schema Information # # Table name: book_roles # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # book_id :bigint not null, indexed, indexed => [user_id, role] # user_id :bigint ...
mit
iiling/ywt
ThinkPHP/Extend/Engine/Sae/Common/functions.php
24955
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
mit
TryGhost/Ghost-Admin
app/components/modal-delete-member.js
1499
import ModalComponent from 'ghost-admin/components/modal-base'; import {alias} from '@ember/object/computed'; import {computed} from '@ember/object'; import {reads} from '@ember/object/computed'; import {inject as service} from '@ember/service'; import {task} from 'ember-concurrency'; export default ModalComponent.ext...
mit
5monkeys/zoomenhance
jquery.zoomenhance.js
4828
(function($) { // zoomenhance: Image zoomer $.fn.extend({ zoomenhance: function(userOpts) { var defaults = { width: 200, height: 200, hitboxPadding: 5, zoomFactor: undefined, manualCss: false, ...
mit
Dryra/SosAnimauxWeb
app/cache/prod/doctrine/orm/Proxies/__CG__SosAnimauxBackOfficeBundleEntityRendezVous.php
6400
<?php namespace Proxies\__CG__\SosAnimaux\BackOfficeBundle\Entity; /** * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR */ class RendezVous extends \SosAnimaux\BackOfficeBundle\Entity\RendezVous implements \Doctrine\ORM\Proxy\Proxy { /** * @var \Closure the callback responsible for lo...
mit
bkahlert/seqan-research
raw/workshop13/workshop2013-data-20130926/sources/kpj5j5z3lqazq2d2/31/sandbox/lkuchenb/apps/rnaseq/rnaseq.cpp
3265
#include <iostream> #include <seqan/store.h> #include <seqan/arg_parse.h> #include <seqan/misc/misc_interval_tree.h> #include <seqan/parallel.h> using namespace seqan; // define used types typedef FragmentStore<> TStore; typedef Value<TStore::TAnnotationStore>::Type TAnnotation; typedef TAnnotation::TId TId; typedef T...
mit
backpaper0/sandbox
servlet3-java6/src/test/java/com/example/FooServlet.java
1152
package com.example; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http....
mit
camilolopes/nodejs-examples
firstappnode/hello_server_refactored.js
356
var http = require('http'); var atendeRequisicao = function(request,response){ response.writeHead(200,{"Content-Type":"text/html"}); response.write("<h1>Hello world NodeJS</h1>"); response.end(); } var server = http.createServer(atendeRequisicao); var servidorUp = function(){ console.log("Servidor node rodando")...
mit
botstory/todo-bot
todo/conftest.py
9475
import botstory from botstory import di from botstory.integrations import fb, mongodb, mockhttp import datetime import emoji import logging import os import pytest from todo import lists, stories, tasks from todo.test_helpers import env logger = logging.getLogger(__name__) def all_emoji(text): return emoji.emoji...
mit
kib357/osdusshorAwards
app.js
374
/** * Created by kib357 on 04.03.2015. */ var express = require('express'); var compression = require('compression'); var app = express(); app.use(compression()); app.use(express.static(__dirname + '/dist')); app.set('port', process.env.Port || 4000); var server = app.listen(app.get('port')); console.log(...
mit
guzzle/command
tests/ServiceClientTest.php
5461
<?php namespace GuzzleHttp\Tests\Command\Guzzle; use PHPUnit\Framework\TestCase; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\Command\Command; use GuzzleHttp\Command\CommandInterface; use GuzzleHttp\Command\Exception\CommandException; use GuzzleHttp\Command\Result; use GuzzleHttp\Command\ServiceClient; use Guzz...
mit
ip28/ProductService
ProductService/ProductsRepository/Properties/AssemblyInfo.cs
1407
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pro...
mit
Logiks/Logiks-TestKit
comps/rightSidebar.php
3883
<div id="right-sidebar" class=""> <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 100%;"> <div class="sidebar-container" style="overflow: auto; width: auto; height: 100%;"> <ul class="nav nav-tabs navs-2"> <li class="active"><a data-to...
mit
pombredanne/metamorphosys-desktop
metamorphosys/META/externals/HCDDES/src/FRODO/src/arch/win32/highres_timing.cpp
5493
/*** Included Header Files ***/ #include <Windows.h> #include <assert.h> #include <math.h> #include <stdio.h> #include "scheduler.h" #ifdef __cplusplus extern "C" { #endif /*****************************************************************************/ #define HRT_MAXOFFSETS 8 #define HRT_OFF...
mit
gaoxiang12/slambook
ch4/useSophus/useSophus.cpp
2642
#include <iostream> #include <cmath> using namespace std; #include <Eigen/Core> #include <Eigen/Geometry> #include "sophus/so3.h" #include "sophus/se3.h" int main( int argc, char** argv ) { // 沿Z轴转90度的旋转矩阵 Eigen::Matrix3d R = Eigen::AngleAxisd(M_PI/2, Eigen::Vector3d(0,0,1)).toRotationMatrix(); Sop...
mit
openaq/openaq-fetch
adapters/slovenia.js
3724
'use strict'; import { REQUEST_TIMEOUT } from '../lib/constants'; import { default as baseRequest } from 'request'; import { cloneDeep } from 'lodash'; import { default as moment } from 'moment-timezone'; import { convertUnits } from '../lib/utils'; import cheerio from 'cheerio'; const request = baseRequest.defaults({...
mit
investonline/adwords-api
src/Exceptions/TooManyKeywordsException.php
224
<?php namespace InvestOnlineAdWordsApi\Exceptions; use RuntimeException; /** * Class TooManyKeywordsException * @package InvestOnlineAdWordsApi\Exceptions */ class TooManyKeywordsException extends RuntimeException { }
mit
bartbastings/school
periode-6-2012/PTM32/prototype/stratumseindv2/includes/fbconnect.php
97
<?php $app_id = "Your App ID/API Key goes here"; $app_secret = "Your App secret goes here"; ?>
mit