code
stringlengths
2
1.05M
var ClientProvider = require('../persistence/clientProvider.js').ClientProvider var clientprovider = new ClientProvider() /* * GET client/add */ exports.add = function (req, res) { var data = { title: req.localize('add client') } res.render('clients/add', data) } /* * POST client */ exports.addPost = func...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("selectall","en-gb",{toolbar:"Select All"});
var Zeta = require('../../'), chai = require('chai'), assert = chai.assert, expect = chai.expect, conf = require('./conf.js'), request = require('supertest'), should = chai.should(), m = Zeta.module('l0', ['l1a', 'l1b']); m.config('root', __dirname); /*====================================...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import setup from './setup' AppRegistry.registerComponent('react_textInput', () => setup);
//Created by wcantin on 2017-01-20. import React, {Component, PropTypes} from 'react' import {View, StyleSheet, Text } from 'react-native' import { connect } from 'react-redux' import { bindActionCreators } from 'redux'; import actionCreators from '../actions/index'; import { Router, Scene, Modal, ActionConst } from ...
Grailbird.data.tweets_2012_01 = [ { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "16434488544762675...
(function() { if (window.location.href.match(/photos$/)) { domready(function() { var createImage = function(i, g) { var thephoto = document.createElement('img'); thephoto.src = 'https://randomuser.me/api/portraits/' + g + '/' + i + '.jpg'; thephoto.setAttribute('data-int', i); ...
(function() { 'use strict'; angular.module('fallout4CoolTools.components.ui.directives.chooseFileButton') .directive('chooseFileButton', [ChooseFileButtonDirective]) ; function ChooseFileButtonDirective() { return { restrict : 'A', link : linkFnc }; } function linkFnc(scope, e...
(function () { var controllerId = 'app.views.directives.formControls.buttons.removeButtonController'; var app = angular.module('app.common'); // app.controller(controllerId, [ '$scope', function ($scope) { var ctrl = this; /****************************** Variab...
#!/usr/bin/env node var assert = require('assert'); var named = require('../lib/named-regexp.js').named; var re = named(/(:<foo>[a-z]+) (:<foo>[a-z]+) (:<bar>[a-z]+)/ig); assert.ok(re instanceof RegExp); var matched = re.exec('aaa bbb ccc'); assert.deepEqual(matched.captures, { foo: [ 'aaa', 'bbb' ], bar: [ 'ccc' ] ...
console.log('loading chan_system.js'); // new presence stuff let presences = {} let Presence = require('phoenix').Presence let formatTimestamp = (timestamp) => { let date = new Date(timestamp) return date.toLocaleTimeString() } let listBy = (user, {metas: metas, username: username}) => { // console.log('listB...
var env, store, User, Job; var run = Ember.run; var attr = DS.attr; var belongsTo = DS.belongsTo; function stringify(string) { return function() { return string; }; } module('integration/relationships/one_to_one_test - OneToOne relationships', { setup: function() { User = DS.Model.extend({ name: attr('...
/** * LitePubl CMS * * copyright 2010 - 2017 Vladimir Yushko http://litepublisher.com/ http://litepublisher.ru/ * license https://github.com/litepubl/cms/blob/master/LICENSE.txt MIT * link https://github.com/litepubl\cms * version 7.08 */ (function($, litepubl) { 'use strict'; litepubl.Tablec...
'use strict'; /* eslint no-console:0 */ const cluster = require('cluster'); const http = require('http'); if (cluster.isMaster) { cluster.setupMaster(); cluster.fork(); cluster.fork(); console.log('Master setup done'); } else { const server = http.createServer((req, res) => { console.log('Got request:\n...
import { Eventable } from '../mocks'; describe('Eventable mock helper', () => { let eventable; beforeEach(() => { eventable = new Eventable(); }); describe('addEventListener', () => { it('throws when not passed a callback function', () => { expect(() => eventable.addEventL...
/** * DaemonRepository.findByToken() */ 'use strict'; const NError = require('nerror'); /** * Find daemons by token * @method findByToken * @memberOf module:repositories/daemon~DaemonRepository * @param {string} token Token to search by * @param {PostgresClient|string} [pg] Will reuse t...
import Component from '@ember/component'; import { set } from '@ember/object'; import layout from 'ember-railio-form-components/templates/components/paper/radio-group'; import formFieldOptions from 'ember-railio-form-components/mixins/form-field-options'; export default Component.extend(formFieldOptions, { l...
var gulp = require('gulp'); var webserver = require('gulp-webserver'); gulp.task('webserver', function() { gulp.src([ 'src/client', '.tmp' ]) .pipe(webserver({ livereload: true, // directoryListing: true, // open: true, port: 3000 })); });
"use strict"; define("screen.quiz", [ "helper.util", ], function () { let ScreenQuiz = { url: "source/views/screen.quiz/screen.quiz.ejs", /** @see RAD.collection.quiz */ model: RAD.model("model.question"), className: "override-scroll", events: { "tap button": "eventTapButton", "click input[name=screen...
"use strict"; let gulp = require('gulp'), sass = require('gulp-sass'), postcss = require('gulp-postcss'), autoprefixer = require('autoprefixer'), cssnano = require('cssnano'), concat = require('gulp-concat'), server = require("browser-sync"), uglify = require('gulp-uglify'), sourcemaps ...
/** * jQuery Tag Input Plugin * * @version 1.0 * @author Wei Zhao * @date May 22nd, 2013 * * Copyright 2013, Wei Zhao * Released under the MIT license. * * Dependencies: * jQuery 1.9.1 */ ;(function(window, $, undefined) { /*! * Tag Model */ function Tag(data) { this.text = ''; ...
// Module dependencies. var express = require('express'); var router = express.Router(); var api = {}; // ALL api.orderItems = function(req) { return req.store.recordCollection('OrderItem'); }; // GET api.orderItem = function(req) { return req.store.recordItemById('OrderItem', req.params.id); }; // POST api.addO...
'use strict'; require('@google-cloud/debug-agent').start(); exports.ping = function ping (req, res) { res.send(); };
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/th",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="โปรดลบอ...
/*! module-utils 2014-05-14 */ /*! module-utils 2014-05-14 */ (function(global) { var toString = global.Object.prototype.toString; function isArray(x) { return toString.call(x) === "[object Array]"; } function merge(source, destination, safe) { for (var key in source) { if (source.hasOwnProperty(key) && (!safe |...
import React, {Component} from 'react' import {Formik, Form} from 'formik' import {Prompt} from 'react-router-dom' // Create Formik forms of multiple pages // See more: https://github.com/jaredpalmer/formik/blob/master/examples/MultistepWizard.js export class MultistepWizard extends Component { static Page = ({child...
var AWS = require('aws-sdk'); var fs = require('fs'); var config = require('./config'); AWS.config.update({ region: config.AWS_REGION }); var lambda = new AWS.Lambda({ apiVersion: '2015-03-31' }); var FUNCTION_NAME = config.FUNCTION_NAME; var IAM_ROLE = config.IAM_ROLE; var DESCRIPTION = config.DESCRIPTION; funct...
module.exports = function(suite) { require('mocha').interfaces.bdd(suite); /** * Override describe to include only skipped tests */ suite.on('pre-require', function(context, file, mocha) { var describe = context.describe; context.describe = context.context = function(title, fn) { } context...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
// Generated by CoffeeScript 1.9.2 var BaseClass, SocialStats, 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; child.prototype = new ctor(); child.__super__ = parent...
'use strict'; var bucketNameComposer = require('../private/bucket_name_composer'); /** * Delete a model instance by id * @param {String} modelName The model name * @param {*} id The id value * @param [apiCallback] The callback function */ module.exports = function(modelName, id, apiCallback){ this.db.deleteVal...
beforeEach(function() { global.resetFeatures(); global.addToEqualMatchMatcher(); }); describe('XRegExp.build addon:', function() { describe('XRegExp.tag()', function() { it('should escape the metacharacters of interpolated strings', function() { var inner = '.html'; var re...
import merge from 'lodash.merge'; import { WHITE_KING, WHITE_QUEEN, WHITE_ROOK, WHITE_BISHOP, WHITE_KNIGHT, WHITE_PAWN, BLACK_KING, BLACK_QUEEN, BLACK_ROOK, BLACK_BISHOP, BLACK_KNIGHT, BLACK_PAWN, } from './pieces'; import position from './position'; const standard = { a1: { piece: WHITE_ROOK...
export default { getState(){ if(!this.state){ throw new Error('Failed to find state'); } return this.state; }, states: { PAUSE: { transitions: { START() { this.state = 'START' return this }, STOP() { this.state = 'STOP' re...
return
/** * Some additional functions I think would be nice to add to underscore.js. */ _.mixin({ /** * Keep calling func until it returns a non-undefined, non-null value. * * @param {function} func - the function to call * @param {object} context - the "this" object * @param {...*} args - arguments to fu...
import React, { Component } from 'react'; import jQuery from 'jquery'; import Cookies from 'js-cookie'; import { hashHistory } from 'react-router'; class Login extends Component { constructor(props) { super(props); this.state = { hint: '' }; } render() { return ( <div className="sign-...
#!/usr/bin/env node 'use strict' const walker = require('walker') const fs = require('fs') const path = require('path') const split = require('split2') const pump = require('pump') const os = require('os') const { isBinaryFile } = require('isbinaryfile') const { mkdir } = fs module.exports = generify function gener...
// DON'T TOUCH THIS UNLESS YOU REALLY KNOW WHAT YOU'RE TRULY DOING var DoubleX_RMMV = DoubleX_RMMV || {}; DoubleX_RMMV["Superlative ATB Parameters"] = "v0.05a"; // // Edit this to be the same of the name of this parameter plugin file DoubleX_RMMV.Superlative_ATB_Parameters_File = "DoubleX RMMV Superlati...
phoneApp.controller('EditModelsController', function EditModelsController($scope, $location, $routeParams, $templateCache, phoneDatas) { var url = '/home'; var modelToSave; if ($routeParams.modelId) { url ='/phone-details/' + $routeParams.id; phoneDatas ...
'use strict'; var shell = require('shelljs'); var defaultMsg = 'Test commit'; function makeDefault(str) { if ((typeof str === 'string' && !str.trim()) || str === undefined) { return defaultMsg; } return str; } module.exports = function (msg, silent) { var arg = ''; msg = makeDefault(msg); if (silent === u...
import mongoose from 'mongoose'; import async from 'async'; import ReproductionVersion from '../models/reproduction.js'; import add_objects from '../models/additionalModels.js'; import { logger } from '../../server/log'; function postReproduction(req, res) { var reproduction_version = req.body; reproduction_...
'use strict' var model = require('./model') var helper = require('../util/helper') module.exports.account_add = function(account, callback) { account.password = helper.sha(account.password) model.account_add(account, function(error, account) { if (error) return callback(error) callback(null,...
angular.module('project.sortComponent', []); require('./sort-component-directive');
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.moment = factory() }(this, function () { 'use strict'; var hookCallback; function utils_hooks__hooks () {...
'use strict'; const path = require('path'); const webpack = require('webpack'); const {optimize} = webpack; const dir = './lib'; const {env} = process; const dist = path.resolve(__dirname, 'dist'); const devtool = 'source-map'; const notEmpty = (a) => a; const clean = (array) => array.filter(notEmpty); const rule...
const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/mongoose_orchestrator_testing'); const ObjectId = mongoose.Schema.Types.ObjectId; import mongooseOrchestrator from '../src/index'; // Create and register the `User` model. const UserSchema = new mongoose.Schema({ name: {type: String, requ...
export default { name: 'list', group: 'hook', signature: '', description: 'List hooks for a given project', action: async (args, context) => { const {apiClient, output} = context const client = apiClient() let hooks try { hooks = await client.request({uri: '/hooks'}) } catch (err) {...
import * as React from 'react'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; function valuetext(value) { return `${value}°C`; } const minDistance = 10; export default function MinimumDistanceSlider() { const [value1...
exports.crossOrigin = require("./crossOrigin"); exports.accessTokenAuth = require("./accessTokenAuth");
var _ = require('underscore'); var ChallengesQuery = require('../models/ChallengesQuery'); exports.index = function(req, res) { ChallengesQuery.find({}, function (err, records) { if (err) { req.flash('errors', { msg: 'Crap! Could not find challenge queries.' }); } res.render('challenges/index', { title...
import {connect} from "react-redux" import {bindActionCreators} from "redux" import DemandComponent from "../components/demand" import photosGet, {photosPost} from "../middlewares/photos" import tagsDemandGet, {tagsDemandPost} from "../middlewares/tagsDemand" import tagsGet from "../middlewares/tags" import offersGet f...
/* gauge.test.js - Gauge test The MIT License (MIT) Copyright (c) 2014-2019 Tristan Slominski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
class sketchobj_sketchink_1 { constructor() { } } module.exports = sketchobj_sketchink_1;
export default { html: ` <button>Add</button> <span class="content">1</span> <button>Test</button> <span class="content">2</span> <button>Test</button> <span class="content">3</span> <button>Test</button> `, async test({ assert, target, window }) { let [incrementBtn, ...buttons] = target.querySelectorAll('b...
/* ngsecurity v1.6.1 (c) 2015 Concrete Solutions, Inc. License: MIT */ //# sourceMappingURL=ngsecurity.min.js.map 'use strict';(function(){function m(d,e,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,a,f,h,k){var g=new n(c,a,f,h,k,e);c.deregister=b.$on(...
'use strict' /* application libraries */ var db = require('../lib/database.js') var immutable = require('../lib/immutable') var jsonParseMulti = require('../lib/json-parse-multi') var setId = require('../lib/set-id.js') var stringifyObject = require('../lib/stringify-object') /* public functions */ module.exports = i...
const path = require('path') const fs = require('fs') const PDFDocument = require('pdfkit') const utils = require('../lib/utils') const insecurity = require('../lib/insecurity') const models = require('../models/index') const products = require('../data/datacache').products const challenges = require('../data/datacache...
"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...
'use strict'; angular.module('cloudoptingApp') .config(function ($stateProvider) { $stateProvider .state('logout', { parent: 'account', url: '/logout', data: { roles: [] }, views: { ...
'use strict'; var util = require('./util') , count = util.count; /** * Binder.js * @author Jason Green */ /** * Property on which to store references to components on elements * @type {String} */ bndr.COMPONENT_PROPERTY = '___bndr_comp'; /** * Prefix used to name component instances * @type {String} ...
const prettierConfig = require('eslint-config-prettier'); module.exports = { plugins: ['prettier'], rules: Object.assign({}, prettierConfig.rules, { 'prettier/prettier': [ 'error', { singleQuote: true, printWidth: 100, bracketSpacing: false, trailingComma: 'none', ...
/* * Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
// app/controllers/invite.js var Invite = require('../models/invite.js'); exports.addInvite = function (req, res, next) { var newInvite = new Invite(); newInvite.seed = req.body.seed; newInvite.code = req.body.code; newInvite.save(function (err) { res.locals = newInvite; next(); }); }; exports.getInvite =...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * ReferenceThread Schema * * This collection is queried mostly with `userFrom` and `userTo` fields */ var ReferenceThreadSchema = new Schema({ thread: { type: Schema.ObjectId, ref: 'Thread...
// NinjaPrinter Core sets up communication between NinjaPrinter and var NinjaPrinterCore = { init: function () { console.info("NinjaPrinterCore.init()"); this._initInjectedScriptListeners(); this._initBackgroundListener(); this._injectPageScripts(); }, print: function (requ...
/*! * wrap-promise | MIT (c) Shinnosuke Watanabe * https://github.com/shinnn/wrap-promise */ function wrapPromise(fn) { 'use strict'; if (typeof fn !== 'function') { throw new TypeError(fn + ' is not a function. Argument must be a function.'); } var resolve; var reject; var promise...
'use strict'; module.exports = { db: { uri: 'mongodb://admin:webquizz2015@ds039271.mongolab.com:39271/webquizz' }, log: { // Can specify one of 'combined', 'common', 'dev', 'short', 'tiny' format: 'dev', // Stream defaults to process.stdout // Uncomment to enable logging to a log on the file system opti...
#!/usr/bin/env node var MaxCDN = require('../'); var maxcdn = new MaxCDN(process.env.ALIAS, process.env.KEY, process.env.SECRET); /*** * Get account information. */ maxcdn.get('account.json', function(err, results) { console.log('GET account.json') if (err) { // error handling console.trace(...
// Reference: // Pro Javascript Development: Coding, Capabilities, and Tooling by Den Odell. var localVideoElement = document.getElementById("local-video"); var remoteVideoElement = document.getElementById("remote-video"); var startCallButton = document.getElementById("start-call"); var joinCallButton = document.getE...
export { default } from 'ember-flexberry-designer/controllers/fd-stage-edit-form/new';
(function(){ 'use strict'; angular.module('fsReferenceClientShared') .directive('fsParentsProfile', function () { return { templateUrl: 'fsReferenceClientShared/fsParentsProfile/fsParentsProfile.tpl.html', scope: { parents: '=', child: '=', father: '=', ...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { IndexLink } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/l...
'use strict'; /** * Generated autocomplete services to quickly demo autocomplete functionality */ angular.module('angularDemoApp') .factory('AutocompleteService', function(\$resource, appConfig){ var toLabel = function(model, labelProperties){ if(model){ var str = ''; angular.forEach(labelProperties,...
module.exports = function ($core, $deps, $root) { var events = $core.events, child_process = $core.child_process, util = $core.util; return { dependencies: { 'dog': function () { return 'labrador'; }, 'cat': ['dog', function () { re...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var multer = require('multer') var routes = require('./routes/index'); var upload = require('./rou...
"use strict"; const config = require('./config.json'), pathAPI = require('path'), zipProvider = require('./providers/zipProvider'), storageProvider = require('./providers/storageProvider'), fs = require('fs'); let path = config.path; let DB_accessToken = config.DB_accessToken; let DB_folde...
'use strict'; const Promise = require('bluebird'); const rp = require('./protocol').remote; const proc = rp.remote_procedure; class Auth { constructor(conn, attr) { this.conn = conn; this.ref = new rp.remote_nonnull_auth(attr); } } /** * * @param {Function} [callback] */ Auth.prototype.list = function(...
/** * Papers Factory * * Service calls for CRUD actions * * @type {factory} */ angular.module('papersApp').factory('papersFact', ['$resource', '$cachedResource', function ($resource, $cachedResource) { return $resource( globalConfig.api.urls.get_papers, {}, { ...
// Gyro is a singleton object. function ControlGyro(props) { this.make("sensor", props); this.hardwareMin = -1.57; this.hardwareMax = 1.57; this.hardwareRange = this.hardwareMax - this.hardwareMin; this.rotationHardwareMin = - 25.0; this.rotationHardwareMax = 25.0; this.rotationHardwareRange ...
import Evaluator from './evaluator'; import Formats from 'leftovers-again/lib/data/formats'; import util from 'leftovers-again/lib/pokeutil'; import Log from 'leftovers-again/lib/log'; import Weaver from './weaver'; import Damage from 'leftovers-again/lib/game/damage'; import NodeReporter from './nodeReporter'; class ...
import dispatcher from '../dispatcher'; export function selectPokemon (pokemon) { dispatcher.dispatch({ type: 'UPDATE_POKEMON_DATA', pokemon }); } export function update (snapshot) { dispatcher.dispatch({ type: 'LOAD_POKEMON_DATA', pokemons: snapshot }); }
module.exports = { dist: { cwd: 'src/www', src: [ '**/*'], dest: 'dist', expand: true }, instrumented: { cwd: 'dist', src: [ 'dist/instrumented/**/*.js' ], dest: 'dist/app', expand: true }, vendor: { cwd: 'vendor', src: [ '**/*', '!**/src/**/*', '!**/test/**/*' ], d...
/** * script.js * * This file injects every needed file into index.html * * This file requires following npm modules: * `` * npm install gulp gulp-load-plugins gulp-inject gulp-angular-filesort gulp-order --save-dev * `` * */ 'use strict'; var gulp = require('gulp'), helper = require('../helper'), ...
var path = require('path'); module.exports = { entry: path.resolve(__dirname, 'src/index.js'), output: { path: path.resolve(__dirname, 'dist/'), filename: 'index.js' }, resolve: { extensions: ['', '.js', '.jsx'] }, module: { loaders: [ { test: /.jsx?$/, loader: 'babel-loader', ...
import { Path } from 'slate' export const input = { path: [0, 1, 2], another: [1], } export const test = ({ path, another }) => { return Path.endsAt(path, another) } export const output = false
// # Ghost Configuration // Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments). // Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Produ...
var searchData= [ ['cache',['cache',['../class_wanzyee_studio_1_1_www_option.html#ad442ec4a16baeb87f4782a65fb706c7b',1,'WanzyeeStudio::WwwOption']]], ['camera3d',['camera3D',['../class_wanzyee_studio_1_1_key_click_executor.html#aeb9fb24a5b4565a7f4e8254c9aea7143',1,'WanzyeeStudio::KeyClickExecutor']]], ['canread',...
define(function(require) { var View = require('view'); var tpl = require('rv!app/template/page/notifications'); return View.extend({ template: tpl, afterRender: function() { // setTimeout to allow DOM to be rendered by Ractive, since code below // operates on visible...
//DataTables //Sort file size data. jQuery.extend(jQuery.fn.dataTableExt.oSort, { "file-size-units": { K: 1024, M: Math.pow(1024, 2), G: Math.pow(1024, 3), T: Math.pow(1024, 4), P: Math.pow(1024, 5), E: Math.pow(1024, 6) }, "file-size-pre": function (a) { ...
var path = require('path'); var fs = require('fs-extra'); var config = require('../../config'); var cli = require('../util/cli'); var util = require('util'); var emit = require('../util/feedback').emit; var debug = require('debug')('blade'); var FRAMEWORKS = { angular1: { source: 'angular1' }, //angular2: { sourc...
var Connection = require('./lib/connection'); var StaticPool = require('./lib/staticPool'); var DynamicPool = require('./lib/dynamicPool'); var ParseConnection = require('./lib/parseConnection'); module.exports = { Connection: Connection, StaticPool: StaticPool, DynamicPool: DynamicPool, ParseConnectio...
import css from 'css!./styles.css'; export default { restrict: 'A', /** * @ngInject */ link: function($element, $attrs) { $element.addClass('elgg-icon'); $element.addClass('elgg-icon-' + $attrs['elggIcon']); } };
version https://git-lfs.github.com/spec/v1 oid sha256:07cde4c27f00993057b8aa55a3d058c7fc3fc2cac8bfa2be788ce47dc2906c72 size 29293
"use strict"; var EwsUtilities_1 = require("../Core/EwsUtilities"); var TypeContainer_1 = require("../TypeContainer"); /** * Represents the results of an action performed on a calendar item or meeting message, such as accepting, tentatively accepting or declining a meeting request. * * @sealed */ var CalendarAction...
/** * */ 'use strict'; var _ = require('underscore'); var path = require('path'); var es = require('event-stream'); var rjs = require('requirejs'); var autoprefixer = require('autoprefixer-core'); var less = require('less'); var browserSync = require('browser-sync'); var gulp = require('gulp'); var gulpIf = require...
/*jslint node: true */ 'use strict'; angular.module('thermometer', ['nvd3', 'ui.bootstrap', 'thermometerDiagram', 'flagDiagram', 'thermoFlagDiagram']) .controller('ThermometerController', ['$scope', function ($scope) { $scope.selectInterval = function(range) { console.log("Sel...
/** @jsx React.DOM */ var React = React || require('react/addons'); var HtmlButton = require('reactlet-html-button'); var HtmlInput = require('reactlet-html-input'); var HtmlSelect = require('reactlet-html-select'); var HtmlJsonEdit = require('reactlet-html-json-edit'); var HtmlTextEdit = require('reactlet-html-text-e...
import Ember from 'ember'; import Movie from '../models/movie'; const { Route } = Ember; export default Route.extend({ model() { return Movie.findAll(); } });
import {arrayOf, shape, number, string, instanceOf, oneOfType, node, bool} from 'prop-types'; const subForum = shape({ id: number.isRequired, title: string.isRequired, order: number.isRequired }); const forum = shape({ id: number.isRequired, chapterId: number, parentForumId: number, order:...