code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
// Generated on 2014-11-07 using generator-angular 0.9.8 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks au...
MightyPixel/MatchUp
matchup-client/Gruntfile.js
JavaScript
mit
10,761
import { Injectable } from '@angular/core'; @Injectable() export class UuidService { constructor() { } /* tslint:disable:no-bitwise */ get() { let uuid = ''; let i; let random; for (i = 0; i < 32; i++) { random = Math.random() * 16 | 0; if (i === 8 || i === 12 || i === 16 || i ===...
fabriciofmsilva/order-app-angular
src/app/core/utils/uuid.service.ts
TypeScript
mit
504
function List(storage, $) { var items = []; var doneItems = []; var nextId = 0; this.storage = storage; this.toDo = items; this.done = doneItems; this.add = function (text) { var newItem = new ListItemModel(nextId,text); items.push(newItem); storage.store(newItem.id, JSON.stringify(newItem)...
NathanGloyn/to-doge
Local/js/list.js
JavaScript
mit
1,279
require "spec_helper" describe Tantot::Agent::Block do context "normal usage" do let(:value) { {changes: 0} } let(:changes) { {obj: nil} } before do v = value c = changes stub_model(:city) do watch {|changes| v[:changes] += 1; c[:obj] = changes} end end it "should...
petalmd/tantot
spec/collector/block_spec.rb
Ruby
mit
1,376
/* The MIT License (MIT) Copyright (c) 2016 EMC 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 in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
carone1/ecs-dashboard
ecs-metadata-elasticsearch-dao/src/main/java/com/emc/ecs/metadata/dao/elasticsearch/ElasticS3ObjectDAO.java
Java
mit
29,830
/* * MapsActivity * * Version 1.0 * * November 12, 2017 * * Copyright (c) 2017 Team NOTcmput301, CMPUT301, University of Alberta - All Rights Reserved * You may use, distribute, or modify this code under terms and conditions of the Code of Student Behavior at University of Alberta. * You can find a copy of the...
CMPUT301F17T28/NOTcmput301
app/src/main/java/com/notcmput301/habitbook/MapsActivity.java
Java
mit
6,346
import * as angular from 'angular'; import {IRequestServiceProvider} from '../../common/utils/request-utils.provider'; import RecoveryPasswordComponent from './recovery-password.component'; import Core from '../../core'; import Utils from '../../common/utils'; export default angular .module('app.recovery-password'...
LekoWebDeveloper/angular-webapi-login-template
client/src/components/recovery-password/index.ts
TypeScript
mit
1,155
version https://git-lfs.github.com/spec/v1 oid sha256:5181d344dc3334a5a80ecae84df1bb3107af7d92135639b56a7f73ec2ea1931c size 3057
yogeshsaroya/new-cdnjs
ajax/libs/highlight.js/8.5/languages/cpp.min.js
JavaScript
mit
129
<?php namespace Widgets\Dropdown; class Dropdown extends \Widgets\Core\Base{ public $options; public function __construct($options){ $this->template = 'dropdown'; $this->package = 'dropdown'; parent::__construct($options); } }
tylersavery/Houston
widgets/dropdown/dropdown.php
PHP
mit
243
using System; using System.Runtime.Serialization; // ReSharper disable CheckNamespace namespace SharpRemote // ReSharper restore CheckNamespace { /// <summary> /// This exception is thrown when a thrown exception should be marshalled (because it crosses the proxy / servant threshold) /// but cannot, for example be...
Kittyfisto/SharpRemote
SharpRemote/Exceptions/UnserializableException.cs
C#
mit
4,319
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
raapperez/vrf
frontend/js/components/menu.js
JavaScript
mit
3,426
bql` image(size="foo") { width height src } `;
bicyclejs/babel-plugin-transform-bql
test/test-cases/invalid-character.js
JavaScript
mit
62
package de.gurkenlabs.litiengine.entities; import de.gurkenlabs.litiengine.graphics.RenderEngine; import java.awt.Graphics2D; import java.util.EventObject; /** * This {@code EventObject} contains data about the rendering process of an entity. * * @see RenderEngine#renderEntity(Graphics2D, IEntity) */ public class...
gurkenlabs/litiengine
core/src/main/java/de/gurkenlabs/litiengine/entities/EntityRenderEvent.java
Java
mit
1,089
import plain from '../structure/plain' import immutable from '../structure/immutable' import defaultShouldError from '../defaultShouldError' describe('defaultShouldError', () => { it('should validate when initialRender is true', () => { expect( defaultShouldError({ initialRender: true }) ...
erikras/redux-form
src/__tests__/defaultShouldError.spec.js
JavaScript
mit
2,200
const path = require('path'); module.exports = { HOST: 'localhost', PORT: 3000, URL: { ROOT: 'https://bootflex.herokuapp.com', API: 'https://bootflex.herokuapp.com/api' }, PATH: { ROOT: path.join(__dirname, '..') } };
zrosenbauer/bootflex
doc-viewer/configs/production.js
JavaScript
mit
243
import Chaffle from "chaffle"; const scrambleAuthor = () => { const elements = document.querySelectorAll("[data-chaffle]"); elements.forEach(el => { const chaffle = new Chaffle(el, { speed: 10, delay: 20, }); el.addEventListener("mouseover", () => { c...
IvanWoo/subjpop.github.io
src/animations.js
JavaScript
mit
386
// Copyright (c) 2015 Uber Technologies, 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, ...
RanaRunning/rana
web/src/components/MapGL/overlays/canvas.react.js
JavaScript
mit
2,671
<?php /* AdminBundle:Admin:gestionCategories.html.twig */ class __TwigTemplate_d67b492aebafcd5f8ab65d887049fd9f778babe4069922cd9ffcb861388774ee extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadT...
AziziNidhal/formation
var/cache/dev/twig/9e/9e7f6ac2722fe89fb849c145c79b7b4076f3b4cafa96f3c76d520acf3fe06829.php
PHP
mit
20,345
<?php /** * * Proxy Pattern * * A proxy pattern creates an entry point which interacts behind the scenes with other objects. * Can be useful for implementing access control, to implement lazy loading of resource intensive * objects, or to simply act as a wrapper to reduce the options available to another more ...
voidabhi/reddy
proxy-pattern.php
PHP
mit
2,019
#!/usr/bin/python -*- coding:utf-8 -*- __Author__ = "Riyaz Ahmad Bhat" __Email__ = "riyaz.ah.bhat@gmail.com" import re from collections import namedtuple from sanity_checker import SanityChecker class DefaultList(list): """Equivalent of Default dictionaries for Indexing Errors.""" def __init__(self, defaul...
darshan95/Shift-Reduce-Chunk-Expander
src/ssf_reader.py
Python
mit
4,608
# frozen_string_literal: true module Faker module Witcher class << self extend Gem::Deprecate def character Faker::Games::Witcher.character end def witcher Faker::Games::Witcher.witcher end def school Faker::Games::Witcher.school end def...
Dakurei/faker
lib/faker/default/witcher.rb
Ruby
mit
936
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.md')) as f: CHANGES = f.read() requires = [ 'pyramid', 'pyramid_jinja2', 'pyramid_debugt...
necaris/embedded-js-in-python-example
setup.py
Python
mit
1,216
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
iodes/WPFDesign
WPFDesign.Designer/Services/ClickOrDragMouseGesture.cs
C#
mit
2,615
using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using MoreLinq; namespace WarHub.ArmouryModel.Source.CodeGeneration { internal abstract class CoreChildBase { protected CoreChildBase( ...
WarHub/wham
src/WarHub.ArmouryModel.Source.CodeGeneration/CoreChildBase.cs
C#
mit
2,521
using BNogent.StateMachine; namespace BNogent.StateMachineSamples { class MultipleMethodsSample { public void Build() { StateMachineBuilder smb = new StateMachineBuilder() { GenerateGraph = true }; State a = new State("A"); State b = new State("B"); ...
bnogent/state-machine
StateMachineSamples/MultipleMethodsSample.cs
C#
mit
751
class Solution { public: bool search(vector<int>& nums, int target) { int l = 0, r = nums.size() - 1; if(nums.empty()) return false; while(l != r && nums[l] == nums[r]) l++; while(l < r) { int mid = (l + r) >> 1; if(nums[mid] == target) return true; ...
w181496/OJ
LeetCode/81.Search_in_Rotated_Sorted_Array_II.cpp
C++
mit
875
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SassyStudio.Editor; namespace SassyStudio.Compiler.Parsing { public class VariableReference : ComplexItem, IResolvableToken { public VariableName Name { get; protected set; } public override bool Parse(...
darrenkopp/SassyStudio
SassyStudio.Compiler/Parsing/VariableReference.cs
C#
mit
838
package mcjty.rftools.blocks.teleporter; import mcjty.rftools.network.PacketListFromServer; import io.netty.buffer.ByteBuf; import java.util.List; public class PacketReceiversReady extends PacketListFromServer<PacketReceiversReady,TeleportDestinationClientInfo> { public PacketReceiversReady() { } publi...
Adaptivity/RFTools
src/main/java/mcjty/rftools/blocks/teleporter/PacketReceiversReady.java
Java
mit
617
"use strict"; const removeDiacritics = require('diacritics').remove; const request = require('request'); //const pSegCases = require('../test/promiseSwitchCase.js'); var utils = { /** * Resolve all promises in Object via for ... in loop * @param {object} obj - The object containing function properties => Swi...
W3stside/glitch
lib/utils.js
JavaScript
mit
3,112
var my = require('my'); var maxHeight = 300, maxWidth = 300; exports.view = function(data) { console.log("view: m.js"); console.log(data); var topic = data.topic; return( my.page({title: 'Hello World', scripts:["http://code.jquery.com/jquery-latest.js"]}, /*my.div({id: 'myDiv', style: {height: '800...
greyvugrin/openwhyd
whydJS/app/views/public/m.js
JavaScript
mit
2,229
using System; using System.Runtime.InteropServices; namespace NAudio.CoreAudioApi.Interfaces { [Guid("C8ADBD64-E71E-48a0-A4DE-185C395CD317"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IAudioCaptureClient { /*HRESULT GetBuffer( BYTE** ppData, ...
Aragas/VKPlayer
VKPlayer/NAudio/CoreAudioApi/Interfaces/IAudioCaptureClient.cs
C#
mit
810
""" atomorder/parse_args.py Parses command line arguments and overwrites setting defaults """ from . import settings import argparse import sys description = "" epilog = "" parser = argparse.ArgumentParser( description = description, formatter_class = argparse.RawDescriptionHelpFormatter, ep...
larsbratholm/atomorder
atomorder/parse_args.py
Python
mit
2,393
using System.Threading.Tasks; namespace AppZen.Mvvm.Core.Interfaces { public interface IViewFactory { void CloseView(string id); Task ShowViewModel<T>(object argumentsAsAnonymousType) where T : IViewModel; Task ShowViewModel<T>() where T : IViewModel; } }
jodendaal/AppZen.Mvvm
src/AppZen.MVVM.Core/Interfaces/IViewFactory.cs
C#
mit
292
<?php /** * i4Web includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/wrapper.php'); // Theme wrapper class require_once locate_template('/li...
i4web/dcook
functions.php
PHP
mit
1,338
/*eslint no-console: 1 */ console.warn('You are using the default filter for the fileMeta service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering'); // eslint-disable-line no-console module.exports = function(data, connection, hook) { // eslint-disable-line no-...
mauricedoepke/docscloud-server
src/services/files/files.filters.js
JavaScript
mit
350
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace Famliy.Finance.Common { public static class HtmlHelper2 { /// <summary> /// 自定义一个@html.Image() /// </summary> ...
erikzhouxin/CSharpSolution
TechTester/FamliyFinanceWebSI/App_Api/Famliy.Finance.Common/HtmlHelper2.cs
C#
mit
876
<?php namespace Handler\Admin\Article\Ad; if (!defined('IN_PX')) exit; use Handler\Admin\AbstractCommon; use Admin\Helper; use Tools\Auxi; use Tools\MsgHelper; /** * 读取 */ class Read extends AbstractCommon { public function processRequest(Array & $context) { $this->_pushSetting(...
MiaoZhua/mzworld-php
core/Handler/Admin/Article/Ad/Read.handler.php
PHP
mit
3,167
export default function HomeService($rootScope, $window, $http) { var service = { send: send, loadSettings: loadSettings, }; return service; function send(msg, data) { console.log(msg, data); //$rootScope.$broadcast(msg, data); } function loadSettings() { ...
mariasaavedra/foodtruck-ui
src/app/core/home/home.service.js
JavaScript
mit
755
package com.elderbyte.josc.api; import com.elderbyte.josc.core.BlobObjectUtils; import java.time.Instant; import java.util.Map; import java.util.Optional; /** * Represents a blob object */ public interface BlobObject { /** * Gets the bucket name where this object is stored */ String getBucket();...
ElderByte-/josc
josc-api/src/main/java/com/elderbyte/josc/api/BlobObject.java
Java
mit
2,141
package main import ( "github.com/robertkrimen/otto" ) func evaluateScript(src string, payload []FinalInput) (string, error) { javaScript := otto.New() var evalFunc otto.Value javaScript.Set("eval", func(call otto.FunctionCall) otto.Value { evalFunc = call.Argument(0) return otto.UndefinedValue() }) javaSc...
gophergala2016/scattr
evaluate.go
GO
mit
525
import React, { Component } from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends Component { constructor (props) { super(props) this.handleSearchTermChange = this.handleSearchTermChange.bind(this) } h...
joordas/react-fem
js/Header.js
JavaScript
mit
1,191
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Threading; using Microsoft.Xna.Framework; namespace Gearset.Components.Profiler { public class Profiler : Gear { /// <summary>The maximum number of discrete heira...
bartwe/Gearset
Gearset/Components/Profiler/Profiler.cs
C#
mit
19,770
package ch.heigvd.amt.mvcdemo.rest.resources; import ch.heigvd.amt.mvcdemo.model.entities.Sector; import ch.heigvd.amt.mvcdemo.rest.dto.SectorDTO; import ch.heigvd.amt.mvcdemo.services.dao.BusinessDomainEntityNotFoundException; import ch.heigvd.amt.mvcdemo.services.dao.SectorsDAOLocal; import java.net.URI; import java...
SoftEng-HEIGVD/Teaching-HEIGVD-AMT-Example-MVC
MVCDemo/src/main/java/ch/heigvd/amt/mvcdemo/rest/resources/SectorsResource.java
Java
mit
3,061
using System; using System.Diagnostics; using Pgno = System.UInt32; using PTRMAP = Contoso.Core.MemPage.PTRMAP; using Contoso.Threading; namespace Contoso.Core { public partial class BtShared { internal RC allocateBtreePage(ref MemPage ppPage, ref Pgno pPgno, Pgno nearby, byte exact) ...
Grimace1975/gpustructs
src/Structs.Data.Btree/Core+Btree/BtShared+Alloc.cs
C#
mit
18,930
# frozen_string_literal: true require 'cucumber/core/test/timer' module Cucumber module Core module Test class Runner attr_reader :event_bus, :running_test_case, :running_test_step private :event_bus, :running_test_case, :running_test_step def initialize(event_bus) @event...
kamenlitchev/cucumber-ruby-core
lib/cucumber/core/test/runner.rb
Ruby
mit
4,031
require 'spec_helper' require 'ostruct' module BtcPrice describe Price do before do Price.adapter = OpenStruct.new(current_price: 492) end it "returns the current BTC price" do Price.current_price.must_equal 492 end end end
mecampbellsoup/btc_price
spec/lib/price_spec.rb
Ruby
mit
258
var answers = []; var validate = () => { $("#afev-answer-1").animate( { backgroundColor: "green"} ); var good = true; if (answers.indexOf(1) === -1) { good = false; } if (answers.indexOf(2) !== -1) { $("#afev-answer-2").animate( { backgroundColor: "red"} ...
SvenFrankson/SvenFrankson.github.io
afev/scripts/question-4-1.js
JavaScript
mit
1,257
#!/usr/bin/python import glob import os import shutil import subprocess import sys import yaml def create_role(role): ret = subprocess.check_output( 'ansible-galaxy init {}'.format(role).split()) if not ret.strip().endswith('created successfully'): raise Exception('could not create role "{}"...
waltermoreira/dockeransible
app_builder/app_builder_image/concat_roles.py
Python
mit
3,259
import {Component, DynamicComponentLoader, ElementRef, Injector} from 'angular2/core'; import DynamicComponent from './dynamic-component'; import Hello from './hello'; @Component({ selector: 'load-as-root-component', directives: [ Hello ], template: ` <div class="wrapper"> <h3>LoadAsRoot Componen...
vanessayuenn/batarangle
example-apps/kitchen-sink-example/source/components/dynamic-controls/load-as-root-component.ts
TypeScript
mit
812
/* * 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 eu.diversify.ffbpg.evolution.platforms; import eu.diversify.ffbpg.Application; import eu.diversify.ffbpg.BPGraph; import eu.d...
ffleurey/FFBPG
src/main/java/eu/diversify/ffbpg/evolution/platforms/DropOneRandomService.java
Java
mit
1,234
import { SolidarityRunContext, SolidaritySettings } from '../../types' module.exports = (settings: SolidaritySettings, context: SolidarityRunContext): void => { const { filesystem } = context if (settings.requirements) { // Write file filesystem.write('.solidarity', JSON.stringify(settings, null, 2), { ato...
infinitered/solidarity
src/extensions/functions/setSolidaritySettings.ts
TypeScript
mit
425
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Doctrine\Odm\Filter; use ApiPlat...
api-platform/core
src/Doctrine/Odm/Filter/AbstractFilter.php
PHP
mit
3,450
using Microsoft.Xna.Framework; using NutEngine.Physics.Shapes; namespace NutEngine.Physics { public static partial class Collider { public static bool Collide(IBody<Circle> a, IBody<Circle> b, out IntersectionArea intersection) { // Probably here should be the sector collisions che...
EasyPeasyLemonSqueezy/MadCat
MadCat/NutEngine/Physics/Collider/CirclevsCircle.cs
C#
mit
1,838
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M17.5 8c.46 0 .91-.05 1.34-.12C17.44 5.56 14.9 4 12 4c-.46 0-.91.05-1.34.12C12.06 6.44 14.6 8 17.5 8zM8.08 5.03C6.37 6 5.05 7.58 4.42 9.47c1.71-.97 3.03-2.55 3.66-4.44z", opacity: "....
AlloyTeam/Nuclear
components/icon/esm/face-two-tone.js
JavaScript
mit
873
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'no', { toolbar: 'Sett inn horisontal linje' } );
Rudhie/simlab
assets/ckeditor/plugins/horizontalrule/lang/no.js
JavaScript
mit
241
#!/usr/bin/env python # -*- coding: utf-8 -*- """Make use of synaptic as backend.""" # Copyright (C) 2008-2010 Sebastian Heinlein <devel@glatzor.de> # Copyright (C) 2005-2007 Canonical # # Licensed under the GNU General Public License Version 2 # # This program is free software; you can redistribute it and/or modify # ...
yasoob/PythonRSSReader
venv/lib/python2.7/dist-packages/sessioninstaller/backends/synaptic.py
Python
mit
3,567
<?php // Based on https://github.com/Wixel/GUMP // DataValidationClass if (!defined ("_DATAVALIDATION_CLASS_") ) { define("_DATAVALIDATION_CLASS_", TRUE); Class DataValidation { var $field=null; var $typeError = 'field'; var $errorMsg=''; var $error=false; var $errorFi...
CloudFramework-io/appengine-php-core
src/class/DataValidation.php
PHP
mit
19,606
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div class="alert alert-success" role="alert"> <?= $msg; ?> </div> </div>
lenesvc/ProjetoMvc
application/views/includes/msg_sucesso.php
PHP
mit
153
<?php /* * This file is part of the overtrue/laravel-pinyin. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Illuminate\Support\Facades\Log; use Overtrue\Pinyin\Pinyin; if (!function_exists('pinyin')) { ...
overtrue/laravel-pinyin
src/helpers.php
PHP
mit
2,405
module Smalrubot class Board # namespace for Studuino module Studuino PORT_M1 = 0 PORT_M2 = 1 PORT_A0 = 0 PORT_A1 = 1 PORT_A2 = 2 PORT_A3 = 3 PORT_A4 = 4 PORT_A5 = 5 PORT_A6 = 6 PORT_A7 = 7 PIDOPEN = 0 PIDLED = 1 PIDBUZZER = 2 ...
smalruby/smalrubot
lib/smalrubot/board/studuino.rb
Ruby
mit
587
'use strict'; module.exports = function(localeA, localeB, options) { options = options || {}; if (typeof localeA !== 'object' || typeof localeB !== 'object') { throw new Error('s18n: `localeA` and `localeB` must be objects.'); } var localeAMissing = {}; var localeBMissing = {}; var unmodifiedStrings =...
bitjson/s18n
lib/compareLocales.js
JavaScript
mit
1,256
package org.sagebionetworks.dashboard.model; public interface AccessRecord extends Record{ String getSessionId(); String getUserId(); String getObjectId(); String getMethod(); String getUri(); String getQueryString(); String getStatus(); Long getLatency(); String getUserAgent(); ...
Sage-Bionetworks/dashboard-core
src/main/java/org/sagebionetworks/dashboard/model/AccessRecord.java
Java
mit
436
//basic physics entity //This entity extends the joncom base entity and is responsible for //collision categories //property inheritance //default settings/hooks //It also defines the ObjectWorld and RenderWorld objects "soma" and "animus" (or whatever distinct names you can think of) //The soma cannot call animus func...
standardgaussian/Titania
lib/game/entities/physEnt.js
JavaScript
mit
12,058
module Krikri::Enrichments ## # Splits a string given in `lat' or `long' in an edm:Place object and # assigns `lat' and `long' with the split values. # # @example # # Where val is a DPLA::MAP::Place, # and val.lat == '40.7127,74.0059', # assign val.lat = '40.7127' and val.long = '74.0059' # ...
dpla/KriKri
lib/krikri/enrichments/split_coordinates.rb
Ruby
mit
2,449
package code.template; /** * * @author */ public class QueueArray { int QUEUE_SIZE; int front; int back; Integer[] queueArray; public QueueArray(int size) { queueArray = new Integer[size]; QUEUE_SIZE = size; } public void equeue(int putInBackAr...
BenSaud-CS/Collage
Practical4_Stack&Queue/src/code/template/QueueArray.java
Java
mit
1,484
package org.fakekoji.xmlrpc.server.expensiveobjectscache; import org.fakekoji.xmlrpc.server.xmlrpcrequestparams.XmlRpcRequestParams; import java.io.BufferedWriter; import java.io.IOException; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.net.URL; import java.util.Arra...
judovana/jenkins-scm-koji-plugin
koji-scm-lib/src/main/java/org/fakekoji/xmlrpc/server/expensiveobjectscache/SingleUrlResponseCache.java
Java
mit
9,352
import Ember from 'ember'; export default Ember.Mixin.create({ reduxStore: Ember.inject.service(), dispatch(action) { return this.get('reduxStore').dispatch(action); }, dispatchAction(actionName, ...args) { return this.dispatch(this.action(actionName).apply(this, args)); }, getState(path) { ...
AltSchool/ember-cli-redux
addon/mixins/ember-redux.js
JavaScript
mit
610
package router import ( "github.com/Unknwon/macaron" "github.com/macaron-contrib/binding" "github.com/containerops/crew/handler" ) func SetRouters(m *macaron.Macaron) { m.Group("/v1", func() { //Session Router m.Group("/token", func() { m.Post("/", handler.W1PostToken) }) //User Router m.Group("/u...
yonh/wharf
Godeps/_workspace/src/github.com/containerops/crew/router/router.go
GO
mit
1,656
const gulp = require('gulp'); const nodemon = require('gulp-nodemon'); const mocha = require('gulp-spawn-mocha'); gulp.task('start', () => { nodemon({ script: 'server.js', ext: 'html js ejs css', ignore: ['node_modules'], }) .on('restart', () => { console.log('restarted') }); }); gulp.task('t...
bynaki/nowonlib.node
gulpfile.js
JavaScript
mit
446
<?php namespace app\models; use Yii; use yii\base\Model; /** * LoginForm is the model behind the login form. * * @property User|null $user This property is read-only. * */ class AdminLogin extends Model { public $username; public $password; public $rememberMe = true; private $_user = false; ...
Chotainghe/chotainghe
YiiBasic/models/AdminLogin.php
PHP
mit
1,953
module Wice # a matrix for all declared columns class TableColumnMatrix < Hash #:nodoc: # a structure to hold generates Arels for all column filters attr_reader :generated_conditions # init a matrix of all columns def initialize #:nodoc: super @generated_conditions = [] @by_tab...
leikind/wice_grid
lib/wice/table_column_matrix.rb
Ruby
mit
1,898
package distribution import ( "testing" "github.com/ready-steady/assert" ) func TestParse(t *testing.T) { cases := []struct { line string success bool }{ {"Beta(1, 1)", true}, {"beta(0.5, 1.5)", true}, {" Beta \t (1, 1)", true}, {"Gamma(1, 1)", false}, {"Beta(1, 1, 1)", false}, {"beta(-1, 1)",...
turing-complete/laboratory
src/internal/distribution/main_test.go
GO
mit
622
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
frogocomics/SpongeAPI
src/main/java/org/spongepowered/api/item/inventory/properties/AcceptsItems.java
Java
mit
4,628
<?php use_javascript(sfConfig::get('app_base_url') . 'PubsPlugin/js/follow.js') ?> <?php if ($sf_user->getGuardUser()->getId() == $datos->getId()) { ?> <?php include_partial('follow', array('datos' => $datos, 'follows' => $followers, 'action' => 'follower')) ?> <?php } else { ?> <?php $follow = Doctrine::getTab...
sebardo/social-sandbox
plugins/PubsPlugin/modules/follow/templates/listFollowersSuccess.php
PHP
mit
1,676
using Avalonia.Media; using Avalonia.Platform; using Avalonia.Utilities; using Avalonia.VisualTree; namespace Avalonia.Rendering { public class RenderLayer { private readonly IDrawingContextImpl _drawingContext; public RenderLayer( IDrawingContextImpl drawingContext, S...
jkoritzinsky/Perspex
src/Avalonia.Visuals/Rendering/RenderLayer.cs
C#
mit
1,456
/** * @license Copyright (c) 2012, Viet Trinh All Rights Reserved. * Available via MIT license. */ /** * An authorizeation interceptor used to determine if the user can access the given resource. */ define([ 'framework/controller/interceptor/i_interceptor', 'framework/core/utils/clazz', 'framework/core/def...
DragonDTG/vex
lib/private/static/scripts/framework/controller/interceptor/authorization_interceptor.js
JavaScript
mit
2,004
 namespace MeasureMap { /// <summary> /// Chain of responsibility for executing tasks /// </summary> public interface ISessionHandler { /// <summary> /// Set the next execution item /// </summary> /// <param name="next">The next handler for the session</param> ...
WickedFlame/MeasureMap
src/MeasureMap/SessionHandlers/ISessionHandler.cs
C#
mit
718
var pkg = require('./package.json'), gulp = require('gulp'), gutil = require('gulp-util'), coffee = require('gulp-coffee'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), livereload = require('gulp-livereload'), rename = require('gulp-rename'), coffeelint = require('gulp-coffeelint'), jade =...
nullzion/nullstrap
gulpfile.js
JavaScript
mit
2,280
import _plotly_utils.basevalidators class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_...
plotly/python-api
packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py
Python
mit
521
const Card = require('./src/main'); Card.install = function(Vue) { Vue.component(Card.name, Card); }; module.exports = Card;
slovebj/zxui
packages/card/index.js
JavaScript
mit
129
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ /** * Base object for objects that are using properites to flow updates through the application. */ dbm.registerClass("dbm.core.FlowBaseObject", "dbm.core.BaseObject...
developedbyme/dbm
javascripts/dbm/classes/dbm/core/FlowBaseObject.js
JavaScript
mit
7,899
from pyperator.decorators import inport, outport, component, run_once from pyperator.nodes import Component from pyperator.DAG import Multigraph from pyperator.utils import InputPort, OutputPort import pyperator.components
baffelli/pyperator
pyperator/__init__.py
Python
mit
222
import itertools import os.path import sys import time from . import core from . import file_io from . import geometry from . import stringconv from . import version # # Functions # def save_output(profileli, opt): """ Save a summary of results of evaluated profiles """ def m(x, pixelwidth): retu...
maxdl/Synapse.py
synapse/main.py
Python
mit
24,280
# frozen_string_literal: true require "rails_helper" RSpec.describe Admin::ArticlesController, type: :controller do render_views before do create :blog end describe "index" do let(:publisher) { create(:user, :as_publisher) } let!(:article) { create(:article) } before do sign_in publis...
publify/publify
publify_core/spec/controllers/admin/articles_controller_spec.rb
Ruby
mit
17,734
<?php namespace HackAveiro\Web2Badge\Util; class StringCleaner { static function removeAccents($string) { $unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ...
HackAveiro/web2badge-server
src/HackAveiro/Web2Badge/Util/StringCleaner.php
PHP
mit
1,742
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace AppUIBasics.Common { public class NullableBooleanToBooleanConverter : IValueConverter { public object Convert(object value, Type targetTy...
mobilecp/Windows-universal-samples
xaml_xamluibasics/CS/AppUIBasics/Common/NullableBooleanToBooleanConverter.cs
C#
mit
741
(function(exports) { function changeSky(location) { var sky = document.getElementById("image-360"); sky.setAttribute('src', location); } function addMonolith() { var box = document.createElement('a-box'); document.querySelector('a-scene').appendChild(box); box.setAttribute('id', 'monolith');...
nazwhale/spaceship
public/js/interface.js
JavaScript
mit
1,629
function injectScript(file, node) { var th = document.getElementsByTagName(node)[0]; var s = document.createElement('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', file); th.appendChild(s); } function injectStyle(file, node) { var th = document.getElementsByTagName(no...
SchedulesPlus/SchedulesPlus
js/inject.js
JavaScript
mit
1,296
class CommentPolicy < ApplicationPolicy attr_reader :user, :comment def initialize(user, comment) @user = user @comment = comment end def index? true end def show? comment.project.user_id == @user.id end def create? show? end def new? create? end def update? sho...
abratashov/TManager
app/policies/comment_policy.rb
Ruby
mit
572
// Get User's Coordinate from their Browser window.onload = function() { // HTML5/W3C Geolocation if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(UserLocation); } // Default to Washington, DC else NearestCity(38.8951, -77.0367); } // Callback function for asynchronous call to HT...
Jugendhackt/Post-It
data.js
JavaScript
mit
56,516
using System; using System.Text; using System.Web; using System.Web.Http.Description; namespace ProCultura.Web.Api.Areas.HelpPage { public static class ApiDescriptionExtensions { /// <summary> /// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" inste...
jcespinoza/ProCulturaBackend
ProCultura.Web.Api/Areas/HelpPage/ApiDescriptionExtensions.cs
C#
mit
1,490
import os import re import subprocess from six.moves.urllib.parse import urlparse, quote_plus from subprocess import CalledProcessError, PIPE, STDOUT from conans.client.tools.env import no_op, environment_append from conans.client.tools.files import chdir from conans.errors import ConanException from conans.util.file...
luckielordie/conan
conans/client/tools/scm.py
Python
mit
5,881
/** * 指示按钮 */ Banner.prototype.btn = function() { var s = this, o = this.option, $banner = this.$banner, $btn; for (var i = 0, item = ''; i < s.len; i++) { item += '<a></a>'; } $banner.append($('<div class="tb-btn"/>').append(item)); s.$btn = $btn = $('.tb-btn a', $banner); $btn.first(...
happyfreelife/easyBanner
src/btn.js
JavaScript
mit
682
$(document).ready(function () { console.log("ready!"); $("#subs").click(function () { var name = $('#name').val(); var email = $('#email').val(); if (name != '' && email != '') { $('#subs_err').html(''); var subs = {name: name, email: email}; var url...
sirromas/george
assets/js/custom.js
JavaScript
mit
2,063
module Zuora module RESTOperations module All def all(params={}) Zuora.request(:get, base_resource_url, params) end end end end
tradegecko/zuora-rest-ruby
lib/zuora/rest_operations/all.rb
Ruby
mit
160
### import #################################################################### import pycmds.project.classes as pc import pycmds.hardware.hardware as hw import pathlib import appdirs import toml import yaqc ### driver #################################################################### class Driver(hw.Driver): ...
wright-group/PyCMDS
pycmds/hardware/spectrometers.py
Python
mit
2,840
/* global createNS */ /* exported filtersFactory */ var filtersFactory = (function () { var ob = {}; ob.createFilter = createFilter; ob.createAlphaToLuminanceFilter = createAlphaToLuminanceFilter; function createFilter(filId, skipCoordinates) { var fil = createNS('filter'); fil.setAttribute('id', filI...
bodymovin/bodymovin
player/js/utils/filters.js
JavaScript
mit
954
u""" Fixer for Python 3 function parameter syntax This fixer is rather sensitive to incorrect py3k syntax. """ # Note: "relevant" parameters are parameters following the first STAR in the list. from lib2to3 import fixer_base from lib2to3.fixer_util import token, String, Newline, Comma, Name from libfuturize.fixer_uti...
thonkify/thonkify
src/lib/libpasteurize/fixes/fix_kwargs.py
Python
mit
6,066
'use strict'; angular.module('myApp.post', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/new-post', { templateUrl: 'posts/new-post.html', controller: 'PostCtrl' }); }]) .controller('PostCtrl', ['$scope', '$firebaseArray', 'CommonProp', '$location', function($scope, $f...
hnquang112/angular-seeder
app/posts/posts.js
JavaScript
mit
977
/* * This file is part of Jiffy, licensed under the MIT License (MIT). * * Copyright (c) OreCruncher * * 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 wi...
OreCruncher/Jiffy
src/main/java/org/blockartistry/world/ChunkCache.java
Java
mit
8,333