code stringlengths 2 1.05M |
|---|
'use strict';
var fs = require('fs');
var _ = require('lodash');
var acorn = require('acorn');
var walk = require('acorn/dist/walk');
module.exports = {
parseBundle: parseBundle
};
function parseBundle(bundlePath) {
var contentBuffer = fs.readFileSync(bundlePath);
var contentStr = contentBuffer.toString('utf8'... |
export function reportError(ctx) {
return (err) => {
const result = {};
const status = err && err.status ? err.status : 500;
if ('internalQuery' in err) {
// looks like postgres err
ctx.logger.error(err);
Reflect.deleteProperty(err, 'message'); // do not expose DB internals
}
... |
//--------------------------------------------------------------------------------------------------//
//--------------------------------------------- Filters --------------------------------------------//
//--------------------------------------------------------------------------------------------------//
Router._fi... |
'use strict';
var express = require('express'),
router = express.Router(),
authenticateOverseerToken = require('../middlewares/authenticateOverseerToken'),
prepareUpdateObject = require('../middlewares/prepareUpdateObject'),
getCreditCatId = require('../middlewares/getCreditCatId'),
CreditCategory... |
var test = require('tap').test;
var distributions = require('../../distributions.js');
var equals = require('../equal.js');
var reference = require('../assets/studentt.json');
test('testing student t density function', function (t) {
equals.absoluteEqual({
test: t,
map: reference.pdf,
fn: (t, df) => di... |
import { Vue } from '../../../vue'
import {
PROP_TYPE_ARRAY_OBJECT_STRING,
PROP_TYPE_BOOLEAN,
PROP_TYPE_BOOLEAN_STRING,
PROP_TYPE_STRING
} from '../../../constants/props'
import { identity } from '../../../utils/identity'
import { isBoolean } from '../../../utils/inspect'
import { makeProp } from '../../../util... |
import http from 'http';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import fs from 'fs';
import { createPage, write, writeError, writeNotFound, redirect } from './utils/server-utils';
import routes from './routes/RootRoute';
const w... |
/**
* This script is for ajax search
*/
$(document).ready(function() {
$("#search_form_text").keyup(function(){
if($("#search_form_text").val().length < 3) return;
$.post('/tneexrc/web/app_dev.php/ajax/search/'+$("#search_form_text").val(),function(data){
... |
/*global define*/
define({
"_widgetLabel": "Umkreissuche",
"searchHeaderText": "Eine Adresse suchen oder auf der Karte verorten",
"invalidSearchLayerMsg": "Such-Layer sind nicht ordnungsgemäß konfiguriert",
"bufferSliderText": "Ergebnisse in ${BufferDistance} ${BufferUnit} anzeigen",
"bufferSliderValueString"... |
var searchData=
[
['unary_5fbit_5fnot',['unary_bit_not',['../d3/d4d/namespacebbb_1_1function_1_1direct__lambda.html#ac0e6ddec93a461b94a38fce232feee40ad77634e1730e985ce0114c3beb2cf8ca',1,'bbb::function::direct_lambda']]],
['unary_5ffunc_5fapply',['unary_func_apply',['../d3/d4d/namespacebbb_1_1function_1_1direct__lam... |
var gulp = require('gulp');
// Build everything else
gulp.task('build', ['images', 'fonts', 'sass', 'root', 'compile', 'vendor', 'templates']);
|
import TableTile from "../support/elements/TableTile";
import CodapObject from "../support/elements/CodapObject";
import CaseCardObject from "../support/elements/CaseCardObject";
import CfmObject from "../support/elements/CfmObject";
const table = new TableTile;
const codap = new CodapObject;
const casecard = new Case... |
var merge = require('yields-merge')
var own = Object.hasOwnProperty
var call = Function.call
module.exports = Emitter
/**
* Emitter constructor. Can optionally also act as a mixin
*
* @param {Object} [obj]
* @return {Object}
*/
function Emitter(obj){
if (obj) return merge(obj, Emitter.prototype)
}
/**
* Pro... |
RPH = {};
RPH.math = {
getDistance: function(x1, y1, x2, y2) {
return Math.pow(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2), 0.5);
},
getAngle: function(x1, y1, x2, y2) {
var angle;
if (Math.abs(x1 - x2) < RPH.W / 100 && y2 > y1) return 1 * Math.PI / 2;
if (Math.abs(x1 ... |
'use strict';
/**
* Module dependencies
*/
import * as mongo from 'mongodb';
import User from '../../../models/user';
import Post from '../../../models/post';
/**
* Aggregate post of a user
*
* @param {Object} params
* @return {Promise<object>}
*/
module.exports = (params) =>
new Promise(async (res, rej) =>
{... |
var searchData=
[
['keycode',['KeyCode',['../classthewizardplusplus_1_1anna_1_1graphics_1_1_key_code.html',1,'thewizardplusplus::anna::graphics']]]
];
|
var path = require("path");
var webpack = require("webpack");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var basePath = __dirname;
module.exports = {
context: path.join(basePath, "src"),
resolve: {
// .js is required for react import... |
module.exports = {
name: "dns",
ns: "pkgcloud",
title: "Dns",
description: "The pkgcloud.dns service is designed to make it easy to manage DNS zones and records on various infrastructure providers.",
phrases: {
active: "Creating DNS service"
},
ports: {
input: {
credentials: {
title:... |
function UserGenderBlock(options) {
this.graph = options.graph;
this.tab = options.tab;
this.list = options.list;
this.init();
}
UserGenderBlock.prototype = {
init: function() {
if(jQuery(this.graph.id).length > 0) {
this.generateChart();
}
if(jQuery(this.list... |
CT.map.Shape = CT.Class({
CLASSNAME: "CT.map.Shape",
_gclass: function() {
var cname = this.CLASSNAME.split(".")[2];
return {
Shape: "Polygon",
Line: "Polyline"
}[cname] || cname;
},
add: function(map) {
this.opts.map = map;
this.shape.setMap(map);
},
remove: function() {
this.opts.map = null;
... |
import { SepCon } from '../../src/index';
export default SepCon.createComponent({
id: 'described-button',
}, {
state: {
props: {
local: {label: 'Button', description: 'Button\'s Description', isActive: false}
},
methods: {
local: {
onclick(next, n... |
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
app: './src/app/index.ts'
},
output: {
filename: '[hash:6].... |
(function () {
'use strict';
var module = angular.module('fim.base');
module.controller('InspectorPluginInspectModalController', function (items, $modalInstance, $scope, $sce, $timeout, $state) {
$scope.items = items;
var order = items.order ? items.order.split(',') : [];
$scope.close = function () {
$mod... |
function components(input) {
let system = new Map();
for (let line of input) {
let [name, comp, subcomp] = line.split(' | ');
if (!system.get(name)) {
system.set(name, new Map());
}
if (!system.get(name).get(comp)) {
system.get(name).set(comp, []);
... |
import React from "react";
import { connect } from "react-redux";
import { addUser } from "../actions";
let AddUser = ({dispatch}) => {
let input;
return (
<div>
<form
onSubmit={e => {
e.preventDefault();
if (!input.value.trim) {
... |
'use strict';
module.exports = [
// parses unwrapped keys, containing backslashes
'{"a?":"\\""}',
'{"a?":"\'"}',
'{"a?":","}',
'{"a?":":"}',
// parses unwrapped keys, containing minus signs
'{"b-c":"b:"}',
'{"b-c":":c"}',
'{"b-c":"b,"}',
'{"b-c":",c"}',
// parses multiple unwrapped keys, containi... |
import request from 'superagent';
function extract(error) {
if (error.response && error.response.body) {
return error.response.body;
} else if (error.response) {
return error.response;
} else { // eslint-disable-line no-else-return
return error;
}
}
export default function postWebReport({
token,... |
import React from 'react';
import { Row , Col , Breadcrumb , Icon , Pagination } from 'antd';
import blogService from '../../service/blogService';
import moment from 'moment';
import '../../../../style/markdown.less'
var content=React.createClass({
getInitialState:function(){
return {
typeName:"",
list:null,
... |
/**
* Enables filtration delay for keeping the browser more responsive while
* searching for a longer keyword.
*
* This can be particularly useful when working with server-side processing,
* where you wouldn't typically want an Ajax request to be made with every key
* press the user makes when searching the table... |
/*
* `config` module
* ===============
*
* The game instance settings.
*/
// Import created game scenes.
import * as scenes from '@/scenes';
// HINT: Import plugins, custom or trusted third-party ones, here.
// import ExamplePlugin from 'example-plugin';
// import ExampleScenePlugin from '@/plugins/example-... |
//>>excludeStart("exclude", pragmas.exclude);
define([ "shoestring" ], function(){
//>>excludeEnd("exclude");
shoestring.enUS = {
errors: {
"prefix": "Shoestring does not support",
"ajax-url-query": "data with urls that have existing query params",
"click": "the click method. Try using trigger( 'click' ) ... |
/**
* # authActions-test.js
*
* This test is for authActions
*
*/
'use strict';
jest.autoMockOff();
/**
* ## Mocks
*
* We don't want to use the devices storage, nor actually call Parse.com
*/
jest.mock('../../../lib/AppAuthToken');
jest.mock('../../../lib/BackendFactory');
/**
* ## Mock Store
*
* The ```... |
import React from 'react'
import { TweenMax } from 'gsap'
const MetroHoc = Component =>
class MetroContainer extends React.Component {
static defaultProps = {
wrapperType: 'div'
}
// longest animation in sequence
getLongestAnimationInSequence(io) {
return Math.max(
...this.props.... |
(function() {
'use strict';
angular
.module('scientificweekApp')
.controller('PersonDetailController', PersonDetailController);
PersonDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'previousState', 'entity', 'Person', 'User'];
function PersonDetailController($scop... |
version https://git-lfs.github.com/spec/v1
oid sha256:395885129d8af1e87cd16e921d840ab8d11ec632c46d15a0144192bb27062cde
size 8317
|
version https://git-lfs.github.com/spec/v1
oid sha256:7d71635b7ede773ce81bee8e11204d8ed5d124dc2e208d8a2c175804744acfce
size 29197
|
import React, {PureComponent} from "react";
export class CompositionSlide extends PureComponent {
render() {
return (
<div>
<h1>
React<br />
Component<br />
Composition
</h1>
</div>
)... |
/**
* VLANG linter worker.
*
* @copyright 2011, Ajax.org B.V.
* @license GPLv3 <http://www.gnu.org/licenses/gpl.txt>
*/
define("ext/cloud9-vlang/cloud9-vlang-worker", ["require", "exports", "module"], function(require, exports, module) {
var baseLanguageHandler = require("ext/linereport/linereport_base");
var... |
define(['joga/bindings/ElementBinding', 'joga/computedProperty'], function (ElementBinding, computedProperty) {
function HTMLImageElementBinding(element, model) {
ElementBinding.call(this, element, model);
}
HTMLImageElementBinding.prototype = new ElementBinding();
HTMLImageElementBinding... |
/*!
* @author Felix Heck <hi@whoTheHeck.de>
* @version 0.1.2
* @copyright Felix Heck 2016
* @license MIT
*/
;(function() {
'use strict';
angular.module('uxs', [
'ngAnimate'
]);
})();
|
// Generated by CoffeeScript 1.6.3
var define;
if (typeof define !== 'function') {
define = require('amdefine')(module);
}
define(function() {
var Actor;
return Actor = (function() {
function Actor(globals, ui, config) {
var key;
this.ui = ui;
this.actor = true;
for (key in config) {... |
/**
* Router Reducer
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import { ActionConst } from 'react-native-router-flux'
// Set initial state
const initialState = {
scene: {},
}
export default function routerReducer(state = initialState, action) {
switch (action.type... |
var compassToDegrees = {
"N": 0, "NNE": 23, "NE": 45, "ENE": 68,
"E": 90, "ESE":113, "SE":135, "SSE":158,
"S":180, "SSW":203, "SW":225, "WSW":248,
"W":270, "WNW":293, "NW":315, "NNW":338
};
function JSWindView(canvasId, imageId, compassDirection) {
this.canvas = document.getElementById(canvasId);
this.context... |
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import './index.css';
const Header = () =>
<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem'
}}
>
<div
style={{
margin: '0 auto',... |
var __M; (function(a) { var list = Array(a.length / 2); __M = function(i, es) { var m = list[i], f, e; if (typeof m === "function") { f = m; m = i ? { exports: {} } : module; f(list[i] = m, m.exports); e = m.exports; m.__es = Object(e) !== e || e.constructor === Object ? e : Object.create(e, { "default": { value: e } }... |
// Simple trace advice (params and result) for functions.
// The error handler will be called when advice throws.
export const after =
(f, advice) => {
const callAdvice = squelched(advice)
return (...x) => {
const result = f(...x)
callAdvice(...x, result)
return ... |
module.exports = function (app, pageModel, websiteModel) {
app.post("/api/website/:websiteId/page", createPage);
app.get("/api/website/:websiteId/page", findPagesByWebsite);
app.get("/api/page/:pageId", findPageById);
app.put("/api/page/:pageId", updatePage);
app.delete("/api/page/:pageId", deletePage)
v... |
/** Created on May 6, 2014
* author: MrPoxipol
*/
var util = require('util');
// Templates module
var Mustache = require('mustache');
var S = require('string');
// Bot utiles
var ut = require('../nibo/ut');
var debug = require('../nibo/debug');
const COMMAND_NAME = 'ud';
// pattern for util.format()
const TERM_AP... |
var express = require('express');
var app = express();
var path = require('path');
var bodyParser = require('body-parser')
var server = app.listen(3001, function () {
var host = server.address().address
var port = server.address().port
console.log("Example app listening at http://%s:%s", host, port)
})
cons... |
/*******************************************
file: hello4.js
project: backbone.js tutorial
*******************************************/
(function($){
var Item = Backbone.Model.extend({
defaults: {
part1: 'hello',
part2: 'world'
}
});
var List = Backbone.Collection.extend({
model: Item
});
var ... |
var WeMo = require('./lib/WeMo');
exports.discover = require('./lib/Discoverer');
exports.createClient = function(config) {
return new WeMo(config);
}; |
class ControlPrinter
{
sendVariable = (name, value) => {
console.log("<ctrl>:" + name + "=" + value);
}
}
export default ControlPrinter; |
common.ready(function(){
/*******************读取配置文件显示任务列表**********************/
var id; //当前操作的任务编号
var configDir = 'configs/qun_config.json';
var config = _.read(configDir); //读取配置文件内容
if(config.result == '' || config.result == 'undefined'){
config = {};
}else{
config = JSON.parse(config.result);
}... |
(function() {
'use strict';
angular
.module('ionicTopTabs', [])
.directive('topTabs', topTabs);
/** @ngInject */
function topTabs($timeout) {
var directive = {
restrict: 'E',
scope: {
tabs: '=',
activated: '='
},
required: 'type',
replace: true,
... |
const pgp = require('pg-promise')(/*options*/);
const db = pgp(process.env.DATABASE_URL || 'postgres://postgres:postgres@localhost:8000/postgres');
db.connect()
.then(function (obj) {
console.log('DB connection established.')
obj.done(); // success, release the connection;
})
.catch(functio... |
'use strict';
var PrimusError = require('./errors').PrimusError
, EventEmitter = require('eventemitter3')
, Transformer = require('./transformer')
, log = require('diagnostics')('primus')
, Spark = require('./spark')
, fuse = require('fusing')
, fs = require('fs')
, vm = require('vm');
/**
* Primus is ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/*
* A list item representing a resource in the API.
*
* This item will be backed by a resource model, which will be used for
* all synchronization with the API. It will work as a proxy for requests
* and events, and synchronize attributes between the resource and the list
* item. This allows callers to work dire... |
// Karma configuration
let isPhantomJSInstalled = false;
const webpackConfig = require('./webpack.config.test');
try {
require.resolve('karma-phantomjs-launcher');
isPhantomJSInstalled = true;
} catch (e) {
}
module.exports = function(config) {
config.set({
// base path that will be used to reso... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
passport = require('passport'),
User = mongoose.model('User'),
Applicant = mongoose.model('Applicant'),
Bootcamp = mongoose.model('Bootcamp'),
Placement = mongoose.model('Placement'),
Test = mongoose.model('Test')... |
var searchData=
[
['kernelradius',['KernelRadius',['../class_cubby_flow_1_1_s_p_h_system_data.html#a9675f75fb92eddeccb69797d47dab79d',1,'CubbyFlow::SPHSystemData']]],
['keys',['Keys',['../class_cubby_flow_1_1_point_parallel_hash_grid_searcher.html#adf5e8674df562e3c89fc65e999dd038e',1,'CubbyFlow::PointParallelHashGr... |
// Generated by CoffeeScript 1.3.3
(function() {
var AngelNode;
AngelNode = module.exports = {
auth: require('./angelnode/auth'),
client: require('./angelnode/client')
};
}).call(this);
|
const pg = require('pg');
const fs = require('fs');
// For loading evaluation data from the playtest into the same store.
// First, dump the playtest database to disk.
// Then use this to load it into another database.
// This assumes evidence ids are consistent across databases.
// read db config from disk
const da... |
const visibilityFilter = (state = 'SHOW_ACTIVE', action) => {
switch (action.type) {
case 'SET_VISIBILITY_FILTER':
return action.filter
default:
return state
}
}
export default visibilityFilter
|
var Unhyphenator = (function () {
"use strict";
var shy = /(?:\u00AD|\­|\­)/g;
var zws = /(?:\u200B|\​)/g;
var shyFilter = function (text) {
return text.replace(shy, '');
};
var zwsFilter = function (text) {
return text.replace(zws, '');
};
function Un... |
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create });
function preload () {
game.load.script('webcam', '../plugins/WebCam.js');
}
var webcam;
var bmd;
var sprite;
function create () {
webcam = game.plugins.add(Phaser.Plugin.Webcam);
bmd = game.m... |
//Write a function that flattens an Array of Array objects into a flat Array. Your function must only do one level of flattening.
//
//flatten([1,2,3]) // => [1,2,3]
//flatten([[1,2,3],["a","b","c"],[1,2,3]]) // => [1,2,3,"a","b","c",1,2,3]
//flatten([[[1,2,3]]]) // => [[1,2,3]]
//solution 1
function flatten(array) ... |
function Pen(canvasID, radius, posX, posY, speed, color) {
var self = this;
var positionAngle = -Math.PI / 2;
var increment = 0.005;
var canvas = document.getElementById(canvasID);
var context = canvas.getContext("2d");
var distance = Math.sqrt(Math.pow(posX, 2) + Math.pow(posY, 2));
var ... |
const each = require('lodash/each');
const upperFirst = require('lodash/upperFirst');
const toArray = require('lodash/toArray');
const isObject = require('lodash/isObject');
const isEmpty = require('lodash/isEmpty');
const includes = require('lodash/includes');
const bunyan = require('bunyan');
const fs = require('fs-e... |
import C from './constant';
export default class Pomodoro {
constructor(config) {
this.config = config;
this.nPomodoro = 1;
this.stage = undefined;
this.second = undefined;
this.intervalID = undefined;
}
isRunning() {
return !!this.intervalID;
}
start() {
this._start(C.Stage.Pomod... |
const bodyParser = require('body-parser');
const express = require('express');
const { graphqlExpress, graphiqlExpress } = require('apollo-server-express');
const PORT = process.env.PORT || 3001;
const app = express();
const graphQLSchema = require('./graphql/executableSchema');
app.use('/graphql', bodyParser.json()... |
/**
* Middleware to support `type` property in an action's inputs definition
*
* @Author: Guan Gui <guiguan>
* @Date: 2016-08-29T13:41:40+10:00
* @Email: root@guiguan.net
* @Last modified by: guiguan
* @Last modified time: 2016-08-30T16:59:18+10:00
*/
module.exports = {
initialize: function(api, next)... |
// this is necessary because node doesn't has await and async keywords included
const async = require('asyncawait/async');
const await = require('asyncawait/await');
const url = require('./modules/url');
const Parser = require('./modules/parser');
const downloader = require('./modules/downloader');
const getMenuForCu... |
'use strict'
module.exports = (babel, options, dirname) => {
const value = babel.types.objectExpression([
babel.types.objectProperty(babel.types.identifier('pluginDefaultOpts'), babel.types.stringLiteral(JSON.stringify(options))),
babel.types.objectProperty(babel.types.identifier('dirname'), babel.types.stri... |
'use strict';
var config = require('../../config/environment');
var MenuSchema = {
title: {type: String, required: true},
icon: {clazz:String, beforeTitle:{type:Boolean, default:false}}, //AD:only supports css icons
// preLogin: {type:Boolean, default:false},//redundant due to permission
postLog... |
import React from 'react';
import TextInput from '../Common/TextInput.js';
import * as map from './fieldMap';
const StepForm = ({item, field, onChange, errors}) => {
let fields = [];
for (const col in item) {
fields.push(<TextInput
name={col}
key={col}
label={map[field][col]}
value={it... |
$(function() {
var cover = '';
$('input[name=cover]').change(function(e) {
var file = e.target.files[0];
var key = 'book/' + file.name;
var token = $('input[name=token]').val();
var formData = new FormData($('#qiniu-upload'));
formData.append('file', file);
formDa... |
import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useTextAlignProp,
useWidthProp,
} from '../../lib'
import Card from './Card'
/**
* A gro... |
;(function ($, Formstone, undefined) {
"use strict";
/**
* @method private
* @name setup
* @description Setup plugin.
*/
function setup() {
$Body = Formstone.$body;
$Locks = $("html, body");
}
/**
* @method private
* @name resize
* @description Handles window resize
*/
... |
// Wrap everything in a function to avoid polluting the global namespace.
(function() {
TypeJig.WordSets.LearnPlover = {};
TypeJig.WordSets.LearnPloverOrder = [
"One Syllable Words",
"Consonant Clusters",
"Where's the TRUFT?",
"Dropping Unstressed Vowels",
"Inversion",
"The Fifth Vowel Key",
"Long Vow... |
"use strict";
// ControlBar plugin
var bufferingDirectives = angular.module("com.2fdevs.videogular.plugins.buffering", []);
bufferingDirectives.directive("vgBuffering", function(VG_EVENTS, VG_THEMES){
return {
restrict: "E",
template:
"<div class='bufferingContainer'>" +
"<div class='loadingS... |
import {
AyzekPlugin,
command,
middleware
}
from '../../';
import XPress from '@meteor-it/xpress';
import AJSON from '@meteor-it/ajson';
import {
addSupport as wsSupport
}
from '@meteor-it/xpress/support/ws';
import {
hashCode,
djb2Code,
sdbmCode,
loseCode
}
from '@meteor-it/utils';
le... |
'use strict'
exports.handler = (event, context, callback) => {
if (typeof(event.ramuda_action) !== "undefined" && event.ramuda_action === "ping") {
context.done(null, "alive")
return true
}
if (typeof(event.ramuda_action) !== "undefined" && event.ramuda_action === "getenv") {
conte... |
/* eslint-disable no-param-reassign */
import { DokkaError, DokkaGenericError } from '../config/errors'
export default module.exports = (app) => {
const Users = app.db.models.Users
const Tokens = app.db.models.Tokens
return {
checkToken: (req, res) =>
Tokens.findOne({ where: { token: req.params.token... |
var Animation = require('./Animation/Animation.js')
var Circle = require('./Canvas/Shape/Circle.js')
var extend = require('./extend.js')
var Layer = require('./Canvas/Layer.js')
var Stage = require('./Canvas/Stage.js')
var Juggler = (function () {
var abc = "abcdefghijklmnopqrstuvwxyz"
var nums = {}
for (... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const package_json = path.resolve('./package.json');
const tsconfig_json = path.resolve('./tsconfig.json');
const webpack_config_js = path.resolve('./webpack.config.js');
const git_ignore_file = path.resolve('./.gitignore');
con... |
'use strict';
module.exports = function(sequelize, DataTypes){
const Audit = sequelize.define("Audit", {
entityType: {
type: DataTypes.STRING,
allowNull: false,
comment: 'Type of the entity which change is tracked. E.g. USER, LEAVE etc',
},
entityId: {
type: DataTypes.INTEGER,
... |
/* */
var Code = require("code");
var Hawk = require("../lib/index");
var Lab = require("lab");
var Package = require("../package.json!systemjs-json");
var internals = {};
var lab = exports.lab = Lab.script();
var describe = lab.experiment;
var it = lab.test;
var expect = Code.expect;
describe('Hawk', function() {
d... |
'use strict';
angular.module('core').controller('HomeController', ['$scope', '$http', 'Authentication', 'Beneficiaries',
function ($scope, $http, Authentication, Beneficiaries) {
// This provides Authentication context.
$scope.authentication = Authentication;
// Gender Stats
$scope.g... |
export { default as GoogleLayer } from "./GoogleLayer";
|
import React from 'react';
import PropTypes from 'prop-types';
/**
* This portion leads to underlying translation
* 4. msgid "one more"
* msgid_plural "__num__ more"
*/
const More = ({ngettext, num, onClick}) => (
<a href="" onClick={onClick}>{ngettext(num)`one more|${{num}} more`}</a>
);
More.propTypes = {
... |
define({
"_widgetLabel": "Ringkasan",
"filter": "Filter",
"all": "Semua",
"missingLayerInWebMap": "Tidak Ada Layer Operasional dalam Web Map.",
"missingSummaryLayerInConfig": "Layer ringkasan hilang."
}); |
import cal from "highlight.js/lib/languages/cal";
export default cal;
|
// Object to store properties of a data row.
function TabularVizDataRow(rowHash, columns) {
this.data = {};
this.cells = [];
this.shown = true;
// We store the entire data hash, not just the columns for this particular viz.
// This is important because we may use non-column fields to evaluate a
// dataShow... |
'use strict';
// FileMaker JDBC Table Builder & Compiler
// Because of the limited abilities of FileMaker's JDBC Driver I've omited even
// the few parts that would work (create table, add/drop columns, create indexes)
// Because those would be altered in FileMaker realistically.
// -------
module.exports = function(c... |
/* eslint-disable no-await-in-loop */
const { strict: assert } = require('assert');
const { createWriteStream } = require('fs');
const stream = require('stream');
const { promisify } = require('util');
const Got = require('got');
const ms = require('ms');
const pipeline = promisify(stream.pipeline);
const debug = re... |
(function () {
'use strict';
var express = require('express');
var load = require('express-load');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
module.exports = function () {
var app = express();
// Configurações de ambiente
app.set('port', 3000);... |
function fn(phone) {
phone = phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
return phone;
}
(function($){
$.fn.extend({
insertAtCaret: function(myValue){
var $t=$(this)[0];
if (document.selection) {
this.focus();
... |
import { expect } from 'chai';
import rawContract from 'binary-test-data/contractsForR50';
import changeDurationUnit from '../changeDurationUnit';
import { tradingOptionsForOneSymbol } from '../../../trade-params/TradeParamsSelector';
import areAllTimeFieldsValid from '../../validation/areAllTimeFieldsValid';
const mo... |
var home = require('../controllers/home'),
unearthed = require('../controllers/unearthed'),
triplej = require('../controllers/triplej'),
doublej = require('../controllers/doublej');
module.exports.initialize = function(app) {
app.get('/', home.index);
app.get('/triplej', home.index);
app.get('/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.