code stringlengths 2 1.05M |
|---|
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BOARD_DIR: 13,
... |
import endOfWeek from '../endOfWeek/index.js'
/**
* @name endOfISOWeek
* @category ISO Week Helpers
* @summary Return the end of an ISO week for the given date.
*
* @description
* Return the end of an ISO week for the given date.
* The result will be in the local timezone.
*
* ISO week-numbering year: http://... |
import { collection, clickable, create, isVisible, text } from 'ember-cli-page-object';
import editor from './competency-title-editor';
import newCompetency from './new-competency';
const definition = {
scope: '[data-test-school-competencies-manager]',
domains: collection('[data-test-domain]', {
details: {
... |
export { default } from 'ember-data-endpoints/serializer';
|
import EmberObject from '@ember/object';
import fetch from 'fetch';
import { assign } from '@ember/polyfills';
import { Promise, reject, resolve } from 'rsvp';
import { isEmpty } from '@ember/utils';
import Base from 'ember-simple-auth/authenticators/base';
import config from 'ember-get-config';
/**
Authenticator th... |
import React from 'react';
import store from '../../../store/index.js';
import img from '../../../constants/images.js';
import styles from '../../../styles/index.js';
import commonMessages from '../../../translations/common.js';
function onClickHome() {
store.dispatch({ type: (state) => ({
...state,
sidebarH... |
import config from "../config";
import * as Kit from "../kit";
import * as Scope from "../scope";
import * as Operations from "../operations";
import * as Optimization from "../optimization";
import * as CFG from "../cfg";
import * as Emit from "../emit";
import * as Meta from "../meta";
import * as Eval from "../eval"... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import uuid from 'node-uuid'
import {createSelector} from 'reselect'
import {bindDispatch} from '../common/util/redux'
import { browserHistory } from 'react-router';
export default class ChatTextBox extends React.Component {
render() {... |
/*!
* Expose `RemoteObjects`.
*/
module.exports = RemoteObjects;
/*!
* Module dependencies.
*/
var EventEmitter = require('eventemitter2').EventEmitter2;
var debug = require('debug')('strong-remoting:remotes');
var util = require('util');
var urlUtil = require('url');
var inherits = util.inherits;
var assert = r... |
function recusar(name)
{
var dados= document.getElementById('tabela'+name);
var ref ='ref'+name;
var href = document.getElementById(ref).getAttribute("href");
var target = document.getElementById(ref).getAttribute("target");
var text = document.getElementById(ref).innerHTML;
$('#tabela3 > tbody:last-child')... |
import React from 'react'
import Moment from 'moment'
import update from 'immutability-helper';
import cloneDeep from "lodash/cloneDeep";
import map from 'lodash/map';
import reduce from 'lodash/reduce';
import ReactMarkdown from 'react-markdown'
import popcount from '@f/... |
/*!
* numeral.js language configuration
* language : spanish
* author : Hernan Garcia : https://github.com/hgarcia
*/
(function () {
var language = {
delimiters: {
thousands: '.',
decimal: ','
},
abbreviations: {
thousand: 'k',
million: 'mm',
billion: 'b',
trillion... |
var config = {
start: 'gulp',
jarVersion: "2.3.23"
};
module.exports = config; |
/** @jsx React.DOM */
'use strict';
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this ... |
'use strict';
angular.module('core').controller('ReviewController', ['$scope',
function() {
this.review = [];
this.addReview = function(product) {
product.reviews.push(this.review);
this.review = [];
};
}
]); |
import { assign } from 'lodash';
import { toQueryString } from '../helpers';
import googleCSE from '../apis/google_cse';
import httpLoader from './http';
const {
GOOGLE_CSE_KEY,
GOOGLE_CSE_CX,
} = process.env;
export const googleCSELoader = httpLoader(googleCSE);
export default (options = {}) => {
const querySt... |
(function() {
var Parser, X2JS, _, entities, sax;
_ = require('underscore');
sax = require('sax');
X2JS = require('x2js');
entities = require('entities');
Parser = (function() {
function Parser(options) {
if (options == null) {
options = {};
}
this.parser = null;
thi... |
import Ember from 'ember';
export function initialize(/* container, application */) {
['Checkbox', 'Component', 'TextArea', 'TextField'].forEach(function(instanceName) {
Ember[instanceName].reopen({
attributeBindings: ['dataTest:data-test'],
dataTest: null,
});
});
}
export default {
name:... |
$(function() {
var TestModel = Uppercut.Model.derive({
init: function (data) {
this.id = data.id;
this.name = data.name;
}
});
test('Collection.append', function () {
var collection = new Uppercut.Collection();
var a1 = [
... |
var PaneShowRequests = function() {
this.$container = $('#PaneShowRequests');
this.apiBridge = new ApiBridge();
this.preview = new UiPreview(); // The preview window object
this.bindEvents();
};
// Draw pane
PaneShowRequests.prototype.draw = function() {
var that = this;
// Remove old content in order to a... |
module.exports = getName;
var FUNCTION_NAME = /function\s+([^\s(]+)/;
/**
* Get the name of a function (e.g. constructor)
* @param {Function} f
* @return {String} The function name.
*/
function getName(f)
{
var name = '';
if (f instanceof Function) {
if (f.name) {
return f.name;
}
var matc... |
var fs = require('fs');
var path = require('path');
var utils = require('../utils');
var runBinary = require('./run-binary');
var mypkg = require(path.join(__dirname, '..', '..', 'package.json'));
module.exports = function(folder, opts) {
return utils.mkdirp(folder)
.then(function(folderPath) {
var folderM... |
/**
*@Author: chad.ding
*@Date: 2017-06-21 17:40:41
*/
import { GET_DOMAIN_LIST } from '../../consts/action';
export default function domainReducer(state = { domainList: [], fetched: false }, action) {
switch (action.type) {
case GET_DOMAIN_LIST:
return Object.assign({}, state, { domainList... |
'use strict';
/**
* @ngdoc filter
* @name djangoBulstradApp.filter:propFilter
* @function
* @description
* # propFilter
* Filter in the djangoBulstradApp.
*/
angular.module('djangoBulstradApp')
.filter('propFilter', function () {
return function(items, props) {
var out = [];
if (angular.isArr... |
process.env.NODE_ENV = 'development';
const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const { blue, underline } = require('chalk');
const exceptionFormatter = require('exception-formatter');
const { checkHosts, getAppHosts } = require('../lib/hosts');
const allocatePort = r... |
/**
* Each instance of events stream subscribes to the /_events/ endpoint of GraphIT
* Filters can be applied to each stream and events are emitted.
* The GraphIT connection does not keep hold of these eventstreams, the consumer does.
* The streams are clever enough to keep track of their position and reconnect... |
var expect = require('chai').expect;
var BackChannel = require('../../dist-lib/backchannel');
var EventEmitter = require('events').EventEmitter;
var sinon = require('sinon');
var common = require('../../dist-lib/common');
var ObjectId = require('mongoose').Types.ObjectId;
describe('BackChannel', function() {
descri... |
import Icon from '../../components/Icon.vue'
Icon.register({
'brands/stackpath': {
width: 448,
height: 512,
paths: [
{
d: 'M244.6 232.4c0 8.5-4.3 20.5-21.3 20.5h-19.6v-41.5h19.6c17.1 0 21.3 12.4 21.3 21zM448 32v448h-448v-448h448zM151.3 287.8c0-21.2-12.1-34.5-46.7-44.8-20.6-7.4-26-10.9-26-18... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'ku', {
options: 'هەڵبژاردەی نووسەی تایبەتی',
title: 'هەڵبژاردنی نووسەی تایبەتی',
toolbar: 'دانانی نووسەی... |
/** @constructor */
ScalaJS.c.scala_scalajs_js_Dynamic$ = (function() {
ScalaJS.c.java_lang_Object.call(this)
});
ScalaJS.c.scala_scalajs_js_Dynamic$.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_scalajs_js_Dynamic$.prototype.constructor = ScalaJS.c.scala_scalajs_js_Dynamic$;
ScalaJS.c.scala... |
var assert = require("assert");
var path = require('path');
var fis = require('fis');
var fs = require('fs');
var path = require('path');
var tmp = require('tmp');
// 标记是否要输出 coverage
var coverage = !!process.env.istanbul;
// 因为 istanbul 不支持 chid_progress
// 所以现在的处理办法是正如这里面说的:
// https://github.com/gotwarlost/istanbul/... |
/**
* @param {number[]} nums
* @param {number} k
* @return {void} Do not return anything, modify nums in-place instead.
*/
var rotate = function(nums, k) {
nums.splice(nums.length - k, k).reverse().forEach(function(val) {nums.unshift(val)});
};
|
'use strict';
module.exports = {
conditions: [''],
name: 'FunctionStatementList',
rules: ['StatementList_Return'],
handlers: ['$$ = $1'],
subRules: [require('./StatementList_Return')]
}; |
(function() {
var IABVerifier,
crypto = require('crypto'),
algorithm = 'RSA-SHA1';
IABVerifier = (function() {
function IABVerifier(publicKeyString) {
this.publicKeyString = generateFormattedPublickey(publicKeyString)
};
// gotta give credit to nothing2lose for this functio... |
var passify = require('../index');
var myPassword = passify.create();
passify.hash(myPassword, function(err, hash) {
console.log(hash);
});
|
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示***************... |
import * as mathUtil from './math/math_util.js';
import { Rect } from './math/rect.js';
import { Vec2 } from './math/vec2.js';
/**
* Class for rendering and interacting with UI elements on a canvas.
* @constructor
*/
const CanvasUI = function(options) {
this.clear();
};
/**
* Update UI element state and anim... |
var fs = require('fs'),
colors = require('colors'),
program = require('commander'),
prompt = require('prompt'),
async = require('async'),
Table = require('cli-table'),
taghub = require('../lib/taghub');
var configFile = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'] + "/.t... |
/*
* Copyright (c) 2014 airbug Inc. All rights reserved.
*
* All software, both binary and source contained in this work is the exclusive property
* of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering
* the source code of this software is prohibited. This work is protected un... |
var http = require('http');
var config = require('./config');
var city = '';
var state = '';
var apiKey = config.apiKey; // ********* Enter API key in config file *********** //
// Print out location message
function printMessage(zip, city, state) {
var message = city + ', ' + state + ' ' + zip;
console.log(message... |
// ou yea
$(function() {
$('#mandar').click(function() {
/* Rock n Roll */
var data = {
name: $("#nombre").val(),
email: $("#email").val(),
message: $("#ta").val()
};
$.ajax({
type: "POST",
url: ... |
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
ang... |
module.exports = {
"nycCoverage": false,
"coverage": false,
"auto_compose": true,
"node": "16",
"tester_flavour": "rdkafka-tester",
"parallel": 1,
"test_framework": "jest --config ./jest.config.js --runTestsByPath",
"tests": "__tests__/**/*.spec.ts",
"arbitrary_exec": ["node scripts/rebuild-kafka.js"]... |
version https://git-lfs.github.com/spec/v1
oid sha256:271fad2636d00ce96de971012a1cbc2513ce0aa915438b21220e4aa0c9abcdfb
size 5862
|
var searchData=
[
['handle_5ftag',['handle_tag',['../item_8php.html#abd0e603a6696051af16476eb968d52e7',1,'item.php']]],
['has_5fpermissions',['has_permissions',['../items_8php.html#a77051724d1784074ff187e73a4db93fe',1,'items.php']]],
['hcard_2ephp',['hcard.php',['../hcard_8php.html',1,'']]],
['hcard_5faside',['... |
/* global require, describe, it */
'use strict';
var mpath = './../lib/async.js';
// MODULES //
var chai = require( 'chai' ),
mkdirp = require( 'mkdirp' ),
path = require( 'path' ),
fs = require( 'fs' ),
proxyquire = require( 'proxyquire' ),
cp = require( mpath );
// VARIABLES //
var expect = chai.expect,
... |
import fs from 'fs';
import winston from 'winston';
export default function (opt) {
const logs = opt.logs || './logs';
if (!fs.existsSync(logs)) {
fs.mkdirSync(logs);
}
const logger = winston.createLogger({
transports: [
new winston.transports.File({
level: 'info',
filename: `./... |
'use strict';
var JavascriptUtils = {
// get selected text in the current window
getSelectedText: function () {
var txt = '';
if (window.getSelection) {
txt = window.getSelection();
} else if (window.document.getSelection) {
txt = window.document.getSelection();
... |
import React, { Component } from 'react';
import sortList from 'common/sortable';
import { getRandomString } from '../multi-input/part';
import MultiInputList from 'app/common/component/multi-input/list';
export default class List extends MultiInputList {
constructor(props) {
super(props);
}
render() {
... |
var mongoose = require('mongoose');
var Blog = mongoose.Schema({
imageUrl: String,
title: String,
permalink: String,
isActive: {type: Boolean, default: false},
author: String,
tags: Array,
createdAt: {type: Date, default: Date.now},
updatedAt: {type: Date, default: Date.now},
previe... |
window.FacilityFilter = function () {
};
/**
* 指定したフィルター条件に一致する施設情報のGeoJsonを生成する
*
* @param {[type]} conditions [description]
* @param {[type]} nurseryFacilities [description]
* @return {[type]} [description]
*/
FacilityFilter.prototype.getFilteredFeaturesGeoJson = function (conditions... |
const dests = {
'' : '000',
'M' : '001',
'D' : '010',
'MD' : '011',
'A' : '100',
'AM' : '101',
'AD' : '110',
'AMD': '111'
};
const comps = {
'0' : '0101010',
'1' : '0111111',
'-1' : '0111010',
'D' : '0001100',
'A' : '0110000',
'!D' : '0001101',
'!A' ... |
module.exports = function() {
class ClassA {
constructor() {
this.__ks_init();
this.__ks_cons(arguments);
}
__ks_init() {
}
__ks_cons_0() {
try {
foo();
}
catch(error) {
throw error;
}
}
__ks_cons(args) {
if(args.length === 0) {
ClassA.prototype.__ks_cons_0.apply(this);
... |
// @flow
jest.mock('fs');
import { fileJournaler } from '../src/journalers';
import fs from 'fs';
describe('fileJournaler', () => {
it('should allow setting file path for journaler', async () => {
const setCollectionName = fileJournaler('/dev/null');
const configured = setCollectionName('coll');
await ... |
var view;
view = new Thorax.LayoutView({
setView: function(view) {
view.on('all', function(eventName) {
return $('body').append(this.name + ': ' + eventName + '<br>');
});
Thorax.LayoutView.prototype.setView.call(this, view);
return $('body').append('<hr>');
},
showViewA: function() {
r... |
version https://git-lfs.github.com/spec/v1
oid sha256:307070caee667b8cb3792501f2212a95350c9fcb14da17483f44eeb8b7786cf9
size 631748
|
'use strict';
angular.module('accessibleTodoListApp')
.controller('MainCtrl', function ($scope) {
$scope.todos = ['Item 1','Item 2','Item 3'];
});
|
/**
* @fileoverview Editor class - Application Subclass for Model/Scene Editor
* @author Tony Parisi / http://www.tonyparisi.com
*/
goog.provide('Vizi.Editor');
Vizi.Editor = function(param) {
// Chain to superclass
Vizi.Viewer.call(this, param);
this.showSelectionBoxes = true;
this.showNormals = true;
this.... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { typedDependencies } from './dependenciesTyped.generated'
import { createRightLogShift } from '../../factoriesNumber.js'
export const rightLogShiftDependencies = {
typedDependencies,
createRightLogShift
}
|
require('./connect');
let mongoose = require('mongoose');
let Schema = mongoose.Schema;
// 定义模式loginSchema
const loginSchema = new Schema({
account : String,
password : String
}, {
versionKey: false
});
// 定义模式registrySchema
const registrySchema = new Schema({
account : String,
password : String,
sex ... |
// Generated by LiveScript 1.3.1
(function(){
var module, test, this$ = this;
module = QUnit.module, test = QUnit.test;
module('ES6');
DESCRIPTORS && test('ArrayBuffer', function(assert){
var b;
assert.same(ArrayBuffer, Object(ArrayBuffer), 'is object');
NATIVE && assert.arity(ArrayBuffer, 1);
N... |
var mousetrap = require('mousetrap');
var UAParser = require('ua-parser-js');
var $ = require('jquery');
var keybindings = require('./keybindings');
var imageList = require('./imageList.json');
var tagInfo = require('./tagInfo.json');
var overlay = require('./overlay');
var closeness = require('./closeness');
var Googl... |
/* jshint node: true */
"use strict";
var Backbone = require("backbone");
var app = require("application");
var $ = require("jquery");
var BaseModels = require("models");
var Models = app.module('Users.Models');
Models.UserModel = BaseModels.BaseModel.extend({
// TODO: Define actual methods/properties, like url. I... |
require("./40.js");
require("./81.js");
require("./163.js");
require("./325.js");
module.exports = 326; |
imgurModule = require('./');
console.message = console.log;
imgur.search(['cats and dogs'], console); |
/**
* PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
* Copyright (c) 2011 gskinner.com, inc.
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Softwa... |
Morpho.log = console.log; |
import React from 'react'
import PropTypes from 'prop-types'
import EntryListItemContainer from './entry-list-item.container'
import RoundSelectorContainer from './round-selector.container'
const EntryList = ({entries, pars}) => (
<div>
<h2>出場選手一覧</h2>
<div className='row mb-2'>
<div className='col-aut... |
import GlobalNotification from './GlobalNotification'
export default GlobalNotification
|
import React from 'react';
const th = (props) => {
const { children } = props;
return (
<th>{ children }</th>
);
};
export default th;
|
"use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
function _interopRequireDefault(obj) { return... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* @jest-environment ./CircusHandleTestEventEnvironment.js
*/
beforeEach(() => {});
test('test name here', () => {
expect(true).toBe(true);
});
test('second test name here', () => {
expect(true).toBe(true);
});
|
/**
* Error handlers
*/
var log = require('./logging');
var serverConfig = require('./config');
var noStack = [ 402, 404 ];
var shortStack = [ 401, 403, 407, 408 ];
var errct = 0;
function defaultRequestHandler(req, res, next) {
var err = new Error(req.path + ' not found');
err.status = 404;
next(err);
}
func... |
import React from 'react';
import { BrowserRouter, Route, Link } from 'react-router-dom';
import Form from './Form';
class App extends React.Component {
render() {
return (
<BrowserRouter>
<div>
<h1>Prevent Transition</h1>
<ul>
... |
version https://git-lfs.github.com/spec/v1
oid sha256:b28811be69917ab2deb0fdeadfd8d3eb4dc5bc4487869e2a2cdb49719ec69405
size 15238
|
var searchData=
[
['int_5ftype_5fbytearr_5flength',['INT_TYPE_BYTEARR_LENGTH',['../BinsonObject_8h.html#a0bd44a13d360dbe7ce51b58d84e86b18a8726ee486aa7c3d73cc39a58b6f9c14c',1,'BinsonObject.h']]],
['int_5ftype_5fnormal',['INT_TYPE_NORMAL',['../BinsonObject_8h.html#a0bd44a13d360dbe7ce51b58d84e86b18a4d0075b3204a6c57c9a... |
'use strict';
const paris = require('./paris');
module.exports = {
start: () => {
paris.start();
},
paris
};
|
annoCtrl.controller('BooksCtrl', ['$scope', '$routeParams', '$modal', '$timeout', 'UserService', 'SerializeService', function($scope, $routeParams, $modal, $timeout, UserService, SerializeService) {
// Save user data after login
var uid = $routeParams.uid
UserService.getUser(uid).then(function(user) {
$scop... |
/*!
* parse-github-short-urls <https://github.com/tunnckoCore/parse-github-short-urls>
*
* Copyright (c) 2015-2016 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Released under the MIT license.
*/
'use strict'
var test = require('assertit')
var parseGithubShortUrls = require('./index')
test(... |
//Define global namespace
var mw_app = mw_app || {};
mw_app.validation = (function() {
//Define regular expressions object
var regexpressions = {
text: /^[a-zA-Z ]{2,30}$/,
email: /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA... |
import React from 'react';
import { mount } from 'enzyme';
import Filetree from '../../app/components/Filetree';
import { getUsername } from '../../app/actions/filetree-actions';
const dispatchGetUsername = () => getUsername();
describe('Filetree component', () => {
it('calls getUsername from dispatchGetUsername fr... |
// All code points in the `Tamil` script as per Unicode v6.1.0:
[
0xB82,
0xB83,
0xB85,
0xB86,
0xB87,
0xB88,
0xB89,
0xB8A,
0xB8E,
0xB8F,
0xB90,
0xB92,
0xB93,
0xB94,
0xB95,
0xB99,
0xB9A,
0xB9C,
0xB9E,
0xB9F,
0xBA3,
0xBA4,
0xBA8,
0xBA9,
0xBAA,
0xBAE,
0xBAF,
0xBB0,
0xBB1,
0xBB2,
0xBB3,
0xBB4... |
/**
* Mixins for metrics
* @function metricsMix
* @param {function} Class
* @returns {function} Class
*/
'use strict'
/** @lends metricsMix */
function metricsMix(Class) {
/**
* @class MetricsMix
*/
class MetricsMix extends Class {
constructor() {
super(...arguments)
this.metrics = {
... |
import { combineReducers } from 'redux';
import Specs from './reducer_specs';
import Editorials from './reducer_editorials';
const rootReducer = combineReducers({
specs: Specs,
editorials: Editorials
});
export default rootReducer;
|
const helpers = require('../helpers');
const execSync = require('child_process').execSync;
// const REPO_NAME_RE = /Push URL: https:\/\/github\.com\/.*\/(.*)\.git/;
const REPO_NAME_RE = /Push URL: (?:https:\/\/|git@)github\.com(?:\/|:).*\/(.*)\.git/;
function getWebpackConfigModule() {
if (helpers.hasProcessFlag(... |
var gameState = {
create: function() {
this.physics.startSystem(Phaser.Physics.ARCADE);
this.background = game.add.tileSprite(0,0, this.game.world.width, this.game.world.height, 'space');
this.background.autoScroll(-60, -20);
this.setupPlayer();
this.player;
this.enemy;
this.enemyTwo;
... |
/* eslint-disable no-tabs */
import Command from '@ckeditor/ckeditor5-core/src/command';
import { getSelectedMathModelWidget } from './utils';
export default class MathCommand extends Command {
execute( equation, display, outputType, forceOutputType ) {
const model = this.editor.model;
const selection = model.doc... |
var watch = require('watch');
var exec = require('child_process').exec;
watch.createMonitor('', function (monitor) {
monitor.files['.js'] // Stat object for my zshrc.
monitor.on("created", function (f, stat) {
// Handle new files
})
monitor.on("changed", function (f, curr, prev) {
// Ha... |
var MessageFolderNewFormView = Backbone.View.extend({
events: {
"click button": "createFolder",
},
initialize: function() {
this.folderCollection = this.options.collection;
},
createFolder: function(){
//Only insert if text is written
var val = $(this.el).find("#... |
"use strict";
var generateMetaData = function generateMetaData (rng, speedTendency, generosityTendency, difficulty) {
var difficultyFactor = Math.max(1, Math.pow(difficulty, 1 / 3)),
speed = rng() * speedTendency,
generosity = rng() * generosityTendency,
sum = speed + generosity,
ra... |
var zlib = require('zlib');
var fs = require('fs');
var stream = require('stream');
var util = require('util');
var path = require('path');
var Pend = require('pend');
var findit = require('findit');
var mime = require('mime');
var url = require('url');
var BufferList = require('bl');
var crypto = require('crypto');
m... |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const ModernizrWebpackPlugin = require('modernizr-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
con... |
/**
*
* MD5 (Message-Digest Algorithm)
* http://www.webtoolkit.info/
*
**/
var MD5 = function (string) {
function RotateLeft(lValue, iShiftBits) {
return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
}
function AddUnsigned(lX,lY) {
var lX4,lY4,lX8,lY8,lResult;
lX8 = (lX ... |
module.exports = require('./setTransform'); |
// flow-typed signature: 28ab3537d8400cf87e81ee4edbd75ee5
// flow-typed version: c6154227d1/styled-components_v3.x.x/flow_>=v0.75.x <=v0.103.x
// @flow
type $npm$styledComponents$Interpolation = (<C: {}>(executionContext: C) => string) | string | number;
type $npm$styledComponents$NameGenerator = (hash: number) => st... |
/************************************************************************
*
* Contains enumerators for Settings
*
************************************************************************/
define(['ko'],
function (ko) {
//check Esoft.Common.Settings.EnumSettingTypes.MandatoryLevel !!! if anythi... |
/* */
"format amd";
//! moment.js locale configuration
//! locale : Persian [fa]
//! author : Ebrahim Byagowi : https://github.com/ebraminio
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeo... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.selfSign = selfSign;
exports.default = signCertificate;
var _opensslWrapper = require('openssl-wrapper');
var _opensslWrapper2 = _interopRequireDefault(_opensslWrapper);
var _lodash = require('lodash');
function _interopRequir... |
import datastore from '@google-cloud/datastore';
import GCPConfig from '../../../config/settings';
import getEntityByIndexedValue from './getEntitiesByIndexedValue';
const datastoreClient = datastore({
projectId: GCPConfig.project_id,
keyFilename: GCPConfig.datastore.gcpDatastoreOwnerServiceKeyPath,
});
export de... |
'use strict'
const Joi = require('joi')
const Fs = require('fs')
const Path = require('path')
const Readline = require('readline')
const randomElement = function (array) {
const randomIndex = Math.floor(Math.random() * array.length)
return array[randomIndex]
}
const NameManager = function (firstNameList, lastNam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.