repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
camillepaviot/TP-Jobeet-IMIE
src/Ens/JobeetBundle/Entity/User.php
1681
<?php namespace Ens\JobeetBundle\Entity; use Symfony\Component\Security\Core\User\UserInterface; use Doctrine\ORM\Mapping as ORM; /** * User */ class User implements UserInterface { /** * @var integer */ private $id; /** * @var string */ private $username; /** * @...
mit
pixel-stuff/ld_dare_32
Unity/ludum-dare-32-PixelStuff/Assets/Scripts/Beavers/Beaver.cs
5143
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; public enum BeaverState{ Spawning, Running, HangOnTree, Smashed, Flying } public class Beaver : MonoBehaviour { [SerializeField] private GameObject m_idleSprite; [SerializeField] private GameObject m_eatSprite;...
mit
eric-appeagle/appeagle-redoc-demo
node_modules/redoc/dist/utils/browser-adapter.d.ts
739
export declare class BrowserDomAdapter { static query(selector: string): any; static querySelector(el: any, selector: string): HTMLElement; static onAndCancel(el: any, evt: any, listener: any): Function; static attributeMap(element: any): Map<string, string>; static setStyle(element: any, styleName:...
mit
asukakenji/pokemon-go
eff/internal/zh-CN/effectiveness_string.go
440
// Code generated by "stringer -type=Effectiveness"; DO NOT EDIT package zhCN import "fmt" const _Effectiveness_name = "无效不佳普通超群" var _Effectiveness_index = [...]uint8{0, 6, 12, 18, 24} func (i Effectiveness) String() string { if i < 0 || i >= Effectiveness(len(_Effectiveness_index)-1) { return fmt.Sprintf("Eff...
mit
chikara-chan/full-stack-javascript
manager/server/routes/order.js
480
import Router from 'koa-router' import order from '../controllers/order' import checkLogin from '../middlewares/checkLogin' const router = new Router({prefix: '/order'}) router.use(checkLogin) router.post('/sendOrder', order.sendOrder) router.post('/setOrder', order.setOrder) router.post('/rejectOrder', order.rejectO...
mit
SquidDev/luaj.luajc
src/test/resources/org/squiddev/luaj/luajc/fragment/LoadedNilUpvalue.lua
163
local function execute() local a = print() local b = c and { d = e } local f local function g() return f end return g() end assertEquals(nil, execute())
mit
amjacobowitz/classroom-library
classroom-library/db/schema.rb
3764
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
mit
danbraik/cachalot2
MusicPlayer.cpp
5493
#include <iostream> #include <string> #include <stdio.h> #include "MusicPlayer.hpp" #include "AnimatedLabel.hpp" #include "Button.hpp" #include "Slider.hpp" #include "Label.hpp" #include <libgen.h> std::string basename(std::string path) { int pos = path.find_last_of('/'); return path.substr(pos+1); } MusicPlayer:...
mit
dylnslck/micrograph
test/helpers/models/Blog.js
799
import db from '../database'; import User from './User'; export default class Blog { constructor(data) { this.id = data.id; this.title = data.title; this.content = data.content; this.authorId = data.author; } static getall() { return db().getAll('blog') .then(({ data }) => data.map(blo...
mit
lukkos/vCard
src/Lukkos/VCardBundle/DependencyInjection/LukkosVCardExtension.php
881
<?php namespace Lukkos\VCardBundle\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 loads and manag...
mit
yogeshsaroya/new-cdnjs
ajax/libs/angular-i18n/1.0.7/angular-locale_es-ve.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:598c0b5883d1fef82ebe72340224afa454e467141a6c76aa3aa1c83405333737 size 2176
mit
catarse/catarse
db/migrate/20170928160527_remove_address_fields.rb
1194
class RemoveAddressFields < ActiveRecord::Migration def change execute <<-SQL alter table contributions drop column address_city; alter table contributions drop column address_complement; alter table contributions drop column address_street; alter table contributions drop column address_nu...
mit
codenothing/Nlint
lib/FileResult.js
1683
var Nlint = global.Nlint; function FileResult( path ) { var self = this; if ( ! ( this instanceof FileResult ) ) { return new FileResult( path ); } self.path = path; self.passed = false; self.errors = []; self.warnings = []; self.times = []; } FileResult.prototype = { addResults: function( errors, warni...
mit
jwagner/smartcrop.js
karma.conf.js
3149
// Karma configuration // Generated on Mon Jun 27 2016 18:36:52 GMT+0200 (CEST) module.exports = function(config) { var launchers = { sauceChromeLatest: { base: 'SauceLabs', browserName: 'chrome', platform: 'Windows 10', version: 'latest' }, sauceFirefoxLatest: { base: 'Sauc...
mit
pmark/AspenOS
aspenos.org/app/aoscontentserver/src/xml/SaxERTParser.java
5144
package org.aspenos.app.aoscontentserver.xml; import java.io.*; import java.util.*; import org.xml.sax.*; import org.xml.sax.helpers.*; import org.aspenos.app.aoscontentserver.defs.*; import org.aspenos.xml.*; // The ERT (Event-Resource-Template) Def has all the // info needs to set up the relationships between // ...
mit
akaSybe/Disqus.NET
src/Disqus.NET/Requests/DisqusBlacklistRemoveRequest.cs
2130
using System.Collections.Generic; using System.Linq; namespace Disqus.NET.Requests { public class DisqusBlacklistRemoveRequest : DisqusRequestBase { private DisqusBlacklistRemoveRequest(string forum) { Parameters.Add(new KeyValuePair<string, string>("forum", forum)); } ...
mit
Nitee/ViewNet
TestConsole/Program.cs
1219
using System; using ViewNet; using System.Net; using System.Threading; namespace TestConsole { class MainClass { [STAThread] public static void Main () { Thread.CurrentThread.Name = "Main Thread"; TestServiceManager (); } public static void TestServiceManager () { var selector = new IPEndPoint ...
mit
drazenzadravec/projects
nice/sdk/json/Skills/TSGetDeliveryPreferencesConfigurationSkillRequest.ts
89
export var GetDeliveryPreferencesConfigurationSkillRequest_Skills = { "fields": "" };
mit
fallfromgrace/More.Net
More.Net/Data/IRepositoryService.cs
466
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace More.Net.Data { ///// <summary> ///// ///// </summary> //public interface IRepositoryService //{ // /// <summary> // /// // /// </summary> // ...
mit
dev1x-org/python-example
lib/config/factory.py
403
#coding:utf-8 class ConfigFactory(object): @staticmethod def createSystemConfig(): from system import SystemConfig return SystemConfig() @staticmethod def createViewConfig(): from view import ViewConfig return ViewConfig() @staticmethod def createTemplateCon...
mit
HimariO/VideoSum
tasks/video/dataset/rename.py
431
import os import re feat_files = [re.match('features_(\d+)_(\d+)\\\.npy', f) for f in os.listdir(path='./')] feat_files_tup = [] for f in feat_files: if f is not None: feat_files_tup.append((f.string, int(f.group(1)), int(f.group(2)))) # (file_name, start_id, end_id) feat_files_tup.sort(key=lambda x: x[1]...
mit
htchepannou/academy-service
src/main/java/io/tchepannou/academy/dao/QuizTypeDao.java
221
package io.tchepannou.academy.dao; import io.tchepannou.academy.domain.QuizType; import org.springframework.stereotype.Repository; @Repository public interface QuizTypeDao extends PersistentEnumRepository<QuizType> { }
mit
ICShapy/shapy
client/js/notification.js
5566
// This file is part of the Shapy project. // Licensing information can be found in the LICENSE file. // (C) 2015 The Shapy Team. All rights reserved. goog.provide('shapy.notification.Service'); goog.provide('shapy.notification.notifyBar'); /** * Notification service, brokers messages between the display and client...
mit
IowaComputerGurus/icg.dnn.quiz
ICGDNNQuiz/Components/InfoObjects/QuizNotificationInfo.cs
889
namespace ICG.Modules.DnnQuiz.Components.InfoObjects { /// <summary> /// Used for notifications /// </summary> public class QuizNotificationInfo : UserQuizDisplay { /// <summary> /// Gets or sets the user id. /// </summary> /// <value>The user id.</value> ...
mit
codedstructure/rpcpdb
rpcpdb/xmlrpc_client.py
247
#!/usr/bin/env python -u import xmlrpclib import time s = xmlrpclib.ServerProxy('http://localhost:8000') # Print list of available methods print(s.system.listMethods()) p = 0 while True: time.sleep(0.5) p = s.next_prime(p) print(p)
mit
kpnlora/LoRaClient
src/Kpn.LoRa.Api.Stub/src/Kpn.LoRa.Api.Stub/Models/Subscription.cs
167
using System; using System.Collections.Generic; using System.Linq; namespace Kpn.LoRa.Api.Stub.Models.Subscription { public class subscription { } }
mit
phuongdm1987/bds
config/entrust.php
3114
<?php /** * This file is part of Entrust, * a role & permission management solution for Laravel. * * @license MIT * @package Zizaco\Entrust */ return [ /* |-------------------------------------------------------------------------- | Entrust Role Model |------------------------------------------...
mit
jstafford1992/snekTrakr
routes/weight.js
1167
'use strict'; const express = require('express'); const router = express.Router(); const knex = require('../db/knex'); //get weight by ID router.get('/:id', function(req, res, next){ knex('weight') .select('*') .where('snake_id', req.params.id) .then(function(data){ console.log(data); res.json(data); ...
mit
redelivre/qr-pdf
formats.php
10031
<?php $pageFormats = array( '10R' => array(254, 305), '4P' => array(254, 305), '11R' => array(279, 356), '12R' => array(305, 381), '12SHEET' => array(3048, 1524), '16SHEET' => array(2032, 3048), '2A0' => array(1189, 1682), '32SHEET' => array(4064, 3048), '3R' => array(89, 127), 'L' => array(89, 127), '48SHE...
mit
Azure/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpdateDomain.Serialization.cs
1144
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Compute.Models { public partial class UpdateDomain : IUtf8JsonSerializable { void IUtf8Json...
mit
bcvsolutions/CzechIdMng
Realization/backend/acc/src/main/java/eu/bcvsolutions/idm/acc/dto/filter/SysSystemGroupFilter.java
1257
package eu.bcvsolutions.idm.acc.dto.filter; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; import eu.bcvsolutions.idm.acc.domain.SystemGroupType; import eu.bcvsolutions.idm.acc.dto.SysSystemGroupDto; import eu.bcvsolutions.idm.core.api.dto.filter.DataFilter; import...
mit
eablack/code-corps-ember
app/helpers/highlight-substrings.js
2128
import Ember from 'ember'; export function highlightSubstrings([string, substring]) { let substrings = substring.split(" ").uniq(); var positionsToAdd = []; var newString = []; var count = 0; var strongTagLocations = []; _findPositionsToAdd(positionsToAdd, string, substrings, newString); _assembleArrayO...
mit
bmocanu/tryouts
java/java-quickaffe/src/test/java/ro/quickaffe/tests/SimpleChip.java
245
package ro.quickaffe.tests; import ro.quickaffe.Chip; import ro.quickaffe.mech.api.Cup; /** * Created by bogdan on 6/21/15. */ public class SimpleChip implements Chip { @Override public Cup prepare() { return null; } }
mit
ptomaszek/simple-rest-scala
app/org/example/invitation/controller/InvitationController.scala
697
package org.example.invitation.controller import org.example.invitation.dao.InvitationFakeDao import org.example.invitation.model.Invitation.Invitee import play.api.libs.json._ import play.api.mvc._ object InvitationController extends Controller { val inviteeDao = InvitationFakeDao def list = Action { ...
mit
PeeHaa/AsyncTwitter
examples/users/lookup-by-screen-names-and-user-ids.php
412
<?php declare(strict_types=1); namespace PeeHaa\AsyncTwitter\Examples\Users; use PeeHaa\AsyncTwitter\Api\Request\User\LookupByScreenNamesAndUserIds; require_once __DIR__ . '/../../vendor/autoload.php'; $apiClient = require __DIR__ . '/../create-client.php'; $request = (new LookupByScreenNamesAndUserIds(['PHPeeHaa'...
mit
colevk/kitten-button
js/background.js
1217
var toggled_on = false; function truth(str) { return str == "true"; } function load_helper_scripts() { chrome.tabs.executeScript(null, {file: "js/jquery.min.js"}); chrome.tabs.executeScript(null, {code: "color_kittens = " + localStorage.color}); chrome.tabs.executeScript(null, {file: "js/toggle.js"}); } function...
mit
nczeroshift/nctoolkit
source/network/nckHttpServer.cpp
24315
/** * NCtoolKit © 2007-2017 Luís F.Loureiro, under zlib software license. * https://github.com/nczeroshift/nctoolkit */ #define NCK_SERVERSTRING "Server: nctoolkit\r\n" #define NCK_DATABUFFERSIZE 1024 #include "nckHttpServer.h" #if defined (NCK_WINDOWS) #include <WinSock2.h> #include <ws2tcpip.h> typedef SOCK...
mit
openfact/openfact-temp
model/jpa/src/main/java/org/openfact/models/jpa/ubl/common/ItemInstanceAdapter.java
3768
package org.openfact.models.jpa.ubl.common; import java.time.LocalDate; import java.time.LocalTime; import java.util.List; import java.util.stream.Collectors; import javax.persistence.EntityManager; import org.jboss.logging.Logger; import org.openfact.models.OpenfactSession; import org.openfact.models.jpa.JpaModel; ...
mit
miamor/8dot
apps/upload/assets/js/script.js
2231
$(function() { var dropbox = $('#dropbox'), message = $('.message', dropbox); dropbox.filedrop({ // The name of the $_FILES entry: paramname:'pic', maxfiles: 5, maxfilesize: 2, url: 'post_file.php', uploadFinished: function(i,file,response) { $.data(file).addClass('done'); ...
mit
afreewill333/PAT-Basic-Level-PractiseCode
1016.java
382
import java.io.*; import java.util.*; public class 1016{ public static void main(String[] args){ Scanner sc = new Scanner(system.in); String A = sc.nextString(); String B = sc.nextString(); char Da = sc.nextChar(); char Db = sc.nextChar(); int cnt=0; for(int i=0;i!=A.length();++i...
mit
outpunk/adaptive-evil-blocks
pkg/adaptive-evil-blocks.min.js
447
(function(){var t,n,i;n=window.evil,t=function(t){var n;return n=/^([-\w]+:)\s*\d\w+$/im,t.replace(n,function(t){return"("+t+")"})},i=function(n,i){var e,r,c,o;if(o=window.matchMedia(t(n)),"function"==typeof i&&o.matches)return void i();if("object"==typeof i){if(r=i.match,c=i.mismatch,!r)return;return e=function(t){ret...
mit
quintel/etmoses
spec/models/network/builders/heat_spec.rb
1987
require 'rails_helper' module Network::Builders RSpec.describe Heat do let(:techs) do { child1: [{ type: 'households_water_heater_district_heating_steam_hot_water', units: 10 }] } end let(:list) { TechnologyList.from_hash(techs) } let(:tree) do ...
mit
aitherios/rails_with_crystal
crystalreportviewers/js/MochiKit/DragAndDrop.js
25686
/*** MochiKit.DragAndDrop 1.4 See <http://mochikit.com/> for documentation, downloads, license, etc. Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) Mochi-ized By Thomas Herve (_firstname_@nimail.org) ***/ if (typeof(dojo) != 'undefined') { dojo.provide('MochiKit.Dra...
mit
Swastika-IO/Swastika-IO-ngx-admin
src/app/pages/articles/article.services.ts
2717
import { Component } from '@angular/core'; import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/toPromise'; import 'rxjs/add/observable/fromProm...
mit
kratorius/ads
java/graphs/MatrixGraph.java
5984
package graphs; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import interviewquestions.TestCase; /** * Implementation of directed and weighted graph based on a "matrix" (array of array) */ public class MatrixGraph<T> extends TestCase imple...
mit
taquimon/rhc
application/controllers/Delegado.php
684
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Delegado * * @author phantom */ class Delegado extends MY_Controller { public function __const...
mit
powertomato/heuOpt_2017_G1
solvers/LocalSearch/SimpleLocalSearch.py
763
from solvers.neighborhoods.Neighborhood import * class SimpleLocalSearch(object): def __init__(self, neighborhood, evaluator): self.neighborhood = neighborhood self.evaluator = evaluator self.step = 0 def optimize(self, x): while not self.evaluator.criteria...
mit
thefishlive/LudumDare35
Assets/Resources/Scripts/UI/UIManager.cs
333
using UnityEngine; using UnityEngine.UI; using System.Collections; public class UIManager : MonoBehaviour { public GameObject ShiftProcessBar = default(GameObject); public GameObject AttackTimeBar = default(GameObject); public GameObject HealthBar = default(GameObject); public Text ScoreText = defaul...
mit
stealjs/steal-tools
lib/stream/check_slim_support.js
368
var through = require("through2"); var checkAtSteal = require("../slim/checks/steal"); module.exports = function() { return through.obj(function(data, enc, done) { try { checkSupport(data); done(null, data); } catch (err) { done(err); } }); }; function checkSupport(data) { checkAtSteal(data.loader.c...
mit
cerana/cerana
zfs/nv/xdr_decoder.go
7276
package nv import ( "encoding/binary" "io" "reflect" "time" "github.com/cerana/cerana/pkg/errors" xdr "github.com/davecgh/go-xdr/xdr2" ) // XDRDecoder is a Decoder for XDR encoding. type XDRDecoder struct { *xdr.Decoder r io.ReadSeeker pair pair } // NewXDRDecoder creates a new XDRDecoder. func NewXDRDe...
mit
stevie-mayhew/silverstripe-redux-example
themes/base/source/js/components/EventsApp.js
2531
/*eslint-disable */ import React, {Component, PropTypes} from 'react'; import {getCountries, getMonths, getEventTypes, getEvents} from '../actions/eventActions'; import Pagination from './Pagination'; import EventFilters from './EventFilters'; export default class EventsApp extends Component { handlePage(page) { ...
mit
typeorm/typeorm
src/util/DepGraph.ts
7625
/** * This source code is from https://github.com/jriecken/dependency-graph * Just added "any" types here, wrapper everything into exported class. * We cant use a package itself because we want to package "everything-in-it" for the frontend users of TypeORM. */ /** * A simple dependency graph */ import { TypeOR...
mit
wizawu/1c
@types/jdk/java.time.Month.d.ts
2144
declare namespace java { namespace time { class Month extends java.lang.Enum<java.time.Month> implements java.time.temporal.TemporalAccessor, java.time.temporal.TemporalAdjuster { public static readonly JANUARY: java.time.Month public static readonly FEBRUARY: java.time.Month public static read...
mit
TheBrainTech/xwt
Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs
6502
// // MenuBackend.cs // // Author: // Carlos Alberto Cortez <calberto.cortez@gmail.com> // Luís Reis <luiscubal@gmail.com> // Eric Maupin <ermau@xamarin.com> // // Copyright (c) 2011 Carlos Alberto Cortez // Copyright (c) 2012 Luís Reis // Copyright (c) 2012 Xamarin, Inc. // // Permis...
mit
eismintkaffee/LocalCrowdTicketing
test/features/support/env.rb
334
require 'rbconfig' require 'cucumber/formatter/unicode' require 'capybara' require 'capybara/dsl' require "capybara/cucumber" Capybara.default_driver = :selenium Capybara.app_host = "http://127.0.0.1:8000/" Capybara.register_driver :selenium do |app| Capybara::Driver::Selenium.new(app, :browser => :firefox) end Wo...
mit
donflopez/meteor-toMarkdown
package.js
488
Package.describe({ summary: "Conver html code into markdown", version: "1.0.0", git: "https://github.com/donflopez/meteor-toMarkdown" }); Package.onUse(function(api) { api.versionsFrom('METEOR@0.9.1.1'); api.addFiles('donflopez:he.js'); api.addFiles('donflopez:tomarkdown.js'); api.export('toMarkdown', ['...
mit
Montana-Studio/mujerypunto
app/wp-content/themes/myp-19102016/partials/loop-sidebar-one.php
2074
<?php // WP_Query arguments $args = array ( 'posts_per_page' => 5, 'meta_key' => 'popular_posts', 'orderby' => 'meta_value_num', 'order' => 'DESC' ); // The Query $sidebartwo = new WP_Query( $args ); // The Loop if ( $sidebartwo->have_posts() ) { while ( $sidebartwo->have_posts() ) { $sidebartwo->the_post(...
mit
pku9104038/qshuttle_driver
src/com/qshuttle/car/ListAdapterAddress.java
1687
/** * */ package com.qshuttle.car; import java.util.ArrayList; import com.amap.mapapi.offlinemap.City; import com.qshuttle.car.PrefProxy.Address; import android.content.Context; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup...
mit
bauhausjs/bauhausjs
asset/config.js
858
module.exports = function (bauhausConfig) { // Register document for CRUD generation bauhausConfig.addDocument('Assets', { name: 'Asset', model: 'Asset', collection: 'assets', useAsLabel: 'name', icon: 'picture-o', query: { conditions: {parentId: null}...
mit
ggkovacs/rss-finder
lib/parser.js
2574
'use strict'; var htmlparser = require('htmlparser2'); var FeedParser = require('feedparser'); var Promise = require('pinkie-promise'); var rssTypes = [ 'application/rss+xml', 'application/atom+xml', 'application/rdf+xml', 'application/rss', 'application/atom', 'application/rdf', 'text/rss+xml', 'text...
mit
ruma/ruma
crates/ruma-client-api/src/r0/profile/get_display_name.rs
1168
//! [GET /_matrix/client/r0/profile/{userId}/displayname](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-profile-userid-displayname) use ruma_api::ruma_api; use ruma_identifiers::UserId; ruma_api! { metadata: { description: "Get the display name of a user.", method: GET, ...
mit
IIazertyuiopII/unicorn_swipe_plugin
v1.0/unicorn_swipe_nodiag.js
8809
/*jshint -W032 */ /*jshint -W004 */ // jquerymobile-unicorn_swipe // ---------------------------------- // Copyright (c)2012 Donnovan Lewis // Copyright (c)2014 Romain Le Bail // Distributed under MIT license (http://opensource.org/licenses/MIT) // //credits to Donnovan Lewis for the material taken from https://github....
mit
bThink-BGU/BPjs
src/test/java/il/ac/bgu/cs/bp/bpjs/execution/BProgramRunnerTest.java
5807
/* * The MIT License * * Copyright 2017 michael. * * 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,...
mit
jsettlers/settlers-remake
go.graphics.swing/src/main/java/go/graphics/swing/contextcreator/AsyncContextCreator.java
4323
/******************************************************************************* * Copyright (c) 2018 * * 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 withou...
mit
Magnition/innova-partnerships
www/wordpress/wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js
189844
( function( window, undefined ) { "use strict"; /** * Handles managing all events for whatever you plug it into. Priorities for hooks are based on lowest to highest in * that, lowest priority hooks are fired first. */ var EventManager = function() { /** * Maintain a reference to the object scope so our p...
mit
rightscale/right_aws_api
lib/cloud/aws/route53/routines/request_signer.rb
2954
#-- # Copyright (c) 2013 RightScale, Inc. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # 'Software'), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish...
mit
rkrauskopf/chai-exec
lib/util.js
1285
"use strict"; const chai = require("chai"); const flag = chai.util.flag; const util = module.exports = { /** * Determines whether the given value is a CLI object */ isCLI (cli) { return cli && typeof cli === "object" && typeof cli.command === "string" && Array.isArray(cli.args); }, ...
mit
DarkIrata/WinCommandPalette
WinCommandPalette/Enums/ModifierKey.cs
317
using WinCommandPalette.Helper; using System; namespace WinCommandPalette.Enums { [Flags] public enum ModifierKey { None = 0, ALT = HotKeyHelper.MOD_ALT, LeftCTRL = HotKeyHelper.MOD_CONTROL, LeftShift = HotKeyHelper.MOD_SHIFT, Win = HotKeyHelper.MOD_WIN } }
mit
cuckata23/wurfl-data
data/verykool_s353_ver1.php
409
<?php return array ( 'id' => 'verykool_s353_ver1', 'fallback' => 'generic_android_ver4_2', 'capabilities' => array ( 'model_name' => 'S353', 'brand_name' => 'verykool', 'marketing_name' => 'Jasper', 'release_date' => '2013_november', 'physical_screen_height' => '77', 'physical_screen_wi...
mit
ellipsesynergie/jquery-google-piechart
lib/piechart.min.js
708
(function($){function Piechart(element,options){this.element=element,this.options=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.data=$(this.element).data("data"),this.init()}var pluginName="piechart",defaults={backgroundColor:"transparent",colors:["#468851","#C24A48"],legend:{position...
mit
dkrock24/lapizzeria
pages/d.php
1514
session_start(); include_once("../class_db/class_menus.php"); <!-- *** HOMEPAGE CAROUSEL *** --> <div class="home-carousel"> <div class="dark-mask"></div> <div class="container"> <div class="homepage owl-carousel"> ...
mit
sebastienros/yessql
src/YesSql.Abstractions/Commands/IAddColumnCommand.cs
109
namespace YesSql.Sql.Schema { public interface IAddColumnCommand : ICreateColumnCommand { } }
mit
feltnerm/whatcd-search
index.js
1418
#!/usr/bin/env node var util = require('util'), _ = require('underscore'), minimist = require('minimist'); var Client = require('./lib/search'); // set default params var params = { searchstr: 'Pure Guava' }; function filter_torrents(torrents){ return torrents.map(function (torrent) { var in...
mit
obivandamme/MSTest.Fluent
MSTest.Fluent/Not/NotObject.cs
3077
namespace MSTest.Fluent.Not { using System; using MSTest.Fluent.Expect; using MSTest.Fluent.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; public class NotObject { private readonly ExpectObject expect; public NotObject(ExpectObject expect) { ...
mit
frederic3476/compte
src/Applisun/GraphicBundle/Graphic/Flot/Type/AbstractType.php
598
<?php namespace Applisun\GraphicBundle\Graphic\Flot\Type; abstract class AbstractType { protected $domSelector; protected $data; public $options = array(); public function __construct($domSelector, $data, $options = array()) { $this->domSelector = $domSelector; $this->data ...
mit
ShoukriKattan/ForgedUI-Eclipse
com.forgedui.editor/src/com/forgedui/editor/edit/SliderEditPart.java
1576
package com.forgedui.editor.edit; import com.forgedui.editor.figures.SliderFigure; import com.forgedui.model.titanium.Slider; import com.forgedui.util.Utils; /** * Edit part for the slider component. * * @author Tareq Doufish * */ public class SliderEditPart extends TitaniumElementEditPart<Slider> {...
mit
danylaporte/asyncplify
src/flatMapLatest.js
1427
Asyncplify.prototype.flatMapLatest = function (options) { return new Asyncplify(FlatMapLatest, options, this); }; function FlatMapLatest(options, sink, source) { this.mapper = options || identity; this.sink = sink; this.sink.source = this; this.source = null; this.subscription = null; sour...
mit
oxyno-zeta/crash-reporter-electron
src/webDev/crash-reporter/views/projects/list/js/list.controller.js
781
/* * Author: Alexandre Havrileck (Oxyno-zeta) * Date: 22/07/16 * Licence: See Readme */ (function () { 'use strict'; angular .module('crash-reporter.views.projects.list') .controller('ProjectsController', ProjectsController); /** @ngInject */ function ProjectsController(projectList...
mit
jcmuller/build_status_server
spec/lib/build_status_server/http_server_spec.rb
2702
require 'spec_helper' describe BuildStatusServer::HTTPServer do let(:tcp_server) { { "address" => "address", "port" => "port" }} let(:config) { double(tcp_server: tcp_server, verbose: false) } let(:store) { double } subject { described_class.new(config, store, false) } before do TCPServer.stub(:new) ...
mit
yojimbo87/ArangoDB-NET
src/Arango/Arango.Tests/Issues/IssueTests.cs
10676
using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using Arango.Client; namespace Arango.Tests { [TestFixture()] public class IssueTests : IDisposable { public IssueTests() { Database.CreateTestDatabase(Database.TestDatabaseGeneral); } ...
mit
lcristianiim/caesar-crypter
example/index.js
332
const caesarCrypter = require("../lib"); // Encrypt the 'ab' message using base string 'abcdefgh', step 1, direction -1 console.log(caesarCrypter.encrypt(1,-1,"abcdefgh","ab")); // 'ha' // Decrypt the 'ha' message using base string 'abcdefgh', step 1, direction -1 console.log(caesarCrypter.decrypt(1,-1,"abcdefgh","ha"...
mit
surendrary/CMPE-202-GU
TestGuessIt/src/com/GuessDatabaseResource.java
4903
package com; import java.io.IOException; import java.util.HashMap; import java.util.Random; import java.util.UUID; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax...
mit
WaveEngine/Extensions
WaveEngine.Networking/Shared/Connection/EventArgs/HostDiscoveredEventArgs.cs
922
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; #endregion namespace WaveEngine.Networking.Connection { /// <summary> /// Represents the arguments of the host discovered event. /// </summary> public class HostDiscovered...
mit
Telerik-Pomegranate/Announcement
lib/scripts/bower_components/system.js/bench/config-example/pkg-configs.js
17984
System.registerDynamic("npm:mocha@1.21.5.json", [], false, function() { return { "main": "mocha", "meta": { "mocha.js": { "deps": [ "./mocha.css!" ], "exports": "mocha" } } }; }); System.registerDynamic("github:angular/bower-angular@1.4.8.json", [], false, ...
mit
Ceasar/twosheds
tests/alias.py
527
def test_alias_substitution1(alias_transform): """Alias substitution should expand aliases.""" text = "ls" assert alias_transform(text) == "ls -G" def test_alias_substitution2(alias_transform): """Alias substitution should not expand arguments.""" text = "echo ls" assert alias_transform(text...
mit
HasanSa/hackathon
node_modules/redux-form/es/actions.js
7348
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import { ARRAY_INSERT, ARRAY_MOVE, ARRAY_POP, ARRAY_PUSH, ARR...
mit
logithr/django-htpayway
htpayway/urls.py
407
from htpayway.views import begin, failure, success try: from django.conf.urls.defaults import patterns, url except ImportError: from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^begin/(?P<transaction_id>\d+)/$', begin, name='htpayway_begin'), url(r'^success/$', success,...
mit
boy-jer/santhathi-appointment
config/initializers/accounting_initializers.rb
1078
# COMPANY_NAME = 'Kaiga Thrift Society' BRANCH_NAME = 'Main' #Asset accounts BANK_AC = {:name => 'State Bank of India S.B. A/c.', :group => 'Bank Accounts'} CASH_AC = {:name => 'Cash A/c.', :group => 'Cash-in Hand'} #Liabitiies accounts #Expenses accounts PURCHASE_AC = {:name => 'Purchases A/c.', :group => 'Purchas...
mit
snorkpete/everycent
app/models/concerns/transfers.rb
3377
module Transfers extend ActiveSupport::Concern module ClassMethods def transfer(params) from_account = find_by(id: params[:from]) return { success: false, reason: "From account doesn't exist" } unless from_account from_account.transfer(params) end end def transfer(params) retur...
mit
frozzare/wp-admin-menu-tabs
tests/bootstrap.php
215
<?php // Load Composer autoload. require __DIR__ . '/../vendor/autoload.php'; // Load the plugin. WP_Test_Suite::load_plugins( __DIR__ . '/../plugin.php' ); // Run the WordPress test suite. WP_Test_Suite::run();
mit
sethjuarez/numl
Src/numl/Math/Metrics/CosineDistance.cs
598
// file: Math\Metrics\CosineDistance.cs // // summary: Implements the cosine distance class using numl.Math.LinearAlgebra; namespace numl.Math.Metrics { /// <summary>A cosine distance.</summary> public sealed class CosineDistance : IDistance { /// <summary>Computes.</summary> /// <param nam...
mit
pegurnee/2013-01-111
Labs/02 - Weekend Trip/WeekendTripProj.java
2451
/** 1/16/13 * This is used to compute the time taken for a weekend trip, * provided the trip is not too long or too short * Coding provided by Eddie Gurnee */ import java.util.Scanner; // imports the Scanner object public class WeekendTripProj { public static void main (String [ ] args) { Scanner ...
mit
totocheku/ImgSkraper
ImgSkraper.meta.js
503
// ==UserScript== // @name ImgSkraper // @namespace https://github.com/totocheku/ImgSkraper/ // @version 0.1 // @description Scrap all the <img> on the web page and show them in side bar for easy viewing // @author totocheku // @match http://www.xossip.com/* // @grant none // @updat...
mit
benlangfeld/specinfra
lib/specinfra/backend.rb
304
require 'specinfra/backend/base' require 'specinfra/backend/exec' require 'specinfra/backend/ssh' require 'specinfra/backend/powershell/script_helper' require 'specinfra/backend/powershell/command' require 'specinfra/backend/cmd' require 'specinfra/backend/winrm' require 'specinfra/backend/shellscript'
mit
mickaelandrieu/bamboo
src/Elcodi/Store/MetricBundle/StoreMetricBundle.php
950
<?php /* * This file is part of the Elcodi package. * * Copyright (c) 2014 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.com> ...
mit
Chormon/EloPVPRanking
src/main/java/pl/chormon/elopvpranking/Config.java
3489
/* * The MIT License * * Copyright 2014 Chormon. * * 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,...
mit
tools4j/unix4j
unix4j-core/unix4j-base/src/main/java/org/unix4j/util/sort/MonthStringComparator.java
2837
package org.unix4j.util.sort; import org.unix4j.util.StringUtil; import java.text.DateFormatSymbols; import java.util.Comparator; import java.util.Locale; /** * A comparator Months: (unknown) < 'JAN' < ... < 'DEC'. The current locale * determines the month spellings. */ public class MonthStringComparator implemen...
mit
mtwilliams/mojo
dependencies/assimp-2.0.863/code/LWOBLoader.cpp
11204
/* --------------------------------------------------------------------------- Open Asset Import Library (ASSIMP) --------------------------------------------------------------------------- Copyright (c) 2006-2010, ASSIMP Development Team All rights reserved. Redistribution and use of this software in source and bin...
mit
ThotAlion/Phoenix
WIFI-FPV/thrustmaster.py
1103
import pygame import zmq import time IP = '10.0.0.2' c = zmq.Context() s = c.socket(zmq.REQ) s.connect('tcp://'+IP+':8080') pygame.init() pygame.joystick.init() goon = True req = {} req["pad"] = {} while goon: t0 = time.clock() pygame.event.get() j = pygame.joystick.Joystick(0) j.init() req["pad...
mit
otoukebri/java-samples
java8-samples/src/main/java/tn/zelda/projects/java8/samples/LambdaScope.java
487
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package tn.zelda.projects.java8.samples; /** * * @author o.TOUKEBRI */ public class LambdaScope { public static void main(Strin...
mit