code stringlengths 2 1.05M |
|---|
const POKEDEX_FILE = './../../data/pokedex.js';
const MOVEDEX_FILE = './../../data/moves.js';
module.exports = {
oldgen_get_mux: function (typeA, typesB, not_inmune, inverse) {
var mux = 1;
var typeObj;
for (var i = 0; i < typesB.length; i++) {
if (typesB[i] === 'Fairy') continue;
if (this.TypeChartGen6[t... |
(function () {
'use strict';
angular
.module('users')
.directive('passwordVerify', passwordVerify);
function passwordVerify() {
var directive = {
require: 'ngModel',
scope: {
passwordVerify: '='
},
link: link
};
return directive;
functi... |
import React, { PropTypes } from 'react';
export default class GenderSvg extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
only: PropTypes.any
}
male() {
return (<g>
<circle fill="inherit" cx="7.543" cy="3.347" r="3.347" />
<path
fil... |
var logger = {
debug:function(msg){},
info:function(msg){},
error: function(msg,err) {console.log(msg);console.log(err)}
}
var AppLoader = require("../../../../../src/foundation/app-loader")
var appLoader = new AppLoader(logger)
module.exports = appLoader.defineComponent(module) |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-console/www/console-via-logger.js",
"id": "cordova-plugin-console.console",
"pluginId": "cordova-plugin-console",
"clobbers": [
"console"
... |
module.exports = {
ignorePatterns: ['**/*.d.ts', '**/*.test.ts', '**/*.js', 'sample/**/*.*'],
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended'],
plugins: ['header'],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
source... |
/* eslint-env node */
'use strict';
// --------------------------------------------------------------------
// Imports
// --------------------------------------------------------------------
var fs = require('fs');
var path = require('path');
var es5 = require('./es5');
var ohm = require('ohm-js');
// ------------... |
requirejs.config({
paths: {
'text': '../lib/require/text',
'durandal':'../lib/durandal/js',
'plugins' : '../lib/durandal/js/plugins',
'transitions' : '../lib/durandal/js/transitions',
'knockout': '../lib/knockout/knockout-3.3.0',
'bootstrap': '../lib/bootstrap/js/boo... |
'use strict';
import Formatter from './formatter';
import DomUtilities from '../utilities/dom_utilities';
import DomWalker from '../utilities/dom_walker';
import TypeRange from '../range';
export default class InlineFormatter extends Formatter {
/**
*
* @param {Type} type
* @constructor
*/
constru... |
/**
* Appcelerator Titanium Platform
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
**/
var win = Ti.UI.currentWindow;
var data = win.data;
Ti.include("math.js");
var btn... |
/*jslint indent: 2, vars: true, plusplus: true */
/*global setTimeout, clearTimeout, location, EventSource, asyncTest, ok, strictEqual, start */
(function (global) {
"use strict";
var EventSource = global.EventSource;
var stop = global.windowStop;
if (location.hash === "#native") {
EventSource = global.N... |
import { InjectionToken } from '@angular/core';
import { isArray, isBlank, isPresent } from '../util/util';
/**
* @hidden
*/
var UrlSerializer = (function () {
/**
* @param {?} _app
* @param {?} config
*/
function UrlSerializer(_app, config) {
this._app = _app;
if (config && isA... |
var searchData=
[
['main',['main',['../pro2_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4',1,'pro2.cpp']]],
['morfologia',['morfologia',['../class_organisme.html#a4f36183d9fb514405176208f7d3f6a96',1,'Organisme']]]
];
|
var controlPanel = function () {
var controlPanelMethod = {};
controlPanelMethod.categoryElement = null;
controlPanelMethod.initialize = function () {
controlPanelMethod.setSidebar();
controlPanelMethod.setEvents();
};
controlPanelMethod.setSidebar = function () {
... |
const gulp = require(`gulp`);
const history = require(`connect-history-api-fallback`);
const $ = require(`gulp-load-plugins`)();
const argv = require(`../config/yargs`).argv;
const paths = require(`../config/paths`);
exports._livereload = _serveLivereload;
exports.coverageTs = serveCoverageTs;
exports.dist = serveDis... |
import $ from 'dom7';
import Utils from '../../utils/utils';
import Framework7Class from '../../utils/class';
import Support from '../../utils/support';
import Device from '../../utils/device';
class PullToRefresh extends Framework7Class {
constructor(app, el) {
super({}, [app]);
const ptr = this;
const ... |
var searchData=
[
['lzw_2ec',['LZW.c',['../_r_l_e_2src_2_l_z_w_8c.html',1,'']]],
['lzw_2ec',['LZW.c',['../_version1_2src_2_l_z_w_8c.html',1,'']]],
['lzw_2ec',['LZW.c',['../_version2_2src_2_l_z_w_8c.html',1,'']]],
['lzw_2eh',['LZW.h',['../_version1_2include_2_l_z_w_8h.html',1,'']]],
['lzw_2eh',['LZW.h',['../_r... |
define(["./core","./attributes/attr","./attributes/prop","./attributes/classes","./attributes/val"],function(a){return a}); |
var _ = require('lodash')
var test = require('ava')
var tokenizer = require('./')
test('tokenizer', function (t) {
var tst = function (src, expected, message) {
var r = tokenizer(src)
if (r.type !== 'Ok') {
t.fail('failed to tokenize: ' + src + ' ' + JSON.stringify(r))
return
}
var tokens... |
const gulp = require('gulp');
const plumber = require('gulp-plumber');
const coffee = require('gulp-coffee');
const sourcemaps = require('gulp-sourcemaps');
// Compiles coffeescript to javascript
gulp.task('compile', function(){
gulp.src('./src/*.coffee')
.pipe(plumber())
.pipe(coffee({bare: true}))
.pipe(gul... |
var gulp = require('gulp');
var runSequence = require('run-sequence');
var changed = require('gulp-changed');
var plumber = require('gulp-plumber');
var sourcemaps = require('gulp-sourcemaps');
var paths = require('../paths');
var assign = Object.assign || require('object.assign');
var notify = require('gulp-notify');
... |
module.exports = function(data, helper) {
data = data || {};
helper = helper || {};
var __t;
var __p = '';
var __j = Array.prototype.join;
var print = function() {
__p += __j.call(arguments, '');
};
return (function(localeMsg) {
__p += '<li id="module-filter" class="pure-... |
/**
* Created by alex on 13.10.16.
*/
import React, { Component, PropTypes } from 'react';
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
// Import Style
import styles from './SignInPage.css';
import { signInRequest }from '../../UserActions'
export class... |
var Promise = require('../../src/main');
var fakeAsyncRead = (text, callback) => {
let t = Math.random() * 300;
setTimeout(() => {
if (!text) {
return callback(new Error('Expected a string'), null);
}
return callback(null, text);
}, 100 + t);
};
var fakePromiseRead = (text) => {
return new P... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.9.2_A1_T5;
* @section: 7.9.2;
* @assertion: Check examples for automatic semicolon insertion from the Standart;
* @description: a=b \n ++c is a valid sentence i... |
(function(d3, fc) {
'use strict';
describe('bar', function() {
it('should invoke data accessors with datum and index', function() {
var xValueSpy = jasmine.createSpy('xValue').and.callFake(fc.util.fn.identity),
y0ValueSpy = jasmine.createSpy('y0Value').and.callFake(fc.util... |
var args = arguments[0] || {};
var rows = [];
_.each(args.tags, function(tag){
rows.push(Alloy.createController("tableViewRows/hashtag", { title: tag }).getView());
});
// Update the data
$.hashtags.data = rows;
function onTableViewTouched(e){
// Somehow I need to get this info all the way into the "index.js"
//$... |
// AWS S3 file upload service. If another service is needed, manage within this module. Maintain the factory name so that the directive will continue to function without change
// it is simply required to maintain an "Upload" function. In this module Get and Delete were created as possible capabilities but not implemen... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
/**
* Created by mgab on 29/03/2017.
*/
import { searchImagesAction } from '../actions/mediaActions'
import * as types from '../constants/actionTypes'
describe('Action creators', () => {
it('should return searchImagesAction action object', () => {
const pageNum = 1
expect(searchImagesAction(pageNum)).toEq... |
const m = module {
export const foo = "foo";
};
|
(function () {
'use strict';
describe('Courses List Controller Tests', function () {
// Initialize global variables
var CoursesListController,
$scope,
$httpBackend,
$state,
Authentication,
CoursesService,
mockCourse;
// The $resource service augments the response ob... |
/**
* @name single.js<spec>
* @author Kei Funagayama <funagayama_kei@cyberagent.co.jp>
* copyright (c) Cyberagent Inc.
* @overview TestCase
*/
define(['boombox'], function(boombox) {
if (!window.boombox) {
window.boombox = boombox;
}
var bgm = ["bgm", "./media/sound.m4a", "./media/sound.ogg"... |
(function() {
"use strict";
const ERROR_CODE_BLANK = -1;
let StringUtils = {
isEmpty: str => {
let __str = __parseStr(str);
return (__str === null) || (__str.length <= 0);
},
isNotEmpty: str => {
return !isEmpty(str);
},
isBlank: ... |
/* jshint -W117, -W030 */
describe('calculatorController', function() {
var controller;
beforeEach(function() {
bard.appModule('app.calculator');
bard.inject('$controller', '$log', '$rootScope', '$state');
$state.current = {title: 'calculator'};
});
beforeEach(function () {
... |
webpackJsonp([1],[function(t,e,n){function s(t){n(5)}var o=n(6)(n(4),n(7),s,"data-v-4ecaffd7",null);t.exports=o.exports},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(2);s.a.config.productionTip=!1,s.a.use(n(1)),s.a.component("sms-code",n(0)),new s.a({el:"#app"})},function(t,e,... |
/**
* Created by user on 11/11/15.
*/
|
version https://git-lfs.github.com/spec/v1
oid sha256:7e6517cd38ba7e66b24def2525b99b3e3a193aeb3f29c037b6392b59ed142697
size 3461
|
'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]; } }... |
(function(){
//DEFINE APP AND DEPENEDENCIES
var app = angular.module('store',[ ]);
//APPLICATION CONTROLLER
app.controller('StoreController', function() {
this.products = gems;
});
//CREATE ITEM TO USE IN CONTROLLER
var gems = [
{
name: "Dodecahedron",
price: 2.95,
description: "... |
define(['vexflow'], function(Vex) {
/**
* LSChordView is a module called by LSViewer to draw chords
* @exports LSViewer/LSChordView
*/
function LSChordView(chord, color) {
this.color = color || "#000";
this.chord = chord;
}
/**
* @param {CanvasContext} ctx
* @param {Object} barDimen... |
/* eslint-disable consistent-return */
/* eslint-disable no-useless-escape */
const path = require("path");
const { createFsFromVolume, Volume } = require("memfs");
const { validate } = require("schema-utils");
const webpack = require("webpack");
const installer = require("./installer");
const utils = require("./util... |
'use strict'
var FieldError = require('../../errors').FieldError
module.exports = numeric
/**
* Numeric TopNMetricSpec
*
* @see http://druid.io/docs/0.6.121/TopNMetricSpec.html
*
* @param {string} metric
*/
function numeric(metric) {
if (!metric) {
throw new FieldError('Metric is not specified')
}
... |
version https://git-lfs.github.com/spec/v1
oid sha256:8da89abcc0f955b5f4659c21c8686bc44ccf6675f02a2dd9ac800d59fa9a2da6
size 1378
|
import {database} from './database';
import {HttpClient} from 'aurelia-http-client';
import {Cache} from 'services/cache';
import {join, inject} from 'aurelia-framework';
import {
Product,
ProductVersion,
Article,
GroupModel,
ClassModel,
ConstructorModel,
MethodModel,
InterfaceModel,
PropertyModel,
... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("@angular/compiler/testing/src/pipe_resolver_mock.... |
var router = require('express').Router()
var bodyParser = require('body-parser')
var request = require('request')
var qs = require('qs')
var contants = require('./constants')
// proxy to rest server
router.use('/rest', function (req, res) {
var query = req.url.split('?')[1] || ''
var url = contants.REST_API_URL + ... |
'use strict';
import React from 'react'; // eslint-disable-line no-unused-vars
import { Route } from 'react-router';
import Application from './components/Application';
import HomePage from './components/HomePage';
import UserPage from './components/UserPage';
import RepoListPage from './components/RepoListPage';
impo... |
var url = require('url');
var UrlRouterResult = function() {
this.warning = null;
this.params = null;
this.handlerFn = null;
};
var UrlRouter = function(argo) {
this._argo = argo;
this._router = [];
this._routerKeys = [];
if(argo) {
argo
.use(function(handle) {
handle('request', { aff... |
/**
* JavaScript Socket
* @author gabe@fijiwebdesign.com
*/
/**
* Simple Event
*/
var SocketEvent = function(name) {
this.triggered = 0;
this.name = name;
this.observers = [];
};
SocketEvent.prototype = {
/**
* Number of times this event has triggered
*/
triggered: 0,
/**
* Arbit... |
define([
"dojo/_base/declare",
"dojo/_base/config",
"dojo/promise/all",
"dojo/Deferred",
"./User",
"./action/Messages",
"./action/CheckPermissions",
"./locale/Dictionary",
"./model/meta/Model"
], function (
declare,
config,
all,
Deferred,
User,
Messages,
C... |
import { helper } from '@ember/component/helper';
import { isArray as isEmberArray } from '@ember/array';
import asArray from '../utils/as-array';
export function flatten(array) {
if (!isEmberArray(array)) {
return array;
}
return asArray(array).reduce((flattened, el) => {
return flattened.concat(flatte... |
var utils = require('utils')
, env = utils.bootstrapEnv()
, moduleLdr = env.moduleLoader
, injector = require('injector')
, ncp = require('ncp')
, path = require('path')
, async = require('async');
describe('ModuleLoader', function() {
before(function(done) {
... |
/* IMPORTANT: Several variables in this js, like "io", exist because
mainGame.js is included below socket.io.js in views/citizen.handlebars.
*/
/* Import classes */
//Requiring enabled by browserify
var EaselObject = require("./Classes").EaselObject;
var Circle = require("./Classes").Circle;
var Rectang... |
module.exports = function(irc) {
irc.on('event', function(e) {
console.log(e.raw);
});
};
|
const browserslist = require('browserslist')
const chalk = require('chalk')
const colours = require('../config/colours')
function checkBrowsers(dir, retry = true) {
const browsers = browserslist.findConfig(dir)
if (browsers) {
const browsersList = browsers[process.env.NODE_ENV] || browsers.defaults
... |
'use strict';
/**
* Module dependencies
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Receipts Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/receipts',
per... |
function MainMenuState() {}
var oneThirdHeight = windowy / 3;
MainMenuState.prototype = {
create: function() {
// initializing the mainMenuSplash again and animating it.
var mainMenuSplash = game.add.sprite(centerx, oneThirdHeight, 'ballerlogo');
mainMenuSplash.anchor.setTo(0.5,0.5);
mainMenuSpla... |
/// @throw {throw} Lorem ipsum dolor sit amet, consectetur adipisicing elit.
/// @exception {exception} Lorem ipsum dolor sit amet, consectetur adipisicing elit.
/// @error {error} Lorem ipsum dolor sit amet, consectetur adipisicing elit.
/// @catch {catch} Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
'use strict';
var hints = require('./hints');
var utils = require('./utils');
module.exports = function(app, options) {
if (!utils.isValid(app, 'common-questions-messages')) return;
app.questions.disable('save')
.set('author.name', 'Author\'s name?', {
default: hints['author.name'](app)
})
.set... |
import EmberObject, { computed } from '@ember/object';
import Controller from '@ember/controller';
export default Controller.extend({
otherState: false,
myThing: computed('otherState', function () {
if (this.otherState) {
return EmberObject.create({ description: 'Foo' });
} else {
return EmberO... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ToggleButton from '../../controls/buttons/ToggleButton';
import MenuPanel from './MenuPanel';
import MenuSection from './MenuSection';
import { InlineContext } from './InlineContext';
import RootC... |
export default function createUserCounter(io) {
let active = 0
io.on('connection', function(socket) {
active++
io.emit('active', active)
socket.on('disconnect', function() {
active--
io.emit('active', active)
})
})
}
|
var http=require('http');
http.createServer(function (req,res){
console.log(res);
res.writeHead(200,{"Content-Type":"text/plain"});
res.write('Hello World');
res.end();
}).listen(3000,function (){
console.log('port 3000');
});
|
/* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
define(["dojox/gfx3d", "dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/Color", "./Base"],
function(gfx3d, kernel, declare, Color, Base) {
// reduce function borrowed from dojox.fun
var reduce = function(/*Array*/ a, /*Function|String|Array*/ f, /*Object?*/ o){
// summary:
// repeatedly applies a binary ... |
{
"name": "Font.js",
"url": "https://github.com/Pomax/Font.js.git"
}
|
;
(function($) {
/**
* jqGrid Danish Translation
* Aesiras A/S
* http://www.aesiras.dk
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
$.jgrid = {
defaults : {
recordtext: "Vis {0} - {1} of... |
module.exports = function(app, config) {
app.get('/install', function(req, res) {
var viewData = req.viewData;
var user = req.session.user;
viewData.remotePassword = user.remotePassword;
viewData.apiKey = user.apiKey;
viewData.host = req.headers['host'];
viewDa... |
module.exports = (options) => {
return new Promise((res, rej) => {
var db = options.database;
var Task = db.define('tasks', {
id: { type: "serial", key: true },
name: { type: "text", required: true },
created_at: { type: "date", time: true, defaultValue: (new Date)},
updated_at... |
var expect = require('chai').use(require('sinon-chai')).expect;
var sinon = require('sinon');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var wns = require('wns');
var notify = require('../../../');
describe('WNS', function () {
var wnsSender, sendStub;
beforeEach(function () {
... |
var root = this;
root.context = root.describe;
root.xcontext = root.xdescribe;
var matchers = {
toIs: function(selector) {
return this.actual.is(selector);
},
toHas: function(selector) {
return this.actual.find(selector).length > 0;
},
toExist: function() {
if(this.actual.constructor === String)... |
'use strict';
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var definePlugin = new webpack.DefinePlugin({
'process.env.NODE_ENV': process.env.BUILD_DEV === 'true' ? '"development"' : '"production"'
});
module.exports = {
entry: path... |
// From https://gist.github.com/epeli/11209665
var Promise = require("bluebird");
// So you can `var request = require("superagent-bluebird-promise")`
var superagent = module.exports = require("superagent");
var Request = superagent.Request;
try {
Promise.config({
// Enable cancellation.
cancellation: true... |
var baseIsMatch = require('./_baseIsMatch'),
getMatchData = require('./_getMatchData');
/**
* Performs a partial deep comparison between `object` and `source` to
* determine if `object` contains equivalent property values. This method is
* equivalent to a `_.matches` function when `source` is partially ap... |
describe('modelTransformer', function() {
beforeEach(module('brew-everywhere'));
it('should ...', inject(function(modelTransformer) {
//expect(modelTransformer.doSomething()).toEqual('something');
}));
}); |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
module.exports = function(app, server) {
/*
* Module dependencies
*/
var sio = require('socket.io');
var io = sio.listen(server);
var bus = require('lib/bus');
io.configure(function (){
io.set('authorization', function (data, callback) {
var url = data.headers.referer.replace(/https?:\/\//, '').split('.');
... |
describe('history', () => {
it('should exist', () => {
expect(true).toBe(true);
});
});
|
import React, { Component } from "react"
import { render } from "react-dom"
import { createStyleSheet, rem, vh } from "../../src"
import "./index.html"
import Button from "./Button"
const App = () => (
<div style={styles.container}>
<Button>{`I'm a button`}</Button>
</div>
)
const styles = createStyleSheet(... |
var contentLengthStats;
var contentLengthCharts = {};
// Used for sorting
var contentLengthDesc = false;
var contentLengthSortAttribute = "name";
// Trigger sorting of stats when a table label is clicked
$("#content-length .stats_label").click(function (event) {
event.preventDefault();
contentLengthSortAttrib... |
$(document).ready(function() {
$('.btn-logout').click(function(e) {
e.preventDefault();
Cookies.remove('auth-session');
window.location.href = '/';
});
});
|
const config = require("../config");
const path = require("path");
const helmet = require("helmet");
const express = require("express");
const hbs = require("express-hbs");
const compression = require("compression");
const cookieParser = require("cookie-parser");
module.exports = function() {
const app = express()... |
/**
* global variables
*/
var namespace = ""
var cache = {}
function getCache(ns){
if(cache[ns] === undefined) {
cache[ns] = storageEngine.get(ns) || {}
}
return cache[ns]
}
function setCache(ns, c){
cache[ns] = c
return storageEngine.set(ns, cache[ns])
}
/**
* Expose library
*/
module.exports = S... |
import {User} from '../../../../cli'
var route = function(req, res) {
User.operations.remove(req.body.id)
return res.status(200).json({sucess: 1})
}
export default route
|
import EmberView from "ember-views/views/view";
import {
default as helpers,
registerHelper
} from "ember-htmlbars/helpers";
import { runAppend, runDestroy } from "ember-runtime/tests/utils";
import compile from "ember-template-compiler/system/compile";
var view;
QUnit.module('ember-htmlbars: element hook', {
t... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M19.47 9.16c-1.1-2.87-3.8-4.95-7.01-5.14l2 4.71 5.01.43zm-7.93-5.14c-3.22.18-5.92 2.27-7.02 5.15l5.02-.43 2-4.72zm-7.31 6.12C4.08 10.74 4 11.36 4 12c0 2.48 ... |
if (typeof exports === 'undefined') {
exports = {};
}
exports.config = {
"name": "addProject",
"desc": "新增单个项目",
// 线上地址
"url": "http://xxx/addProject",
// 日常地址
"urlDaily": "http://xxxx/addProject",
// 预发地址
"urlPrepub": "http://example.com/addProject",
// 支持的 Method 集合
"metho... |
(function ($) {
"use strict";
var skin = require('./_skin')();
/**
* jQuery plugin wrapper for compatibility with Angular UI.Utils: jQuery Passthrough
*/
$.fn.tkScrollable = function (options) {
if (! this.length) return;
var settings = $.extend({
horizontal: fa... |
// general server-side code
// (will get specific as needed)
console.log ("we can log to the server console!"); |
import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React, { Component, isValidElement } from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
import Image from '../../... |
Sim.OdometerLocalizer = function() {
this.x = 0.0;
this.y = 0.0;
this.orientation = 0.0;
};
Sim.OdometerLocalizer.prototype.init = function() {
};
Sim.OdometerLocalizer.prototype.setPosition = function(x, y, orientation) {
this.x = x;
this.y = y;
this.orientation = orientation;
};
Sim.Odomet... |
"use strict";
process.stdin.on("data", function(buffer) {
var typedArray = new Uint8Array(buffer.length),
i;
for(i = 0; i < buffer.length; ++i) {
typedArray[i] = buffer.readUInt8(i);
}
console.log(JSON.stringify(typedArray));
}); |
// ---------------------------------------
// Test Environment Setup
// ---------------------------------------
import 'babel-polyfill'
import sinon from 'sinon'
import chai from 'chai'
import sinonChai from 'sinon-chai'
import chaiAsPromised from 'chai-as-promised'
chai.use(sinonChai)
chai.use(chaiAsPromised)
global... |
/**
* Multiplication of Geometric3.
* This was originally written for asm.
* @hidden
*/
export function mulE3(a0, a1, a2, a3, a4, a5, a6, a7, b0, b1, b2, b3, b4, b5, b6, b7, index) {
switch (index) {
case 0: {
return a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3 - a4 * b4 - a5 * b5 - a6 * b6 - a7 * ... |
/**
* Created by pascalbrewing on 08/10/14.
*/
describe('UserService', function () {
var UserService;
var response = {
"user": {
"aclEntries": ["58256249-6d1a-4aea-857a-fb7f709a1a13:rw", "user.anonymous:r"],
"uuid": "1c341954-e83c-4dd8-a5e7-e958806a36fc",
"name": "pascal",
"givenName"... |
import BaseGenerator from '../base';
module.exports = BaseGenerator.extend({
constructor(args, options) {
BaseGenerator.call(this, args, options);
this.isContainer = options.isContainer;
this.componentName = options.componentName;
this.boilerplateName = options.boilerplateName;
this.platformSpec... |
/**
* nfkd-browser.js - unicode normalization for decentraland
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
* Copyright (c) 2016-2017, Manuel Araoz (MIT License).
* https://github.com/decentraland/decentraland-node
*/
var unorm = require('../../vendor/unorm');
function nfkd(str) {
if (str.norm... |
function get(req, res, next) {
res.send(204)
next()
}
export default { get }
|
var path = require('path');
var port = process.env.PORT || 8080;
var host; // filled in on first incoming request
var Asana = require('asana');
var express = require('express');
var cookieParser = require('cookie-parser');
var app = express();
var bodyParser = require('body-parser');
app.use(bodyParser.json()); // for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.