code
stringlengths
2
1.05M
/*! * ClockPicker v{package.version} (http://weareoutman.github.io/clockpicker/) * Copyright 2014 Wang Shenwei. * Licensed under MIT (https://github.com/weareoutman/clockpicker/blob/gh-pages/LICENSE) */ ;(function(){ var $ = window.jQuery, $win = $(window), $doc = $(document), $body; // Can I use inline s...
var test = require('tap').test; var browserify = require('browserify'); var vm = require('vm'); var fs = require('fs'); var path = require('path'); var html = fs.readFileSync(__dirname + '/files/robot.html', 'utf8'); test('path.join', function (t) { t.plan(1); var b = browserify(); b.add(__dirname +...
import CounterRoute from 'routes/Counter' describe('(Route) Counter', () => { let _route beforeEach(() => { _route = CounterRoute({}) }) it('Should return a route configuration object', () => { expect(typeof(_route)).to.equal('object') }) it('Configuration should contain path `counter`', () => {...
CKEDITOR.plugins.setLang("docprops","mn",{bgColor:"Фоно өнгө",bgFixed:"Гүйдэггүй фоно",bgImage:"Фоно зурагны URL",charset:"Encoding тэмдэгт",charsetASCII:"ASCII",charsetCE:"Төв европ",charsetCR:"Крил",charsetCT:"Хятадын уламжлалт (Big5)",charsetGR:"Гред",charsetJP:"Япон",charsetKR:"Солонгос",charsetOther:"Encoding-д өө...
"use strict"; var _context; (_context = ctx, ns.obj.func).call(_context); (_context = ns.obj).func.call(_context); (_context = ns.obj2, ns.obj1.func).call(_context);
global.useRSVP = true; var RSVP = require('rsvp'); require('../lib/fakesP'); module.exports = function upload(stream, idOrPath, tag, done) { var queries = new Array(global.parallelQueries); var tx = db.begin(); for( var i = 0, len = queries.length; i < len; ++i ) { queries[i] = FileVersion.inser...
export{default}from"./CardContent";
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved //// This code ...
(function($, DataTables){ $.extend( true, DataTables.Buttons.defaults, { dom: { container: { tag: 'ul', className: 'dt-buttons button-group' }, buttonContainer: { tag: 'li', className: '' }, button: { tag: 'a', className: 'button small' }, buttonLiner: { tag: null }, collection...
// Copyright 2005 The Closure Library Authors. 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
// ES6-shim 0.15.1 (c) 2013-2014 Paul Miller (http://paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ (function(undefined) { 'use strict'; var isCallableWithoutNew = function(func) { try { func(); } ...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}...
(function(a){a.extend(a.fn.select2.defaults,{formatNoMatches:function(){return"ไม่พบข้อมูล"},formatInputTooShort:function(b,c){var d=c-b.length;return"โปรดพิมพ์เพิ่มอีก "+d+" ตัวอักษร"},formatInputTooLong:function(c,b){var d=c.length-b;return"โปรดลบออก "+d+" ตัวอักษร"},formatSelectionTooBig:function(b){return"คุณสามารถ...
/** * @license * Lo-Dash 1.2.1 (Custom Build) <http://lodash.com/> * Build: `lodash -o ./dist/lodash.compat.js` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.4.4 <http://underscorejs.org/> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc. * Available un...
var common = require('../../common'); var connection = common.createConnection(); var assert = require('assert'); connection.connect(); var gotEnd = false; connection.on('end', function(err) { assert.equal(gotEnd, false); assert.ok(!err); gotEnd = true; }); var gotCallback = false; connection.end(func...
/*! * Qoopido.js library v3.6.6, 2015-7-7 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(o){window.qoopido.register("pool/dom",o,["../pool"])}(function(o,t,e,r,n,i){"use strict";var p=o.pool.extend({_initPool:function(){return{}},_getPool:function(o){var t=th...
YUI.add('base-base', function(Y) { /** * The base module provides the Base class, which objects requiring attribute and custom event support can extend. * The module also provides two ways to reuse code - An augmentable Plugin.Host interface which provides plugin support * (which is augmented to t...
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": { "0": "до полудня", "1": "после полудня" }, "DAY": { "0": "...
'use strict'; var domain = require('domain'); var eos = require('../../src/stream/end-of-stream'); var setAsap = require('../../src/process/set-asap'); var co = require('../../src/generator/co'); var once = require('../../src/glob/glob/once'); var exhaust = require('../../src/stream/exhaust'); var eosConfig = { er...
// @flow import path from 'path' import webpackConfig from './webpack/webpack' import cli from './cli/cli' import run from './runner/runner' import { version } from '../package.json' const defaultOptions: NeatoOptionsType = { port: 3000 } const projectPath = process.env.NEATO_LINK ? process.cwd() : path.join(_...
import AltContainer from 'alt/AltContainer'; import React from 'react'; import {getInitialData} from '../libs/storage.js'; import alt from '../libs/alt'; import Notes from './Notes'; //import NoteActions from '../actions/NoteActions'; import NoteStore from '../stores/NoteStore'; import createNoteActions from '../action...
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import LoginContainer from './containers/LoginContainer'; import Landing from './components/Landing'; import CreateEventContainer from './containers/CreateEventContainer'; import EventsContainer from './cont...
import React from "react"; import ReactDOM from "react-dom"; import "./../css/app.css"; import App from "./components/App"; import books from "./data/books" // convert data to client format const bookList = Object.keys(books.books).map(key => { const {book_id:bookId, title, author_fl:author, rating, cover} = boo...
(function () { 'use strict'; angular .module('rdu.ui') .factory('AuthApi', ['$resource', adapter]) function adapter($resource) { return $resource('/api/login', null, { "login": { method: 'POST', url: '/api/login' }, ...
'use strict' const { Qlobber } = require('qlobber') const assert = require('assert') const fastparallel = require('fastparallel') function MQEmitter (opts) { if (!(this instanceof MQEmitter)) { return new MQEmitter(opts) } const that = this opts = opts || {} opts.matchEmptyLevels = opts.matchEmptyLeve...
const assert = require('assert'), _ = require('lodash') const identifier = 'CONTACT' const Contact = ({ id, username, ip, port, publicKey, lastSeen = Date.now() }) => { assert(ip !== undefined, 'ip is required') assert(port !== undefined, 'port is required') return { __classId: identifier, id, username, ip, po...
var app = require('../app'); var should = require('should'); var supertest = require('supertest'); describe('test', function () { it('should return contact page', function (done) { supertest(app) .get('/contact') .expect(200) .end(function (err, res) { res.status.should.equal(200); don...
// flow-typed signature: 59bce2cf5201abe391193c8db43e6315 // flow-typed version: <<STUB>>/throttleit_v1.0.0/flow_v0.69.0 /** * This is an autogenerated libdef stub for: * * 'throttleit' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
import Model from './Model'; import { handleChange } from '../shared/methodCallers'; export default class ComputationChild extends Model { get () { const parentValue = this.parent.get(); return parentValue ? parentValue[ this.key ] : undefined; } handleChange () { this.dirty = true; this.deps.forEach( han...
#!/usr/bin/env node 'use strict'; var nvdb = require('./index') , pkg = require('./package.json') , query = process.argv[2] , argv = require('minimist')((process.argv.slice(2))) , opts = {} ; function printHelp() { console.log(pkg.description); console.log(''); console.log('Usage:'); console.log(' ...
const FuncTest = require('..').get(module); if (!FuncTest) return; const chai = require('chai'); FuncTest.testThen = function testThen() { let got; ({a: 1}) [then](obj => (got = obj)); chai.expect(got.a).to.equal(1); }; FuncTest.testFail = function testFail() { let got; ({a: 1}) [then](obj => global.someU...
/** * LICENSE: This source code is subject to the license that is available * in the LICENSE file distributed along with this package. * * @package Penelope * @author Matthew Caruana Galizia <mcg@karwana.com> * @copyright Karwana Ltd * @since File available since Release 1.0.0 */ /*jshint node:tru...
var gulp = require("gulp"); var CFG = require("./utils/config.js"); var $ = require("gulp-load-plugins")(); var exec = require("child_process").exec; var path = require("path"); var notify = require("./utils/notify-style-lint"); /** * style:lint * @see github.com/causes/scss-lint * @see rubygems.org/gems/scss-l...
// Rutas de la aplicación var http = require('http'); var express = require('express'); var backbone = require('backbone'); var _ = require('underscore'); require('shelljs/global'); var consola = [ { out: 'no disponible' } ]; var cmd=function(output){ console.log("la puta salida de la consola es: "+ output); ...
// imports var Sequelize = require('sequelize'); var Snort = require('./snort.js'); var snort; // get db connection infomartion var db_connection_file = process.argv[2]; var db_connection_info; try { db_connection_info = require(db_connection_file); } catch (err) { console.log("Couldn't find the db connection fil...
import React from 'react'; import chai, { expect } from 'chai'; import chaiEnzyme from 'chai-enzyme'; import { ResponsiveContainer } from 'recharts'; import { mount } from 'enzyme'; chai.use(chaiEnzyme()); describe('<ResponsiveContainer />', () => { it('Render a wrapper container in ResponsiveContainer', () => { ...
'use strict'; module.exports = function(grunt) { require('load-grunt-tasks')(grunt); var folders = { src: 'assets', output: 'resources' }; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), folders: folders, watch: { gruntfile: { files: ['gruntfile.js'] }, ...
System.register(['./config_ctrl', './datasource', './query_ctrl'], function(exports_1) { var config_ctrl_1, datasource_1, query_ctrl_1; var NewRelicQueryOptionsCtrl; return { setters:[ function (config_ctrl_1_1) { config_ctrl_1 = config_ctrl_1_1; }, ...
var gulp = require('gulp'); var loadsome = require('gulp-loadsome'); var mocha = require('gulp-mocha'); gulp.task('default', function() { gulp.src('test/fixtures/*.*') .pipe(loadsome({ "downloadPath":".tmp", "relativePathFromDest":"../" })) .pipe(gulp.dest('./output')); });...
module.exports = { NotA40CharHexString: 'Function expects a 40 char hex string' };
const testCase = { "search": { "startDate": "2016-06-07", "endDate": "2016-06-10" }, "gapRules": [ { "gapSize": 2 }, { "gapSize": 3 } ], "campsites": [ { "id": 1, "name": "Grizzly Adams Adventure Cabin" }, { "id": 2, "name": "Lewis and Clark Camp Spot" }, { "id": 3, "name": "Jonny ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.core.util.ExportTypeCSV sap.ui.define(['./ExportType'], function(ExportType) { 'use strict'; /** * Con...
module.exports = require("./nedb-adapter");
var recast = require('recast'); module.exports = function(context, idInfo, module, cb) { var types = recast.types; var b = types.builders; var contents; try { var ast = b.program([ b.expressionStatement(b.callExpression(b.identifier('define'), [ b.functionExpression( null, ...
var FileSystem = require('fs'); var Path = require('path'); // config example var config_example = { 'file' : { 'path' : 'folder/that/contains/the/file', 'name' : 'filename.extension' }, 'rotation' : { 'size' : 1, // byte or: kib mib gib, k, m, g (max file size) 'time' : 1 ...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obt...
(function (starterController) { var chatController = require("./chatController.js"); var chatGroupController = require("./chatgroupController.js"); var pythonExecutorController = require("./pythonExecutorController.js"); starterController.init=function(app) { pythonExecutorController.init(a...
var searchData= [ ['file_5finfo',['file_info',['../structfile__info.html',1,'']]], ['file_5finfo_5fcopy',['file_info_copy',['../group__backup__shared.html#ga3e10bfa3a3465b1d78691f66ba4f9ffa',1,'file_info_copy(const file_info *source, file_info **dest):&#160;fileinfo.c'],['../group__backup__shared.html#ga3e10bfa3a34...
"use strict"; app.controller("PostOpenBalCtrl", function($scope, InventoryFactory, $location){ $scope.goToInventory = function(){ $location.url('/inventory'); }; $scope.goToRegister = function(){ $location.url('/cashregister'); }; });
/** * App Styles * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import Colors from './colors'; import Fonts from './fonts'; import Sizes from './sizes'; export default { appContainer: { backgroundColor: '#000' }, // Default container: { position: 'relative'...
import DS from 'ember-data'; export default DS.Model.extend({ name: DS.attr('string'), description: DS.attr('string'), methodType: DS.attr('string'), // Computed isGateway: Ember.computed('methodType', function() { var methodType = this.get('methodType'); return methodType === "gateway" |...
var http = require('http'), websocket = require('ws'), app, connections = [], listeners = []; function parseJson(message) { try { return JSON.parse(message); } catch(e) { console.log('[socket] Invalid JSON message received:', message.utf8Data); console.log(e); ...
module.exports = QueuesListController; QueuesListController.$inject = ['queues', '$cookies']; function QueuesListController (queues, $cookies) { var vm = this; vm.active = $cookies.get('selectedQueue') || null; vm.queues = []; vm.select = select; queues.getQueues().then(function (queues) { ...
Juggler.on('start', function() { if (Backbone.history) Backbone.history.start(); });
import View from "../view/View"; export default class Application extends View { static _instance = null; constructor(...args) { super(...args); if (Application._instance === null) { Application._intance = this; } else { // 全局只有一个,防止生成多个instance,和Service...
var db = require('../db/db') function IngredientsController(){ this.get('/api/ingredients', function(req, res){ setTimeout(function(){ res.send(db.ingredients) },500) }) } module.exports = IngredientsController
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.CSVParser = factory()); }(this, function () { 'use strict'; // util // code snippets from https://github....
import React from 'react'; import { Artwork } from 'components/artwork'; import { PageContent } from 'components/page'; import { Image } from 'components/common'; /* eslint-disable quotes */ exports.data = { id: 2, path: `/illustrations/jewel/`, category: `illustration`, type: `artwork`, preview: ...
var vows = require('vows'), assert = require('assert'), helper = require("../../data/manyToMany/customFilter.lazy.models"), patio = require("index"), comb = require("comb"), hitch = comb.hitch; var ret = module.exports = exports = new comb.Promise(); var gender = ["M", "F"]; var cities = ["Omaha",...
/** * This object of the Director pattern, it contains a boolean member for each type of asset. * Setting a member to true will be used by the Builder classes to control which assets are built. */ function AssetType(location, versionCode) { this.location = location; this.versionCode = versionCode; this.chapterFiles ...
const debugFunc = require('debug') function setw (str, n = 20, fill = ' ') { return (str + fill.toString().repeat(n)).slice(0, n) } function debug (name) { const width =25 const head = 'Vuetal' let prefix = setw(head + ':' + name + ':', width) const _debug = debugFunc(prefix) for (const type of ['error',...
/*global module:false*/ module.exports = { files: { files: { '<%= build %>/': [ 'medias/**/*', '.htaccess', 'favicon.ico', 'js/vendor/modernizr.js' ] } }, js: { files: { '<%= build %>/': [ 'js/**/*' ] } }, config: { files: { '<%= build %>/': [ 'config.json' ] } }, ...
//~ name b420 alert(b420); //~ component b421.js
var a = rxs('.rx-height'); var b = rxs('.rx-follow'); var c = rxs('.rx-color'); var d = rxs('.rx-rainbow'); a.set({ background: 'orange', }); document.addEventListener('mousemove', function(e) { var s = e.screenX / window.innerWidth * 100; var l = e.screenY / window.innerHeight * 100; a.set({ background:...
"use strict"; var async = require('async'); module.exports = function(connection, parsed, data, callback) { if (!parsed.attributes || parsed.attributes.length !== 2 || !parsed.attributes[0] || ["ATOM", "SEQUENCE"].indexOf(parsed.attributes[0].type) < 0 || !parsed.attributes[1] || ...
!function (jshint, path, util, linq) { 'use strict'; jshint(); var number = util.number, replaceMultiple = util.regexp.replaceMultiple, time = util.time; module.exports = function (inputs, outputs, options, callback) { if (arguments.length === 3) { callback = argum...
const Collection = require('../Collection') const RedisIdToSet = require('../collection/RedisIdToSet') class MockIdToSet extends RedisIdToSet { constructor(context) { super(context) if (!this.context.data) this.context.data = {} Collection._throwFromUnimplementedParentMethods(this) } ...
export var cubeDocs = { name: 'cube', category: 'Arithmetic', syntax: ['cube(x)'], description: 'Compute the cube of a value. The cube of x is x * x * x.', examples: ['cube(2)', '2^3', '2 * 2 * 2'], seealso: ['multiply', 'square', 'pow'] };
/* */ 'use strict'; const Task = require('../Task'), analyzer = require('../analyzer/index'), sh = require('shelljs'), helpers = require('../helpers'), chalk = require('chalk'), log = helpers.log, find = helpers.find, toRelative = helpers.toRelative; class Check extends Task { run(opt) { ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
Alerts = new Mongo.Collection("alert"); RunStatus = new Mongo.Collection("run_status");
/*global FM*/ /** * The file asset represents a file that can be used by the FM.js engine. * @class FM.FileAsset * @param {string} pName Name of the asset. * @param {string} pPath The path of the asset. * @constructor * @author Simon Chauvin */ FM.FileAsset = function (pName, pPath) { "use strict"; //Cal...
function inventory(arr1, arr2) { var result = arr2; function itemExists(item) { for(var i = 0; i < result.length; i++) { if(item[1] == result[i][1]) return i; } return -1; } for(var i = 0; i < arr1.length; i++) { var index = itemExists(arr1[i]); ...
import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { StoresCollection, subscriptionOrdersCollection, } from 'meteor/moreplease:common'; import './subscription_orders.html'; const getStore = () => StoresCollection.findOne(); Template.adminSubscriptionOrders.onCreated(f...
module.exports = function(grunt) { 'use strict'; var fs = require('fs'); var symlink = fs.symlink; var unlink = fs.unlink; var cp = require('child_process'); var execSync = cp.execSync; var spawn = cp.spawn; var path = require('path'); require('load-grunt-tasks')(grunt); grunt.initConfig({ ...
module.exports = { map: require('./map'), mapPromise: require('./map-promise'), reduce: require('./reduce'), reducePromise: require('./reduce-promise'), filter: require('./filter'), filterPromise: require('./filter-promise'), foreach: require('./foreach'), foreachPromise: require('./foreach-promise') };
import { mustBeBoolean } from '../checks/mustBeBoolean'; import { GraphicsProgramSymbols } from '../core/GraphicsProgramSymbols'; import { Vector2 } from '../math/Vector2'; /** * Applies coordinates to a surface. * @hidden */ var CoordsTransform2D = /** @class */ (function () { function CoordsTransform2D(flipU, ...
const APP_NAME = 'TimeTracker' const PORT = process.env.PORT || 3000 const HOST = process.env.HOST || 'localhost' const PROTOCOL = process.env.PROTOCOL || 'http' const ENV = process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : 'development' const DATABASE_URL = process.env.DATABASE_URL || `mongodb://localhost:2...
var gulp = require('gulp'); var browserify = require('gulp-browserify'); var rename = require('gulp-rename'); var uglify = require('gulp-uglify'); gulp.task('browserify', function(){ return gulp.src('./src/modular.source.js') .pipe(browserify({ insertGlobals : true, debug : true })) .pipe(rename('modular.js'...
//create application window.Todos = Ember.Application.create(); //ApplicationAdapter communicates with the source of data for app; //FixtureAdapter is an adapter designed to load fixture data //Todos.ApplicationAdapter = DS.FixtureAdapter.extend(); //use local storage capability Todos.ApplicationAdapter = DS.LSAda...
export var foo = 'parent';
import { createStore, applyMiddleware, compose } from 'redux'; import rootReducer from '../reducers'; import thunk from 'redux-thunk' import {persistStore, autoRehydrate} from 'redux-persist-immutable'; import {AsyncStorage} from 'react-native'; export default (initialState) => { let store = createStore( r...
'use strict'; /** * @module Scrollin * @name Scrollin * @namespace Scrollin */ let Scrollin = function () { // for clarity globals are prefixed with a "_" /** * An array to store HTMLElements wrapper's object * @global * @type Array */ let _elements = [], /** * An array to store HTMLEleme...
/** * Created by 清月_荷雾 on 14-3-4. * @author 清月_荷雾(441984145@qq.com) * 赤菁风铃(liuxuanzy@qq.com) * 项目的入口函数(index会在core加载完毕时获取此函数) */ /** * 项目初始化代码 * @param core 核心工具类 */ module.exports = function (core) { core.href("home/index"); };
/*! * hera.background.js v2.0.0 * https://github.com/crewstyle/OlympusHera * * This plugin changes background attributes. Note that the background image * is set thanks to the Upload tto.upload.js plugin. * * Example of JS: * $('.background').heraBackground({ * color: 'input[name="color"]', ...
"use strict"; module.exports = function(app) { app.controller("CartController", function($scope, $http, $log, CartService) { $scope.cart = CartService.cart; });// end app.controller };
String.prototype.supplant = function (o) { return this.replace(/{([^{}]*)}/g, function (a, b) { var r = o[b]; return typeof r === 'string' || typeof r === 'number' ? r : a; } ); }; function getProtestHtml(protest) { var output = document.createElement("tr"); ...
/* * Avocore / test : avocore.js * copyright (c) 2015 Susisu */ "use strict"; require("./core.js");
// 获取 reducer 注入方法 import { injectReducer } from 'STORE/reducers' export default (store) => ({ path : 'counter', // 路由匹配时异步获取组件 getComponent (nextState, cb) { // webpack 打包时通过 'require.ensure' 为异步加载模块创建分割点 require.ensure([], (require) => { // 引入定义打包依赖模块 const Counter = require('./containers/C...
var Simplecrawler = require("simplecrawler"), EventEmitter = require("events").EventEmitter, util = require("util") var Crawler = function(host, initialPath, initialPort) { var crawler = this // Data integrity checks if (initialPort && isNaN(initialPort)) { throw new Error("Port must be a ...
var request = require('request') , jwt = require('jwt-simple') , moment = require('moment') , OAuthError = require('./errors').OAuthError , GraphClient = require('./waad') , GraphClient10 = require('./waad10'); var authenticator = module.exports = {}; authenticator.getAccessToken = function(tenantI...
import {readDoc, assert, find} from './../util.js'; /** @test {DocBuilder#_buildNavDoc} */ describe('Nav:', ()=> { let doc = readDoc('index.html'); /** @test {DocBuilder#_buildNavDoc} */ it('has class nav.', ()=>{ find(doc, '[data-ice="nav"] [data-ice="classWrap"]', (doc)=>{ assert.includes(doc, '[dat...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar", "sq", {euro: "Shenja e Euros", lsquo: "Thonjëza majtas me një vi", rsquo: "Thonjëza djathtas me një vi", ldquo: "Thonjëza majtas", rd...
/** * ion-events.js * * Author: Max Lynch <max@drifty.com> * * Framework events handles various mobile browser events, and * detects special events like tap/swipe/etc. and emits them * as custom events that can be used in an app. * * Portions lovingly adapted from github.com/maker/ratchet and github.com/alexgi...
// JavaScript Document $(document).ajaxComplete(function() { if($.contains(document.getElementById('imgupload'),document.getElementById('imgcrop'))){ jQuery(function($) { $('#imgcrop').Jcrop({ onChange: getCoordenadas, onSelect: getCoordenadas, bgColor: 'black', bgOpacity: .4, aspectRati...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = require('babel-runtime/core-js/object/keys'); var _keys2 = _interopRequireDefault(_keys); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenera...
angular.module('app').directive('usersDirective', usersDirective); function usersDirective() { return { restrict: 'A', replace: true, scope: true, template: [ '<div class="user">', '<div class="box"> </div>', '<div class="right" ng-click="select({listuser: item.json.name})">', ...
//Makeathons service used to communicate Makeathons REST endpoints (function () { 'use strict'; angular .module('makeathons') .factory('MakeathonsService', MakeathonsService); MakeathonsService.$inject = ['$resource']; function MakeathonsService($resource) { return $resource('api/makeathons/:make...
SirTrevor.Blocks.Slideshare = (function(){ return SirTrevor.Block.extend({ provider: { regex: /slideshare id=(.+)&doc/, html: "<iframe src=\"http://www.slideshare.net/slideshow/embed_code/{{remote_id}}?rel=0\" width=\"425\" height=\"355\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...