code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
app.service('programmingLandingService', function ($http) {
//get user profile information
this.getGymObj = function (gymId) {
return $http({
method: 'GET',
url: 'api/gyms/pathway/' + gymId,
})
.then(function (response) {
return response.data;... | blundercode/logosShit | client/app/admin/gym/programming/programmingLanding/programmingLandingService.js | JavaScript | mit | 1,973 |
define({
"add": "Κάντε κλικ για προσθήκη νέου",
"title": "Τίτλος",
"placeholderBookmarkName": "Όνομα σελιδοδείκτη",
"ok": "ΟΚ",
"cancel": "Ακύρωση",
"warning": "Ολοκληρώστε την επεξεργασία!",
"edit": "Επεξεργασία σελιδοδείκτη",
"errorNameExist": "Ο σελιδοδείκτης υπάρχει!",
"errorNameNull": "Μη έγκυρο ... | tmcgee/cmv-wab-widgets | wab/2.15/widgets/Bookmark/setting/nls/el/strings.js | JavaScript | mit | 2,733 |
const DrawCard = require('../../drawcard.js');
class BrothersRobes extends DrawCard {
setupCardAbilities() {
this.attachmentRestriction({ trait: 'The Seven' });
this.reaction({
when: {
onCardKneeled: event => event.card === this.parent
},
target: ... | DukeTax/throneteki | server/game/cards/10-SoD/BrothersRobes.js | JavaScript | mit | 1,020 |
module.exports = {
tests: {
unit: ['test/unit/helpers/**/*.coffee', 'test/unit/**/*.coffee'],
integration: ['test/integration/**/*.coffee']
},
helpers: ['test/unit/helpers/**/*.coffee'],
lib: ['lib/**/*.js']
};
| tandrewnichols/file-manifest | gulp/config.js | JavaScript | mit | 227 |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'paste', function( editor )
{
var lang = editor.lang.clipboard;
var isCustomDomain = CKEDITOR.env.isCustomDomain();
function onPasteFrameLo... | evansd-archive/kohana-module--ckeditor | vendor/ckeditor/_source/plugins/clipboard/dialogs/paste.js | JavaScript | mit | 6,348 |
var Tape = function() {
var pos = 0, tape = [0];
this.inc = function() { tape[pos]++; }
this.dec = function() { tape[pos]--; }
this.advance = function() { pos++; if (tape.length <= pos) tape.push(0); }
this.devance = function() { if (pos > 0) pos--; }
this.get = function() { return tape[pos]; }
}
var Brainfuck ... | erickt/benchmarks | brainfuck/brainfuck.js | JavaScript | mit | 1,429 |
var Image = require('./image');
var imageFields = ["fieldname", "originalname", "encoding", "mimetype", "destination",
"filename", "path", "size"];
module.exports = {
create: function (req, cb) {
var newImage = new Image();
//go through array fields which are the fields that are
//given from mutler... | TAMUSHPE/goalAppServer | models/images/index.js | JavaScript | mit | 2,109 |
/**
* @desc notify()
* - http://notifyjs.com/ for examples / docs
*
* @param {Function} fn - the function to curry
* @param {Number} [len] - specifies the number of arguments needed to call the function
*
* @return {Function} - the curried function
*/
const url = '//rawgit.com/clearhead/clearhead/master/bower_... | clearhead/clearhead | src/notify.js | JavaScript | mit | 794 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"nt\u0254\u0301ng\u0254\u0301",
"mp\u00f3kwa"
],
"... | ereddate/angular.js | src/ngLocale/angular-locale_ln-cd.js | JavaScript | mit | 2,486 |
/*!
* jQuery JavaScript Library v@VERSION
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: @DATE
*/
(function( global, factory ) {
if ( typeof m... | curt-labs/GoSurvey | public/dist/js/vendor/jquery/src/intro.js | JavaScript | mit | 1,392 |
'use strict';
const chalk = require('chalk');
const detect = require('detect-port-alt');
const getProcessForPort = require('./getProcessForPort');
function isRoot() {
return process.getuid && process.getuid() === 0;
}
function checkDetectPort(port, host) {
port = parseInt(port, 10) || 0;
return new Promise((resol... | kidney/guido | lib/utils/checkDetectPort.js | JavaScript | mit | 1,014 |
// Copyright 2012 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... | elynnlee/bright-bot | closure/library/closure/goog/i18n/ordinalrules.js | JavaScript | mit | 17,909 |
const middleware = {}
export default middleware
| FoalTS/foal | samples/nuxt.js/backend/.nuxt/middleware.js | JavaScript | mit | 49 |
// Generated by CoffeeScript 1.3.3
(function() {
var nock, should, wd;
wd = require('../common/wd-with-cov');
nock = require('nock');
should = require('should');
describe("wd", function() {
return describe("unit", function() {
return describe("callback tests", function() {
var server;
... | espena/terminal | test/node_modules/testem/examples/saucelabs/node_modules/wd/test/unit/callback-test.js | JavaScript | mit | 2,483 |
'use strict';
const path = require('path');
const webpack = require('webpack');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
module.exports = {
bail : true,
entry : path.join(__dirname, 'src/main/main.js'),
target: 'electron-main',
outp... | my-dish/template-electron | template/webpack.main.config.js | JavaScript | mit | 896 |
//分页插件
/**
2014-08-05 ch
**/
(function($){
var ms = {
init:function(obj,args){
return (function(){
ms.fillHtml(obj,args);
ms.bindEvent(obj,args);
})();
},
//填充html
fillHtml:function(obj,args){
return (function(){
obj.empty();
//上一页
if(args.current > 1){
obj.append('<a href="ja... | 447491480/little-man | public/default/js/vendors/jquery.page/jquery.page.js | JavaScript | mit | 3,004 |
var files = {
"webgl": [
"webgl_animation_cloth",
"webgl_animation_keyframes",
"webgl_animation_skinning_blending",
"webgl_animation_skinning_morph",
"webgl_animation_multiple",
"webgl_camera",
"webgl_camera_array",
"webgl_camera_cinematic",
"webgl_camera_logarithmicdepthbuffer",
"webgl_clipping",
... | easz/rt_geometry | playground/js/three.js-r115/examples/files.js | JavaScript | mit | 10,825 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | widged/SOT-skills-report | electron/lib/react-devtools/blink/Source/devtools/front_end/AuditRules.js | JavaScript | mit | 53,702 |
var optionValueKeyMarkdown = require('../markdown/js/properties/optionValueKey').body;
var optionValueKeyProp = {
nameAttr: "optionValueKey",
renderString: optionValueKeyMarkdown
};
module.exports = optionValueKeyProp;
| cloudability/react-super-select | src_docs/properties/optionValueKey.js | JavaScript | mit | 228 |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
module.exports = function () {
return {
sql: "CREATE TABLE [__types] ([table] T... | mamaso/azure-mobile-apps-node | src/data/sqlite/statements/columns.createTable.js | JavaScript | mit | 367 |
module.exports = {
description: 'auto-indents with indent: true',
options: {
moduleName: 'foo',
indent: true
}
};
| lukeapage/rollup | test/form/indent-true/_config.js | JavaScript | mit | 121 |
TEST('GRAPHICSMAGICK_READ_METADATA', (check) => {
GRAPHICSMAGICK_READ_METADATA('UPPERCASE-CORE/sample.png', (metadata) => {
console.log(metadata);
});
GRAPHICSMAGICK_READ_METADATA('UPPERCASE-CORE/sample.png', {
error : () => {
console.log('ERROR!');
},
success : (metadata) => {
console.log(metadata);... | Hanul/UPPERCASE | node_modules/ubm/node_modules/uppercase-core/TEST/NODE/GRAPHICSMAGICK/GRAPHICSMAGICK_READ_METADATA.js | JavaScript | mit | 334 |
/**
* Created by Pencroff on 04-Sep-16.
*/
window.test = {
id: '384A61CA-DA2E-4FD2-A113-080010D4A42B',
name: 'object literal iteration',
description: 'Performance case for iteration object properties. Comparison for StackOverflow question: How do I loop through or enumerate a JavaScript object? (<a href=... | Pencroff/PerfJS | origin/tests/object-iteration.js | JavaScript | mit | 2,756 |
(function(){
up.Font = Font;
up.Font.NORMAL = "normal";
up.Font.ITALIC = "italic";
up.Font.OBLIQUE = "oblique";
up.Font.BOLD = "bold";
up.Font.SMALL_CAPS = "small-caps";
function Font(_family, _size, _lineHeight, _style, _weight, _variant){
this.family = "Arial";
this.si... | cark1/_up_old | textViewObjects/Font.js | JavaScript | mit | 1,526 |
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['pending-invitation']
});
| blakepettersson/dashboard.aptible.com | app/components/pending-invitation/component.js | JavaScript | mit | 109 |
/* Browser holds the browser main object */
function Browser(container){
this.$container = $(container);
this.ready = false;
this.rows = [];
this.data = Global.data;
this.parser = Global.parser;
this.offline = window.location.hash == '#random' || window.location.hash == '#disney';
this.resizeTimer;
this.scroll... | CrowdTruth/DIVE | web/js/Browser.js | JavaScript | mit | 12,222 |
import React from 'react'
import styles from './weather.less'
function Weather (props) {
const {city, icon, dateTime, temperature, name} = props
return <div className={styles.weather}>
<div className={styles.left}>
<div className={styles.icon} style={{
backgroundImage: `url(${icon})`
}} />
... | liufulin90/react-admin | src/routes/Dashboard/components/weather.js | JavaScript | mit | 561 |
/**
* Copyright 2013 Ionică Bizău
*
* A Node.JS module, which provides an object oriented wrapper for the Youtube v3 API.
* Author: Ionică Bizău <bizauionica@gmail.com>
*
**/
var Util = require("../../util");
function list (options, callback) {
var self = this;
var url = Util.createUrl.apply(self, [... | clarkeadg/piratesails | node_modules/youtube-api/api/v3.0.0/playlists.js | JavaScript | mit | 837 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | imzcy/JavaScriptExecutable | thirdparty/v8/src/test/mjsunit/regress/regress-crbug-350864.js | JavaScript | mit | 1,793 |
module.exports = {
description: 'throw an error when accessing members of null or undefined'
};
| corneliusweig/rollup | test/form/samples/nested-member-access/_config.js | JavaScript | mit | 97 |
var $path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
localBase : $path.resolve(__dirname),
pkg: grunt.file.readJSON('package.json'),
litheConcat : {
options : {
cwd: '<%=localBase%>'
},
publish : {
src : 'public/js/',
dest : 'public/js/dist/',
... | tabspace/vrhd | gruntfile.js | JavaScript | mit | 932 |
flock.synth({
synthDef: {
ugen: "flock.ugen.sin",
freq: {
ugen: "flock.ugen.value",
rate: "audio",
value: 400,
add: {
ugen: "flock.ugen.sin",
freq: {
ugen: "flock.ugen.mouse.cursor",
... | mrtunes/Flocking | demos/playground/demos/fm.js | JavaScript | mit | 668 |
import cn from 'classnames'
import Image from 'next/image'
import Link from 'next/link'
export default function CoverImage({ title, url, slug }) {
const image = (
<Image
width={2000}
height={1000}
alt={`Cover Image for ${title}`}
src={url}
className={cn('shadow-small', {
'ho... | azukaru/next.js | examples/cms-storyblok/components/cover-image.js | JavaScript | mit | 594 |
{
"ALLOWED_FILE_TYPE": "Only following files are allowed : ",
"AUTHORIZATION_REQUIRED": "No estás autorizado para usar el administrador de archivos.",
"DIRECTORY_ALREADY_EXISTS": "La carpeta '%s' ya existe.",
"DIRECTORY_NOT_EXIST": "La carpeta %s no existe.",
"DISALLOWED_FILE_TYPE": "Following f... | zogs/reservem | src/Zogs/UtilsBundle/Resources/public/ckeditor_filemanager/scripts/languages/es.js | JavaScript | mit | 3,219 |
export default function promiseMiddleware() {
return next => action => {
const { promise, type, ...rest } = action;
if (!promise) return next(action);
const SUCCESS = type + '_SUCCESS';
const REQUEST = type + '_REQUEST';
const FAILURE = type + '_FAILURE';
next({ ...rest, type: REQUEST ... | caljrimmer/financial-redux-app | src/common/api/promiseMiddleware.js | JavaScript | mit | 581 |
// These properties are special and can open client libraries to security
// issues
var ignoreProperties = ['__proto__', 'constructor', 'prototype'];
/**
* Returns the value of object `o` at the given `path`.
*
* ####Example:
*
* var obj = {
* comments: [
* { title: 'exciting!', _doc: { ... | RemziDalyan/leonids | node_modules/mpath/lib/index.js | JavaScript | mit | 7,689 |
(function() {
var def,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
def = require('./utils').def;
Object["new"] = function(a) {
var o;
o = {};
a.step(2, function(k, v) {
return o[k] =... | Montana-Studio/StarterDailyMediakit | node_modules/neat/lib/core/types/object.js | JavaScript | mit | 5,319 |
describe('CreateController', function() {
beforeEach(module('mainModule'));
var $scope, $controller, $httpBackend, $state;
beforeEach(inject(function(_$controller_, _$httpBackend_, _$state_) {
$httpBackend = _$httpBackend_;
$state = _$state_;
$scope = {};
$controller = _$co... | Nandtel/GearService | src/test/client/unit/controllers/createControllerSpec.js | JavaScript | mit | 2,215 |
// Generated by CoffeeScript 1.4.0
(function() {
var $, Ajax, Base, Collection, Extend, Include, Model, Queue, Singleton, Spine,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) ... | Luphia/Elucia-storage-supplier | public/lib/spine/ajax.js | JavaScript | mit | 8,846 |
/* *
*
* (c) 2010-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.s... | cdnjs/cdnjs | ajax/libs/highcharts/9.2.2/es-modules/Series/Map/MapSeries.js | JavaScript | mit | 43,828 |
import * as React from 'react';
import { assert } from 'chai';
function assertDOMNode(node) {
// duck typing a DOM node
assert.ok(node.nodeName);
}
/**
* Utility method to make assertions about the ref on an element
* @param {React.ReactElement} element - The element should have a component wrapped
* ... | cdnjs/cdnjs | ajax/libs/material-ui/4.9.7/es/test-utils/testRef.js | JavaScript | mit | 831 |
$(".menu-toggle").click(function(){$("#mobile-navigation").toggleClass("active")}),$(".menu-item-has-children").click(function(){$(this).toggleClass("current-menu-item"),$(".sub-menu").toggleClass("active")}); | NoviumDesign/Grey-Advokatbyr- | wp-content/themes/grey/js/min/navigation-min.js | JavaScript | gpl-2.0 | 209 |
jQuery(document).ready(function($){
//var timings
//var fade_rand
var blocked = false;
var slide_names = "fade_"+fade_rand+"_slide_";
var current_slide = 0;
$(document).oneTime(timings[0],fade_rand+"_timer", function(){
change_slide(null);
});
$("#fade_"+fade_rand+" div.fade_bullets_bullets ul li"... | andrewmanchester2/itsnotadate | wp-content/plugins/wp-jquery-text-and-image-slider/fade-bulleted/fade-bulleted.js | JavaScript | gpl-2.0 | 1,543 |
/*
* This file is part of CDS Invenio.
* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 2009 CERN.
*
* CDS Invenio is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* Licen... | pombredanne/invenio-old | modules/bibedit/lib/bibedit_holdingpen.js | JavaScript | gpl-2.0 | 43,195 |
//require <xatajax.ui.tk.js>
/**
* The ComponentListener interface that should be implemented by any
* object that wishes to register to receive notifications from
* Components when child components are added or removed.
*
* @created Feb. 7, 2011
* @author Steve Hannah <steve@weblite.ca>
*/
(function(){
var C... | shannah/xataface | modules/XataJax/js/xatajax.ui.tk/ComponentListener.js | JavaScript | gpl-2.0 | 2,119 |
/*
* Javascript Humane Dates
* Copyright (c) 2008 Dean Landolt (deanlandolt.com)
* Re-write by Zach Leatherman (zachleat.com)
*
* Adopted from the John Resig's pretty.js
* at http://ejohn.org/blog/javascript-pretty-date
* and henrah's proposed modification
* at http://ejohn.org/blog/javascript-pretty-date/#comm... | josmas/openwonderland | modules/tools/error-report/web/scripts/date.js | JavaScript | gpl-2.0 | 8,838 |
//>>built
define("dojox/widget/nls/hu/FilePicker",({name:"Név",path:"Elérési út",size:"Méret (byte)"}));
| hariomkumarmth/champaranexpress | wp-content/plugins/dojo/dojox/widget/nls/hu/FilePicker.js | JavaScript | gpl-2.0 | 112 |
function act() {
rm.killMonster(6090001);
} | icelemon1314/mapleLemon | scripts/reactors/2119006.js | JavaScript | gpl-2.0 | 49 |
// StickyJS Plugin for jQuery
// =============
// Author: Sebastian Dawidziak <sebastian@dawidziak.eu>
// Created: 6/20/2014
// Version: 0.0.6
(function($) {
"use strict";
var defaults = {
zIndex: null,
stopper: null,
topSpacing: 0,
bottomSpacing: 0,
className: 'is-sticky',
wrapperClassName: 'stic... | tweetgeek/stickyjs | stickyjs.js | JavaScript | gpl-2.0 | 4,998 |
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008
//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) co... | eddylecca/smeagol | themes/igp/js/ddsmoothmenu.js | JavaScript | gpl-2.0 | 8,635 |
// vendor
var React = require('react'),
$ = require('jquery'),
moment = require('moment'),
PouchDB = require('pouchdb'),
ps = require('../../common/js/pubsub'),
cookies = require('../../common/js/cookies');
// pouch plugin
// PouchDB.plugin(require('pouchdb-upsert'));
// components
var Title = req... | dokomo-sauce-matrix/dokomoforms | dokomoforms/static/src/survey/js/Application.js | JavaScript | gpl-3.0 | 47,095 |
// extends src/nodes/image.js which extends src/node-box-native-view.js
$(function(){
Iframework.NativeNodes["image-rectangle"] = Iframework.NativeNodes["image"].extend({
info: {
title: "rectangle",
description: "draw a rectangle"
},
initializeModule: function(){
},
inputrect... | woylaski/notebook | web/iframework-master/src/nodes/image-rectangle.js | JavaScript | gpl-3.0 | 4,701 |
/**
* @preserve This file is part of Mibew Messenger project.
* http://mibew.org
*
* Copyright (c) 2005-2013 Mibew Messenger Community
* License: http://mibew.org/license.php
*/
var FrameUtils = {
getDocument: function(frm) {
if (frm.contentDocument) {
return frm.contentDocument;
} else if (frm.contentWin... | mrtuvn/WRU_Final_Project | js/source/chat.js | JavaScript | gpl-3.0 | 11,369 |
var namespace_py_a_r_t_o_s_1_1_g_u_i_1_1_annotation_dialog =
[
[ "AnnotationDialog", "class_py_a_r_t_o_s_1_1_g_u_i_1_1_annotation_dialog_1_1_annotation_dialog.html", "class_py_a_r_t_o_s_1_1_g_u_i_1_1_annotation_dialog_1_1_annotation_dialog" ]
]; | cvjena/artos | docs/PyARTOS/html/namespace_py_a_r_t_o_s_1_1_g_u_i_1_1_annotation_dialog.js | JavaScript | gpl-3.0 | 249 |
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Tile/WFS.js
* @requires OpenLay... | shamoxiaoniqiu2008/jeecg-framework | src/main/webapp/plug-in/OpenLayers-2.11/lib/OpenLayers/Layer/WFS.js | JavaScript | gpl-3.0 | 21,204 |
// Constructing calls should throw if !callee->isInterpretedConstructor().
// This tests the polymorphic call path.
for (var i=0; i<20; i++)
Function.prototype();
var funs = [
function() { return 1; },
function() { return 2; },
function() { return 3; },
function() { return 4; },
function() { r... | kostaspl/SpiderMonkey38 | js/src/jit-test/tests/baseline/bug892787-2.js | JavaScript | mpl-2.0 | 771 |
'use strict';
var mongoose = require('mongoose');
exports.register = function(server, options, next) {
server.route({
method: 'GET',
path: '/account',
handler: function(request, reply) {
var User = mongoose.model('User');
User.findById(request.auth.credentials.userId, function(err, user) {... | Claw24/tutsoketio | server/web/account/index.js | JavaScript | agpl-3.0 | 581 |
var path = require('path');
module.exports = function(project_dir){
return {
'cordova':
{ 'platform':'*', 'scriptSrc': path.join(project_dir,'cordova','version') },
'cordova-plugman':
{ 'platform':'*', 'currentVersion': require('../../../package.json').version },
'co... | fau-amos-2014-team-2/root | phonegap/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/default-engines.js | JavaScript | agpl-3.0 | 1,948 |
#!/usr/bin/env node
/**
* Build script for /tg/station 13 codebase.
*
* This script uses Juke Build, read the docs here:
* https://github.com/stylemistake/juke-build
*
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/
import fs from 'fs';
import { DreamDaemon, DreamMaker } from './lib/byond.js';
imp... | Citadel-Station-13/Citadel-Station-13 | tools/build/build.js | JavaScript | agpl-3.0 | 7,802 |
var rpc = require('../src/jsonrpc');
/*
Each uses a different syntax
Responses can not be assigned to a source request if the socket version
... it sucks
Moreover jsonrpc2 knows no stream ... it may be helpful, but it is not JSON-RPC2
Michal <misablaha@gmail.com>
*/
/*
Connect to HTTP server
*/
var client = ... | gandalfleal/coin | node_modules/json-rpc2/examples/stream-client.js | JavaScript | agpl-3.0 | 1,279 |
'use strict';
var _ = require('lodash');
module.exports = function calcDelta (oldData, newData) {
var delta = {'delta': true};
var changesFound = false;
// if there's no updates done so far, just return the full set
if (!oldData.sgvs) { return newData; }
function nsArrayTreatments(oldArray, newArray) {
... | ramstrand/cgm-remote-monitor | lib/data/calcdelta.js | JavaScript | agpl-3.0 | 4,119 |
'use strict';
var expect = require('chai').expect;
var bitcore = require('bitcore-lib');
var Message = require('bitcore-message');
var secp256k1 = require('secp256k1');
var KeyPair = require('../../lib/crypto-tools/keypair');
var prvk = '4d548b387bed22aff9ca560416d7b13ecbad16f28bc41ef5acaff3019bfa5134';
var prvk2 = '0... | Storj/core | test/crypto-tools/keypair.unit.js | JavaScript | agpl-3.0 | 3,706 |
var classambhas_1_1stats_1_1SpatOutlier =
[
[ "__init__", "classambhas_1_1stats_1_1SpatOutlier.html#ae600249e9fcbda069e9fbad0ba6983ef", null ],
[ "fill_with_nan", "classambhas_1_1stats_1_1SpatOutlier.html#a826d8579b25e76a53c18617ff226f575", null ],
[ "index", "classambhas_1_1stats_1_1SpatOutlier.html#a4b5bb... | tectronics/ambhas | docs/html/classambhas_1_1stats_1_1SpatOutlier.js | JavaScript | lgpl-2.1 | 563 |
/**
* @class UITile
* @extends UIElement
* 是瓦片游戏地图控件,只需要放一个UITile到场景中,地图自动与场景关联。UITile支持由Map Editor Tiled制作的地图。场景中有多个地图时,可以通过UITile的setEnable函数,或用场景的setMap来设置场景当前的地图。
*
* 注意:
*
* 1.在新建地图时请选择CSV格式作为tile layer format,保存时使用JSON格式保存,图片与数据放在同一目录下。
*
* 2.启用物理引擎的方法:在tiled中新建立一个图层,给图层加几个自定义的属性。physics为true表示启用物理引擎,fri... | drawapp8/cantk | cantk/docs/source/backup/2016_02_29/zh/ui-tile.js | JavaScript | lgpl-2.1 | 1,684 |
define(function (require) {
var bdd = require('intern!bdd');
require('../helpers/test-page');
bdd.describe('Custom Measures Page', function () {
var projectId = 'eb294572-a6a4-43cf-acc2-33c2fe37c02e';
bdd.it('should show list', function () {
return this.remote
.open()
.mockFrom... | abbeyj/sonarqube | server/sonar-web/test/medium/custom-measures.spec.js | JavaScript | lgpl-3.0 | 7,167 |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | kalley/pdf.js | src/display/annotation_helper.js | JavaScript | apache-2.0 | 9,506 |
// Copyright 2016, EMC, Inc.
/* jshint node: true */
'use strict';
describe(require('path').basename(__filename), function() {
var schemaFileName = 'install-esxi.json';
var canonical = {
"osType": "esx",
"profile": "install-esx.ipxe",
"installScript": "esx-ks",
"installScriptU... | nortonluo/on-tasks | spec/lib/task-data/schemas/install-esxi-spec.js | JavaScript | apache-2.0 | 4,856 |
// @flow
import * as React from 'react'
import { shallow } from 'enzyme'
import { SlotMap } from '../SlotMap'
import { Icon } from '../../icons'
describe('SlotMap', () => {
it('component renders 11 slots', () => {
const wrapper = shallow(<SlotMap occupiedSlots={['1']} />)
expect(wrapper.find('rect')).toHav... | Opentrons/labware | components/src/slotmap/__tests__/SlotMap.test.js | JavaScript | apache-2.0 | 1,020 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.6-4-62
description: >
Object.defineProperty - both desc.value and name.value are null
(8.12.9 step 6)
includes: [propertyHelper.js]
---*/
var obj = {};
O... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js | JavaScript | apache-2.0 | 560 |
/*
* Copyright 2016 The Closure Compiler Authors.
*
* 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... | google/closure-compiler-npm | packages/google-closure-compiler/test/fixtures/two.js | JavaScript | apache-2.0 | 839 |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
clean: ['dist'],
ts: {
default : {
options: {
compiler: './node_modules/typescript/bin/tsc',
module: "commonjs",
fast... | aayushkapoor206/whatshot | node_modules/awesome-typescript-loader/Gruntfile.js | JavaScript | apache-2.0 | 2,195 |
puremvc.define({
name: 'game.controller.StartupCommand',
parent: puremvc.MacroCommand
},
// INSTANCE MEMBERS
{
/**
* Add the sub-commands for this MacroCommand
* @override
*/
initializeMacroCommand: function () {
this.addSubCommand( g... | Cenfee/nucleon-cocos | client/Nucleon/src/game/controller/StartupCommand.js | JavaScript | apache-2.0 | 527 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js | JavaScript | apache-2.0 | 2,085 |
import { Rectangle } from "../../Source/Cesium.js";
import { computeFlyToLocationForRectangle } from "../../Source/Cesium.js";
import { Globe } from "../../Source/Cesium.js";
import { SceneMode } from "../../Source/Cesium.js";
import createScene from "../createScene.js";
import { when } from "../../Source/Cesium.js";
i... | progsung/cesium | Specs/Scene/computeFlyToLocationForRectangleSpec.js | JavaScript | apache-2.0 | 5,648 |
define(function(require, exports, module) {
var Notify = require('common/bootstrap-notify');
require("jquery.bootstrap-datetimepicker");
var validator = require('bootstrap.validator');
exports.run = function() {
var now = new Date();
$("#startDate").datetimepicker({
autoclos... | 18826252059/im | web/bundles/topxiaadmin/js/controller/course/live-lesson-search.js | JavaScript | apache-2.0 | 1,840 |
/*
Copyright 2016 Mozilla
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 in writing, software distributed
u... | jsantell/tofino | app/ui/content/sagas/index.js | JavaScript | apache-2.0 | 1,632 |
/**
Copyright 2015 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.
**/
require("./trace_code_entry.js");
'use strict';
global.tr.exportTo('tr.e.importer', function() {
// This code is a tracification of:
// devtools/fron... | zhaoz/lighthouse | lighthouse-core/third_party/traceviewer-js/extras/importer/trace_code_map.js | JavaScript | apache-2.0 | 3,784 |
/**
* for(var p in Script.scripts) {
*
* var script = Script.scripts[p];
* var handle = script.handle;
* var base = script.base;
* var limit = base + script.extent;
*
* print(script+"\n");
*
* for(var i = base; i < limit; i++) {
* var pc = jsd.GetClosestPC(handle,i)
* var has... | racker/omnibus | source/js/jsd/jsdb/f.js | JavaScript | apache-2.0 | 1,043 |
// ------------------------------------------------------------------------------------------
// Copyright 2015 Sitecore Corporation A/S
// 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
//... | Sitecore/SES-7.5 | code/Examples/Sitecore.Ecommerce.WebSite/layouts/Ecommerce/Examples/Check Out Process/jscripts/CheckOut.js | JavaScript | apache-2.0 | 6,911 |
/*
* Copyright 2015 The Closure Compiler Authors.
*
* 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... | superkonduktr/closure-compiler | test/com/google/javascript/jscomp/js/es6/object_test.js | JavaScript | apache-2.0 | 2,754 |
export { default } from 'ember-osf/components/search-facet-source/component';
| binoculars/ember-osf | app/components/search-facet-source/component.js | JavaScript | apache-2.0 | 78 |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... | chaveznvg/amphtml | test/functional/test-dom.js | JavaScript | apache-2.0 | 35,505 |
function Graph() {
this._nodes = {};
this._edges = [];
};
Graph.prototype.setNode = function(id, value) {
this._nodes[id] = value;
};
Graph.prototype.removeNode = function(id) {
var node = this._nodes[id];
for (var i in node._inEdges) {
var edge = node._inEdges[i];
var sourceNode = edge.source.node... | utako/atc | web/public/graph.js | JavaScript | apache-2.0 | 18,105 |
// 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 in writing, software
// distributed un... | Odyl/couchdb | share/www/script/test/purge.js | JavaScript | apache-2.0 | 3,127 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The value of the [[Prototype]] internal slot of the GeneratorFunction
prototype object is the FunctionPrototype intrinsic object.
es6id: 25.2.2.2
---*/
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/expressions/generators/prototype-relation-to-function.js | JavaScript | apache-2.0 | 461 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The String.prototype.toLocaleLowerCase.length property has the attribute
ReadOnly
es5id: 15.5.4.17_A10
description: >
Checking if varying the String.prototype.to... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js | JavaScript | apache-2.0 | 1,443 |
var searchData=
[
['gamepad_20axes',['Gamepad axes',['../group__gamepad__axes.html',1,'']]],
['gamepad_20buttons',['Gamepad buttons',['../group__gamepad__buttons.html',1,'']]]
];
| DweebsUnited/CodeMonkey | resources/glfw3.3/docs/html/search/groups_2.js | JavaScript | bsd-3-clause | 183 |
require('babel/register');
var pm2 = require('pm2');
pm2.connect(function() {
pm2.start({
name: 'server',
script: 'server/server.js',
'exec_mode': 'cluster',
instances: '2',
'max_memory_restart': '900M'
}, function() {
pm2.disconnect();
});
});
| mattkuo/freecodecamp | pm2Start.js | JavaScript | bsd-3-clause | 275 |
var fs = require("fs");
var path = require("path");
var util = require("util");
var cssParse = require("css-parse");
var cssStringify = require("css-stringify");
var parseString = require("plist").parseString;
function parseTheme(themeXml, callback) {
parseString(themeXml, function(_, theme) {
callback(the... | ezoapp/aceeditor | tool/tmtheme.js | JavaScript | bsd-3-clause | 12,884 |
// Copyright 2014 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.
Polymer({
is: 'viewer-error-screen',
properties: {
text: String,
reloadFn: {
type: Object,
value: null,
}
},
show: funct... | Chilledheart/chromium | chrome/browser/resources/pdf/elements/viewer-error-screen/viewer-error-screen.js | JavaScript | bsd-3-clause | 437 |
/* table reflow widget for TableSorter 2/7/2015 (v2.19.0)
* Requires tablesorter v2.8+ and jQuery 1.7+
* Also, this widget requires the following default css (modify as desired)
/ * REQUIRED CSS: change your reflow breakpoint here (35em below) * /
@media ( max-width: 35em ) {
.ui-table-reflow td,
.ui-tab... | herrthiesen/pb-webapp | web/lib/tablesorter-master/js/widgets/widget-reflow.js | JavaScript | mit | 5,344 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
If thisArg is null or undefined, the called function is passed the global
object as the this value
es5id: 15.3.4.4_A3_T9
description: Checking by using eval, argumen... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js | JavaScript | mit | 564 |
'use strict';
/**
* This module contains a variety of generic promise wrapped
`node.child_process.spawn` commands
* @module childProcess
*/
const R = require('ramda');
const Q = require('q');
/** this is not a constant for unit testing purposes */
let spawn = require('child_process').spawn;
const util = require... | rangle/the-clusternator | src/cli-wrappers/child-process.js | JavaScript | mit | 5,520 |
"use strict";
const ICollectionBase = require("./ICollectionBase");
const IGuild = require("./IGuild");
const Utils = require("../core/Utils");
const rest = require("../networking/rest");
/**
* @interface
* @extends ICollectionBase
*/
class IGuildCollection extends ICollectionBase {
constructor(discordie, value... | Gamecloud-Solutions/streambot | node_modules/discordie/lib/interfaces/IGuildCollection.js | JavaScript | mit | 2,152 |
const ButtonBackToTop = FocusComponents.common.button.backToTop.component;
const ButtonBTSample = React.createClass({
/**
* Render the component.
* @return {object} React node
*/
render() {
return (
<div className='button-bt-example'>
<img src="http://lorempixel.... | Ephrame/focus-components | src/common/button/back-to-top/example/index.js | JavaScript | mit | 919 |
'use strict';
module.exports = {
authCheck: require('./authcheck'),
injectScripts: require('./injectscripts'),
debounceName: require('./debounce-name')
};
| nodecg/nodecg | lib/util/index.js | JavaScript | mit | 159 |
/*
Script: Language.it.js
MooTools Filemanager - Language Strings in English
Translation:
Moreno Monga
*/
Filemanager.Language.it = {
more: 'Dettagli',
width: 'Larghezza:',
height: 'Altezza:',
ok: 'Ok',
open: 'Seleziona file',
upload: 'Upload',
create: 'Crea cartella',
createdir: 'Specifica il nome della c... | a7medelgendy/learn-git | themes/admin/javascript/filemanager/language/Language.it.js | JavaScript | mit | 6,669 |
'use strict';
// Setting up route
angular.module('usuarios-mobile').config(['$stateProvider', 'RouteHelpersProvider',
function($stateProvider, helper) {
// Articles state routing
$stateProvider.
state('app.listUsuariosMobile', {
url: '/usuarios-mobile',
title: 'Listar Usuários Mobile',
templateUrl: 'mo... | marcostomazini/unicesumar-marketing | public/modules/usuarios-mobile/config/usuarios-mobile.client.routes.js | JavaScript | mit | 458 |
var searchData=
[
['defaultgaussianmixture',['DefaultGaussianMixture',['../namespaceedda_1_1dist.html#a7ac563ae69a0db2921a59877f32c2846',1,'edda::dist']]],
['devicegmmarray',['DeviceGMMArray',['../namespaceedda.html#adf57cb048134c8ba9b3560698eb45a61',1,'edda']]],
['dword',['DWORD',['../bmp__image_8h.html#af483253... | GRAVITYLab/edda | html/search/typedefs_2.js | JavaScript | mit | 369 |
const config = require('../../../server/config'),
Manager = require('./manager'),
manager = new Manager();
// Responsible for handling requests for sitemap files
module.exports = function handler(siteApp) {
const verifyResourceType = function verifyResourceType(req, res, next) {
if (!Object.prototy... | dingotiles/ghost-for-cloudfoundry | versions/3.3.0/core/frontend/services/sitemap/handler.js | JavaScript | mit | 1,110 |