code stringlengths 2 1.05M |
|---|
var stage = new Kinetic.Stage({
container: 'canvas-container',
width: 450,
height: 350
});
var layer = new Kinetic.Layer();
var stageFrame = new Kinetic.Rect({
// fill: 'green',
stroke: '#000',
strokeWidth: 3,
x: 0,
y: 0,
width: 450,
height: 350
});
var rect = new Kinetic.Rect({... |
//
// AlaSQL node.js sample
//
var alasql = require('alasql');
var db = new alasql.Database();
db.exec('CREATE TABLE test (one INT, two INT)');
db.tables.test.data = [
// You can mix SQL and JavaScript
{one: 3, two: 4},
{one: 5, two: 6},
];
var res = db.exec('SELECT * FROM test ORDER BY two DESC');
console.log(... |
'use strict';
exports.port = process.env.PORT || 9090;
exports.mongodb = {
uri: process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'localhost/dev_lexycross'
};
exports.companyName = 'Athuga';
exports.projectName = 'DEV VERSION || lexyCross';
exports.systemEmail = 'grokcore@gmail.com';
exports.cryptoKey = 'xtcK3Y... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const asyncLib = require("neo-async");
const { AsyncSeriesWaterfallHook, SyncWaterfallHook } = require("tapable");
const ContextModule = require("./ContextModule");
const ModuleFactory = require("./Module... |
require('./staticFilesHandlerSpec');
require('./routerSpec');
require('./redisSpec');
require('./handlerSpec');
|
angular.module('app.history', [
'ui.router',
'app',
'ui.bootstrap'
])
.config(function config($stateProvider) {
$stateProvider.state('history', {
url: '/history',
views: {
"main": {
controller: 'HistoryCtrl',
templa... |
/* @flow weak */
var extend = require('./utils/extend');
var compact = require('./utils/compact');
var merge = require('./utils/merge');
var mixin = require('./utils/mixin');
var inflector = require('./utils/inflector');
var without = require('./utils/without');
var Model = function(attributes, options... |
// Grunt tasks
module.exports = function (grunt) {
'use strict';
// Setup folders name, so if you wnat use a different folder structure, just update this variables
var config = {
dirName: 'assets',
srcName: 'src'
}
// Unified Watch Object asign variables for easy editing
var watchFiles = {
clientJS: ... |
import { connect } from 'react-redux'
import { SetModalState, SetSettings } from '../utils/actions'
const defaultSettings = {
sets: [],
weights: {
trashing: 5,
random: 5,
chaining: 5,
cost_spread: 5,
set_count: 5,
mechanic_count: 5
}
}
const SettingsReducer = (state = defaultSettings, a... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function () {
// Init module configuration options
var applicationModuleName = 'mean';
var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ui.router', 'ui.bootstrap', 'ui.utils'... |
import React from 'react';
class Home extends React.Component {
//Render function
render(){
return(
<div>
<div className="panelH container">
<img src="/imgs/HolmesPanel.jpg" style={{width:'100%'}} className="img-responsive" title="Holmes Panel" alt="Holmes Panel Cons... |
import React from "react";
import { fetchItem } from "./api";
export default class PeoplePopup extends React.Component {
constructor(props) {
super(props);
this.state = {
name: props.name,
gender: props.gender,
height: props.height,
birthYear: props.birthYear,
homeworld: props.homeworld,
specie... |
"use strict";
class _BASIC {
constructor() {
this.leftSign = "+";
this.left = "";
this.operation = "";
this.rightSign = "+";
this.right = "";
}
calc() {
if (this.leftSign === "-") {
this.left = "-" + this.left;
}
if (this.rightSign ... |
var db = require('../../db');
module.exports = {
run: function (videoId, count, cb) {
db.get(videoId, function (err, doc) {
if (err) return cb(err);
doc.watchCount = doc.watchCount || 0;
doc.watchCount += count;
db.insert(doc, videoId, function (err, doc) {
if (err) return cb(err);
return cb... |
/* parser generated by jison 0.4.17 */
/*
Returns a Parser object of the following structure:
Parser: {
yy: {}
}
Parser.prototype: {
yy: {},
trace: function(),
symbols_: {associative list: name ==> number},
terminals_: {associative list: number ==> name},
productions_: [...],
perfo... |
describe('db-init tests', function(){
var should = require('should'),
p = require('../index.js'),
actualIndexes = [{
name: 'shouldbedropped'
},
{
name: '_id'
}],
ensuredIndexes = [],
droppedIndexes = [],
connectOptions,
plug... |
'use strict';
const inits = require('inits')
const log = require('../lib/log.js')
const orchestrator = require('../lib/orchestrator.js')
const orchestrateEverySec = 60;
inits.log = log;
inits.standalone(start)
function start()
{
orchestrator.orchestrate();
setInterval(orchestrator.orchestrate, orchestrateEverySe... |
'use strict';
var Reflux = require("reflux");
var Actions = require("../actions/MessagesActions.js");
var MessageActions = Actions.MessageActions;
var stompClient = null;
var localStorageKey = "messages";
var MessageStore = Reflux.createStore({
wsConnector: null,
listen... |
"use_strict";
var GL = module.exports;
GL.blockable_keys = {"Up":true,"Down":true,"Left":true,"Right":true};
//some consts
GL.LEFT_MOUSE_BUTTON = 1;
GL.RIGHT_MOUSE_BUTTON = 3;
GL.MIDDLE_MOUSE_BUTTON = 2;
GL.last_context_id = 0;
//Define WEBCONSTANTS ENUMS as statics
//sometimes I need some gl enums befor... |
var searchData=
[
['statistics_220',['Statistics',['../class_n_a_t_s_1_1_client_1_1_statistics.html',1,'NATS::Client']]],
['subscription_221',['Subscription',['../class_n_a_t_s_1_1_client_1_1_subscription.html',1,'NATS::Client']]],
['syncsubscription_222',['SyncSubscription',['../class_n_a_t_s_1_1_client_1_1_sync... |
import Ember from 'ember';
import DS from 'ember-data';
import { task } from 'ember-concurrency';
const { inject, Component, isPresent, computed, RSVP, isEmpty } = Ember;
const { PromiseArray } = DS;
const { service } = inject;
export default Component.extend({
i18n: service(),
store: service(),
classNames: ['c... |
const SHADERS = require('../chunks/index.js')
module.exports = /* glsl */ `
// based on Bokeh depth of field in a single pass
// http://blog.tuxedolabs.com/2018/05/04/bokeh-depth-of-field-in-single-pass.html
precision highp float;
varying vec2 vTexCoord0;
uniform sampler2D image; //Image to be processed
uniform vec2 i... |
const CompilerPassInterface = Jymfony.Component.DependencyInjection.Compiler.CompilerPassInterface;
const Reference = Jymfony.Component.DependencyInjection.Reference;
/**
* @memberOf Jymfony.FrameworkBundle.DependencyInjection.Compiler
*/
export default class TestServiceContainerRealRefPass extends implementationOf(... |
#!/usr/bin/env node
/**
* Based on `create-react-app`
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// create-expressful-app is installed globally on people's ... |
/**
* Validation rules for successive melodic intervals.
* @method validateSMI
* @param {String} notes
* @return {Boolean} true or false
*/
function validateSMI(notes) {
if (notes.length == 1) return true;
var sorted = sortNotes();
if (checkRepeats() && checkSpan() && checkDirections() &&
check... |
// spec {collider: {x: --, y: --, width: --, height: --}. colors: {color: --, darkColor: --}}
panorama.Subject = function (spec) {
'use strict';
// +Public Attributes
this.colors = spec.colors;
this.collider = spec.collider; // Origin at top-left coordinate of the base
this.displacement = {x: 0, y: ... |
var inventory = window.inventoryService;
function startListenToSocket() {
inventory.init(global.config.locale);
console.log("Connecting to " + global.config.websocket);
listenToWebSocket();
}
function listenToWebSocket() {
var pkmSettings = localStorage.getItem("pokemonSettings");
if (pkmSettings)... |
"use strict";
var AMPERSAND = '&';
var AMPERSAND_EQUAL = '&=';
var AND = '&&';
var ARROW = '=>';
var AT = '@';
var BACK_QUOTE = '`';
var BANG = '!';
var BAR = '|';
var BAR_EQUAL = '|=';
var BREAK = 'break';
var CARET = '^';
var CARET_EQUAL = '^=';
var CASE = 'case';
var CATCH = 'catch';
var CLASS = 'class';
var CLOSE_A... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('zenith', [
'ngRoute',
'zenith.login',
'zenith.list-of-rooms',
'zenith.room',
'zenith.version'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/login'}... |
import {setWorldConstructor, When} from 'cucumber';
import {World} from '../support/world';
setWorldConstructor(World);
When(/^a request is made to "([^"]*)"$/, function (path, callback) {
this.makeRequestTo(path, callback);
});
|
/*jslint onevar: true, undef: false, nomen: true, eqeqeq: true, plusplus: false, bitwise: true, regexp: true, newcap: true, immed: true */
/**
* Game of Life - JS & CSS
* http://pmav.eu
* 04/Sep/2010
*/
(function () {
var stats = new Stats();
stats.setMode( 0 ); // 0 FPS, 1 MS
// align top-l... |
let Instruction = require('./Instruction');
let drawImage = (...args) => {
let [img, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight] = args;
if (args.length === 9) {
return new Instruction('drawImageSource', {
img,
sx,
sy,
sWidth,
sHeight,
dx,
dy,
dWidth,
... |
import {React} from "globals/react";
import {Router} from "globals/react-router"
import {Link} from "globals/react-router";
import {Post} from "ajax";
var i18n = {
VerifiedAccountText: {
en: "Your account has been verified.",
pt: "A sua conta foi verificada."
}
}
export var ConfirmAccount = Re... |
const test = require('ava')
const clone = require('./clone')
test('Signle-depth objects', t => {
const obj = {
prop: 'value',
}
t.not(obj, clone(obj))
})
test('Multiple-depth objects', t => {
const obj = {
prop: {
anotherProp: 'someValue',
},
prop2: {
a: {
b: 123,
},... |
const assert = require("assert");
const MarioChar = require("../models/mariochar");
// Describe tests
describe("Saving records", function(){
// Create tests
it("saves a record to the database", function(done){
var char = new MarioChar({
name: "Mario"
});
char.save().then(function(){
assert... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Sources and Dest directories
dirs : {
js : {
src : 'src/public/js',
dist : 'dist/public/js',
},
css : {
src : 'src/public/less',
... |
import {
getAlpha2Code,
getName,
getNames,
getAlpha2Codes,
} from 'ember-i18n-iso-countries';
import { module, test } from 'qunit';
module('Unit | EN | ember-i18n-iso-countries', function() {
const lang = "en";
test('get Alpha-2 code', function(assert) {
assert.equal(getAlpha2Code("United States", lan... |
{
if (props.x === 46) {
return React.createElement(AbstractButton3, {
x: 45
});
}
if (props.x === 150) {
return React.createElement(AbstractButton3, {
x: 149
});
}
}
|
// jscs:disable disallowDanglingUnderscores
'use strict';
var _ = require('lodash');
module.exports = function (iterable, keywords) {
var result, start, attribute;
if (keywords && keywords.__keywords === true) {
//if they've given us a keyword (mimicking jinja)
attribute = keywords.attribute;
start =... |
'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');
var ProviderGenerator = module.exports = function ProviderGenerator(args, options, config) {
// By calling `NamedBase` here, we get the argument to the subgenerator call
// as `this.name`.
if (typeof args[0] === 'undefined'... |
Ext.define('App.view.master.location.ListCities', {
extend: 'Ext.grid.Panel',
alias: 'widget.listcitiesGP',
emptyText: 'No Have Cities',
requires: [
'App.form.combobox.cbProvinces'
],
store: 'App.store.Cities',
columns: [
{
xtype: 'rownumberer',
flex:... |
var lib1 = require("TestLib");
function t2(source) {
return "lib2" + lib1.t1(source) ;
}
exports.t2 = t2;
|
"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 ("v... |
'use strict';
/* jshint node:true */
var fs = require('fs');
var http = require('http');
var express = require('express');
var httpProxy = require('http-proxy');
// Create server
var app = express();
var server = http.createServer(app);
var oneDay = 24*60*60*1000;
app.use('/lbcd/app', express.static(__dirname + '/lb... |
(function (webgl) {
var noiseTextureSize = 64;
var CHANGE_STATE = {
NOTHING_CHANGED : 0,
TYPE_STRUCTURE_CHANGED : 1,
TYPE_DATA_CHANGED : 2,
TYPE_CHANGED: 3,
ATTRIBUTE_STRUCTURE_CHANGED : 8,
ATTRIBUTE_DATA_CHANGED : 16,
ATTRIBUTE_CHANGED: 24
};
va... |
/**
* @author Fabrice Sommavilla <fs@physalix.com>
* @company Physalix
* @version 0.1
* @date 22/01/2017
*/
"use strict";
import React, {Component} from 'react';
import auth from '../utils/auth'
import 'whatwg-fetch';
export default class Dashboard extends Component {
/**
* Default constructo... |
document.addEventListener('DOMContentLoaded', function() {
var submitButton = document.getElementById('submit');
submitButton.addEventListener('click', function() {
var templateField = document.getElementById('template');
var config = {template: templateField.value};
chrome.tabs.executeS... |
{
let _functionSent = yield;
const a = _functionSent;
const b = _functionSent;
_functionSent = yield 4;
const c = _functionSent;
const d = _functionSent = yield;
const e = _functionSent;
return [a, b, c, d, e];
} |
var save_method; //for save method string
var table;
$(document).ready(function() {
$(".select2").select2();
//datatables
table = $('#table').DataTable({
"processing": true, //Feature control the processing indicator.
"serverSide": true, //Feature control DataTables' server-side processing... |
module.exports = {
extends: [
'@sweetalert2/eslint-config',
'plugin:no-unsanitized/DOM'
],
rules: {
'import/extensions': ['error', 'always'],
}
}
|
// The Module object: Our interface to the outside world. We import
// and export values on it. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. Exter... |
import nativeMax from '../native/nativeMax'
import count from '../count'
import baseIndexOfWith from './baseIndexOf'
export default function baseIncludesWith(indexed, value, comparator, fromIndex) {
const length = count(indexed)
if (fromIndex < 0) {
fromIndex = nativeMax(length + fromIndex, 0)
}
return bas... |
(function($) {
"use strict";
/**
* jacksonmartinez skin implementation for the playerseasontable module.
*
* @author Daniel Fernandes <daniel.fernandes@namics.com>
* @namespace Tc.Module.Playerseasontable
* @class Jacksonmartinez
* @extends Tc.Module
*/
Tc.Module.Playerseasontable.Jacksonmartinez = fun... |
module.exports = {
context: {
ariaLabel: 'Average rating: 72%',
title: 'Average rating: 72%',
star: {
attributes: 'style="width: 72%"'
}
},
variants: [
{
name: 'rate',
context: {
script: true,
star: {
attributes: ''
},
rateItems: [
... |
/*
* grunt-screenshot-compare
* https://github.com/bjfletcher/grunt-screenshot-compare
*
* Copyright (c) 2014 Ben Fletcher
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
grunt.loadTasks('tasks');
grunt.registerTask('test', ['screenshot-compare', 'screenshot-compar... |
'use strict'
module.exports = require('./src/pug')
|
// @flow
import React from 'react';
import { assert } from 'chai';
import { createShallow, getClasses } from '../test-utils';
import SvgIcon from './SvgIcon';
describe('<SvgIcon />', () => {
let shallow;
let classes;
let path;
before(() => {
shallow = createShallow({ dive: true });
classes = getClass... |
// Palette's specially-named colors:
const named = {
antiFlashWhite: "#f1f2f6",
bayWharf: "#747d8c",
brightGreek: "#3742fa",
bruschettaTomato: "#ff6348",
cityLights: "#dfe4ea",
clearChill: "#1e90ff",
coral: "#ff7f50",
frenchSkyBlue: "#70a1ff",
goldenSand: "#eccc68",
grisaille: "#57606f",
limeSoap:... |
import React from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import Modal from 'react-modal';
import Debug from 'debug';
import GalleryItem from './GalleryItem';
var debug = Debug('Gallery');
let photos = localStorage.getItem('photos') || '[]';
class Gallery extends React.Component {
cons... |
var directive = require('./directive');
module.exports = angular.module('app.components.quiz.numeric', [])
.directive("appStudentNumeric", directive)
|
'use strict';
/**
* Overall settings
* @return {[string,string,string,string,string,string,string]}
*/
function header() {
return [
'strict digraph {',
'graph [fontname = "helvetica" size=20]',
/*compound=true;*/
'concentrate=true;',
'rankdir=LR;',
'ranksep="4 equally·";',
'node [styl... |
import React from "react";
import { shallow } from "enzyme";
import { fromJS } from "immutable";
import MultipleChoiceAnswer, { Choice } from "../../../js/components/dashboard/multiple-choice-answer";
describe("<MultipleChoiceAnswer />", () => {
describe("when showFullAnswer prop is false and selected answer is corr... |
/**
* INSPINIA - Responsive Admin Theme
* 2.5
*
* Custom scripts
*/
angular.element(document).ready(function ($timeout) {
// Full height of sidebar
function fix_height() {
var heightWithoutNavbar = angular.element("body > #wrapper").height() - 61;
angular.element(".sidebard-panel").css("min-height",... |
export const u1F194 = {"viewBox":"0 0 2600 2760.837","children":[{"name":"path","attribs":{"d":"M2222 393q45 0 78 32.5t33 79.5v1845q0 47-33 79t-78 32H377q-45 0-78-33t-33-78V505q0-45 33-78.5t78-33.5h1845zm33 112q0-14-9.5-24t-23.5-10H377q-14 0-23.5 10t-9.5 24v1845q0 13 9.5 22.5t23.5 9.5h1845q14 0 23.5-9.5t9.5-22.5V505zm-... |
var darkSkyConstants = require("./constants");
var makeRequest = require("../../modules/http/index").makeRequest;
var param = require("jquery-param");
function makeDarkSkyRequest (path, coords, queryParams, successCallback, errorCallback) {
var baseUrl = "api.darksky.net";
var path = path + "/" + darkSkyConstants.... |
'use strict';
var React = require('react');
var classNames = require('classnames');
var assign = require('object-assign');
var ClassNameMixin = require('./mixins/ClassNameMixin');
var ListItem = React.createClass({
mixins: [ClassNameMixin],
propTypes: {
href: React.PropTypes.string,
truncate: React.PropT... |
/**
* mixin authorization
*
* Copyright 2012 Cloud9 IDE, Inc.
*
* This product includes software developed by
* Cloud9 IDE, Inc (http://c9.io).
*
* Author: Mike de Boer <info@mikedeboer.nl>
**/
"use strict";
var error = require("./../../error");
var Util = require("./../../util");
var authorization = m... |
describe('ActionCreator', () => {
const ActionCreatorInjector = require('inject!../src/ActionCreator');
let Constants, Dispatcher, ActionCreator;
beforeEach(() => {
Constants = jasmine.createSpyObj('Constants', ['']);
Dispatcher = jasmine.createSpyObj('Dispatcher', ['dispatch']);
});
beforeEach(()... |
import moment from 'moment'
import { merge } from 'lodash'
export function humanTimestamp():string {
return moment().format()
}
// MongoDB ObjectID-like timestamp Uuid, e.g 507f1f77bcf86cd799439011
export function timeUuid():string {
const timestamp = (new Date().getTime() / 1000 | 0).toString(16)
ret... |
var buildRequest = require("../lib/build-request.js");
var findSynonyms = require("../lib/find-synonyms.js");
var expectMatch = function(phrase, expectedMatch){
var request = buildRequest(phrase);
result = findSynonyms(request);
expect(result).to.include(expectedMatch);
};
describe("find-synonyms", function(){
... |
'use strict';
/* Services */
var phonecatServices = angular.module('phonecatServices', ['ngResource']);
function formatDate(d){
return (!d || d == 'NA') ? '(不明)' : (d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + (d.getDate()+1) + '日');
}
phonecatServices.factory('Phone', ['$resource',
function($resource){
... |
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { createMiddleware } from 'zan-shuai'
import { createLogger } from 'redux-logger'
import Perf from 'react-addons-perf';
import { composeWithDevTools } from 'redux... |
/* globals describe it expect */
import React from 'react'
import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import StandardsRow from 'components/standards/standards-row'
import { pack } from "../../helpers/pack"
Enzyme.configure({adapter: new Adapter()})
const text = "this is a long string of... |
// собираем хранилище
_mvc = mvc._mvc = /* backdoor */ {
prop : new Neimenggu( mvcProp ),
module: new Neimenggu( mvcModule ),
set : new Neimenggu( mvcSet ),
slot : new Neimenggu( mvcSlot ),
block : new Neimenggu( mvcBlock ),
obj : new Neimenggu( mvcObj ),
view :... |
'use strict';
// Setting up route
angular.module('outlets').config(['$stateProvider',
function($stateProvider) {
// Outlets state routing
$stateProvider.
state('listOutlets', {
url: '/stores/:storeId/outlets',
templateUrl: 'modules/stores/views/list-outlets.client.view.html'
}).
state('createOutlet', ... |
'use strict';
describe('Controller: LoginCtrl', function () {
// load the controller's module
beforeEach(module('pocketFeederApp'));
var LoginCtrl, scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
LoginCtrl = $co... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Answerset = mongoose.model('Answerset'),
_ = require('lodash');
/**
* Create a Answerset
*/
exports.create = function(req, res) {
var answerset = new Answerset(req.body);
answ... |
'use strict';
var express = require('express'),
router = express.Router(),
roomsController = require('../app/controllers/rooms.controller'),
slackController = require('../app/controllers/slack.controller');
/** Slack will POST to one end point */
router.post('/scheduler', slackController.delegate);
route... |
(function(addon) {
var component;
if (window.UIkit2) {
component = addon(UIkit2);
}
if (typeof define == 'function' && define.amd) {
define('uikit-grid', ['uikit'], function(){
return component || addon(UIkit2);
});
}
})(function(UI){
"use strict";
U... |
!function () {
var app = angular.module("c4iapp");
app.service("navTextUpdater", ["$log", function ($log) {
var priv_callback;
this.update = function (callback) {
priv_callback = callback;
}
this.set = function (message) {
priv_callback(message);
... |
// Generated by LiveScript 1.3.1
(function($, window, document){
'use strict';
var pluginName, defaults, Animation;
pluginName = "Animation";
defaults = {
offset: 500,
offsetClass: '.offcanvas__content'
};
Animation = (function(){
Animation.displayName = 'Animation';
var prototype = Animatio... |
import * as React from "react";
console.log(React.createElement("div"));
|
import XHR_HEADERS from './xhr/headers';
import AUTHORIZATION from './xhr/authorization';
import * as urlUtils from '../utils/url';
import { parse as parseUrl, resolve as resolveUrl } from 'url';
// Skipping transform
function skip () {
return void 0;
}
function isCrossDomainXhrWithoutCredentials (ctx) {
retu... |
/* */
(function(Buffer) {
module.exports = {
read: read,
verify: verify,
sign: sign,
write: write
};
var assert = require('assert-plus');
var asn1 = require('asn1');
var algs = require('../algs');
var utils = require('../utils');
var Key = require('../key');
var PrivateKey = require('..... |
cordova.define("cordova-plugin-iziggi.iziggi", function(require, exports, module) {
var exec = require('cordova/exec');
var channel = require('cordova/channel');
module.exports = {
_channels: {},
createEvent: function(type, data) {
var event = document.createEvent('Event');
event.initEvent(typ... |
game.TitleScreen = me.ScreenObject.extend({
/**
* action to perform on state change
**/
onResetEvent: function() {
me.game.world.addChild(new me.Sprite(0, 0, me.loader.getImage("title-screen")), -10); // TODO
me.game.world.addChild(new (me.Renderable.extend({
... |
/*
Airtight Utilities
v 0.1.0
*/
ATUtil = {
randomRange : function(min, max) {
return min + Math.random() * (max - min);
},
randomInt : function(min,max){
return Math.floor(min + Math.random() * (max - min + 1));
},
map : function(value, min1, max1, min2, max2) {
return ATUtil.lerp( ATUtil.norm(value, min1,... |
/**
* Create a Relay Modern-compatible subscription handler.
*
* @param {ActionCable.Consumer} cable - An ActionCable consumer from `.createConsumer`
* @param {OperationStoreClient} operations - A generated OperationStoreClient for graphql-pro's OperationStore
* @return {Function}
*/
function createActionCableHand... |
var m = require('mithril');
var partial = require('chessground').util.partial;
var util = require('./util');
var status = require('game').status;
function result(win, stat) {
switch (win) {
case true:
return '1';
case false:
return '0';
default:
return stat >= status.ids.mate ? '½' : '*... |
import React, { Component } from 'react';
import Immutable from 'immutable';
import { Input } from 'react-bootstrap';
import Typeahead from 'react-bootstrap-typeahead';
import GameDisplayContainer from '../containers/GameDisplayContainer';
export default class GameSetup extends Component {
constructor(props, context... |
window.$ = window.$ || {}, function() {
$ && $.fn && $.fn.select2 && $.fn.select2.amd && (define = $.fn.select2.amd.define, require = $.fn.select2.amd.require), define("select2/i18n/th", [], function() {
return{
inputTooLong: function(e) {
var t = e.input.length - e.maximum,... |
/*
* JavaScript dataURLtoBlob 1.0
* https://github.com/rgeraldporter/canvas-polyfill-DataURLtoBlob
*
* Copyright 2012, Robert Gerald Porter
*
* Based on: JavaScript Canvas to Blob 2.0.3, Copyright 2012, Sebastian Tschan, licensed under MIT;
* and: canvasResize 1.0.0, by @gokercebeci, also licensed under MIT.
... |
var finalhandler = require('finalhandler')
var http = require('http')
var serveStatic = require('serve-static')
// Serve up public/ftp folder
var serve = serveStatic('public/ftp', {'index': ['index.html', 'index.htm']})
module.exports = function onRequest (req, res) {
serve(req, res, finalhandler(req, res))
} |
import createjs from 'createjs-combined';
class SolidCircle extends createjs.Shape {
constructor(props = {}) {
super();
this.set(props);
const { fill = 'gray', radius = 50 } = props;
this.graphics
.beginFill(fill)
.drawCircle(0, 0, radius);
}
}
export default SolidCircle; |
(function() {
'use strict';
angular.module('journal.component.userProfile')
.controller('UserProfileController', ['$modal', '$stateParams', 'AuthService', 'ToastrService', 'UserProfileService', 'CONFIG', UserProfileController]);
function UserProfileController($modal, $stateParams, AuthService, Toa... |
var validate_form = true;
var proceed_to_next = false;
var lesson_assets;
var lesson_assets_index = 0;
function load_skit_data(skitid) {
show_js_loader(true);
$.ajax({
url: full_path + "/ajax-get-skit-data",
type: "post",
data: {
skit_id: skitid
},
dataType... |
define(function (require, exports, module) {
'use strict';
/*global tinymce:true */
tinymce.PluginManager.add('pagebreak', function (editor) {
var separatorHtml = '<!--17173PAGE-->',
separatorRegExp = /<!\-\-17173PAGE\-\->/ig,
placeholderHtml = '<p>' +
'<img' +
' src="' + tinymce.E... |
'use strict';
var _ = require('lodash');
var async = require('async');
var path = require('path');
var stream = require('stream');
var cryptoLib = require('crypto');
var streamBuffers = require('stream-buffers');
var Drive = require('./gdrive/gdriveModule.js');
var Local = require('./local/localModule.js');
var crypto... |
class search_commandcreator_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
G... |
function debug(data) {
self.postMessage({type: 'debug', data: data})
}
Error.stackTraceLimit = 200;
var Module = {};
Module.TOTAL_MEMORY = 128 * 1024 * 1024;
Module.noFSInit = true;
Module.noExitRuntime = true;
function stdin() {
return null;
}
function stdout(x) {
self.postMessage({type: 'stdout', data: x})... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.