code
stringlengths
2
1.05M
// circuits by lionel ringenbach @ ucodia.space // display parameters var scaling = 40; var nodeSize = scaling * 0.45; var linkSize = nodeSize * 0.1; var offset = { x: scaling / 2, y: scaling / 2 }; // theming var themes; var currentTheme; // data var currentModel; function setup() { createCanvas(window.innerWidth...
exports = module.exports = { "title": "1" };
var parsers = { 'dom' : function(value, opts) { opts = opts || {}; // should default to this // opts.parser = markdownDOMParser; return html2markdown(value, opts); }, 'html' : function(value, opts) { opts = opts || {}; opts.parser = markdownHTMLParser; return html2markdown(value, opts); } }; for(var...
import {route} from 'part:@vega/core/router' import Main from './Main' import routerParams from '@vega/utils/routerParams' export default { name: 'communicator-testbed', title: 'Communicator test', icon: () => null, router: route(':viewOptions', { transform: { viewOptions: { toState: routerPa...
import test from 'tape'; import buildConsoleReplay, { consoleReplay } from '../src/buildConsoleReplay'; test('consoleReplay does not crash if no console.history object', (assert) => { assert.plan(1); assert.doesNotThrow(() => consoleReplay(), /Error/, 'consoleReplay should not throw an exception if no console...
var mainAdmin = function () { var init = function init() { $(app).append('<iframe id="adminIframe0" src="http://editthispost.com:9002/p/index"></iframe><iframe id="adminIframe1" src="http://editthispost.com:9001"></iframe>'); }; return { init: init }; }();
// nombreVariable:tipoVariable /* let numero:number = 2; // numero = "Adrian"; //No se puede guardar tipos de dato string en numbers +numero = 18; let verdad:boolean = true; // verdad = 0;// No podemos igualar a un elemento que no sea un booleano verdad = null; verdad = undefine...
'use strict'; /* Controllers */ var app = angular.module('AngularFlask'); app.controller('IndexController', ['$scope', '$http', '$window', function ($scope, $http, $window) { console.log("loggedin at index: " + $window.sessionStorage.logged_in); if($window.sessionStorage.logged_in_status === 'true') { $scope.logg...
'use strict'; var express = require('express'); var logger = require('morgan'); var path = require('path'); var responseTime = require('response-time'); var methodOverride = require('method-override'); var multer = require('multer'); var compression = require('compression'); var c...
'use strict'; import React from 'react'; import { Router, Route, IndexRoute} from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; let history = createBrowserHistory(); // import useScroll from 'scroll-behavior/lib/useStandardScroll' import CurrentUserStore from './stores/CurrentUs...
import React from "react"; import RenderParameter from "../helpers/RenderParameter"; const Rain = ({ data }) => { const parameter = data.RainHourly; return ( <div className="Rain"> <div className="row align-items-center"> <div className="col-4"> <RenderParameter parameter={parameter} ...
(function() { 'use strict'; angular .module('animations') .factory('dpResource', dpResource); dpResource.$inject = [ '$rootScope', 'Restangular', '$localStorage', '$sessionStorage', '$q', 'AnimsConfig', 'dpObjectData', '$interval' ]; /* @ngInject */ function dpResource($rootScope, Restang...
/*! qpaste 2013-11-23 */ function respond(a,b){b.send("hello "+a.params.name)}var restify=require("restify"),db=require("riak-js").getClient({host:"127.0.0.1",port:"8098",debug:!0}),server=restify.createServer({name:"qPaste"});server.pre(restify.pre.userAgentConnection()),server.get("/hia/:name",respond),server.head("/...
import sqlFormatter from './../src'; import behavesLikeSqlFormatter from './behavesLikeSqlFormatter'; describe('Db2Formatter', () => { behavesLikeSqlFormatter('db2'); it('formats FETCH FIRST like LIMIT', () => { expect( sqlFormatter.format( 'SELECT col1 FROM tbl ORDER BY col2 DESC FETCH FIRST 20...
version https://git-lfs.github.com/spec/v1 oid sha256:fe53691b455530080b33c21ed8e6aec1f690cf560d2baf0461ae96c9e4887065 size 6087
module.exports = { name: 'GoogleFontsSelector', type: 'select', default: '0', section: 'general', title: 'Interface Font', description: 'Select a font from the Google Fonts library.', options: [ { name: 'Default', value: '0' }, { name: 'Open Sans', value: '1' }, { name: 'Roboto', value: '2' },...
import babel from 'rollup-plugin-babel'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import replace from 'rollup-plugin-replace'; import uglify from 'rollup-plugin-uglify'; export default { input: 'src/index.js', output: { file: 'lib/rxcc-es5-umd-rollu...
/* eslint global-require:0 */ import { createStore as _createStore, applyMiddleware, compose } from 'redux'; import { routerMiddleware } from 'react-router-redux'; import reduxThunk from 'redux-thunk'; import reduxCatch from 'redux-catch'; import reducer from 'App/reducer'; import actionLogger from './middleware/action...
export default { props: { titles: [{ name: 'a' }, { name: 'b' }, { name: 'c' }] }, html: ` <p>a</p> <p>b</p> <p>c</p> `, test({ assert, component, target }) { component.titles = [{ name: 'b' }, { name: 'c' }]; assert.htmlEqual(target.innerHTML, ` <p>b</p> <p>c</p> `); component.titles = [...
var express = require("express"); var logfmt = require("logfmt"); var app = express(); app.use(logfmt.requestLogger()); app.use(express.static(__dirname)); app.get('/', function(req, res) { res.render('index.html'); }); var port = Number(process.env.PORT || 5000); app.listen(port, function() { console.log("...
'use strict'; const name = getName(__filename), tpl = hbs.compile('{{ truncate str len }}'), tplSuffix = hbs.compile('{{ truncate str len suffix=" TBC" }}'); describe(name, function () { it('returns emptystring if undefined', function () { expect(tpl()).to.equal(''); expect(tpl({})).to.equal(''); }); ...
var EvernoteMail = require('../lib/EvernoteMail'); var config = require('../config/config'); describe('Send a mail to Evernote', function() { var evernoteMail; before(function() { config.evernote.mailUser = 'sample.example@gmail.com'; config.evernote.mailPass = 'u2Uqu7XBhQEDbBxA'; conf...
Pending = require('../models').Pending; var winston = require('winston'); var MongoDB = require('winston-mongodb')//.MongoDB; var logger = new (winston.Logger)({ transports: [ new (winston.transports.Console)(), new (winston.transports.File)({ filename: 'requests.log', json:false }) ] }); var rese...
var express = require('express'), http = require('http'), https = require('https'), fs = require('fs'), config = require('./config.json'), routes = require('./src/routes.js'), httpsApp = express(), httpApp = express(), favicon = require('serve-favicon'); //CORS var allowCrossDomain = fu...
function showElement(name) { var x = document.getElementById(name); if (x.style.display === 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } }
module.exports = function (gulp, glob, genericTask, runSequence) { // build custom tasks for i18n glob.sync('./temp/README-*.md').map(function(file){ return file.replace(/.*README\-|\.md$/g, ''); }).concat(['all', 'eng']).forEach(function(lang){ genericTask(lang); gulp.task('doc:pdf:'+lang, function...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Filters = { Scale: function Scale() { var inmin = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0]; var inmax = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; var outmin = arg...
/** * DevExtreme (data/utils.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var $ = require("jquery"), toComparable = require("../core/utils/data").to...
//var service_url = 'http://2048.semantics3.com'; //var service_url = 'http://localhost:2048'; var service_url = 'http://ring:2048'; var session_id = ""; var interval = 0; var stop = false; var score; function view(obj) { for (var i = 0; i < 4; i++) { for (var j = 0; j < 4; j++) { var num = obj.grid[i][j];...
// import a from 'moduleA.js'; // console.log('Module A loaded.'); // a.update(); // /** // * Should output: // * // * Hi from module B. // * Hi from module A. // */ // import c from 'moduleC.js'; // console.log('Module C loaded.'); // c.show(); // /** // * Should output: // * // * Hi from module C. // */ ...
#!/usr/bin/env node /*! * Script to run vnu-jar if Java is available. * Copyright 2017-2019 The Bootstrap Authors * Copyright 2017-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ 'use strict' const childProcess = require('child_process') const vnu = require('vn...
angular.module( 'sample', [ 'auth0', 'ngRoute', 'ngSanitize', 'sample.home', 'sample.login', 'angular-storage', 'angular-jwt' ]) .config( function myAppConfig ( $routeProvider, authProvider, $httpProvider, $locationProvider, jwtInterceptorProvider) { $routeProvider .when( '/', { controller: ...
/***************************************************************************************** * Gamma: * The hunter. Takes a moment to strengthen its army, then selects a target unit to track * down. Ignore everything else en-route. * Contributed by: Chris Taylor & Matt Wagner **************************************...
'use strict'; angular.module('newsApp') .controller('profileCtrl', ['$http', '$scope', 'baseUrl', function($http, $scope, baseUrl){ $scope.model = []; $http.get(baseUrl + '/api/v1/users/me/').success(function(response){ $scope.userData = response.users; sessionStorage.setItem('email', response.user.email);...
#!/usr/bin/env node const colors = require('colors/safe'); const { execSync } = require('child_process'); function log(message) { console.log(`${colors.yellow('[morto]')} ${message}`); } function exec(command, cwd) { const startTime = new Date(); log(`[exec] running "${command}" in "/${cwd || ''}"...`); try ...
const winston = require('winston'), //Used for logging to file fileLog = new(winston.Logger)({ //Creates log transport to log to error.log file transports: [ new(winston.transports.File)({ filename: 'error.log', //The name of the logging file showLevel: false, ...
"use strict"; /* Controllers */ var pongAppControllers = angular.module("pongAppControllers", []); pongAppControllers.controller("dashboardCtrl", ["$scope", "$http", "socket", function($scope, $http, socket, $routeParams) { var NUM_RECENT_GAMES = 5; $scope.dataRefresh = function(refresh) { if (!refresh) { ...
/** * http://usejsdoc.org/ */ define('api/user', ['app/kickStart'], function (app) { function transformResponse(data, headers) { return { data: JSON.parse(data), token: headers().authentication }; } //console.log(app); app.factory('Register', ['$resource', function($resource) { return $resource...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:authorize', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var controller = this.subject(); assert.ok(controller); });...
// My first try at Gulp, just a bunch och copy-paste-stuff that seems to work... var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var paths = { scripts: ['src/*'], triggers: ['src/triggers-plugin/*','src/triggers.js'] }; gulp.task('clean', function(cb) { // ...
// Generated by CoffeeScript 1.9.3 (function() { var CompositeDisposable, Panel, PanelElement, callAttachHooks, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; c...
/*jslint node: true */ "use strict"; var passport = require('passport'); module.exports = function (app) { app.use(passport.initialize()); app.use(passport.session()); passport.serializeUser(function (user, done) { done(null, user); }); passport.deserializeUser(function (user, done) { ...
// @flow import type {PrecinctData, StatByParty} from './types'; // Find the key for the larger of the values. // // obj should be an object with two keys and numerical values. Returns the key // corresponding to the larger value, or null if they are equal. function winner(obj: StatByParty): ?string { const [k1, k2...
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const TextAreaTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExamp...
'use strict'; var React = require('react'); var PureRenderMixin = require('react-addons-pure-render-mixin'); var SvgIcon = require('../../svg-icon'); var ImageCropRotate = React.createClass({ displayName: 'ImageCropRotate', mixins: [PureRenderMixin], render: function render() { return React.createElement(...
pinboard.contextMenus = (function() { 'use strict'; var SAVE_TO_PINBOARD = 'Save to Pinboard'; var SAVE_SELECTION_PINBOARD = 'Save Selection to Pinboard'; var SAVE_URL_TO_PINBOARD = 'Save URL to Pinboard'; var SAVE_IMAGE_URL_TO_PINBOARD = 'Save Image URL to Pinboard'; var SAVE_AUDIO_URL_TO_PINBOARD = 'Save...
/* ************************************************************************ Googly Copyright: 2010-2011 Deutsche Telekom AG, Germany, http://telekom.com ************************************************************************ */ /** * Googly appearances */ qx.Theme.define("googly.theme.Appearance", { ...
import App from './build' const app = new App();
/** * German translation for bootstrap-datepicker * Sam Zurcher <sam@orelias.ch> */ ;(function($){ $.fn.datepicker.dates['de'] = { days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"], daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"], day...
'use strict'; import $ from 'jquery'; import jQuery from 'jquery'; window.$ = $; window.jQuery = jQuery; require('bootstrap'); require('bootstrap-tagsinput'); require('bootstrap-tabcollapse') const editor = require('./braindump.editor'); const notebooks = require('./braindump.notebooks') const dates = require('./Dat...
/** * * Routes * * Copyright 2019, Author Name * Some information on the license. * **/ module.exports = { '/': () => { // Log it. window.Helpers.log('Route Loaded: home', '#E19F12') // Get route controller. let c = require('./routes/home').default // Check for an init method. if (typeo...
define(function() { "use strict"; var Connector = {}; Connector.ProblemControlsUI = { mapStateToProps: function(state, ownProps) { return ( { backCount: state.backCount, generationCount: state.generationCount, popSi...
(function($) { /** * 1. FitText.js 1.2 - (http://sam.zoy.org/wtfpl/) *-----------------------------------------------------------*/ (function( $ ){ $.fn.fitText = function( kompressor, options ) { // Setup options var compressor = kompressor || 1, settings = $...
"use strict"; var express = require('express'); var errors = require('../errors'); var directives = require('../directives'); var schemas = require('../schemas'); var moment = require('moment'); module.exports = function (logger, config, knexClient) { var router = express.Router(); var tokenService = directives.to...
import {bindable, customElement, bindingMode, computedFrom} from 'aurelia-framework'; import {resolvedView} from 'aurelia-view-manager'; @resolvedView('spoonx/form', 'form-select') @customElement('form-select') export class FormSelect { @bindable({defaultBindingMode: bindingMode.twoWay}) value; @bindable name = '...
'use strict'; var bufferEqual = require('buffer-equal'), ipLib = require('ip'), TWO_PWR_32 = (1 << 16) * 2, common = require('./common'); /** * Return the closest floating-point representation to the buffer value. Precision will be * lost for big numbers. */ function fromUInt64 (buf) { var high = buf...
var agent = require('superagent') ,select = require('./default/select'); //TODO: Choose better names //TODO: Make queries configurable module.exports = Client = function(options) { if(!(this instanceof Client)){ return new Client(options); }; this.options = options?(typeof options === 'str...
/** * This service creates a modal , * properties Of this modal can be set from the controller by injecting this service * */ contactManagerApp.service('ModalService', ['$modal', function ($modal) { var modalDefaults = { backdrop: true, keyboard: true, modalFade: true...
module.exports = { "key": "roggenrola", "moves": [ { "learn_type": "tutor", "name": "earth-power" }, { "learn_type": "tutor", "name": "block" }, { "learn_type": "tutor", "name": "sleep-talk" }...
import {WidgetBase} from '../common/widget-base'; import {constants} from '../common/constants'; import {generateBindables} from '../common/decorators'; import {customAttribute, inject} from '../common/common'; @customAttribute(`${constants.attributePrefix}button`) @generateBindables('ejButton', ['contentType', 'cssCl...
/* graph generator */ module.exports = function(flow){ var content = []; var nodeCount = flow.files.queue.length; var edgeCount = 0; // build graph file content content.push('digraph graph {'); flow.files.queue.forEach(function(file){ var c = color(file); if (c) content.push(name(file) + c);...
export default function clone (obj, parent) { if (obj === null || typeof obj !== 'object') { return obj; } let cloned = new obj.constructor(); for (let i in obj) { if (!({}.hasOwnProperty.call(obj, i))) { continue; } let value = obj[i]; if (i === 'pare...
const Usuario = require('../usuario/Usuario.js') const createUser = (oUser) => { return new Promise((resolve, reject) => { Usuario.create(oUser, function (err, oNewUser) { if (err) { reject({ mensage: err }) } else { resolve(oNewUser) } }) }); } module.exports.createUser = createUs...
/** * Created by diegopc86 on 09/12/15. */ Router.route('user/:_id/follow', function () { var _id = this.params._id; Meteor.call('followUser', _id); return this.redirect('/user/' + _id); }, { name: 'user.follow' }); Router.route('user/:_id/unfollow', function () { var _id = this.params._id; Met...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../../format/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../_lib/convertToFP/index.js'); var _index4 = _interopRequireDefault(_index3); function _interopRequireDefault(obj) { r...
import React from 'react'; import {mount} from 'enzyme'; import ReactDate from '../'; test('defaultValue', () => { const onChange = jest.fn(); const onValid = jest.fn(); const onInvalid = jest.fn(); const el = mount( <ReactDate format="DD/MM/YYYY" defaultValue="2017-04-18" onChange={onCha...
module.exports = { default : { files : [ '<%= buildCfg.srcPath %>/js/**/*.js', '<%= buildCfg.srcPath %>/stylesheets/**/*.{less,styl,sass,scss}' ], tasks : ['default'] }, build : { files : [ '<%= buildCfg.srcPath %>/js/**/*.js', ...
/* * This file has been commented to support Visual Studio Intellisense. * You should not use this file at runtime inside the browser--it is only * intended to be used only for design-time IntelliSense. Please use the * standard jQuery library for all production use. * * Comment version: 1.3.2b */ /* * jQuery...
'use strict'; module.exports = { db: 'mongodb://db/ooni', app: { title: 'OONI MEAN - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { clientID: process.e...
module.exports = function(arg) { return typeof arg === 'string'; }
/*global define*/ /////////////////////////////////////////////////////////////////////////// // Copyright © Esri. 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. // You may obtain a copy of the License at // /...
/*! JsRender v1.0pre: http://github.com/BorisMoore/jsrender */ /* * Optimized version of jQuery Templates, for rendering to string. * Does not require jQuery, or HTML DOM * Integrates with JsViews (http://github.com/BorisMoore/jsviews) * Copyright 2012, Boris Moore * Released under the MIT License. */ // informal...
'use strict'; angular.module('ta.bootstrap.fa').value('faOptions', { icon : {}, front : { name : 'fa-user', btnType : 'btn-success', tittleType : 'text-success' }, back : { name : 'fa-circle', btnType : 'btn-primary', tittleType : 'text-primary' }, sets : { sizes : [{ text : 'TA_FA_SIZE_DEFAULT...
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) { ext...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile',...
/** * Copyright 2014 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* eslint-disable */ import httpMocks from 'node-mocks-http'; import events from 'events'; import chaiHttp from 'chai-http'; import chai from 'chai'; import sinon from 'sinon'; import server from '../../../server'; import * as middlewares from '../../../middlewares/'; chai.use(chaiHttp); chai.should(); const response...
(function ($) { // Use underscore.js html escaper // http://underscorejs.org/#escape var _escape; (function () { var entityMap = { escape: { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '...
/** * User.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { name: { type: 'string' }, password: { type: 'string' } } };
(function () { 'use strict'; angular .module('archetypes') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('archetypes', { abstract: true, url: '/archetypes', template: '<ui-view/>' })...
/* eslint-disable */ var path = require("path"); var webpack = require("webpack"); module.exports = { entry: [ "babel-polyfill", "./index" ], output: { path: path.join(__dirname, "dist"), filename: "bundle.js", publicPath: "/dist/" }, plugins: [ new webpack.optimize.OccurenceOrderPlu...
"use strict"; module.exports = { getHost: function getHost(origin) { return origin.replace(/([^\/:\s])\/.*$/, '$1'); }, getCookie: function getCookie(str, ckName) { if (undefined === ckName || "" === ckName) { return ""; } if (str == null) { return '...
var gulp = require('gulp'), path = require('path'), del = require('del'); gulp.task('clean', function () { return del(['./aot', './dist']); }); gulp.task('copy-assets', function (done) { var gTask; var sourceFiles = ['src/assets/**/*']; var destination = 'dist/assets/'; gTask = gulp.src(sourceFiles) .pipe(g...
import * as components from './index.components'; import * as config from './index.config'; import * as run from './index.run'; const App = angular.module( 'myATApp', [ // plugins require('angular-ui-router'), "ngAnimate", "LocalStorageModule", "ngSanitize", "ngMessages", "ngAria", "n...
'use_strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json', 'bower.json'], updateConfigs: [], commit: true, commitMessage: 'Release v%VERSION%', ...
/* @flow */ import net from 'net'; // exponential backoff, roughly 100ms-6s const retries = [1, 2, 3, 4, 5].map((num) => Math.exp(num) * 40); const streams = { stdout: process.stdout }; // overwritable by tests const communicate = async function communicate( socketPath: string, message: string, ): Promise<void> ...
require('./rpc');
import React from 'react' import PropTypes from 'prop-types' import LoadingSpinner from './LoadingSpinner' // Waits for X ms before showing a spinner class DelayedSpinner extends React.PureComponent { constructor() { super() this.state = {} } componentDidMount() { this.timer = setTimeout(() => this....
'use strict'; // MODULES // var isString = require( 'validate.io-string-primitive' ), isObject = require( 'validate.io-object' ), contains = require( 'validate.io-contains' ), templates = require( './templates' ), path = require( 'path' ), fs = require( 'fs' ); // COPY // /** * FUNCTION: cp( dest[, opts ] ) *...
/** * Created by maglo on 27/09/2016. */ Ext.define("JS.article.List",{ extend:"JS.panel.HistoryGridPanel", config:{ panelData: { url: "", panelClass: "", gridUrl: Routing.generate("get_manuscrits"), actions: [] }, grid: { sto...
/* * Utils functions * */ var crypt = require('crypto'); /** * Break string str each maxLen symbols * @param str * @param maxLen * @returns {string} */ module.exports.linebrk = function (str, maxLen) { var res = ''; var i = 0; while (i + maxLen < str.length) { res += str.substring(i, i + m...
(function($){ $.getScript('/js/moment.min.js', function(){ var url = 'https://api.twitter.com/1/statuses/user_timeline/' + twitter_stream[0] + '.json?count=' + twitter_stream[1] + '&exclude_replies=' + (twitter_stream[2] ? 0 : 1) + '&trim_user=true&callback=?'; var linkify = function(text){ text = text...
import Resource from './resource'; export default class Message extends Resource { constructor(client, id) { super(client, 'message', id); } }
/** @constructor */ ScalaJS.c.scala_sys_process_BasicIO$Uncloseable$$anon$1 = (function() { ScalaJS.c.java_io_FilterOutputStream.call(this) }); ScalaJS.c.scala_sys_process_BasicIO$Uncloseable$$anon$1.prototype = new ScalaJS.inheritable.java_io_FilterOutputStream(); ScalaJS.c.scala_sys_process_BasicIO$Uncloseable$$ano...
var expect = require('expect.js'); var eio = require('../../'); var Blob = require('blob'); describe('blob', function () { this.timeout(30000); it('should be able to receive binary data as blob when bouncing it back (ws)', function (done) { var binaryData = new Int8Array(5); for (var i = 0; i < 5; i++) {...
(function(database){ var mongodb = require("mongodb"); var mongodbUrl = "mongodb://localhost:27017/theBoard" var theDb = null; database.getDb = function(next){ if(theDb){ next(null, theDb); } else{ mongodb.MongoClient.connect(mongodbUrl, funct...
const tasks = require('./tasks'); tasks.replaceWebpack(); console.log('[Copy assets]'); console.log('--------------------------------'); tasks.copyAssets('build'); console.log('[Webpack Build]'); console.log('--------------------------------'); exec('webpack --config webpack/prod.config.js --progress --profile --colo...
import { expect } from 'chai'; import * as helpers from './helpers'; import * as funcs from './ch2-q8'; for (let key in funcs) { let func = funcs[key]; describe('ch2-q8: ' + key, function() { beforeEach(function() { this.list = helpers.createLinkedList(); }); it('returns null with empty list',...
'use strict'; var ngOptionsMinErr = minErr('ngOptions'); /** * @ngdoc directive * @name select * @restrict E * * @description * HTML `SELECT` element with angular data-binding. * * # `ngOptions` * * The `ngOptions` attribute can be used to dynamically generate a list of `<option>` * elements for the `<selec...
/** * Created by elijah on 7/21/15. */ var express = require("express"); var router = express.Router(); var Q = require('q'); var cookieParser = require('cookie-parser'); var impredis = require("../../imp_services/impredis.js"); express(cookieParser()); router.route('/:userName').get( function(req,res){ var user ...