code
stringlengths
2
1.05M
/** * 同步遍历指定路径目录 * @param {String} dir 目录地址 * @param {Function} callback 回调 */ function traverseSync(dir, callback) { const fs = require('fs'); const path = require('path'); fs.readdirSync(dir).forEach((file) => { const pathname = path.join(dir, file); if (fs.statSync(pathname).isDirectory()) { ...
// # Ghost Configuration // Setup your Ghost install for various environments // Documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in...
Package.describe({ summary: "JavaScript and CSS minifiers", version: "1.1.4" }); Npm.depends({ "uglify-js": "2.4.17", "css-parse": "https://github.com/reworkcss/css-parse/tarball/aa7e23285375ca621dd20250bac0266c6d8683a5", "css-stringify": "https://github.com/reworkcss/css-stringify/tarball/a7fe6de82e055d41d1...
// ============================================================================== // lib/reporters/Coverage.js module // ============================================================================== const events = require('events') const path = require('path') const istanbulLibCoverage = require('istanbul-lib-coverag...
'use strict'; // This brief template description will be displayed along with the template name when the user runs grunt init or grunt-init to display a list of all available init templates. exports.description = '无线开发环境初始化'; // If specified, this optional extended description will be displayed before any prompt...
'use strict'; var Compiler = require('./lib/compiler'); var gutil = require('gulp-util'); var through = require('through2'); var async = require('async'); module.exports = function (options) { var sourceFiles = []; var emitError = (!options || options.emitError !== false); function eachFile(file, ...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ingredientSchema = new Schema({ name: String, degree: String, nutrients: String }); module.exports = mongoose.model('ingredient', ingredientSchema);
$(function() { sninfo2Obj.initData() }) jQuery.support.cors = true var sninfo2Obj = { initData : function() { sninfo2Obj.snInterval() }, sninfo : function(){ var domain = document.domain $.cloudCall({ method : "sn.info", async : true, isLoading : false, params : { domai...
/** * Created by hassaanali on 4/2/15. */ $(document.body).on('click', '.like', function () { var id = $(this).attr("id"); $(this).text("Unlike"); var likes = $(this).parent().children(".likes"); $.get("/like/" + id, function () { likes.text(parseInt(likes.text()) + 1); }); $(this...
Slipmat.Collections.Records = Backbone.Collection.extend({ url: "api/records", model: Slipmat.Models.Record, initialize: function () { this.proto = "Records"; this.subview = this.model.prototype.subview; }, parse: function (payload) { this._statistics = payload.statistics; delete payload.st...
const debug = require('ghost-ignition').debug('importer:clients'), Promise = require('bluebird'), _ = require('lodash'), BaseImporter = require('./base'), models = require('../../../../models'); class ClientsImporter extends BaseImporter { constructor(allDataFromFile) { super(allDataFromFil...
// ----------------------- // Test // -------------------- var Storage = require('node-document-storage'); module.exports = Storage.Spec('ElasticSearch', { module: require('..'), engine: require('elastical'), id: 'elasticsearch', protocol: 'http', db: 'default-test', default_url: 'http://localhost:9200/...
const lams = require('../../../index.js') const mocks = require('../../../lib/mocks.js') const path= require('path') const options = {reporting:"no", cwd:__dirname} require('../../../lib/expect-to-contain-message'); const log = x=>console.log(x) const testProjectName = __dirname.split(path.sep).slice(-1)[0]; describe(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hddO = exports.hddO = { "viewBox": "0 0 1536 1792", "children": [{ "name": "path", "attribs": { "d": "M1040 1216q0 33-23.5 56.5t-56.5 23.5-56.5-23.5-23.5-56.5 23.5-56.5 56.5-23.5 56.5 23.5 23.5 56.5zM1296 1216q0 33-23.5 56.5t-56.5 23.5-...
//~ name b866 alert(b866); //~ component b867.js
import sequelize from '../../sequelize'; import Text from './Text'; function sync(...args) { return sequelize.sync(...args); } export default { sync }; export { Text };
import Ember from 'ember'; import ApplicationRouteMixin from 'op-firebase-auth/mixins/application-route'; /* globals MockFirebase */ module('ApplicationRouteMixin'); // Replace this with your real tests. test('it works', function() { var ApplicationRouteObject = Ember.Object.extend(ApplicationRouteMixin); // ...
import Starfield2D from 'fx/starfield/2d/Starfield2D.js'; import DrawImage from 'canvas/DrawImage.js'; export default class Starfield2DImage extends Starfield2D { constructor ( width, height, { speedX = 0, speedY = 0, paddingX = 0, paddingY =...
import * as _commands from './commands'; export const description = 'Setup and manage docker'; export const commands = _commands; export const hooks = { 'post.default.status'(api) { return api.runCommand('docker.status'); } };
var dialogsModule = require("ui/dialogs"); var http = require("http"); var spark = require("../../shared/spark-helper"); var view = require("ui/core/view"); var requestUrl = spark.baseUrl + spark.deviceId; var requestBody = "access_token=" + spark.accessToken + ""; function pageNavigatedTo(args) { var page = args...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
import {Form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel' import {compose} from 'compose' import {msg} from 'translate' import React from 'react' import moment from 'moment' i...
'use strict'; // MODULES // var gammaDeltaRatio = require( 'math-gamma-delta-ratio' ); // GAMMA RATIO // /** * FUNCTION: gammaDeltaRatio( x, delta ) * Computes a ratio of gamma functions: Γ(x) / Γ(y). * * @param {Number} x - parameter for numerator gamma fcn * @param {Number} y - parameter for denominator gamma fc...
/** * class Meta * * @returns getPegasusVersionInfo * @returns getPegasusDbVersionInfo * @returns getLanguages * @returns getCountries * @returns getCountryGroups */ class Meta { /** * * @param {object} client lib\Client */ constructor (client) { this.client = client; } ...
/** * Gets the ordersitories of the user from Github */ import { take, call, put, select, cancel, takeLatest } from 'redux-saga/effects'; import { LOCATION_CHANGE } from 'react-router-redux'; import { LOAD_ORDERS } from './constants'; import { ordersLoaded, orderLoadingError } from './actions'; import request from ...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); module.exports = { hasLines: function(trace) { return trace.visibl...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('favArchApp')); var MainCtrl, scope, $httpBackend; // Initialize the controller and a mock scope beforeEach(inject(function (_$httpBackend_, $controller, $rootScope) { $httpBacken...
const { firstLetterLowerCase } = require('../../machinery/word') const { getPropertyName, getJSXElementName, getParentJSXElement, isRootJSXElement } = require('../../machinery/ast') const messages = { 'no layoutClassName in child': `Unexpected 'layoutClassName', only root elements can use the 'layoutClassN...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); // @flow exports.default = function (haystack /*: Array<Object>*/, needleConstructor /*: Function*/) /*: Object*/ { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { fo...
Meteor.publish('userTrackers', function(){ var currentUserId = this.userId; var uTrackers = Trackers.find({ user: currentUserId }); if(uTrackers){ return uTrackers; } return this.ready(); });
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
var $ = require("jquery"); var Router = require("./service/Router"); var Component = require("./service/Component"); $(function() { var secondComponent = new Component("second", "templates/second", require("./controller/SecondCtrl")); var firstComponent = new Component("first", "templates/first", r...
module.exports = function( grunt ) { grunt.initConfig({ watch : { literateCode : { files : [ '**/*.haml.md', '**/*.html.md', '**/*.jade.md', '**/*.css.md', '**/*.less.md', '**/*.rool.md', '**/*.sass.md', '**/*.scss.md', '**/*.stylus.md', ...
'use strict'; /** * Module dependencies. */ const validator = require('validator'); const menuDao = require('../../dao/sys_menu'); const areaDao = require('../../dao/sys_area'); const dictUtil = require('../../utils/dict_utils'); module.exports = function (app, routeMethod) { routeMethod.session('/manage/area','...
import { jsdom } from 'jsdom' import hook from 'css-modules-require-hook' import postCSSConfig from '../webpack/postcss.config' global.document = jsdom('<!doctype html><html><body></body></html>') global.window = document.defaultView global.navigator = global.window.navigator hook({ generateScopedName: '[name]__[lo...
'use strict'; var config = {}; config.jmeterPath = 'C:/apache-jmeter-2.13'; config.resultsPath = 'results'; config.verbose = true; config.remote = false; config.cluster = {}; config.cluster.clusterName = 'YOUR_ELASTIC_SEARCH_CLUSTER_NAME'; config.cluster.jumpboxIp = 'YOUR_JUMPBOX_IP'; config.cluster.username = 'YOUR_...
var path = require('path'); /** * Check that a 'filepath' is likely a child of a given directory * Applies to nested directories * Only makes String comparison. Does not check for existance * @param {String} directory * @param {String} filepath * @returns {Boolean} */ module.exports = function indir (directory,...
/*! * Adapted from jQuery UI core * * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ function hidden(el) { return (el.offsetWidth <= 0 && el.offsetHeight <= 0) || ...
{ return wrap(this.__impl4cf1e782hg__[name]); }
const r = require('./renderer'); const IndexedMap = require('./indexedMap'); const Material = require('./material'); const Mesh = require('./mesh'); const Prefab = require('./prefab'); const Transform = require('./transform'); const Maths = require('./maths'); const Bounds = require('./bounds'); const { mat3, mat4, qua...
angular.module('app').component('componentName',{ templateUrl: 'path/to/component-name.html', controller: function($scope){ var ctrl = this; ctrl.selectedFile = ''; ctrl.fileChanged = function (el) { if(el && el.files && el.files.length > 0){ ctrl.selec...
'use strict' var express = require('express') var router = express.Router() var db = require('../db/api') router.get('/', function(req, res) { db.getAllPosts().then(posts => { res.render('posts/all', { title: 'Scotty VG - Blog: All Posts', posts: posts }) }) }) router.get('/new', function(req...
// Karma configuration module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ '../bower_components/jquery/d...
var carousel; var client_arr = [ // 'img/carousel/client01.png', // 'img/carousel/client02.png', // 'img/carousel/client03.png', // 'img/carousel/client04.png', // 'img/carousel/client05.png', // 'img/carousel/client06.png', // 'img/carousel/client07.png', // 'img/carousel/client08.png', // 'img/carou...
var User = require('../models/user'); var fs = require('fs'); var passport = require('passport'); var crypto = require('crypto'); module.exports = { login:function(req,res){ fs.readFile("views/login.html","utf-8",function(err,data){ res.send(data); }) }, register:function(req,res){ fs.read...
import React from 'react'; import Link from 'next/link'; import { Grid, Segment, Button, Container } from 'semantic-ui-react'; import App from '../components/AppContainer'; import FormRecoverPassword from '../components/account/FormRecoverPasswordContainer'; export default ({ ...rest }) => ( <App {...rest} allowAnon...
'use strict'; var ZeroPiCore = require('./core'); class ZeroPi extends ZeroPiCore { constructor(options) { super(options); } digitalWrite(pin, level) { this.write(`M11 D${pin} L${level}`); } pwmWrite(pin, pwm) { this.write(`M11 D${pin} P${pwm}`); } digitalRead(pin, callback) { this.se...
// Regular expression that matches all symbols in the Runic block as per Unicode v5.0.0: /[\u16A0-\u16FF]/;
const chai = require('chai'); chai.use(require('sinon-chai')); const { expect } = chai; const cleanup = require('../../util/cleanup'); const { writeFileSync, existsSync } = require('fs'); const getMocks = require('../../mocks'); const lib = require('../../../src/cmds/copy-dir'); describe('# src/cmds/copy-dir.js', asy...
module.exports = { rules: { // enforce spacing inside array brackets 'array-bracket-spacing': 'off', // OFF enforce line breaks after opening and before closing array brackets 'array-bracket-newline': 'off', // OFF enforce line breaks between array elements 'array-element-newline': 'off', ...
#!/usr/bin/env node var promfig = require('..') var properties = { user : 'Please enter your username : ' , password : 'Please enter your password : ' , '@secret' : 'password' }; var config = {}; promfig( properties , config , function (err, config) { if (err) return console.error...
import {document, window} from 'global'; export default class ThumbnailHelpers { static hidePlayerOnHoverTime(progressControl) { const mouseTime = progressControl.el_.getElementsByClassName('vjs-mouse-display')[0]; mouseTime.style.display = 'none'; } static createThumbnails(...args) { const thumbn...
const duplicateIRIs = [ ["Krakken/Dronning Maud Land", [901165, 901163]], ["Selbukta/Dronning Maud Land", [903220, 901896]], ["Smalegga/Dronning Maud Land", [902045, 902044]], ["Snøfugldalen/Dronning Maud Land", [903182, 903183]], ["Veten/Dronning Maud Land", [902450, 902449]], ["Vindegga/Dronning Maud Land...
//~ name c406 alert(c406); //~ component c407.js
const oss = require('../..'); const cluster = require('../..').ClusterClient; const config = require('../config').oss; const utils = require('./utils'); const assert = require('assert'); const mm = require('mm'); describe('test/cluster.test.js', () => { const { prefix } = utils; afterEach(mm.restore); before(a...
var productsTable = $('#products-table').DataTable({ 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, { 'visible': false, 'targets': 7 }, { "type": "html-num-fmt", "targets": 3 } ].concat($.fn.dataTable.defaults.columnDefs) }); $('#products-...
// All symbols in the Latin-1 Supplement block as per Unicode v9.0.0: [ '\x80', '\x81', '\x82', '\x83', '\x84', '\x85', '\x86', '\x87', '\x88', '\x89', '\x8A', '\x8B', '\x8C', '\x8D', '\x8E', '\x8F', '\x90', '\x91', '\x92', '\x93', '\x94', '\x95', '\x96', '\x97', '\x98', '\x99', '\x9A', '\x9...
process.env.NODE_ENV = 'production'; var app = require('../yoline'); var assert = require('assert'); var request = require('supertest').agent(app.listen()); describe('Test 404', () => { var url = '/' + Math.floor(Math.random() * 1000); describe('when GET ' + url, function(){ it('should return the 404 pag...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({enter:"\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",exit:"\u0412\u044b\u0439\u0442\u0438 \...
import React from 'react'; import PropTypes from 'prop-types'; class ModalCover extends React.Component { onClick(e) { e.preventDefault(); if (this.props.dismissible && this.props.dismissFunc) { this.props.dismissFunc.call(null); } } render() { let coverClass = ['rh-modal-cover']; i...
"use strict"; var eventEmitter = new (require('events')).EventEmitter(); eventEmitter.all = function(events, callback) { function onEvent(event) { eventEmitter.on(events[event], function() { events.splice(events.indexOf(event), 1); if (events.length === 0) { callback(); } }); } for (var ev in e...
'use strict'; var fs = require('fs'); var userConfig = JSON.parse(fs.readFileSync('user.config.json', 'utf8')), packageInfo = JSON.parse(fs.readFileSync('package.json', 'utf8')); module.exports = { app: { title: 'scheduleR', description: 'schedule R scripts', keywords: 'R, scheduling' }, appVersion: pack...
import { FETCH_SEARCH, LOAD_SEARCH_RESULTS, CLEAR_SEARCH, FETCH_SELECTED_ARTICLE, LOAD_SELECTED_ARTICLE, } from './constants' export function fetchSearch({ searchText }){ return { type: FETCH_SEARCH, payload: { searchText, }, } } export function clearSearch(){ return { type: CLEA...
/*! * gulp-rte <https://github.com/jonschlinkert/gulp-rte> * * Copyright (c) 2014 Jon Schlinkert * Licensed under the MIT license. */ 'use strict'; var path = require('path'); var gutil = require('gulp-util'); var expect = require('chai').expect; var rte = require('..'); describe('rte dest routing', function (...
// Tally Votes in JavaScript Pairing Challenge. // I worked on this challenge with: Miqueas Hernandez // This challenge took me [#] hours. // These are the votes cast by each student. Do not alter these objects here. var votes = { "Alex": { president: "Bob", vicePresident: "Devin", secretary: "Gail", treasurer: "Ke...
import React from 'react'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import '../Common/css/Button.css'; import '../Common/css/Icon.css'; export default class Button extends Component { onClick(e) { if (this.props.onClick) { thi...
var webpack = require('webpack'); var __DEV__ = JSON.parse(process.env.BUILD_DEV || 'false'); var __PROD__ = JSON.parse(process.env.BUILD_PROD || 'false'); var baseConfig = { entry: { background: './src/js/background', contentscript: './src/js/contentscript', popup: './src/js/popup' }, output: { filename:...
module.exports = { plugins: ["@typescript-eslint", "import", "prettier"], parser: "@typescript-eslint/parser", extends: [ "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", "plugin:import/typescr...
const debug = require("debug")("decoder:test:receive-test"); const assert = require("chai").assert; const Ganache = require("ganache-core"); const path = require("path"); const Web3 = require("web3"); const Decoder = require("../../.."); const { prepareContracts } = require("../../helpers"); describe("Non-function t...
'use strict'; const periodic = require('periodicjs'); // let reactapp = periodic.locals.extensions.get('periodicjs.ext.reactapp').reactapp(); const reactappLocals = periodic.locals.extensions.get('periodicjs.ext.reactapp'); const reactapp = reactappLocals.reactapp(); const userRoleForm = (options = {}) => reacta...
import Ember from "ember"; export default Ember.ArrayController.extend({ needs: ['project'], projectController: Ember.computed.alias("controllers.project"), initialize: function() { //console.log(this.get('model')); console.log('testing'); console.log(this.get('model')); var m...
'use strict'; // this is necessary due to a change in node-fetch that no longer supports require const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); var _ = require('lodash'), Q = require('q'), utf8 = require('utf8'), validator = require('validator'); /** * StopForumSpam...
/** * The "grunt-promise" NPM module. * * The MIT License (MIT) * Copyright (c) 2016 Mark Halliwell * * @module module:grunt-promise */ (function (exports, native) { 'use strict'; var grunt = require('grunt'); var util = require('./lib/util'); /** * Determines if an object is "thenable" (aka. Promis...
twoToTheNth = function(n) { var solutionString = "2"; for (var counter = 1; counter < n; counter++) { solutionString = addStrings(solutionString, solutionString); } return solutionString; } addStrings = function(string1, string2) { var carry = []; var topNumber = string1; var bottomNumber = string2; ...
var THREE = require('three'); //threejs不用import方式 是不想webpack 出打包警告提示 var TWEEN = require('tween.js'); import { TrackballControls } from './TrackballControls'; import { WWOBJLoader2 } from './WWOBJLoader2'; import { Octree } from './Octree'; var ZipTools = (function() { function ZipTools(path, vue) { this....
const crypto = require('crypto'); let key = crypto.randomBytes(32); process.stdout.write(`CARDSTACK_SESSIONS_KEY=${key.toString('base64')}\n`);
'use strict'; /** * Module to store the passed in options * Useful for middlewares */ module.exports = { authenticatedRequest: null, grasshopper : null };
game.PlayScreen = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function() { // background color me.game.world.addChild(new me.ColorLayer("background", "#330000"), 0); // static background image var background = new me.Sprite(480, ...
import commonMiddleware from './rx-middleware/commonMiddleware'; import {combineReducers} from 'redux-core'; import * as reducers from './reducers/counter'; const middleware = [commonMiddleware]; export function applyRxMiddleware(intent$, store) { return middleware.reduce((prev, cur) => { return prev.flatMap(cu...
$(document).ready(function(){ var myPlaylist = new jPlayerPlaylist({ jPlayer: "#jplayer_N", cssSelectorAncestor: "#jp_container_N" }, [ { title:"K6", artist:"G-Man", mp3:"http://picosong.com/cdn/387a5d42d3c7996be677441a8f4990e0.mp3", poster: "images/m0.jpg" }, ...
/** * Sleep charter, event handlers * Roy Curtis, MIT license, 2017 */ /** * Handles mousing over of sleep bars. Uses the entire sleep chart element, so that we can * avoid attaching an event listener to every single sleep bar. * * @param {MouseEvent} evt */ function onSleepChartMouseOver(evt) { /** @type ...
var React = require('react'); var _ = require('lodash'); var classNames = require('classnames'); var Modal = React.createClass({ closeClick: function(event) { event.preventDefault(); this.close(); }, backdropClick: function(event) { if (!$(event.target).closest('.modal-dialog').length) { this...
var less; (function () { 'use strict'; function getScript(url) { document.write('<script type="text/javascript" src="' + url + '"></script>'); } function getStyleSheet(url) { var fileExtension = url.split('.').pop(), rel = (fileExtension === 'less') ? '/less' : ''; document.wri...
'use strict'; //Students service used for communicating with the students REST endpoints angular.module('students').factory('Students', ['$resource', function ($resource) { return $resource('api/students/:studentId', { studentId: '@_id' }, { update: { method: 'PUT' } }); } ]);...
$(document).ready(function() { var socket = io.connect(); var selItem = ''; var tempItem = ''; socket.on('connect', function() { console.log('connected'); socket.emit('pageID', 'page1'); }); socket.on('disconnect', function() { console.log('disconnected'); }); socket.on('error...
/** * Controller for render the pages */ PagesController = new Object(); PagesController.homePage = function (req, res) { //Vars //Render } //User CRUD //How Many List //How Many CRUD //How Many Done //Congratulations //Configuration //PagesController. module.exports = PagesController; /** * L...
var expect = require('expect.js'); var utils = require("../lib/utils"); describe("Utils", function() { describe("dominantMovement", function() { it("returns the dominant movement as a direction and distance", function() { var movementOne = [1, 2, 3]; var movementTwo = [2, -4, 4]; expect(utils....
Schema.UserLog = new SimpleSchema({ userId: { type: String }, date: { type: Number }, details: { type: Object, blackbox: true } }); UserLogs = new Mongo.Collection("userLogs"); UserLogs.attachSchema(Schema.UserLog);
import Resolver from 'ember/resolver'; import loadInitializers from 'ember/load-initializers'; var App = Ember.Application.extend({ modulePrefix: 'appkit', // TODO: loaded via config Resolver: Resolver, LOG_TRANSITIONS: true }); loadInitializers(App, 'appkit'); export default App;
const prefix = 'jquery-extras-id-'; let idCounter = 0; export default () => prefix + ++idCounter;
'use strict'; module.exports = function() { var //--------------- // Imports //--------------- lang = require('rw-mercenary/lang'), partial = lang.partial, push = lang.push, get = lang.get, set = lang.set, //---------------------- // I...
// @flow import type { ApiBooking } from '../../../common/apiTypes'; import { getDateString, numberToTimestring, timestringToNumber } from '../../../common/utils'; // Time from 08:00 - 17:00 const timeslotsInNumbers = [ 480, 510, 540, 570, 600, 630, 660, 690, 720, 750, 780, 810, 840, 870, ...
require(["worldOptions", "patterns/pattern", "world", "patterns/patternGenerator", "life", "controls", "patterns/patternList", "patterns/patternBinding"], function(worldOptions, pattern, world, patternGenerator, life, controls, patternList, patternBinding) { theWorld = world.map(worldOptions); patternGenerator.a...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['1065',"tlece_ProductMaster Class","topic_00000000000003E5.html"],['1066',"Properties","topic_00000000000003E5_props--.html"],['1074',"Name...
import schema_generator from './schema-generator'; const api = { generateDefinition(key, definition) { const schema_list = schema_generator.createSchemaList(definition); return `### ${key}\n\n**Schema**\n\n${schema_list}`; }, }; export default api;
// Regular expression that matches all symbols in the Variation Selectors block as per Unicode v6.2.0: /[\uFE00-\uFE0F]/;
const {readImage} = require('./helpers') jest.setTimeout(15000) test('[trim] can trim an image using auto mode', (done) => { readImage('trim.jpg?trim=auto').then((img) => { expect(img.width).toBe(1024) expect(img.height <= 592).toBeTruthy() done() }) }) test('[trim] can trim an image using color mode...
/** * @apiDefinePermission public This information is publicly accessible. * No authentication is required. * * @apiVersion 1.0.0 */ /** * @apiDefinePermission user Authenticated access is required. * An API key is required. * * @apiVersion 1.0.0 */ /** * @api {get} /wow/?api_key={API_KEY}&a=get_balance Get...
/* * * DashboardContainer * */ import React from 'react'; import Helmet from 'react-helmet'; export default class DashboardContainer extends React.PureComponent { constructor(props){ super(props); this.state ={ title:"", body:"", image:"", preview:"", } } handleTitle = (event) => { ...
/**! * urlencode - lib/urlencode.js * * Copyright(c) 2012 - 2014 * MIT Licensed * * Authors: * fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com) */ "use strict"; /** * Module dependencies. */ var iconv = require('iconv-lite'); function isUTF8(charset) { if (!charset) { return true; } cha...