code
stringlengths
2
1.05M
(function(){ angular .module("InteractionDesign") .controller("ResultsChartController", ResultsChartController); function ResultsChartController($scope, $location) { $scope.$location = $location; var data1 = [ { x: new Date(2012, 00, 1), y: 12 }, { x: new Dat...
// ch08-arrays--splice.js 'use strict'; // ADDING OR REMOVING ELEMENTS AT ANY POSITION // SPLICE // The first argument is the index you want to start modifying // The second argument is the number of elements to remove (use 0 if you don’t want to remove any elements) // The remaining arguments are the elements to...
import { bind, unbind } from '@segmentstream/utils/eventListener' import listenEvents from './listenEvents' import Storage from '../Storage' const timeout = 10 // 10 seconds let interval = null let hasActive = false let events = [] const storagePrefix = 'timeOnSite:' const storage = new Storage({ prefix: storagePrefi...
version https://git-lfs.github.com/spec/v1 oid sha256:81e9c9e173a9043e925313a488beecd37914141528b2ccf21df1fc5620343cb8 size 2512
/* global bowlineApp */ function releaseModule($rootScope,$http,$timeout,login,ENV) { console.log("!trace releaseModule instantiated, login status: ",login.status); this.validator = {}; // This just gets all releases. this.getReleases = function(mine,username,search,callback) { var loginpack = {}; if (login...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ //var winMae; var wins; //function mae2(idLink, maeNombre, winParent) { // //alert(idLink.text()); // // //alert($(idLink)...
// Generated by CoffeeScript 1.7.1 (function() { var M, TRM, TYPES, alert, badge, debug, echo, help, info, log, njs_fs, options, rainbow, rpr, urge, warn, whisper, __slice = [].slice; njs_fs = require('fs'); TYPES = require('coffeenode-types'); TRM = require('coffeenode-trm'); rpr = TRM.rpr.bind(TRM);...
"use strict"; var Construct = require("can-construct"); var define = require("can-define"); var make = define.make; var queues = require("can-queues"); var addTypeEvents = require("can-event-queue/type/type"); var ObservationRecorder = require("can-observation-recorder"); var canLog = require("can-log"); var canLogDev...
version https://git-lfs.github.com/spec/v1 oid sha256:691b4033e555f469bcdba73a60c0e6a24b38ebffbbf94ebe7ba61e3edbf61601 size 6745
'use strict'; const _ = require('lodash'); const Promise = require('bluebird'); const fs = require('fs-extra'); const wd = require('wd'); const StateError = require('../errors/state-error'); const find = require('./find-func').find; module.exports = class ActionsBuilder { static create(actions) { return ...
// require(d) gulp for compatibility with sublime-gulp. var gulp = require('gulp'); const { src, dest, series, parallel } = require('gulp'); const clean = require('gulp-clean'); const eslint = require('gulp-eslint'); const csso = require('gulp-csso'); const rename = require('gulp-rename'); const babel = require("gulp-...
var AIO = require('../../index'); // create an instance aio = AIO(process.env.AIO_KEY || 'xxxxxxxxxxxx'); // get a list of all groups aio.groups(function(err, data) { if(err) { return console.error(err); } // log data array console.log(data); }); // get a specific group by name aio.groups('Test', func...
module.exports = (env = "dev") => // you may extend to other env to produce a production build for example require(`./webpack.${env}.config.js`);
'use strict'; // Configuring the Workouts module angular.module('workouts').run(['Menus', function(Menus) { // Add the workouts dropdown item Menus.addMenuItem('topbar', { title: 'Workouts', state: 'workouts', type: 'dropdown', position: 0 }); // Add the dropdown list item ...
'use strict'; angular.module('angular-tabs', ['angular-tabs-utils']) .provider('$uiTabs', function () { /** * */ var TabDefinition = function () { this.$dirty = false; this.$selected = false; this.$volatile = true; this....
// Deps is sort of a problem for us, maybe in the future we will ask the user to depend // on modules for add-ons var deps = ['ObjectPath']; try { //This throws an expection if module does not exist. angular.module('ngSanitize'); deps.push('ngSanitize'); } catch (e) {} try { //This throws an expection if modu...
/* Copyright (c) 2011, Chris Umbel 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 the rights to use, copy, modify, merge, publish, distribute, su...
var helpers = require('./'); /** Boids is a lot like Castle in the way it treats elements. But it is more predictable, and retains attribute information. 1. The root node is collapsed, but its name is preserved in document['*'] 2. Attributes are stored in a Object<String -> String> mapping, called "$". * XML elem...
let express = require('express'); let bodyParser = require('body-parser'); let path = require('path'); module.exports = function() { let app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use('/gallery', express.static('public')); app.get('/gallery', functi...
import { module, test } from 'qunit'; module('Unit | Utility | fd common primitives'); // Replace this with your real tests. test('it works', function(assert) { assert.ok(true); });
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || fu...
/**古代战争 * 作者:YYC * 日期:2014-02-12 * 电子邮箱:395976266@qq.com * QQ: 395976266 * 博客:http://www.cnblogs.com/chaogex/ */ var PlantsSprite = YYC.Class(TerrainSprite, { Protected: { }, Public: { name: "plants" } });
(function (root, undefined) { "use strict";
(function () { 'use strict'; /** * Introduce the vendorAppApp.customer.list.edit module * and configure it. * * @requires 'ui.router', * @requires 'ngMaterial', * @requires vendorAppApp.mongooseError * @requires vendorAppApp.customer.service */ angular .module('vendorAppApp.customer....
jQuery(function(){ 'use strict'; var Test={}; var tests=[]; var messages={ success: 'Success', failed: 'FAILED', pending: 'Pending...' }; var classes = { success: 'success', failed: 'danger', pending: 'warning' } var row_id_prefix = 'tests_td_'; var textProperty = (document.createElement('s...
'use strict'; var _ = require('underscore'), through2 = require('through2'), fs = require('fs'), hdiff = require('hdiff'), spawn = require('child_process').spawn, which = require('which'), gutil = require('gulp-util'), path = require('path'); module.exp...
import { FieldErrorProcessor } from "./processors/field-error-processor"; import { RuleResolver } from "./rulesets/rule-resolver"; import { ValidationGroupBuilder } from "./builders/validation-group-builder"; import { ruleRegistry } from "./rule-registry-setup"; import { RulesetBuilder } from "./builders/ruleset-builde...
define([],function(){ var config = {}; config.title="Domain Totals Report"; var backColor = '#ffffff'; var axisColor = '#3e3e3e'; var gridlinesColor = '#000000'; var axisTitleColor = '#333333'; var color1 = '#4BACC6'; var color2 = '#8064A2'; var color3 = '#eda637'; var color4 = '#a7a737'; var colo...
/** * @file A set of global functions available to all components. * @author Rowina Sanela */ (bbn => { "use strict"; if ( !bbn.vue ){ throw new Error("Impossible to find the library bbn-vue") } Vue.mixin({ computed: { /** * Return the object of the currentPopup. * @computed curr...
/* * Copyright (c) 2012-2014 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame } = Assert; // 22.2.1.2 %TypedArray%: Different [[Prototype]] for copied ArrayBuffer depending on element types // https://...
/* * @felipe de jesus | iti_fjpp@hotmail.com */ var msj_beforeSend=function (){ bootbox.dialog({ title: 'Vive Pueblos Mágicos', message: '<center><i class="fa fa-spinner fa-spin fa-3x msjOk"></i><br>Espere por favor.</center>' ,onEscape : function() {} }); ...
// @flow import { Parser, DomHandler } from 'htmlparser2'; const textToDOM = (html: string): any => { const handler = new DomHandler(); const parser = new Parser(handler); parser.write(html); parser.done(); return handler.dom; }; export default textToDOM;
// Modules. let gulp = require('gulp'), config = require('../../config'), path = require('path'); // Package libraries. gulp.task('package:css', () => { 'use strict'; let sourcePath = path.join(config.development.paths.css, '**/*'); let destinationPath = config.package.paths.css; return gulp ...
const escapeStringRegexp = require('escape-string-regexp'); const query = require('../query/query'); const Sort = require('../helpers/sort'); const StringScore = require('../helpers/string-score'); const DataSource = { cells: (name) => { return new Promise((resolve) => { // calculate text search score ...
<%= grunt.util._.camelize(appname) %>.Routers.<%= _.classify(name) %>Router = Backbone.Router.extend({ routes: { "login" : "login" }, initialize : function(){ var self = this; }, login: function(){ var self = this; } });
class Ranking { //object for ranking in curiosity constructor(){// in contructor set a values for default in this class ranking.colorActive = "#2262ae";//colors of active stars ranking.colorUnActive = "rgba(46,46,46,0.75)";//colors for unactive stars ranking.stars = 0;//number of stars in ranking ra...
'use strict'; const ServiceEmitter = require('./lib/ServiceEmitter'); const ServiceProvider = require('./lib/ServiceProvider'); module.exports = { ServiceEmitter, ServiceProvider };
const should = require('should'); var Regex = require('../'); var conStr = 'dHello World'; describe( 'replace test', function () { it( 'left area', function () { var regex = new Regex('H'); regex.replace(conStr,'h').should.equal('dhello World'); } ); it( 'middle area', function () { ...
/*global beforeEach, describe, it,*/ /*eslint no-unused-expressions: 0*/ 'use strict'; require('./testdom')('<html><body></body></html>'); var expect = require('chai').expect; var React = require('react/addons'); var TestUtils = React.addons.TestUtils; var BookmarkList = require('./../../react/component/Bookma...
import Icon from '../components/Icon.vue' Icon.register({ 'mars-stroke-h': { width: 480, height: 512, paths: [ { d: 'M476.2 247.5c4.7 4.7 4.7 12.3 0.1 17l-55.9 55.9c-7.6 7.5-20.5 2.2-20.5-8.5v-23.9h-23.9v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20h-27.6c-5.8 25.6-18.7 49.9-38.6 69.8-5...
'use strict'; // Use application configuration module to register a new module ApplicationConfiguration.registerModule('client');
'use strict'; exports.port = process.env.PORT || 3000; exports.mongodb = { uri: process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'localhost/lulucrawler' }; exports.getThisUrl = ''; exports.companyName = ''; exports.projectName = 'luluCrawler'; exports.systemEmail = 'your@email.addy'; exports.cryptoKey = 'k3yb0...
(function($){ $(document).ready(function(){ $('.rainbowcake').rainbowcake(); }); }(jQuery));
'use strict'; module.exports = function(gulp, plugins) { // Test /task/ // Run all available test tasks. // $ gulp test // gulp.task('test', function(done) { plugins.runSequence('jshint', done); }); // JSHint /test/ // JavaScript Code Quality Tool - Helps to detect errors and ...
// function add(a, b){ // return a+b; // } // // console.log(add(3,1)); // // var toAdd = [9, 5]; // console.log(add(...toAdd)); // var groupA = ['Jen', 'Cory']; // var groupB = ['Vikram']; // var final = [...groupB, 3, ...groupA]; // console.log(...final); var person = ['Andew', 25]; var personTwo = ['Jen', 29]; f...
Brick.util.Language.add('en',{'mod': {'{C#MODNAME}':{ 'accounteditor': { 'widget': { '1': 'Add account' }, 'editor': { '1': 'Edit account', '2': 'Create account', '3': 'Save', '4': 'Cancel', '5': 'Close' }, 'row': { '1': 'Remove this account', '2': 'Remove', '3': 'Account type', ...
function solve(params) { var number = +params[0] switch (number) { case 0: return 'zero'; break; case 1: return 'one'; break; case 2: return 'two'; break; case 3: return 'three'; brea...
export default [ { 'English short name': 'Afghanistan', 'French short name': "Afghanistan (l')", 'Alpha-2 code': 'AF', 'Alpha-3 code': 'AFG', Numeric: 4, Capital: 'Kaboul', Continent: 5, }, { 'English short name': 'Åland Islands', 'French short name': 'Åland(les Îles)', 'Al...
re.on = function(name, callback) { return function(el) { return el.addEventListener(name, callback); }; }; (function() { [ 'click', 'dblclick', 'wheel', 'keydown', 'keyup', 'input', 'focus', 'blur', 'drag', 'dragstart', 'dragover', 'dragstop', 'drop', ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z" }), 'AddLocation');
import test from "ava"; import fs from "fs"; import path from "path"; import rimraf from "rimraf"; import webpack from "webpack"; import PnpWebpackPlugin from "pnp-webpack-plugin"; import createTestDirectory from "./helpers/createTestDirectory"; const ReactIntlPlugin = require("react-intl-webpack-plugin"); const cach...
var a = function() { return 'b'; }; b = function doB(q, wer, ty) { var c = function(n) { return function() { return q + wer - ty; } } return c } this.foo = { bar: function() { var r = function() { re(); draw(); return log('foo') + 'bar'; }; }, ipsum: function(am...
'use strict'; define([ 'jquery', 'underscore', 'angular', 'angular-resource' ], function ($, _, angular) { var resourceApp = angular.module('resourceApp', [ 'ngResource' ]); resourceApp.factory('NodeFactory', function ($resource) { // $resource(url[, paramDefaults][, actions]); return ...
(function($, f) { // If there's no jQuery, Unslider can't work, so kill the operation. if(!$) return f; var Unslider = function() { // Set up our elements this.el = f; this.items = f; // Dimensions this.sizes = []; this.max = [0,0]; // Current inded this.current = 0; // Start/stop t...
var _curry2 = require('./internal/_curry2'); /** * Tests if two items are equal. Equality is strict here, meaning reference equality for objects and * non-coercing equality for primitives. * * @func * @memberOf R * @category Relation * @sig a -> b -> Boolean * @param {*} a * @param {*} b * @return {Boolean...
var searchData= [ ['wait_5ffor_5fcal_132',['wait_for_cal',['../class_a_d_c___module.html#a4fb69b5b2d07c3fc8f5f0bbbf05dfa2a',1,'ADC_Module']]], ['waituntilstable_133',['waitUntilStable',['../namespace_v_r_e_f.html#a108f7c1b5a2073bc092eafcae58575b0',1,'VREF']]], ['wrong_5fadc_134',['WRONG_ADC',['../namespace_a_d_c_...
class Goblin extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 100; this.attackStrength = 60; this.attackSpeed = 1100; this.speed = 0.15; // 10 px/ms this.deploySpeed = 1000; this.size = 10; this.color = 'green';...
import db from './db'; const authenticatedOnly = (req, res, next) => { if (req.isAuthenticated()) { return next(); } return res.status(401).send('Authentication required'); }; const dbRoutes = (app) => { app.post('/users', authenticatedOnly, (req, res) => { db.update(req.body, (doc) => { if (process.e...
import Tipp from 'src/models/TippModel'; /** * Save a new tipp * @param {Object} req Request object * @param {Object} res Response object * @param {Function} next Callback for next middleware in route */ export const postTipp = (req, res, next) => new Tipp(req.body).save() .then(data => res.json(data)) .catch...
/** * Django admin inlines * * Based on jQuery Formset 1.1 * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com) * @requires jQuery 1.2.6 or later * * Copyright (c) 2009, Stanislaus Madueke * All rights reserved. * * Spiced up with Code from Zain Memon's GSoC project 2009 * and modified for Django...
import React from 'react'; import { combineReducers } from 'redux'; import { connect } from 'react-redux'; // Count reducer const count = (state = 10, action) => { switch (action.type) { case 'increment': return state + 1; case 'decrement': return state -1; default: return state; } } ...
/* * ============================================================= * elaostrap * * (c) 2015 Jeremy FAGIS <jeremy@fagis.fr> * ============================================================= */ (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...
'use strict'; /** * Module dependencies. */ var debug = require('debug')('swara:config'), path = require('path'), _ = require('lodash'), glob = require('glob'); /** * Load app configurations */ module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {} ); /** * Get...
export { default } from "./Paragraph";
'use strict'; angular.module('dashboardApp') .controller('RentsCtrl', function ($scope, Rents, $location, $routeParams, Auth, rents) { $scope.rents = rents; $scope.returnBook = function(rent){ Rents.returnBook({'rentId': rent.rentId}, function(res){ console.log(res); rent.status = res.status; ...
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
function listar_dir_envio(){ $.ajax({ cache: false, url: administrador + "administrador_usuario.php?accion=listar_direccion_envio", type: 'POST', data: {"id_cliente": id_cliente_js}, dataType: "json", beforeSend: function...
var casper = require('casper').create(); var utils = require('utils'); // casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36'); var x = require('casper').selectXPath; casper.on("resource.error", function(resourceError) { conso...
goog.provide('ol.source.GeoJSON'); goog.require('ol.format.GeoJSON'); goog.require('ol.source.StaticVector'); /** * @classdesc * Static vector source in GeoJSON format * * @constructor * @extends {ol.source.StaticVector} * @fires ol.source.VectorEvent * @param {olx.source.GeoJSONOptions=} opt_o...
import React from 'react'; import styled from 'styled-components'; const FooterSection = styled.section` padding: 0.4em 0em; text-align: right; `; class Footer extends React.Component { render() { return <FooterSection>{ this.props.children }</FooterSection>; } } export default Footer
// pages/list/index.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHi...
casper.test.begin('BAS GeoMap Features site shows a home page and has 1 or more Features', 5, function suite(test) { casper.start("https://geomap-features.web.bas.ac.uk", function() { // Basic checks test.assertTitle("BAS GeoMap Features", "homepage title is the one expected"); test.assertEx...
/** @jsx React.DOM */ var Footer = React.createClass({ shouldComponentUpdate: function() { return false; }, render:function(){ return ( <div className="footer"> <p>&copy; Company</p> </div> ) } });
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } __export(require('./lib/create-render')); __export(require('./lib/universal-cache')); //# sourceMappingURL=index.js.map
import SubGenerator2 from "stimpak-subgenerator-2"; export default class SubGenerator { setup(stimpak) { stimpak .use(SubGenerator2) .prompt({ type: "input", name: "promptName", message: "You should not see this" }) .render("**/*", `${__dirname}/templates`); } }
/*jshint unused: vars */ require.config({ paths: { angular: '../../bower_components/angular/angular', 'angular-animate': '../../bower_components/angular-animate/angular-animate', 'angular-aria': '../../bower_components/angular-aria/angular-aria', 'angular-cookies': '../../bower_components/angular-cook...
import PropTypes from 'prop-types'; import React from 'react'; import moment from 'moment'; import { withStyles } from 'material-ui/styles'; import IconButton from 'material-ui/IconButton'; import CloseIcon from 'material-ui-icons/Close'; import InfoIcon from 'material-ui-icons/Info'; import TimelineIcon from 'material...
// @flow import React from 'react'; import { generateStreamUrl } from 'util/web'; export default function useGetThumbnail( uri: string, claim: ?Claim, streamingUrl: ?string, getFile: string => void, shouldHide: boolean ) { let thumbnailToUse; // $FlowFixMe const isImage = claim && claim.value && claim...
var Core = require('cw-core'); var Exception = Core.Exception; var ArgumentNullException = Core.ArgumentNullException; var ArgumentException = Core.ArgumentException; var Arr = Core.Arr; var Enumerable = require('linq'); var _ = require('underscore'); var Field = (function () { function Field(form, name) { ...
define(function(require) { var $ = require('./jquery'); var marked = require('./marked'); var prettify = require('./prettify'); var title = document.title; function initPage() { marked.setOptions({ highlight: function(code) { return prettify.prettyPrintOne(escape(code)); } }); $('.section').each...
/** @module ember-flexberry */ import Ember from 'ember'; const { getOwner } = Ember; import { enumCaptions } from 'ember-flexberry-data/utils/enum-functions'; /** Helper for get array captions of registered enum. @class EnumCaptionHelper @extends <a href="http://emberjs.com/api/classes/Ember.Helper.html">Em...
angular.module('emp').service('PeopleService', function($http) { var service = { getAllPeople: function() { return $http.get('core/data/people.json', { cache: true }).then(function(resp) { return resp.data; }); }, getPerson: function(id) { function personMatchesParam(person) { ...
var fs = require('fs'); var path = require('path'); var config = require('../config'); function snapshotFilename(snapPath) { return snapPath.replace(/[^[a-zA-Z0-9]+/g, '_').substr(-100) + '_snapshot.json'; } function snapshotPath(snapPath) { return path.join(process.cwd(), config.snapshotPath, snapshotFilename(sn...
define(['config', 'folders'], function (config, folders) { var wrikeStates = { 'active': 0, 'completed': 1, 'deferred': 2, 'cancelled': 3 }; var statusFolders = folders.getSubfolders(config.statusFolder) , statuses = {} , statusesById = {}; $.each(statusFolders, function (i, val) { var wrikeState = ...
//= require assets/templates/user
'use strict'; require('./connectionHelper'); const expect = require('chai').expect; const supertest = require('supertest'); const app = require('../app.js'); const Appointment = require('../models/appointment'); const agent = supertest(app); describe('appointment', function() { let appointment = {}; beforeEach(f...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
import React from "react"; import ReactDOM from "react-dom"; import VariableInspector from "./components/VariableInspector"; ReactDOM.render( <VariableInspector />, document.getElementById("root") );
module.exports = { rules: { "no-alert": [0], "@thibaudcolas/cookbook/import/no-extraneous-dependencies": [ "error", { devDependencies: true, }, ], }, };
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'removeformat', 'ka', { toolbar: 'ფორმატირების მოხსნა' } );
var _ = require('lodash'); var path = require('path'); function cucumberJUnitReporter(providedConfig, builder) { var config = _.defaults(providedConfig || {}, { reportDir: 'test_reports', reportPrefix: 'TEST-', reportSuffix: '.xml', reportFile: 'test_results.xml', oneReportPerFeature: true, ...
/** * Created by shuis on 2017/5/29. */ import React, { Component } from 'react'; import { View, Image, FlatList, TouchableWithoutFeedback } from 'react-native'; import {TabBarIcon, TweetSeparator} from '../component/base'; import Tweet from '../component/Tweet'; import {public_timeline} from '../api/api'; ...
var should = require('should'); var annotationRouter = require('../../index.js'); var path = './mock.js'; describe('get basic routes', function(){ describe('asynchronous', function(){ var err; before(function(done){ routes = {}; annotationRouter(path, function(e, rou...
var Drag={ obj: null, leftTime: null, rightTime: null, init: function (o,minX,maxX,btnRight,btnLeft) { o.onmousedown=Drag.start; o.hmode=true; if(o.hmode&&isNaN(parseInt(o.style.left))) { o.style.left="0px"; } if(!o.hmode&&isNaN(parseInt(o.style.right))) { o.style.right="0px"; } o.minX=typeof minX!='unde...
'use strict'; const $ = use('chalk', 'syncy'); function task(done) { $.syncy([ 'app/fonts/**', 'app/images/**/*.{gif,jpg,png,svg}', 'app/{scripts,styles}/vendor/**', 'app/*' ], 'build', { base: 'app', ignoreInDest: [ 'styles/*.{css,map}', 'scripts/*.{js,map}', '*.html' ...
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses....
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 * the ri...
const ADD_TODO = 'ADD_TODO'; const TOGGLE_TODO = 'TOGGLE_TODO'; const SET_VISIBILITY_FILTER = 'SET_VISIBILITY_FILTER'; const SHOW_ALL = 'SHOW_ALL'; const todo = (state = {}, action) => { switch (action.type) { case ADD_TODO: return { id: action.id, text: action.text, completed: fals...
import { createStore, compose, applyMiddleware } from 'redux'; import reduxImmutableStateInvariant from 'redux-immutable-state-invariant'; import thunk from 'redux-thunk'; import axios from 'axios'; import axiosMiddleware from 'redux-axios-middleware'; import rootReducer from '../reducers'; const client = axios.create...
/* eslint-disable security/detect-object-injection */ const path = require("path").posix; const { calculateInstability, metricsAreCalculable } = require("../module-utl"); const { getAfferentCouplings, getEfferentCouplings, getParentFolders, object2Array, } = require("./utl"); function upsertCouplings(pAllDepen...