code
stringlengths
2
1.05M
/*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ /*global define: false*/ (function (root, factory) { if (typeof exports === "object" && exports) { factory(exports); // CommonJS } else { var mustache = {}; factory(mustache); if (typeof define === "funct...
/** * @fileoverview Monthday in month view * @author NHN FE Development Lab <dl_javascript@nhn.com> */ 'use strict'; var util = require('tui-code-snippet'); var config = require('../../config'), common = require('../../common/common.js'), domutil = require('../../common/domutil'), View = require('../../...
version https://git-lfs.github.com/spec/v1 oid sha256:01319208a3f1a539b96ab5247ecc461f72b863a5d00bcffee0083f6cb018d05c size 17991
import React from 'react'; import Icon from '../Icon'; export default class ForwardIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 16V8l16 16-16 16v-8H8V16z"/></svg>;} };
import React from 'react/addons'; import Board from '../models/board'; import Minimap from './minimap'; /** * */ export default React.createClass({ mixins: [ React.addons.PureRenderMixin ], propTypes: { background: React.PropTypes.shape({ value: React.PropTypes.string.isRequired, requestChange...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:plants/edit', 'Unit | Controller | plants/edit', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let controller = this.su...
'use strict'; const yosay = require('yosay'); const colors = require('ansi-colors'); const { Select } = require('enquirer'); const prompt = new Select({ name: 'color', message: 'Pick a color', header: yosay('Welcome to my awesome generator!'), footer: colors.dim('(Scroll up and down to reveal more choices)'),...
'use strict'; import './gulp/tasks/default'; import './gulp/tasks/watch'; import './gulp/tasks/webpack'; import './gulp/tasks/styles'; import './gulp/tasks/server';
const fs = require('fs') const path = require('path') const markdox = require('markdox') const { promisify } = require('util') const formatter = require('../utils/formatter') const compiler = require('../utils/compiler') const TEMPLATE_PATH = path.join(__dirname, '..', 'templates', 'api.tpl.ejs') const MARKDOX_OPTIONS...
exports.removeByAttr = removeByAttr; function removeByAttr(arr, attr, value){ var i = arr.length; while(i--){ if( arr[i] && arr[i].hasOwnProperty(attr) && (arguments.length > 2 && arr[i][attr] === value ) ){ arr.splice(i,1); } } return arr; } /* //Ex...
// // The express app for the list of commits for an Artsy repo. // var express = require('express'), Commits = require('../../collections/commits.js'); var app = module.exports = express(); app.set('views', __dirname + '/templates'); app.set('view engine', 'jade'); app.get('/commits', function(req, res, next...
var express = require('express'); var Repository = require('./lib/repository.js'); var repo = new Repository(); repo.on('ready', function(documents) { console.log(documents) }); repo.collect();
'use strict'; //--------------------------------------------------------------------------------------------------------------- // Home controller //--------------------------------------------------------------------------------------------------------------- angular.module('mainModule') .controller('SignupControlle...
'use strict'; angular.module('myRooms').controller('myRoomController', ['theRoom', '$scope', '$rootScope', 'Authentication','RoomDataProvider', 'StudentDataProvider', 'UserDataProvider', 'TabletDataProvider','AuthService', function(theRoom, $scope, $rootScope, Authentication, RoomDataProvider, StudentDataProvi...
/** * @class RabbitClientError * @extends Error * @param {Object} errorObject Object, that RabbitMq returns. * @return {RabbitClientError} * @constructor */ function RabbitClientError(errorObject){ Error.call(this); this.name = "RabbitClientError"; this.message = errorObject['reply-text']; this.code = er...
class presenter_mcvideopresenter_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() ...
'use strict'; phoneApp.controller('EditPhoneController', function EditPhoneController ($scope,phoneDatas) { $scope.savePhone=function (smartphone,newPhoneForm) { if (newPhoneForm.$valid) { phoneDatas.savePhone(smartphone); alert("smartphone "+smartphone.name+ " "+ "saved!"); } else { alert('invalid ...
/* * LaterList * @author Will Weiss <william.t.weiss@gmail.com> */ var chai = require('chai'), chaiAsPromised = require('chai-as-promised'), sinon = require("sinon"), sinonChai = require("sinon-chai"), u = require('../lib/utils'), Relay = require('../lib/Relay'), Flood = require('../lib/Flood'); var sh...
version https://git-lfs.github.com/spec/v1 oid sha256:7ae4f215987a4df14165166a408a820661865f9288df1e61b3fc14f02d7dbb79 size 2170
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * Load dependencies */ var querystring = require('querystring'), format = require('./utils/format'), arrayUtils = require('./utils/array'), versionUtils = require('./utils/version'); /** * Expose `Query` */ module.exports = exports = Query; /** * Create a new `Query` * @constructor * * @retur...
"use strict"; /** * @author Eric Kuhn <digit.sensitivee@gmail.com> * @copyright 2017 Eric Kuhn * @license Eric Kuhn */ var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = ...
YUI.add('node-core', function (Y, NAME) { /** * The Node Utility provides a DOM-like interface for interacting with DOM nodes. * @module node * @main node * @submodule node-core */ /** * The Node class provides a wrapper for manipulating DOM Nodes. * Node properties can be accessed via the set/get methods. * ...
'use strict'; import GameRoom from '../../../server/controllers/game_room.server.controller'; import { max_players, min_players } from '../../../server/controllers/game_room.server.controller'; import { q } from '../../../server/controllers/queue.server.controller'; ...
output = function() { $.browserify.add($.file); done(); };
/** * @ngdoc service * @name app:urlRouteFactory * * @description * * * */ angular.module('app') .factory('urlRouteFactory', function () { var Service = { mailContent: [ { name: 'not-found', url: 'view1_/not_found_frame.html', ...
(function () { 'use strict'; const pkg = require ('../package'), fs = require ('fs'), path = require ('path'), defer = require ('config/defer').deferConfig, handlebars = require ('handlebars'), reporter = require ('../src/server/reporters/mongo'); module.exports = { manifest: { server: { debug: ...
var setRecur = function(recur) { if (typeof recur === 'undefined') { return false; } else { return recur; } }; var iSense = { TIMESTAMP: 1, NUMBER: 2, TEXT: 3, LATITUDE: 4, LONGITUDE: 5, URL: 'http://isenseproject.org/api/v1/', //URL: 'http://rsense-dev.cs.uml.edu/api/v1/', getProject: ...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013, 2014, 2015 School of Business and Engineering Vaud, Comem * Licensed under the MIT License */ /** * @fileoverview * @author Francois-Xavier Aeberhard <fx@red-agent.com> */ YUI.add("wegas-inputex-markup", function(Y) { var lang = Y.Lang, ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
angular.module('SuMaiTong').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider.when('/category', '/category/admin'); $stateProvider.state('category', { url: "/category", views: { "container": { templateUrl: "templates/category/category_layout.html"...
define(['exports', 'aurelia-metadata', 'aurelia-dependency-injection', 'aurelia-templating', './dialog-controller', './dialog-renderer', './lifecycle'], function (exports, _aureliaMetadata, _aureliaDependencyInjection, _aureliaTemplating, _dialogController, _dialogRenderer, _lifecycle) { 'use strict'; exports.__es...
/* AngularJS v1.2.16-build.60+sha.8a59724 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(R,U,s){'use strict';function B(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.16-build.60+sha.8a59724/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)...
var sticky = require('../'); var assert = require('assert'); var http = require('http'); var PORT = 13845; var server = http.createServer(function(req, res) { res.writeHead(200, { 'X-Sticky': process.pid }); res.end('hello world'); }); if (sticky.listen(server, PORT)) return; // Master var waiting = 10...
/*jslint node */ "use strict"; const path = require("path"); const {run} = require("dockerfilelint"); module.exports = function makeLinter({rcFile}) { const configDirectory = path.dirname(rcFile); return function lint({promisedFile}) { return promisedFile.then(function lintAndAdaptWarnings(file) { ...
module.exports = function( grunt ) { "use strict"; function readOptionalJSON( filepath ) { var data = {}; try { data = grunt.file.readJSON( filepath ); } catch ( e ) {} return data; } var gzip = require( "gzip-js" ), srcHintOptions = readOptionalJSON( "src/.jshintrc" ); // The concatenated file won...
/**--------------------------------------------------------------------------------------------------------------------- * tgi-store-local/lib/tgi-store-local.lib.js */ TGI.STORE = TGI.STORE || {}; TGI.STORE.LOCALSTORAGE = function () { return { version: '0.0.4', LocalStore: LocalStore }; };
(function() { var GeoCoder, GoogleMap, map; map = null; window.GeoCoder = GeoCoder = (function() { function GeoCoder(zipcode) { this.zipcode = zipcode; } GeoCoder.prototype.getCoordinates = function(callback) { return $.get('api/geocoder/' + this.zipcode, callback, 'json'); }; retu...
import { assign } from 'ember-utils'; import { compile } from 'ember-template-compiler'; import { EventDispatcher } from 'ember-views'; import { helper, Helper, Component, _resetRenderers} from 'ember-glimmer'; import { ModuleBasedResolver } from '../test-resolver'; import AbstractTestCase from './abstract'; import bu...
import { $t } from '@/src/plugins/locale'; export default { includeAlpha_num: field => $t('validator.messages.includeAlpha_num', { field }), };
function RobotMazeInterface(robot,maze,selector ) { this.robot = robot; this.maze = maze; this.selector = selector; } RobotMazeInterface.prototype.canMove = function (x, y, direction) { var forwardX, forwardY, forwardDirection; if (["north","east","south","west"].indexOf(direction) === -1) { return f...
"use strict"; var pdf = require('pdfkit'); var displayReport = require('./reportDisplayer'); pdf.prototype.textRotate = function(angle, x, y, height) { var cos, rad, ref, sin, x1, y1; rad = angle * Math.PI / 180; cos = Math.cos(rad); sin = Math.sin(rad); x1 = x; y1 = y; //height - y; thi...
module.exports = { _meta: { id: "ru-RU", fallback: null, language: "Russian", country: "Russia", countryCode: "RU" }, names: require("./names"), phone: require("./phone"), address: require("./address"), company: require("./company"), internet: require("./internet") };
/** * @summary Race timing system * @author Guillaume Deconinck & Wojciech Grynczel */ 'use strict'; const globalHooks = require('../../../hooks'); const hooks = require('feathers-hooks-common'); const auth = require('@feathersjs/authentication'); const setPlaceRanking = require('./set-place-ranking'); const comput...
var ROUTE_PARAM_NAME_WHITELIST_CHARS = /[0-9a-zA-Z\_\-]/; var ROUTE_PARAM_PREFIX = ':'; var ROUTE_PARAM_OPTIONAL_PREFIX = '('; var ROUTE_PARAM_OPTIONAL_SUFFIX = ')'; /** * Resolves a URL from a given path string and params array * Handles optional params like 'mailbox(/:id)' * @param string path The path string (e....
//=require jquery.lazyload $(window).load(lazy_load_images); function lazy_load_images() { $("img.lazy").show().lazyload(); }
var mongoose = require('mongoose'); var LinkSchema = new mongoose.Schema({ url: {type: String, trim: true, required: true}, title: {type: String}, description: {type: String}, 'private': {type: Boolean, required: true, 'default': false}, tags: [{type: String, lowercase: true, trim: true}], crea...
import { ALL_TRANSFORMERS, FORMAT_KEY, FORMAT_SEPARATOR, TRANSFORMER_ACTIONS_KEY, TRANSFORMER_NAME_KEY, TRANSFORMER_REPLACE_STRING_KEY, } from 'src/constants'; import { MissingFormatSeparatorError, TransformerMissingError, } from 'src/errors'; // we sort the transformers so longer names are tried first...
import Post from '../models/post'; import cuid from 'cuid'; import slug from 'limax'; import sanitizeHtml from 'sanitize-html'; /** * Get all posts * @param req * @param res * @returns void */ export function getPosts(req, res) { Post .find({ user: req.user._id }) .select('user name title content') ...
import { Projection } from 'ember-flexberry-data'; export default Projection.OnlineStore;
import React from 'react'; import PropTypes from 'prop-types'; import { Text, StyleSheet, } from 'react-native'; import murmurHash from 'murmur2js'; const propTypes = { id: PropTypes.number.isRequired, ...Text.propTypes, }; const contextTypes = { nativeNavigationInstanceId: PropTypes.string, }; const PARAG...
// Concatinate sass partials // --------------------------------------------------- var gulp = require('gulp'); var concat = require('gulp-concat'); gulp.task('concat', function(){ return gulp.src('./dev/master/*.scss') .pipe(concat('_spice.scss')) .pipe(gulp.dest('./dev/src')); });
/** * Created by kamaron on 9/8/15. */ var async = require('async'); var getBaseData = require('./index').fill_data; var submissionDao = require('../../dao/submission_dao'); var problemDao = require('../../dao/problem_dao'); var languageDao = require('../../dao/language_dao'); exports.get = function (req, res) { ...
/*global define,Workspace*/ /*jslint white: true*/ /*eslint-env browser*/ /** * Widget to display a table of data objects from a kbase workspace. * * Options: * wsId - the name of the workspace to show in this widget * loadingImage - an image to show in the middle of the widget while loading data * notL...
(function () { var anguNg = ['ngAria', 'ngSanitize', 'ngAnimate', 'ngMessages', 'ngNotify', 'ngTable']; var anguEx = ['ui.bootstrap', 'mgcrea.ngStrap', 'angularMoment', 'bootstrapLightbox']; var routerCtrl = ['ntp.router', 'ntp.ctrl']; var cons = ['ntp.constant']; var serv = ['ntp.sig.service', 'ntp.service']; v...
import Logo from './Logo'; export default { route: '/jobstreet-logo', tenantPath: 'jobStreet', title: 'JobStreet Logo', component: Logo, initialProps: { country: 'my' }, options: [ { label: 'Country', type: 'radio', states: [ { label: 'Malaysia', tran...
var MWError = function (code, message) { this.code = code; this.message = message; }; module.exports = MWError;
import React from 'react'; import {Glyphicon} from 'react-bootstrap'; export default React.createClass({ render() { const cls = this.props.filled ? 'star filled' : 'star'; return ( <span className={cls}> {this.props.filled ? <Glyphicon glyph="star"/> : <Glyphicon glyph="star-empty"/>} </span> ) } })...
'use strict'; function Game(context, height, width) { this.context = context; this.height = height; this.width = width; this.world = this.createWorld(); this.createGround(); // this.createPoly( 100, 100, [[0, 0], [10, 30], [-10, 30]], true); // this.createPoly(150, 150, [[0, 0], [10, 30], [...
import React, { PropTypes, Component } from "react"; export default class Movie extends Component { static propTypes = { movie: PropTypes.object.isRequired, currentGenre: PropTypes.string } render() { const { movie, currentGenre } = this.props; return ( <tr className="Movie-tr"> <...
import AuthenticatedRoute from 'ghost/routes/authenticated'; import CurrentUserSettings from 'ghost/mixins/current-user-settings'; import PaginationRouteMixin from 'ghost/mixins/pagination-route'; var TagsRoute, paginationSettings; paginationSettings = { page: 1, include: 'post_count', limit: 15 }; T...
'use strict' /** * Testing for... * - Programatically generated Gaps * - Programatically generated bridges * - Bridges from json file * - Test request objects * - Test response objects * - Test reply objects */ require('./operations') require('./gap') require('./bridge') require(...
(function() { // Schedule Template - by CodyHouse.co function ScheduleTemplate( element ) { this.element = element; this.timelineItems = this.element.getElementsByClassName('cd-schedule__timeline')[0].getElementsByTagName('li'); this.timelineStart = getScheduleTimestamp(this.timelineItems[0].textContent); thi...
const assign = require("lodash.assign"); const pick = require("lodash.pick"); let _listeners = []; let _state = {}; let _changed = []; const EditorStore = { set(state, emit) { emit = emit !== false; _state = assign(_state, state); _changed = Object.keys(state); if (emit) { this.emit(); } }, g...
module('Form Validate After Callback', { setup: function() { ClientSideValidations.forms['new_user'] = { type: 'ActionView::Helpers::FormBuilder', input_tag: '<div class="field_with_errors"><span id="input_tag" /><label for="user_name" class="message"></label></div>', label_tag: '<div class="fie...
{ events : [ ["Some Event", "Some description"], ["Another Event", "A description for another event."], ["A New Event", { desc : "Our story begins. Evan is shown to be a character.", changes : { characters : '+Evan' } }] ], arcs: [] }
#!/usr/bin/env node const yargs = require("yargs"); const build = require("../tasks/build"); const config = require("../tasks/config"); const dev = require("../tasks/dev"); const pkg = require("../../package"); yargs .version(pkg.version) .help("h") .alias("h", "help") .wrap(100) .usage("Usage: $...
import { createSimpleFunctional } from '../../util/tools' import Tab from './Tab.vue' import TabsItem from './TabsItem.vue' const Tabs = createSimpleFunctional('tabs') const TabsNav = createSimpleFunctional('tabs-nav') const TabsContent = createSimpleFunctional('tabs-content') const TabsSlider = createSimpleFunctio...
/** * Created by Julien Verhaeghe => jverhaeghe.dev@gmail.com on 3/25/2015. */ (function() { 'use strict'; angular.module('JVPortfolio.services', ['ngResource']) .factory('Projects', Projects); Projects.$inject = ["$resource"]; // needed for compression function Projects($resource){ ...
Zart.prototype.EntityCollection = Backbone.Collection.extend({ model: Zart.prototype.Entity, addOrUpdate: function(model) { var collection = this; if (_.isArray(model)) { var entities = []; _.each(model, function(item) { entities.push(collection.addOrUpda...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('episode-of-care-status-history', 'Unit | Serializer | EpisodeOfCare_StatusHistory', { needs: [ 'serializer:episode-of-care-status-history', 'model:period', 'model:meta', 'model:narrative', 'model:resource', 'model:extension' ...
/** * @author alteredq / http://alteredqualia.com/ */ THREE.BufferGeometry = function () { this.id = THREE.GeometryIdCount ++; this.uuid = THREE.Math.generateUUID(); this.name = ''; // attributes this.attributes = {}; // attributes typed arrays are kept only if dynamic flag is set this.dynamic = true; ...
export App from './App/App'; export RootContainer from './Root/Root';
var express = require('express'); var request = require('request'); var fs = require('fs'); var config = require('../config'); var app = express(); // during the initialize call below, the app will replace the following data // with data of the config file. var SSOconfig = { partnerId: "PSN2-SAML2-Entity", sta...
"use strict"; let Caf = require("caffeine-script-runtime"); Caf.defMod(module, () => { return (() => { let NewInstanceStn; return (NewInstanceStn = Caf.defClass( class NewInstanceStn extends require("../BaseStn") {}, function(NewInstanceStn, classSuper, instanceSuper) { this.prototype.toSo...
'use strict'; var app = angular.module('tttApp', []); app.controller('BoardController', function ($scope, socket, modelFactory) { //Socket setup socket.on('play', function (msg) { $scope.game.play(msg); }); $scope.room = ROOM_NUM; //Functions $scope.play = function (cell) { ...
exports.run = (client, message) => { message.channel.send('Ping?') .then(msg => { msg.edit(`Pong! (took: ${msg.createdTimestamp - message.createdTimestamp}ms)`); }); }; exports.conf = { enabled: true, guildOnly: false, aliases: [], permLevel: 0 }; exports.help = { name: 'ping', description...
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var DateFilter = new Module('mean-date-filter'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ DateFilter.register(function(app, auth, database) { //We enable routing. ...
const downloadFile = (srcUrl, filename, progressCallback, method = 'GET') => { const xhr = new window.XMLHttpRequest() let total = 0 const abort = () => { xhr.abort() progressCallback(null) } xhr.responseType = 'blob' xhr.open(method, srcUrl, true) xhr.onload = (e) => { progressCallback(100...
//Copyright (c) 2016 Simeng Hua //This code is available under the "MIT License". //Please see the file COPYING in this distribution //for license terms. /*---------------------------- NewGame ------------------------*/ $(document).ready(function() { newgame(); }); function newgame() { init();//initail board gene...
/** Copyright 2015 Rick Wargo. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the "license" file accompanying this file. This file is d...
import { reducer } from './reducer' import { addTravel, removeTravel, rescheduleTravel } from './actions' describe('Action creators', () => { it('should initialize the store', () => { const initialState = undefined const dummyAction = { type: 'DUMMY_ACTION' } const expectedState = { travels: [] } ...
module.exports = { 'v-tooltip': { slots: [ { name: 'activator', props: { on: '{ [eventName]: eventHandler }', value: 'boolean', }, }, ], }, }
const { expect } = require( "chai" ) const TEST_DATA = require( "test/testData" ) class FetchNoteListServiceMock { constructor( injectables ) { this.injectables = injectables } call( command ) { // TODO: expectations inside mocks don't feel right expect( command.repoUrlWithAuth ).to.not.be.empty ...
'use strict'; angular.module('testApp') .config(function ($stateProvider) { $stateProvider .state('createproject', { url: '/createproject', templateUrl: 'app/createproject/createproject.html', controller: 'CreateprojectCtrl' }); });
/* * grunt-startup * https://github.com/tylerbeck/grunt-startup * * Copyright (c) 2014 Tyler Beck * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { //intentionally left empty };
const render = require('./render'); const paper = require('./paper'); const engine = require('./engine'); const symbolsLibrary = require('./symbols-library'); class TowardsMass { constructor() { this.step = this.step.bind(this); } start() { this.prepareDocument(); this.engine = engine; this.ren...
randomNumber = function() { return (Math.floor(Math.random() * 2)); } function Question(question, incorrectAnswer, correctAnswer) { this.question = question; this.incorrectAnswer = incorrectAnswer; this.correctAnswer = correctAnswer; this.correctButton = ''; } Question.prototype.displayQuestion = function()...
'use strict'; const markdownit = require('../'); exports.render = (str) => { return markdownit().render(str); };
define([], function() { Path.map("#!/reset(/:hash)").to(function(){ }).enter(function() { var hash = this.params['hash']; require(['tpl!template/reset.html'], function(tpl){ $('#main').append($(tpl.apply())); $('header').hide(); $('#main').addClass('transparent-background'); $('footer').hide(); ...
'use strict' import _ from 'lodash' import passport from 'passport' import config from '../config' import jwt from 'jsonwebtoken' import expressJwt from 'express-jwt' import compose from 'composable-middleware' import Auth from '../api/user/model' import * as Utils from '../components/utils' import {EntityNotFoundErro...
'use strict'; var should = require('should'); var fs = require('fs'); var qn = require('qn'); var config = require('./config'); var pending = function(n, fn) { return function(err) { if (err) return fn(err); --n || fn(); } }; describe('qiniu_deploy', function() { before(function () { ...
module.exports = { example: require('./Example.js'), };
var Dialog = Ergo.widgets.Panel.extend({ defaults: { include: 'modal effects', effects: { show: {type: 'fadeIn', delay: 300} }, as: 'modal paper', renderTo: 'body', destroyOnClose: true, closeOn: 'outerClick', width: 700, // height: 300, $content: { // cls: 'panel-content', height: 100 //...
var searchData= [ ['derived',['Derived',['../class_cubby_flow_1_1_array_base.html#aef7b65704b4cf6a826d91b4792743d5d',1,'CubbyFlow::ArrayBase']]] ];
require("../test/example-utils.js").quickInit() const Table = require("../") const header = [ { value: "col1" }, { value: "col2" } ] const rows = [[10001, 20002]] const header2 = [ { value: "col1" }, { value: "col2" }, { value: "col3" } ] const rows2 = [ [1, 2, 3], [3, 34, 99] ] const t1 = Table(header...
define([ "../core", "./var/rsingleTag", "../manipulation" // buildFragment ], function( chadQuery, rsingleTag ) { // data: string of html // context (optional): If specified, the fragment will be created in this context, defaults to document // keepScripts (optional): If true, will include scripts passed in the htm...
/* Just copy and paste this snippet into your code */ module.exports = function(event, done) { var vend = Hoist.connector('<key>'); vend.delete('/supplier/1') .then(function (response) { if (response.statusCode === 200) { // delete worked } }) .then(done); };
// polyfills const readyStates = new Set(['complete', 'loaded', 'interactive']); function loadMainClient() { const main = require('./client').default; // eslint-disable-line global-require main(); } function run() { // Run the application when both DOM is ready and page content is loaded if (readyStates.has(d...
var fs = require('fs'); function loadVips() { try { Users.vips = JSON.parse(fs.readFileSync('config/vips.json', 'utf8')); } catch (e) { Users.vips = {}; } } if (!Users.vips) loadVips(); function saveVips() { fs.writeFileSync('config/vips.json', JSON.stringify(Users.vips)); } exports.commands = { givedev: fu...