repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
adifaidz/base
src/Http/Controllers/Api/Admin/PermissionController.php
661
<?php namespace AdiFaidz\Base\Http\Controllers\Api\Admin; use Illuminate\Http\Request; use AdiFaidz\Base\Http\Controllers\Api\ApiController; use AdiFaidz\Base\BasePermission; use AdiFaidz\Base\Transformers\PermissionTransformer; use AdiFaidz\Base\Paginators\PermissionPaginator; class PermissionController extends Ap...
mit
dramaticlly/Python4Interview
JAVA/MedianFinder.java
2466
import java.util.*; /* Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the median is 3 [2,3], the median is (2 + 3) / 2 = 2.5 Design a data structure that supports the following t...
mit
MicrosoftLearning/20487-DevelopingWindowsAzureAndWebServices
Allfiles/20487C/Mod10/DemoFiles/WebSiteMonitoring/SimpleWebApplication/SimpleWebApplication/Scripts/WebForms/TreeView.js
20502
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5/6/TreeView.js function TreeView_HoverNode(data, node) { if (!data) { return; } node.hoverClass = data.hoverClass; WebForm_AppendToClassName(node, data.hoverClass); if (__nonMSDOMBrowser) { node = node.childNodes[node.childNodes.length - 1]...
mit
damondoucet/colorful-shapes-screensaver
Screensaver/Shapes/Shape.cs
1782
using Screensaver.Collisions; using System; using System.Drawing; namespace Screensaver.Shapes { public abstract class Shape : Collidable { public Vector2D Center { get; set; } public double Radius { get; set; } public double RadiusGrowthRate { get; set; } public Col...
mit
msfrisbie/pjwd-src
Chapter3LanguageBasics/Operators/UnaryOperators/IncrementDecrement/IncrementDecrementExample02.js
29
let age = 29; age = age + 1;
mit
faveeo/angular-horizons-public-view
src/angular-horizons-public-view/factories/faveeoApi.js
2945
(function (faveeoApi) { faveeoApi.factory('FaveeoApiConfig', function (Restangular) { var factory = {}; factory.init = function(serverUrl) { Restangular.setDefaultHeaders({ 'Content-Type': 'application/json' }); Restangular.setBaseUrl(serverUrl); }; return factory; }); faveeoApi.facto...
mit
nagoring/jp-address
src/Nago/JpAddress/StreetData/45/45431.php
427
<?php return ['454310003' => '北郷入下','454310001' => '北郷宇納間','454310002' => '北郷黒木','454310008' => '南郷上渡川','454310010' => '南郷中渡川','454310013' => '南郷山三ヶ','454310012' => '南郷水清谷','454310011' => '南郷神門','454310009' => '南郷鬼神野','454310004' => '西郷小原','454310007' => '西郷山三ヶ','454310005' => '西郷田代','454310006' => '西郷立石',];
mit
manokovacs/aopromise
examples/examples.js
2185
'use strict'; var Promise = require('bluebird'); var aopromise = require('../'); var aop = aopromise.wrap; var AspectPack = aopromise.AspectPack; var LoggerAspect = require('./aspects/LoggerAspect'); var BenchmarkAspect = require('./aspects/BenchmarkAspect'); var MemoizeAspect = require('./aspects/MemoizeAspect'); f...
mit
jym23/my-crm
application/views/elements/header.php
274
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title><?php echo $setup['title']; ?></title> <?php foreach($assets['css'] as $kcss => $vcss) : ?><link rel="stylesheet" type="text/css" href="<?php echo asset_url() . $vcss; ?>"><?php endforeach; ?> </head> <body>
mit
lamjack/PaymentGatewayBundle
Gateway/Wechat/JSSDKGateway.php
2324
<?php /** * JSSDKGateway.php * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author jack <linjue@wilead.com> * @copyright 2007-2015 WIZ TECHNOLOGY * @link http://wizmacau.com * @link http://jacklam.it * @link ...
mit
ddustin/lnd
autopilot/agent_test.go
21406
package autopilot import ( "bytes" "net" "sync" "testing" "time" "github.com/roasbeef/btcd/btcec" "github.com/roasbeef/btcd/wire" "github.com/roasbeef/btcutil" ) type moreChansResp struct { needMore bool amt btcutil.Amount } type moreChanArg struct { chans []Channel balance btcutil.Amount } type...
mit
mingdaocom/ui
modules/widget/selectInput/selectInput.js
4090
/* *@description:可输入和自动提示的下拉选择框 * * */ define(function (require, exports, modules) { require("jquery"); require("scroller"); var SelectInput = function (el, options) { this.$el = $(el); this.$input = this.$el.find("input"); this.$optionList = this.$input.next(".optionList").scro...
mit
mk12/monkey-selection
monkey_spec.rb
3252
# Copyright 2015 Mitchell Kember. Subject to the MIT License. require './monkey.rb' describe 'Selector' do def sel(s, w, p) Selector.new(s, w, p).select(false) end def avg(s, w, p, n) Selector.new(s, w, p).average(n) end it 'takes zero generations to select nothing' do expect(sel('', 0, 0)).to...
mit
sophsec/ffi-hackrf
lib/ffi/hackrf/ffi.rb
4089
require 'ffi' module FFI module HackRF extend FFI::Library ffi_lib 'hackrf' enum :hackrf_error, [ :success, 0, :true, 1, :invalid_param, -2, :not_found, -5, :busy, -6, :no_mem, -11, :libusb, -1000, :thread, -1001, :streaming_thread_err, -1002, ...
mit
kristianmandrup/cantango
lib/cantango/adapter/moneta.rb
334
require 'moneta' module CanTango module Cache autoload_modules :MonetaCache end end module CanTango class Ability class Cache autoload_modules :MonetaCache end end end module CanTango class PermissionEngine < Engine autoload_modules :MonetaStore end end CanTango.config.adapters.reg...
mit
Life1ess/wcf-reflection-ef-provider
ReflectionEfProvider/IReadObjectService.cs
222
using System.Linq; namespace ReflectionEfProvider { public interface IReadObjectService { bool ProxyCreationEnabled { set; get; } IQueryable GetAll(); object GetById(object obj); } }
mit
kolanton/nanaDev
app/DAL/dal.service.mock.ts
371
import { Observable } from 'rxjs/Rx'; /** * (description) * * @export * @class MockNanaDal */ export class MockNanaDal { /** * (description) * * @returns {Observable<Object>} (description) */ getItems(): Observable<Object> { return Observable.of({ NavigateID: 1, ...
mit
bsimser/rise-to-power
client/js/rtp/game-state.js
5387
// Copyright 2013 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 or agreed to ...
mit
ampize/ampize
app/Services/AMPizeImgTagTransformPass.php
4939
<?php namespace App\Services; use Lullabot\AMP\Validate\CssLengthAndUnit; use Lullabot\AMP\Pass\ImgTagTransformPass; use QueryPath\DOMQuery; class AMPizeImgTagTransformPass extends ImgTagTransformPass { protected function setResponsiveImgHeightAndWidth(DOMQuery $el) { static $image_dimensions...
mit
mtrencseni/physcode
cpp/GravityNBody3D.cpp
4296
#include <iostream> #include <vector> #include <cmath> #include <random> #include "VecQuantity.h" /* === Newtonian gravity in 3D, with N bodies === */ typedef Vec<3, double> Vec3; Vec3 ex = {1, 0, 0}; Vec3 ey = {0, 1, 0}; Vec3 ez = {0, 0, 1}; typedef Quantity<1, 0, 0, 0, 0, 0, 0, double> Length; typedef VecQ...
mit
ebrigham1/laravel-example
resources/js/components/ProjectsList.js
2116
import axios from 'axios' import React, {Component} from 'react' import {Link} from 'react-router-dom' class ProjectsList extends Component { constructor() { super() this.state = { projects: [] } } componentDidMount() { axios.get('/api/projects').then(response =...
mit
owoc/EyePreserver
app/src/main/java/pl/xeyepreserver/XposedMod.java
2354
package pl.xeyepreserver; import de.robv.android.xposed.IXposedHookLoadPackage; import de.robv.android.xposed.XC_MethodHook; import de.robv.android.xposed.XposedHelpers; import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam; import de.robv.android.xposed.callbacks.XCallback; public class XposedMod i...
mit
yht-fand/cardone-platform-authority
consumer/src/test/java/top/cardone/func/vx/authority/oAuthConsumer/R0001FuncTest.java
3274
package top.cardone.func.vx.authority.oauthConsumer; import com.google.common.base.Charsets; import lombok.extern.log4j.Log4j2; import lombok.val; import org.apache.commons.io.FileUtils; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation...
mit
tpopov94/Telerik-Academy-2016
CSharp Part I/06. Loops/07. Combinatorics/Properties/AssemblyInfo.cs
1410
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("07...
mit
Intel-HLS/TileDB
examples/src/tiledb_array_iterator_sparse.cc
3237
/** * @file tiledb_array_iterator_sparse.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2016 MIT and Intel Corporation * * 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
levenlabs/ansible-service-restart
library/service_restart.py
4650
#!/usr/bin/python DOCUMENTATION = ''' --- module: service_restart author: - "Leven Labs" short_description: Actually restart systemd services. description: - Instead of stop/start, service_restart will actually just restart the systemd service. options: name: required: true description:...
mit
JohnLambe/JLCSUtils
JLCSUtils/JLUtils/Validation/!NamespaceDoc.cs
362
namespace JohnLambe.Util.Validation { /// <summary> /// Validation: /// <see cref="System.ComponentModel.DataAnnotations.ValidationAttribute"/> subclasses and related types. /// </summary> static class NamespaceDoc { // Don't add anything here. This class exists only to hold a documenta...
mit
maurobonfietti/webapp
tests/Functional/Default/DefaultTest.php
1374
<?php namespace Tests\Functional; class DefaultTest extends BaseTest { public function testStatusOk() { $client = self::createClient(); $client->request('GET', '/status'); $result = $client->getResponse()->getContent(); $this->assertEquals(200, $client->getResponse()->getStatu...
mit
Cyberjusticelab/JusticeAI
src/ml_service/model_training/classifier/classifier_driver.py
716
from util.log import Log from model_training.classifier.multi_output.multi_class_svm import MultiClassSVM class CommandEnum: WEIGHTS = '--weights' command_list = [WEIGHTS] def run(command_list, dataset): for command in command_list: if '--' == command[:2]: if command not in CommandEn...
mit
alexdiliberto/ember.js
packages/ember-runtime/lib/mixins/registry_proxy.js
8226
/** @module ember @submodule ember-runtime */ import { Mixin } from 'ember-metal'; import { deprecate } from 'ember-debug'; /** RegistryProxyMixin is used to provide public access to specific registry functionality. @class RegistryProxyMixin @private */ export default Mixin.create({ __registry__: null, ...
mit
telminov/ansible-manager
project/settings.py
4275
""" Django settings for ansible-manager project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ i...
mit
OLC-Bioinformatics/pythonGeneSeekr
geneseekr/parser.py
10227
#!/usr/bin/env python3 from accessoryFunctions.accessoryFunctions import combinetargets, GenObject, make_path, MetadataObject from Bio.Sequencing.Applications import SamtoolsFaidxCommandline from io import StringIO from glob import glob import logging import os __author__ = 'adamkoziol' class Parser(object): de...
mit
BretJohnson/autorest
AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/ApiVersionDefault.java
4109
/** * 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 0.12.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerat...
mit
nanduni-nin/FriendsOfSymfony
app/cache/dev/twig/d5/d7/f45e7bcdee6af29c8f91e08f4c321bca4edac370038573cbf1d509a0462f.php
6989
<?php /* TwigBundle:Exception:trace.html.twig */ class __TwigTemplate_d5d7f45e7bcdee6af29c8f91e08f4c321bca4edac370038573cbf1d509a0462f extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
mit
ShadowNoire/NadekoBot
NadekoBot.Core/Common/Attributes/Aliases.cs
507
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using Discord.Commands; using NadekoBot.Core.Services.Impl; namespace NadekoBot.Common.Attributes { [AttributeUsage(AttributeTargets.Method)] public sealed class AliasesAttribute : AliasAt...
mit
nico01f/z-pec
ZimbraServer/src/java/com/zimbra/cs/service/admin/GetAllCos.java
2265
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You...
mit
ipelovski/lilia
src/forms/case.js
1795
// function readCaseClause(tokenStream) { // var token = tokenStream.advance(); // if (!token) { // raiseSyntaxError(tokenStream, 'bad_syntax'); // TODO make it specific // } // if (token.type === TokenTypes.leftParen) { // token = tokenStream.advance(); // if (!token) { // raiseSyntaxError(to...
mit
NishantDesai1306/MEAN2-Starter
client/app/shared/user.service.ts
2997
import { Http, Response } from '@angular/http'; import { BehaviorSubject, Observable } from 'rxjs/Rx'; import { Injectable } from '@angular/core'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; class User { private username: string; private email: string; private profilePictureUrl: stri...
mit
hackohackob/TelerikAcademy
JavaScript/Loops/AllTasks/script.js
2205
/// <reference path="D:\TelerikAcademy\JavaScript\Loops\AllTasks\js-console/js-console.js" /> var a = []; //#region 1 function oneToN() { jsConsole.writeLine("==== 1 ===================="); var n = document.getElementById("input1").value; for (var i = 1; i < n; i++) { jsConsole.write(i + ", "); ...
mit
YellEngineering/karma-serviceworker-jasmine
lib/index.js
768
var path = require('path'); var createPattern = function(path, included) { return {pattern: path, included: included, served: true, watched: false}; }; var initJasmine = function(files) { var jasminePath = path.dirname(require.resolve('jasmine-core')); files.unshift(createPattern(__dirname + '/adapter.js', true))...
mit
isaacseymour/prawn-svg
spec/prawn/svg/calculators/document_sizing_spec.rb
4489
require File.dirname(__FILE__) + '/../../../spec_helper' describe Prawn::SVG::Calculators::DocumentSizing do let(:attributes) do {"width" => "150", "height" => "200", "viewBox" => "0 -30 300 800", "preserveAspectRatio" => "xMaxYMid meet"} end let(:bounds) { [1200, 800] } let(:sizing) { Prawn::SVG::Calcul...
mit
TsvetomirNikolov/swift
04. Arrays_Strings_MemorySoursceControl Homework/Task5_PersonCharacteristics.java
2984
package pkg04.arrays.and.strings; import java.util.Scanner; public class Task5_PersonCharacteristics { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int personCharacteristic = Integer.parseInt(scanner.nextLine()); double[] gradesOfStudents = new double...
mit
lyaunzbe/domus
public/js/sketchbook/relapse.js
1668
// Generated by CoffeeScript 1.6.3 jQuery(function() { var circle, circles, ctx, cvs, delta, frameHeight, frameWidth, max, old, render, start; frameHeight = 800; frameWidth = 800; start = null; delta = null; old = null; max = 200; circles = []; $('<canvas id="sketch">').appendTo('.sketch').attr('width...
mit
nublet/WoWCache
WTF/Account/Poesboi/SavedVariables/PetJournalEnhanced.lua
3408
PetJournalEnhancedDB = { ["namespaces"] = { ["Sorting"] = { ["global"] = { ["filtering"] = { ["cantBattle"] = false, ["rarity"] = { false, -- [1] false, -- [2] false, -- [3] }, ["favoritesOnly"] = false, ["hiddenSpecies"] = true, ["breed"] = { true, -- [1...
mit
willyanTI/DocManagerDesenvolvimento
novoDocumentoDet.php
11373
<?php require'head.php'; include'config/conexao.php'; ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Cadastro de Documento<small>a caráter do detento</small></h1> </section> <!...
mit
qmatic/mobile-ticket
src/app/util/util.ts
5010
declare var ga: Function; export class Util { private IMPERIAL_UNIT_COUNTRY_CODES = ["US", "LR", "MM"]; public getNumberSufix(number: number) { var m = number % 10, n = number % 100; if (m == 1 && n != 11) { return number + "st"; } if (m == 2 && n != 12...
mit
mstoilov/cryptotrade
bitstamp/bitstampapy/bitstampapy.cpp
870
#include <boost/python.hpp> #include <sstream> #include "api/bitstampapi.h" using namespace boost::python; BOOST_PYTHON_MODULE(bitstampapy) { class_<bitstamp::api> b("api"); b.def(init<const std::string&,const std::string&,const std::string&>()); b.def("ticker", &bitstamp::api::ticker); b.def("balance", &bitstamp:...
mit
kokowijanarko/just-for-fun
application/models/M_class.php
1265
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); class M_class extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); $this->load->library('session'); } public function addClass($data){ $resul...
mit
s-l-teichmann/genmap
map_uint64.go
47700
// THIS IS A MACHINE GENERATED FILE! // BE CAREFUL WITH EDITING BY HAND. // // This is Free Software covered by the terms of the MIT license. // See LICENSE file for details. // (c) 2016 by Sascha L. Teichmann. // See the full list of contributors in the CONTRIBUTORS file. package genmap type entryUint64ToInt struct ...
mit
CorverDevelopment/Poort
src/poort/utils.py
4369
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from copy import deepcopy from io import BytesIO from pandora.compat import iteritems from pandora.compat import PY2 from pandora.inflect import underscore from requests import Request from requests.packages.urllib3.util import pa...
mit
kostyrin/SysAnalytics
SysAnalytics.Model/Commands/Expense/DeleteExpenseCommand.cs
195
using SysAnalytics.CommandProcessor.Command; namespace SysAnalytics.Model.Commands { public class DeleteExpenseCommand : ICommand { public int ExpenseId { get; set; } } }
mit
bismuth1102/jindouyun
application/views/sport/sportHead.php
793
<script src="http://echarts.baidu.com/dist/echarts.min.js"></script> <script src=<?php echo site_url("application/views/sport/sport.js") ?> ></script> <script src="http://www.bootcss.com/p/bootstrap-switch/static/js/bootstrapSwitch.js"></script> <link rel="stylesheet" href="http://www.bootcss.com/p/bootstrap...
mit
synchroniseiorepo/server
public/js/superadmin/marketplace_validation.js
18433
dependenciesLoader(["Synchronise", "urlH", "$", "React", "ReactDOM", "Loader", "_"], function () { var MarketplaceValidation = React.createClass({ displayName: "MarketplaceValidation", getInitialState: function () { return { loading: false, loaded: false, ...
mit
sstok/gush
src/Command/PullRequest/PullRequestMergeCommand.php
12720
<?php /* * This file is part of Gush package. * * (c) Luis Cordova <cordoval@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Gush\Command\PullRequest; use Gush\Command\BaseCommand; use Gush\Exception\CannotSquashMultipleAu...
mit
JanMalte/secondhandshop_server
src/shs_auth/migrations/0003_auto_20150906_0833.py
362
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("shs_auth", "0002_auto_20150905_1311")] operations = [ migrations.AlterModelOptions( name="user", options={"ordering": ("first_name",)...
mit
xuru/pyvisdk
pyvisdk/do/vim_esx_cl_isoftwarevibupdate_installation_result.py
1105
import logging from pyvisdk.exceptions import InvalidArgumentError # This module is NOT auto-generated # Inspired by decompiled Java classes from vCenter's internalvim25stubs.jar # Unless states otherside, the methods and attributes were not used by esxcli, # and thus not tested log = logging.getLogger(__name__) de...
mit
lizs/Pi
Sample/Server/node/Server.cs
2424
#region MIT // /*The MIT License (MIT) // // Copyright 2016 lizs lizs4ever@163.com // // 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 limita...
mit
vndly/saas
client/src/client/app/taxes/tasks/DeleteTax.java
778
package client.app.taxes.tasks; import share.app.taxes.Tax; import client.app.taxes.gui.def.GUIDeleteTax; import client.app.taxes.operations.OperationsTaxes; import client.core.gui.format.DataFormatter; import client.core.gui.taks.Activity; public class DeleteTax extends Activity<Boolean> { private final T...
mit
suksant/sequelize-typescript-examples
sequelize-express/src/models/index.ts
1735
import * as cls from "continuation-local-storage"; import * as fs from "fs"; import * as path from "path"; import * as SequelizeStatic from "sequelize"; import {configs} from "../../../configs/configs"; import {logger} from "../utils/logger"; import {ProductAttributes, ProductInstance} from "./interfaces/product-interf...
mit
NUBIC/disburser
spec/features/users_spec.rb
1136
require 'rails_helper' RSpec.feature 'Users', type: :feature do before(:each) do @repository_moomin = FactoryGirl.create(:repository, name: 'Moomins') @harold_user = { username: 'hbaines', first_name: 'Harold', last_name: 'Baines', email: 'hbaines@whitesox.com', administator: true, committee: false, specimen...
mit
kayac/Gunfish
fcm/fcmerrorresponsecode_string.go
820
// Code generated by "stringer -type FCMErrorResponseCode error.go"; DO NOT EDIT package fcm import "fmt" const _FCMErrorResponseCode_name = "MissingRegistrationInvalidRegistrationNotRegisteredInvalidPackageNameMismatchSenderIdMessageTooBigInvalidDataKeyInvalidTtlDeviceMessageRateExceededTopicsMessageRateExceededInv...
mit
EugeniusUA/webstore
src/main/java/com/ebilon/webstore/domain/repository/impl/InMemoryCustomerRepository.java
837
package com.ebilon.webstore.domain.repository.impl; import com.ebilon.webstore.domain.Customer; import com.ebilon.webstore.domain.repository.CustomerRepository; import org.springframework.stereotype.Repository; import java.util.ArrayList; import java.util.List; @Repository public class InMemoryCustomerRepository impl...
mit
atmanager/atmanager
src/ATManager/BackendBundle/Controller/ServicioTerceroController.php
4363
<?php namespace ATManager\BackendBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use ATManager\BackendBundle\Entity\ServicioTercero; use ATManager\BackendBundle\Form\ServicioTerceroType; use ATManager\BackendBundle\Form\BuscadorType; class S...
mit
Innovotics/ftc8702
src/main/java/org/ftc8702/opmodes/roverruckus_skystone/SkystoneREDRIGHTSimpleAutoMode.java
6156
package org.ftc8702.opmodes.roverruckus_skystone; import com.qualcomm.hardware.bosch.BNO055IMU; import com.qualcomm.hardware.bosch.JustLoggingAccelerationIntegrator; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import static org.ftc8702.opmodes.roverruckus_skystone.SkystoneAutoModeState.*; import org.f...
mit
polossk/CodeArchive
CodeForces/codeforces484B.cpp
1923
// <!--encoding UTF-8 UTF-8编码--!> /***************************************************************************** * ----Stay Hungry Stay Foolish---- * * @author : Shen * * @name : codeforces 484 ...
mit
fortunearterial/laravel-pjss
app/Http/Breadcrumbs/Backend/Robot.php
311
<?php Breadcrumbs::register('admin.robot.index', function ($breadcrumbs) { $breadcrumbs->parent('admin.dashboard'); $breadcrumbs->push(trans('labels.backend.robot.management'), '#'); }); // QQ Require require __DIR__ . '/Robot/QQ.php'; // WeChat Require require __DIR__ . '/Robot/WeChat.php';
mit
developit/preact
compat/test/browser/suspense.test.js
49590
import { setupRerender } from 'preact/test-utils'; import React, { createElement, render, Component, Suspense, lazy, Fragment, createContext, useState, useEffect, useLayoutEffect } from 'preact/compat'; import { setupScratch, teardown } from '../../../test/_util/helpers'; import { createLazy, createSuspender ...
mit
jenkinsci/piketec-tpt-plugin
src/main/java/com/piketec/jenkins/plugins/tpt/TptLog.java
2117
/* * The MIT License (MIT) * * Copyright (c) 2018 PikeTec GmbH * * 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 t...
mit
mwhelan/Specify
src/Samples/AspNetCoreApi/specs/Specs.Acceptance/_CurrentSprint/MasterFiles/_BaseSpecifications/CreateManySpecs.cs
7028
using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using ApiTemplate.Api.Application.Features.MasterFiles; using ApiTemplate.Api.Contracts; using ApiTemplate.Api.Contracts.Responses; using ApiTemplate.Api.Domain.Common; using FluentAssertions; using Specify; using Specify.Stories; using ...
mit
NSBum/AnkiStatsServer
setup.py
706
#!/usr/bin/python import os, subprocess, sys #subprocess.call(['python', 'virtualenv.py', 'flask']) if sys.platform == 'win32': bin = 'Scripts' else: bin = 'bin' try: subprocess.call(['pip', 'install', 'mysql-python']) subprocess.call(['pip', 'install', 'flask']) subprocess.call(['p...
mit
Laralum/Files
src/Translations/it/general.php
2344
<?php return [ /* |-------------------------------------------------------------------------- | Files Language Lines |-------------------------------------------------------------------------- */ 'home' => 'Casa', 'name' => 'Nome', 'actions' ...
mit
campus-discounts/embersy
embersy-backend/src/AppBundle/Controller/ProfilesController.php
4066
<?php namespace AppBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; use FOS\HttpCacheBundle\Configuration\Tag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExt...
mit
asizikov/rx-github-client-example
src/RxApiClient/RxGitHubClient.cs
1598
using System; using System.Reactive.Concurrency; using System.Reactive.Linq; using RxApiClient.Caches; using RxApiClient.Model; namespace RxApiClient { public sealed class RxGitHubClient : IRatingClient { private IRatingCache Cache { get; set; } private IHttpClient HttpClient { get; ...
mit
Jacob843/Walls
src/controller.cpp
1944
#include "controller.h" #include "graphics.h" #include "player.h" #include "physics.h" #include <iostream> Controller controller; extern int shutdownGame(); int Controller::checkKeyboard(sf::Event event){ if(checkInputs == true){ sf::Time ElapsedTime = graphics.clock.restart(); b2Body* lPlayer = ...
mit
Samuel-Oliveira/Java-Efd-Icms
src/main/java/br/com/swconsultoria/efd/icms/bo/blocoB/GerarRegistroB500.java
658
package br.com.swconsultoria.efd.icms.bo.blocoB; import br.com.swconsultoria.efd.icms.registros.blocoB.RegistroB500; import br.com.swconsultoria.efd.icms.util.Util; /** * @author Sidnei Klein */ public class GerarRegistroB500 { public static StringBuilder gerar(RegistroB500 reg, StringBuilder sb) { sb...
mit
joshblour/rooler
test/dummy/test/factories/foos.rb
120
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :foo do end end
mit
SimoneBerardi/EasyAnimations
src/parser/syntaxtree/Position.java
978
/* Generated by JTB 1.4.7 */ package parser.syntaxtree; import parser.visitor.*; public class Position implements INode { public NodeToken f0; public NodeToken f1; public NodeToken f2; public NodeToken f3; public NodeToken f4; public NodeToken f5; public NodeToken f6; private static final long...
mit
AITGmbH/AIT.Taskboard
Source/AIT.Taskboard.Application/AIT.Taskboard.Interface/TraceCategory.cs
636
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AIT.Taskboard.Interface { public static class TraceCategory { /// <summary> /// Constants defines the name for exception. /// </summary> public const string Exception = "Exception"; ...
mit
TaniaCT/Braccio-Control
inicio/EventClass.cpp
336
#include "EventClass.h" Event::Event() { } Event::Event(p2List<int> &tokens, EventType type) { this->tokens.Copy(tokens); this->type = type; } Event::EventType Event::GetEventType() { return type; } int Event::GetNumTokens() { return tokens.count(); } int Event::GetTokenElement(int position) { return 0;//toke...
mit
calchen/verification-code-test
nodejs/controller/touclick.js
1428
var config = require('../.env'); var touclickSdk = require('touclick-nodejs-sdk'); /** * 获取测试页面 * * @param req * @param res * @param next */ exports.index = function (req, res, next) { res.render('touclick', {config: config}); }; /** * 二次验证 * * @param req * @param res * @param next */ exports.validate...
mit
olgstein/F23Bag
Src/F23Bag/Data/QueryableExtension.cs
3574
using System; using System.Linq; using System.Linq.Expressions; namespace F23Bag.Data { public static class QueryableExtension { public static IQueryable<TSource> EagerLoad<TSource, TValue>(this IQueryable<TSource> source, Expression<Func<TSource, TValue>> propertyExpression) { if ...
mit
dannooooo/munkireport-php
assets/js/munkireport.js
12024
// Global functions $( document ).ready(function() { $.i18n.init({ debug: munkireport.debug, useLocalStorage: false, resGetPath: munkireport.subdirectory + "assets/locales/__lng__.json", fallbackLng: 'en', useDataAttrOptions: true }, function() { $('body').i18n()...
mit
tschelabaumann/paymill-php
tests/unit/Paymill/Models/Response/ChecksumTest.php
2111
<?php namespace Paymill\Test\Unit\Models\Response; use Paymill\Models\Request\Checksum; use Paymill\Models\Response as Response; use PHPUnit_Framework_TestCase; /** * Paymill\Models\Response\Checksum test case. */ class ChecksumTest extends PHPUnit_Framework_TestCase { /** * @var \Paymill\Models\...
mit
nflutz/cms
rfc5652_test.go
25320
package cms import ( "bytes" "crypto/x509/pkix" "encoding/asn1" "encoding/hex" "math/big" "testing" "time" ) type marshalCMSTest struct { in interface{} out string // Hex string representing DER encoded value } var marshalCMSTests = []marshalCMSTest{ {SignatureValue{0x01}, "040101"}, {SignatureValue{0x01...
mit
rasyidmujahid/tan
web/app/themes/showshop/inc/functions/post-formats.php
5795
<?php function as_post_formats_media( $post_id, $block_id=null, $img_format=null, $img_width=null, $img_height=null ) { $post_format = get_post_format(); if( $post_format == 'video' ) { // <---------- GALLERY POST VIDEO $featured_or_thumb = get_post_meta( $post_id,'as_video_thumb', true ); $video_ho...
mit
gilmord/symfony
app/cache/dev/appDevUrlGenerator.php
37307
<?php use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Psr\Log\LoggerInterface; /** * appDevUrlGenerator * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlGenerator extends Symfony\Component\Routing\Genera...
mit
teanet/Nazabore
Script/receipts.py
1672
#!/usr/bin/env python import os import json import logging logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s") script_dir = os.path.dirname(os.path.realpath(__file__)) fileName = "receipts.json" cleanFileName = "clean_receipts.json" outputFileName = "receiptQuer...
mit
DataMesh-OpenSource/SolarSystemExplorer
Assets/DataMesh/ARModule/UI/Scripts/Cursor/CursorCountDown.cs
1920
using System.Collections; using System.Collections.Generic; using UnityEngine; using DataMesh.AR.Utility; namespace DataMesh.AR.UI { public class CursorCountDown : MonoBehaviour { public TweenUGUIAlpha tw3; public TweenUGUIAlpha tw2; public TweenUGUIAlpha tw1; public System....
mit
junhuac/MQUIC
src/net/cookies/cookie_monster_store_test.cc
9101
// Copyright (c) 2012 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. #include "net/cookies/cookie_monster_store_test.h" #include "base/bind.h" #include "base/location.h" #include "base/single_thread_task_runner.h" #inc...
mit
achhabra2/inquire
test/skills.test.js
1932
const chai = require('chai'); chai.should(); const sinon = require('sinon'); // const expect = chai.expect; describe('Hello Skills Test', function() { it('Should respond to Hello', function() { let mdMessage = 'Welcome. I am the *Inquire Bot*. I will help you ask questions and get answers! Please refer to...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.0/selector/selector-coverage.js
128
version https://git-lfs.github.com/spec/v1 oid sha256:d1726a15ea18e3ee24e12490415a848e0da33fbdf029a623388f4169209fd57b size 972
mit
IntuitivTechnology/ITCollectorBundle
DataCollector/GitCollector.php
1418
<?php namespace Intuitiv\ITCollectorBundle\DataCollector; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\HttpKernel\DataCollector\DataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; class GitCollector extends DataCollector { pri...
mit
freeacs/web
src/com/owera/xaps/web/app/page/staging/Shipment.java
1191
package com.owera.xaps.web.app.page.staging; /** * The Class Shipment. */ public class Shipment { /** The name. */ private String name; /** The canceled. */ private boolean canceled; /** The time. */ private String time; /** * Instantiates a new shipment. * * @param n the n * @param c the c ...
mit
jonesmac/active_campaign
spec/lib/active_campaign/client/lists_spec.rb
932
# -*- encoding: utf-8 -*- require 'spec_helper' describe ActiveCampaign::Client::Lists, :vcr do initialize_new_client # it "add a list", :vcr do # params = { # "id" => 1, # "email" => 'mhenrixon@me.com', # "name"=> 'Mikael', # "last_name" => 'Henriksson', # "p[1]" ...
mit
pfernandom/electroswarm
src/menu/settings_menu_template.js
488
import { dialog, app, BrowserWindow } from 'electron'; export var settingsMenuTemplate = { label: 'Settings', submenu: [{ label: 'Manager IP', click: function () { BrowserWindow.getFocusedWindow().toggleDevTools(); //console.log(dialog.showOpenDialog({properties: ['openF...
mit
unihackhq/skilled-acolyte-frontend
src/components/Login.js
2702
import React from 'react'; import { Redirect } from 'react-router-dom'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Message, MessageHeader, MessageBody, Field, Label, Control, Input, Button, Title } from 'bloomer'; import Page from './Page'; import { apiPostNoAuth } from '../ut...
mit
xamoom/xamoom-android-sdk
xamoomsdk/src/main/java/com/xamoom/android/xamoomcontentblocks/Adapters/ContentBlock2Adapter.java
3190
/* * Copyright (c) 2017 xamoom GmbH <apps@xamoom.com> * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at the root of this project. */ package com.xamoom.android.xamoomcontentblocks.Adapters; import andr...
mit
brianlmosley/phase-0
week-9/review.js
5094
//Build a simple Guessing Game in JavaScript. /* Pseudocode Create a welcome prompt for the user to read. for the user. Within the welcome prompt, incluse the game rule. The game rules are: Have the user guess a number from 1 to 10 If that users answer matches the computers game, he is corr...
mit
tylerflint/vli
lib/vli/action.rb
279
module Vli module Action autoload :Builder, 'vli/action/builder' autoload :Env, 'vli/action/env' autoload :Environment, 'vli/action/environment' autoload :Runner, 'vli/action/runner' autoload :Warden, 'vli/action/warden' end end
mit
tommyputranto/reflection
pappu-pakia/js/main.js
10592
mit.main = function() { // rAF window.requestAnimationFrame = function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(f) { wind...
mit