repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
butla/PyDAS
data_acquisition/cf_app_utils/logs.py
1189
""" Delivers standard logging configuration for CloudFoundry app. """ import logging import sys NEGATIVE_LEVEL = logging.ERROR def configure_logging(log_level): """ Sets up the logging so that only the negative messages go to error output. Rest goes to standard output. This is useful when looking th...
mit
techird/ruler
src/render.js
8122
/** * @fileOverview * * 渲染 Ruler 对象中每一步产生的结果 * * @author: techird * @copyright: Baidu FEX, 2014 */ Ruler.defaultStyle = { 'point-fill': 'gray', 'point-stroke': null, 'point-stroke-width': 0, 'point-size': 3, 'point-label': '#666', 'draggable-point-fill': 'white', 'draggable-point-st...
mit
graphql/graphql-js
src/__tests__/starWarsData.ts
3290
/** * These are types which correspond to the schema. * They represent the shape of the data visited during field resolution. */ export interface Character { id: string; name: string; friends: ReadonlyArray<string>; appearsIn: ReadonlyArray<number>; } export interface Human { type: 'Human'; id: string; ...
mit
alaingilbert/ttdashboard
server/gatherer/doc/js/scripts.js
918
var scrollDown = false; document.addEventListener('mousewheel', function (evt) { var menu = document.getElementById('menu'); // Scroll down if (evt.wheelDelta < 0) { if (!scrollDown) { menu.style.position = 'absolute'; menu.style.top = (window.scrollY + menu.offsetTop) + 'px'; } ...
mit
haveagit/TranslatorDemo
Assets/MRDesignLab/HUX/Scripts/Input/InputSourceTouch6D.cs
1548
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // using UnityEngine; using System.Collections; using HUX; public class InputSourceTouch6D : InputSourceSixDOFBase { // SixDOF comes from InputSourceSi...
mit
DJCordhose/react-workshop
code/sandbox/typescript-react/src/store.ts
427
import { createStore, combineReducers, applyMiddleware } from "redux"; import { reducer as greetingReducer } from "./greeting"; import thunk from "redux-thunk"; import { composeWithDevTools } from "redux-devtools-extension"; export type State = { greeting: string; }; const store = createStore( combineReducers({ ...
mit
Flagbit/Magento-FACTFinder
src/shell/factfinder.php
5894
<?php require_once 'abstract.php'; class Mage_Shell_FactFinder extends Mage_Shell_Abstract { const EXPORT_ALL_TYPES_FOR_STORE = 'exportAllTypesForStore'; const EXPORT_ALL_TYPES_FOR_ALL_STORES = 'exportAllTypesForAllStores'; const EXPORT_STORE_PRICE = 'exportStorePrice'; const EXPORT_...
mit
ozonx/ozon
src/qt/bitcoinstrings.cpp
13136
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"), QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpa...
mit
gvonline/gvo_helper_web
quote/index.php
8174
<?php require_once('../assets/common.php'); if (isset($_POST['server']) && isset($_POST['city_name'])) { $server = isset($_POST['server']) ? trim($_POST['server']) : ''; $cityName = isset($_POST['city_name']) ? trim($_POST['city_name']) : ''; $cityStatus = isset($_POST['city_status']) ? trim($_POST['city_s...
mit
andchir/shopkeeper4
src/App/Service/DataBaseUtilService.php
6394
<?php namespace App\Service; use Doctrine\ODM\MongoDB\DocumentManager; use MongoDB\Client; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; class DataBaseUtilService { /** @var ParameterBagInterface */ protected $params; /** @var DocumentManager */ protected $dm; pu...
mit
zenlinTechnofreak/vessel
Godeps/_workspace/src/github.com/pingcap/go-hbase/del_test.go
2186
package hbase import ( "bytes" "github.com/ngaut/log" . "github.com/pingcap/check" "github.com/pingcap/go-hbase/proto" ) type HBaseDelTestSuit struct { cli HBaseClient } var _ = Suite(&HBaseDelTestSuit{}) func (s *HBaseDelTestSuit) SetUpTest(c *C) { var err error s.cli, err = NewClient(getTestZkHosts(), "/h...
mit
mike10004/selenium-help
src/main/java/com/github/mike10004/seleniumhelp/CookieAttributeHandlers.java
4313
package com.github.mike10004.seleniumhelp; import com.google.common.collect.ImmutableList; import org.apache.http.Header; import org.apache.http.conn.util.InetAddressUtils; import org.apache.http.cookie.CommonCookieAttributeHandler; import org.apache.http.cookie.Cookie; import org.apache.http.cookie.CookieOrigin; impo...
mit
rfillaudeau/inkPics
app/site/ajax/global/add_friend.php
1864
<?php require_once '../../../tools/config.php'; require_once '../../../tools/functions.php'; $link_db = connect_db($database_host, $database_user, $database_pass, $database_name); $user_id = filter_input(INPUT_POST, 'user_id', FILTER_SANITIZE_MAGIC_QUOTES); if (isset($_SESSION['pm_user']) && isset($user_id)) { ...
mit
PHP-DI/Kernel
tests/Fixture/FakeComposerLocator.php
269
<?php namespace DI\Kernel\Test\Fixture; class FakeComposerLocator extends \ComposerLocator { public static $paths = []; public static $rootPath; public static function getRootPath() { return self::$rootPath ?: parent::getRootPath(); } }
mit
johnduhart/MineAPI
MineAPI.Protocol/PacketInfo.cs
1451
using System; using System.Collections.Generic; using MineAPI.Protocol.IO; namespace MineAPI.Protocol { internal class PacketInfo : IPacketInfo { public NetworkState State { get; internal set; } public PacketDirection Direction { get; internal set; } public byte Id { get; internal set; ...
mit
SFSUser/IPS
src/Acme/SiteBundle/Entity/HCRiesgo.php
1624
<?php namespace Acme\SiteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * HCGeneral10Recomendaciones * * @ORM\Table() * @ORM\Entity */ class HCRiesgo { /** * @ORM\ManyToOne(targetEntity="HCRiesgoTipo", inversedBy="riesgos") * @ORM\JoinColumn(name="tipo", referencedColumnName="id") **/ ...
mit
hidnarola/osos
application/views/company/Employees/Leave/employee_leave_display.php
9341
<script src="<?php echo DEFAULT_FRONT_JS_PATH . "app-tables-datatables.js" ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="<?php echo DEFAULT_FRONT_LIB_PATH . "font-awesome/css/font-awesome.min.css" ?>"/> <?php if ($this->session->flashdata('success')) { ?> <div class="content ...
mit
jsuggs/CollegeCrazies
src/SofaChamps/Bundle/FacebookBundle/DependencyInjection/SofaChampsFacebookExtension.php
901
<?php namespace SofaChamps\Bundle\FacebookBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that l...
mit
SonarSource-VisualStudio/sonar-scanner-msbuild
Tests/SonarScanner.MSBuild.PostProcessor.Tests/Infrastructure/MockTeamBuildSettings.cs
1626
/* * SonarScanner for MSBuild * Copyright (C) 2016-2020 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 o...
mit
asherwunk/primus2
Falcraft/tests/Data/Types/OrderedNode.php
10868
<?php require_once('../../../Data/Types/Restrictions.php'); require_once('../../../Data/Types/Type.php'); require_once('../../../Data/Types/RestrictedSet.php'); require_once('../../../Data/Types/UnorderedNode.php'); require_once('../../../Data/Types/OrderedNode.php'); use Falcraft\Data\Types; use Falcraft\Data\Types\...
mit
viktor-kolosek/sample_app_rails_4
vendor/bundle/ruby/2.0.0/gems/airbrake-4.2.1/lib/airbrake/cli/options.rb
1918
class Options ATTRIBUTES = [:error, :message, :api_key, :host, :port, :auth_token, :name, :account, :rails_env, :scm_revision, :scm_repository, :local_username] ATTRIBUTES.each do |attribute| attr_reader attribute end private # You should not write to this from outside ATTRIBUTES.eac...
mit
onlabsorg/olowc
jspm_packages/npm/lodash@4.17.4/fp/mergeAllWith.js
172
/* */ var convert = require('./convert'), func = convert('mergeAllWith', require('../mergeWith')); func.placeholder = require('./placeholder'); module.exports = func;
mit
antFB/antFB
components/layout/col.tsx
2461
import React from 'react'; import { PropTypes } from 'react'; import classNames from 'classnames'; import assign from 'object-assign'; import splitObject from '../_util/splitObject'; const stringOrNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]); const objectOrNumber = PropTypes.oneOfType([PropTypes....
mit
rajendrav5/webpack2.0
node_modules/react-hot-loader/lib/babel/index.js
4376
'use strict'; var _babelTemplate = require('babel-template'); var _babelTemplate2 = _interopRequireDefault(_babelTemplate); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var buildRegistration = (0, _babelTemplate2.default)('__REACT_HOT_LOADER__.register(ID, NAME, FI...
mit
moneyice/hope
analyzer-microservice/src/main/java/hope/analyzer/model/Account.java
5948
package hope.analyzer.model; import hope.analyzer.util.BusinessException; import hope.analyzer.util.Utils; import java.time.LocalDate; import java.util.*; /** * Created by bing.a.qian on 10/2/2017. */ public class Account { //模拟base 100万 static double base=1000000; static double fee_rate=0.0003; pu...
mit
ctjacobs/cxqwatch
jobbook.py
3616
# This file is part of cxqwatch, released under the MIT license. # The MIT License (MIT) # Copyright (c) 2014, 2016 Christian T. Jacobs # 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 with...
mit
ProximoSrl/WebDAVSharp.Server
WebDAVServer.cs
23451
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading; using WebDAVSharp.Server.Adapters; using WebDAVSharp.Server.Adapters.AuthenticationTypes; using WebDAVSharp.Server.Except...
mit
liemqv/EventFlow
Source/EventFlow.Autofac/Properties/AssemblyInfo.cs
960
using System.Reflection; 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("EventFlow.Autofac")] [assembly: AssemblyD...
mit
xaviersierra/digit-guesser
drawer/src/main/java/xsierra/digitguesser/drawer/pipeline/BinarizeImageStep.java
584
package xsierra.digitguesser.drawer.pipeline; import java.awt.*; import java.awt.image.BufferedImage; public class BinarizeImageStep extends OrderablePipelineStep { public BinarizeImageStep(int stepOpder) { super(stepOpder); } @Override public BufferedImage processImage(BufferedImage img) {...
mit
cmd430/TuneDB
index.js
1713
var cluster = require( 'cluster' ); var cpuCount = require( 'os' ).cpus().length; var cron = require( 'cron' ); var domain = require( 'domain' ); //Deprecated! var app = require( 'express' )(); var config = require( './config.js' ); require( './setup.js' )( config, app ); require( './routes.js' )( app ); if( cluster...
mit
JohnJosuaPaderon/Citicon
Citicon/DataManager/SupplierManager.cs
6711
using Citicon.Data; using Citicon.DataProcess; using Sorschia; using Sorschia.Extensions; using Sorschia.Queries; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; namespace Citicon.DataManager { public sealed class SupplierManager : DataManager<Supplier>, IData...
mit
gauthierm/Cme
www/javascript/cme-disclosure.js
3886
function CMEDisclosure(id, class_name, server, title, content, cancel_uri) { this.id = id; this.class_name = class_name; this.server = server; this.content = content; this.title = title; this.cancel_uri = cancel_uri; YAHOO.util.Event.onDOMReady(this.init, this, true); } CMEDisclosure.confir...
mit
impromptu/impromptu
lib/Log.js
5251
var fs = require('fs') // Required for type checking. var State = require('./State') /** * @constructor * @param {State} state */ function Log(state) { /** @private {State} */ this._state = state /** @private {Log.Level} */ this._verbosity = Log.Level.NOTICE /** * The default destinations of the log...
mit
NeutronProject/NeutronMvcBundle
Model/Category/CategoryManagerInterface.php
305
<?php namespace Neutron\MvcBundle\Model\Category; interface CategoryManagerInterface { public function findOneBy(array $criteria); public function findBy(array $criteria); public function getQueryBuilderForDataGrid(); public function findCategoryBySlug($slug, $useCache); }
mit
Alfalfamale/P
themes/theme_bootswatch/blocks/form/templates/horizontal.php
5296
<?php /************************************************************ * DESIGNERS: SCROLL DOWN! (IGNORE ALL THIS STUFF AT THE TOP) ************************************************************/ defined('C5_EXECUTE') or die("Access Denied."); $survey = $controller; $miniSurvey = new MiniSurvey($b); $miniSurvey->frontEn...
mit
jbatonnet/system
Source/[Tools]/[Libraries]/SharpFont/Face.cs
83320
#region MIT License /*Copyright (c) 2012-2015 Robert Rouhani <robert.rouhani@gmail.com> SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
mit
shirobu2400/mmdpi
libmmdpi/model/mmdpi_shader.cpp
12153
#include "mmdpi_shader.h" const int _send_gpu_data_num_ = 4; int mmdpiShader::shader_on( void ) { if( program ) glUseProgram( program ); else { GLint length; GLchar* log; glGetShaderiv( shader, GL_INFO_LOG_LENGTH, &length ); log = new GLchar[ length ]; glGetShaderInfoLog( bone_size_id...
mit
kristopolous/DRR
indycast.net/controls.php
2720
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="/assets/css/main.css" /> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> ...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_98/unsafe/CWE_98__exec__func_preg_match-no_filtering__require_file_name-interpretation_simple_quote.php
1362
<?php /* Unsafe sample input : use exec to execute the script /tmp/tainted.php and store the output in $tainted sanitize : regular expression accepts everything construction : interpretation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty ...
mit
drewm/selecta
tests/ClassTest.php
381
<?php use DrewM\Selecta\Selecta; class ClassTest extends PHPUnit_Framework_TestCase { public function testSimpleClass() { $result = Selecta::build('div.foo'); $this->assertEquals('<div class="foo"></div>', $result); } public function testDoubleClass() { $result = Selecta::build('div.foo.bar'); $this-...
mit
rougin/weasley
tests/Fixture/Templates/TestController.php
166
<?php namespace App\Http\Controllers; /** * TestController * * @package App * @author Rougin Gutib <rougingutib@gmail.com> */ class TestController { // }
mit
waxe/waxe.xml
waxe/xml/static/ckeditor/plugins/devtools/lang/km.js
507
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'km', { title: 'ព័ត៌មាន​នៃ​ធាតុ', dialogName: 'ឈ្មោះ​ប្រអប់​វីនដូ', tabName: 'ឈ្មោះ​ផ្ទាំង', elementId: 'អត...
mit
rikbattum/pvApp
gulp.js
1132
// Base gulp file as known to internet :) // based oon 25-07-2015, while listening to the Passengers; // Include gulp var gulp = require('gulp'); // Include Our Plugins var jshint = require('gulp-jshint'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var ...
mit
Q42/Q42.HueApi
src/Q42.HueApi.Streaming.Sample/Program.cs
1248
using System; using System.Collections.Generic; using System.Threading.Tasks; using Q42.HueApi.Streaming.Models; namespace Q42.HueApi.Streaming.Sample { class Program { public static async Task Main(string[] args) { Console.WriteLine("Q42.HueApi Streaming Sample App"); HueStreaming s = new Hue...
mit
erwinvaneyk/Dragons-Arena
src/main/java/distributed/systems/network/AbstractNode.java
3182
package distributed.systems.network; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import distributed.s...
mit
chandlerkent/emberjs-feed-wrangler
tests/unit/controllers/newsfeed-test.js
333
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:newsfeed', 'NewsfeedController', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function() { var controller = this.subject(); ok(cont...
mit
dtaniwaki/sidekiq-merger
lib/sidekiq/merger/logging_observer.rb
408
class Sidekiq::Merger::LoggingObserver def initialize(logger) @logger = logger end def update(time, _result, ex) if ex.is_a?(Concurrent::TimeoutError) @logger.error( "[#{Sidekiq::Merger::LOGGER_TAG}] Execution timed out\n" ) elsif ex.present? @logger.error( "[#{Sidek...
mit
mikeshultz/pyqual
bin/pqweb.py
26632
#!/usr/bin/python import sys, os sys.path.append(os.getcwd()) import math, datetime, cherrypy, psycopg2, argparse, PyRSS2Gen from psycopg2 import extras as pg_extras from pyqual.auth import Auth, LoginPage from pyqual.utils import DB, Updated, Inserted from pyqual.templait import Templait from pyqual import settings...
mit
gertjvr/ChatterBox
src/Client/ChatterBox.ChatClient/Infrastructure/Mappers/MessageDtoToMessageMapper.cs
818
using ChatterBox.ChatClient.Models; using ChatterBox.Core.Mapping; using ChatterBox.MessageContracts.Dtos; namespace ChatterBox.ChatClient.Infrastructure.Mappers { public class MessageDtoToMessageMapper : IMapToNew<MessageDto, Message> { private readonly IMapToNew<UserDto, User> _userMapper; ...
mit
meteorhacks/kadira
package.js
4266
Package.describe({ "summary": "Performance Monitoring for Meteor", "version": "2.30.2", "git": "https://github.com/meteorhacks/kadira.git", "name": "meteorhacks:kadira" }); var npmModules = { "debug": "0.7.4", "kadira-core": "1.3.2", "pidusage": "1.0.1", "evloop-monitor": "0.1.0", "pidusage": "0.1.1"...
mit
osorubeki-fujita/odpt_tokyo_metro
lib/tokyo_metro/factory/save/api/station_facility/each_file.rb
196
class TokyoMetro::Factory::Save::Api::StationFacility::EachFile < TokyoMetro::Factory::Save::Api::MetaClass::EachFile::DataSearch include ::TokyoMetro::ClassNameLibrary::Api::StationFacility end
mit
jpush/aurora-imui
Android/chatinput/src/main/java/cn/jiguang/imui/chatinput/ChatInputStyle.java
8118
package cn.jiguang.imui.chatinput; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.support.v4.content.ContextCompat; import android.util.AttributeSet; public class ChatInputStyle extends Style { private static final int DEFAULT_MA...
mit
sparkdesignsystem/spark-design-system
angular/projects/spark-angular/src/lib/directives/inputs/sprk-helper-text/sprk-helper-text.directive.ts
938
import { Directive, ElementRef, OnInit, Input, HostBinding, Renderer2, } from '@angular/core'; @Directive({ selector: '[sprkHelperText]', }) export class SprkHelperTextDirective implements OnInit { /** * @ignore */ constructor(public ref: ElementRef, private renderer: Renderer2) {} /** * ...
mit
Trinovantes/MyAnimeList-Cover-CSS-Generator
src/tasks/scraper.js
4292
'use strict'; const request = require("request"); const vasync = require('vasync'); const logger = require('src/utils/logger'); const sleep = require('src/utils/sleep'); const Constants = require('src/utils/constants'); const MALCoverCSSDB = require('src/models/MALCoverCSSDB'); //------------------------------------...
mit
gcubar/BlogBundle-Symfony
src/Rimed/BlogBundle/Entity/BaseTag.php
256
<?php namespace Rimed\BlogBundle\Entity; use Rimed\BlogBundle\Model\Tag as ModelTag; class BaseTag extends ModelTag { public function prePersist() { $this->setCreatedAt(new \DateTime); $this->setUpdatedAt(new \DateTime); } }
mit
xZ1mEFx/yii2-multilang
views/language/adminlte/_form.php
1637
<?php use xz1mefx\adminlte\helpers\Html; use xz1mefx\adminlte\widgets\ActiveForm; /* @var $this \yii\web\View */ /* @var $model \xz1mefx\multilang\models\Language */ /* @var $form ActiveForm */ ?> <div class="box box-primary"> <div class="box-body"> <div class="box-body-overflow"> <?php $form ...
mit
maceto/file_generator
spec/support/helpers.rb
353
require "ostruct" require "yaml" module Helpers def load_formats(path = "/spec/formats.yml") formats_file = File.join(Dir.pwd, path) if File.exists?(formats_file) conf = YAML.load(File.read("#{Dir.pwd}#{path}")) OpenStruct.new(conf) else "missing formats file." end end end RSpe...
mit
Lallassu/VoxLords
js/vox.js
8556
//============================================================================== // Author: Nergal // http://webgl.nu // Date: 2014-11-17 //============================================================================== function VoxelData() { this.x; this.y; this.z; this.color; VoxelData.prototype.C...
mit
agraubert/Beymax
beymax/perms.py
17717
from .utils import DBView from agutil import hashfile import yaml from collections import namedtuple import warnings import sys import os Rule = namedtuple("Rule", ['allow', 'deny', 'underscore', 'type', 'data']) class PermissionsFile(object): _FALLBACK_DEFAULT = Rule(['$all'], [], False, None, {}) @staticme...
mit
xguz/bravo
lib/bravo/constants.rb
3327
# encoding: utf-8 # Here we define Hashes # module Bravo # This constant contains the invoice types mappings between codes and names # used by WSFE. CBTE_TIPO = { '01' => 'Factura A', '02' => 'Nota de Débito A', '03' => 'Nota de Crédito A', '04' => 'Recibos A', '05' => 'Notas de Venta al conta...
mit
wearska/wearska
app/components/navigation/navigation.factory.js
2250
(function() { 'use strict'; angular.module('daksports') .factory('dakNav', function() { var obj = {}; obj.adminItems = [{ title: 'Items list', icon: 'assets/icons/ic_view_list_24px.svg', ref: '/admin/list', }, { ...
mit
earalov/Skylines-NoPillars
NoPillars/NoPillarsMonitor.cs
4854
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using ColossalFramework; using UnityEngine; namespace NoPillars { public class NoPillarsMonitor : MonoBehaviour { private const string GameObjectName = "NoPillarsMonitor"; private NetInfo currentPrefab...
mit
TrigenSoftware/i18n-for-browser
src/index.ts
236
import Config from './config'; import { globalConfig } from './methods/common'; export * from './types'; export * from './processors'; export * from './methods'; export type I18nConfigInstance = Config; export default globalConfig;
mit
klinster/School-Work
practice/lrn2laravel/config/app.php
7339
<?php return [ /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error...
mit
envato/stack_master
spec/stack_master/test_driver/cloud_formation_spec.rb
3049
require 'stack_master/test_driver/cloud_formation' RSpec.describe StackMaster::TestDriver::CloudFormation do subject(:test_cf_driver) { described_class.new } context 'stacks' do it 'creates and describes stacks' do test_cf_driver.create_stack(stack_id: "1", stack_name: 'stack-1') test_cf_driver.cr...
mit
Dans-labs/dariah
client/node_modules/caniuse-lite/data/features/insert-adjacent.js
962
module.exports={A:{A:{"1":"L H G E A B","16":"jB"},B:{"1":"8 C D e K I N J"},C:{"1":"0 1 2 3 9 r s t u v w x y z JB IB CB DB EB O GB HB","2":"4 5 7 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q aB ZB"},D:{"1":"0 1 2 3 4 5 7 8 9 F L H G E A B C D e K I N J P Q R S T U V W X Y Z ...
mit
dhwanisanmukhani/competitive-coding
codeforces/Competitions/ED38/first.cpp
602
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> using namespace std; #define icin(x) scanf("%d", &x) #define lcin(x) scanf("%lld", &x) typedef long long ll; int icheck(char c){ if(c == 'a' | c=='e'|c=='i'|c=='o'|c=='u'|c=='y') return 1; else return 0; } int main(){ string s; int l...
mit
l496501043/edpx-zhixin
lib/AssembleTemplate.js
2417
/*************************************************************************** * * Copyright (C) 2014 Baidu.com, Inc. All Rights Reserved * ***************************************************************************/ /** * @file AssembleTemplate.js ~ 2014-04-09 14:34 * @author sekiyika (px.pengxing@gmail.com) * @desc...
mit
exercism/xjavascript
exercises/meetup/meetup.spec.js
1931
var meetupDay = require('./meetup'); describe('meetupDay()', function () { it('monteenth of may 2013', function () { expect(meetupDay(2013, 4, 'Monday', 'teenth')).toEqual(new Date(2013, 4, 13)); }); xit('saturteenth of february 2013', function () { expect(meetupDay(2013, 1, 'Saturday', 'teenth')).toEqu...
mit
dmcclory/moss
lib/moss/version.rb
35
class Moss VERSION = '0.0.2' end
mit
chinxianjun/autorepair
app/helpers/part_buyings_helper.rb
29
module PartBuyingsHelper end
mit
potproject/ikuradon
app/actions/actiontypes/currentuser.js
228
export const UPDATE_CURRENT_USER = "UPDATE_CURRENT_USER"; export const DELETED_CURRENT_USER = "DELETED_CURRENT_USER"; export const NOTIFICATION_PUSH = "NOTIFICATION_PUSH"; export const NOTIFICATION_CLEAR = "NOTIFICATION_CLEAR";
mit
shopzcoin/shopzcoin
src/qt/locale/bitcoin_fa_IR.ts
114540
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Shopzcoin</source> <translation type="unfinished"/> </message> <message> <location l...
mit
pntripathi9417/pntripathi9417.github.io
core/server/apps/subscribers/lib/helpers/index.js
662
// Dirty requires! const labs = require('../../../../services/labs'); module.exports = function registerHelpers(ghost) { ghost.helpers.register('input_email', require('./input_email')); ghost.helpers.register('subscribe_form', function labsEnabledHelper() { let self = this, args = arguments; ...
mit
NimbusAPI/Nimbus
src/Nimbus.Tests.Integration/Tests/AuditingInterceptorTests/WhenSendingOneOfEachKindOfMessage.cs
5202
using System; using System.Linq; using System.Threading.Tasks; using Nimbus.Configuration; using Nimbus.Interceptors; using Nimbus.MessageContracts.ControlMessages; using Nimbus.Tests.Common.Extensions; using Nimbus.Tests.Integration.Tests.AuditingInterceptorTests.MessageTypes; using Nimbus.Tests.Integration.TestScena...
mit
cuckata23/wurfl-data
data/telpad_dual_s_ver1.php
446
<?php return array ( 'id' => 'telpad_dual_s_ver1', 'fallback' => 'generic_android_ver4_1', 'capabilities' => array ( 'is_tablet' => 'true', 'model_name' => 'Dual S', 'brand_name' => 'Telpad', 'can_assign_phone_number' => 'false', 'release_date' => '2012_december', 'physical_screen_heigh...
mit
laurentiustamate94/smart-wash
SmartWash.Service.Models/IPowerManagement.cs
287
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SmartWash.Service.Models { public interface IPowerManagement { Task<bool> On(string socket); Task<bool> Off(string socket); } }
mit
walterhiggins/pixenate
webroot/javascript/pxn8_xhairs.js
4296
/* ============================================================================ * * (c) Copyright SXOOP Technologies Ltd. 2005-2009 * All rights reserved. * * This file contains code for displaying cross-hairs on the selection * */ var PXN8 = PXN8 || {}; PXN8.crosshairs = {}; /***********************...
mit
duhone/EteriumInput
REInputNative/REInputDeviceNative.cpp
4096
#include "stdafx.h" #include "REInputDeviceNative.h" #include "Util.h" using namespace std; using namespace RE::InputNative; InputDevice::InputDevice(DeviceInfo& _deviceInfo, CComPtr<IDirectInputDevice8> _device, HWND _hwnd) : m_DeviceInfo(_deviceInfo), m_Device(_device), m_hwnd(_hwnd) { Acquire(); Update(); } v...
mit
Doomedfajita/UPCI-CoSBBI
src/loaders/loaders.base.js
6506
/** Imports **/ import HelpersProgressBar from '../helpers/helpers.progressbar'; import EventEmitter from 'events'; /** * * It is typically used to load a DICOM image. Use loading manager for * advanced usage, such as multiple files handling. * * Demo: {@link https://fnndsc.github.io/vjs#loader_dicom} * * @mod...
mit
mathiasbynens/unicode-data
4.1.0/blocks/Supplemental-Punctuation-symbols.js
1487
// All symbols in the Supplemental Punctuation block as per Unicode v4.1.0: [ '\u2E00', '\u2E01', '\u2E02', '\u2E03', '\u2E04', '\u2E05', '\u2E06', '\u2E07', '\u2E08', '\u2E09', '\u2E0A', '\u2E0B', '\u2E0C', '\u2E0D', '\u2E0E', '\u2E0F', '\u2E10', '\u2E11', '\u2E12', '\u2E13', '\u2E14', '\u2E15', ...
mit
kiergarlen/ppot
database/migrations/2017_03_09_212216_create_regiones_table.php
552
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRegionesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('regiones', function (Blueprint $table) { ...
mit
johnazariah/orleans-architecture-patterns-code
Demo.SiloHost/SmartCacheDemo.cs
1861
using System; using System.Linq; using System.Threading.Tasks; using Demo.SmartCache.GrainInterfaces; using Demo.SmartCache.GrainInterfaces.State; using Orleans; using Patterns.DevBreadboard; namespace Patterns.SmartCache.Host { //internal class StateMachineDemo //{ // public static void Run() // ...
mit
olzaragoza/vscode-icons
src/build/templates/checkAssociations.js
646
var checkAssociations = function checkAssociations(config, filename, additionalClass) { var ascs; var asc; var rx; var i = 0; var len; if (!config || !config.vsicons || !config.vsicons.useFileAssociations || !config.vsicons.associations) return null; ascs = config.vsicons.associations;...
mit
pjcarly/ember-field-components
addon/components/input-field-select/component.ts
4956
import InputField, { InputFieldArguments } from "../input-field/component"; import SelectOption from "@getflights/ember-field-components/interfaces/SelectOption"; import { isArray } from "@ember/array"; import { action } from "@ember/object"; import Model from "@ember-data/model"; export interface InputFieldSelectArgu...
mit
inoio/Rocket.Chat
app/ui/client/components/header/headerRoom.js
5740
import toastr from 'toastr'; import { Meteor } from 'meteor/meteor'; import { ReactiveVar } from 'meteor/reactive-var'; import { Session } from 'meteor/session'; import { Template } from 'meteor/templating'; import { FlowRouter } from 'meteor/kadira:flow-router'; import s from 'underscore.string'; import { t, roomType...
mit
kaicataldo/babel
packages/babel-plugin-transform-classes/test/fixtures/get-set/set-semantics-getter-defined-on-parent/output.js
4114
"use strict"; function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() ...
mit
jongmin141215/ruby-kickstart
session2/3-challenge/7_array.rb
844
# Given a sentence, return an array containing every other word. # Punctuation is not part of the word unless it is a contraction. # In order to not have to write an actual language parser, there won't be any punctuation too complex. # There will be no "'" that is not part of a contraction. # Assume each of these char...
mit
wichtounet/eddic
src/Parameter.cpp
902
//======================================================================= // Copyright Baptiste Wicht 2011-2016. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #include ...
mit
javifm86/codefights
arcade/intro/26 - evenDigitsOnly.js
119
function evenDigitsOnly(n) { return String(n).split('').filter((e) => ~~e % 2 === 0).length === String(n).length; }
mit
mlaursen/react-md
packages/material-icons/src/DeveloperBoardSVGIcon.tsx
602
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import { forwardRef } from "react"; import { SVGIcon, SVGIconProps } from "@react-md/icon"; export const DeveloperBoardSVGIcon = forwardRef<SVGSVGElement, SVGIconProps>( function DeveloperBoardSVGIcon(props,...
mit
trepo/trepo-js
packages/ptree/src/birth/getPlace.js
260
const {Direction} = require('@trepo/vgraph'); const Label = require('../label.js'); const util = require('../util.js'); module.exports = async ({input}) => util.getAdjacentNode({ node: input.node, label: Label.BIRTH_PLACE, direction: Direction.OUT, });
mit
StanislavPisotskyi/k12-new-
src/AppBundle/Form/VideoCommentForm.php
1090
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class VideoCommentFo...
mit
inkton/nester.deploy
Nester.Deploy/Nester.Deploy/Helpers/Validators/ValidationFluent/ValidationCollected.cs
4328
/* Copyright (c) 2017 Inkton. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
mit
harikt/web.expressive
resources/views/template/template.blade.php
625
<!DOCTYPE html> <?php /** @var \Dms\Core\Auth\IAdmin $user */ ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="csrf-token" content="" /> <title>{{ ($pageTitle ?? false) ? $pageTitle . ' :: ' : '' }}{{ $title }}</title> <!-- Tell the browser t...
mit
cuckata23/wurfl-data
data/ms_office_subua14.php
198
<?php return array ( 'id' => 'ms_office_subua14', 'fallback' => 'ms_office_subua12', 'capabilities' => array ( 'model_name' => 'Office 2010', 'release_date' => '2010_june', ), );
mit
gds-operations/vcloud-core
lib/vcloud/core/config_loader.rb
1793
require 'mustache' require 'json' module Vcloud module Core class ConfigLoader # Loads the configuration from +config_file+, optionally rendering # +config_file+ as a Mustache template using vars in +vars_file+ and # optionally validating config against +schema+ supplied. # # @para...
mit
Firebird1029/BestChinese
package backups/1.0.0 auto login/background.js
961
/* // Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Called when the user clicks on the browser action. chrome.browserAction.onClicked.addListener(function(tab) { // No tabs or host permissions n...
mit
VictorQRS/mega-project
inverted index/Lib/Exceptions/PathIsNotDirectoryException.cs
205
using System; namespace Lib.Exceptions { public class PathIsNotDirectoryException : Exception { public PathIsNotDirectoryException() : base("The path given is not a directory.") { } } }
mit
kinsney/sport
participator/views.py
14620
from django.shortcuts import render,render_to_response,get_object_or_404,redirect from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, Http404, HttpResponseNotFound from django.contrib.auth import authenticate, login as do_login, logout as do_logout from django.core.urlresolvers import r...
mit