code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:d212e242f579a5434f510785bbdae0fa57e56bda5308fa86dff52e7280aa53d1 size 183211
'use strict'; goog.provide('KeepMeContributing.SchedulesExecutor'); goog.require('KeepMeContributing.SchedulesController'); goog.require('KeepMeContributing.Worker.TimeOfDay'); goog.require('goog.events.Event'); goog.require('goog.events.EventHandler'); goog.require('goog.Disposable'); /** * Base class for object...
var should = require('should') , tsa = require('../'); describe('Validations: Range', function(){ var guard = tsa({ foo: tsa.required({ validate: tsa.validate.range(0, 2) }) }); it('positive case', function(done){ //arrange var input = { foo: 1 }; //act guard().frisk(input, function(err, ...
'use strict'; var TableMonitor; (function (TableMonitor) { (function (StatusEnum) { StatusEnum[StatusEnum["Available"] = 'Available'] = "Available"; StatusEnum[StatusEnum["Busy"] = 'Busy'] = "Busy"; StatusEnum[StatusEnum["Assigned"] = 'Assigned'] = "Assigned"; StatusEnum[StatusEnum["...
export { default } from 'torii-user-service/components/login-component';
var gulp = require('gulp'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), pkg = require('./package.json'), header = require('gulp-header'); var banner = ['/*!', ' * <%= pkg.name %> - <%= pkg.description %>', ' * @version v<%= pkg.version %>', ' * @link <%= pkg.homepage %>', ' * @lice...
var yt = require('../youtube.js'); var helpers = require('./helpers.js'); describe('youtube video page', function() { browser.ignoreSynchronization = true; browser.get('https://www.youtube.com/watch?v=WDcYJHgmI1k'); it('should have main video', function() { var q = yt.video.videos[0]; helpers.testAtt...
//gets alias from data and type data function getAlias(data, columns, alias) { for (var col in columns) alias = alias.replace("%" + col + "%", data[col]); return alias; } //gets data to show aliases function loadAliases() { requiredata.request('typesdata', function(typesdata) { $(".alias[data-enti...
export default "foo"; export const unused = "foo2";
function system() { var canvas = new Canvas('view'); canvas.fitToWindow(); var l, system, dude; function init() { //canvas.clear(); canvas.fade(); canvas.fade(); canvas.fade(); canvas.setKaleidoscope(4 + randomInt(4)); system = (sampleArray( [ Lindenmayer.dragonCurve, ...
var diceware = { 11111:"0", 11112:"1", 11113:"2", 11114:"3", 11115:"4", 11116:"5", 11121:"6", 11122:"7", 11123:"8", 11124:"9", 11125:"10", 11126:"11", 11131:"12", 11132:"13", 11133:"14", 11134:"15", 11135:"16", 11136:"17", 11141:"18", 11142:"19", 11143:"20", 11144:"21", 11145:"22", 11146:"23", 11151:"24", 11152:"25", 1...
'use strict'; /*jshint -W106 */// Disable underscore_case warnings in this file var chai = require( 'chai' ); var expect = chai.expect; var LinesCollection = require( '../../../public/js/collections/lines' ); var LineModel = require( '../../../public/js/models/line' ); describe( 'LinesCollection', function() { var...
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ 'app/bower_components/angular/angular.js', 'app/bower_components/angular-mocks...
import DS from 'ember-data'; export default DS.Model.extend({ name: DS.attr('string'), url: DS.attr('string'), parentId: DS.attr('number'), parent: DS.belongsTo('category', { inverse: null }) });
var assert = require('assert'); var optional = require('../src/optional'); describe('optional', function(){ it('1. arguments to object', function(){ function test(){ return optional([ { id: 'int' }, { name: 'string' }, { id: 'int', name: 'string' } ], arguments); } assert.deepEqual({ id: 1 },...
function add_to_cart(id) { var key = 'product_' + id; var x = window.localStorage.getItem(key); x = x * 1 + 1; window.localStorage.setItem(key, x); // вывод количество товаров в корзине // alert('Колличестов пицц: ' + cart_get_number_of_items()); update_orders_input(); update_orders_button(); } function up...
'use strict'; var d = require('dejavu'), automaton = require('automaton').create(), BaseModule = require('../BaseModule') ; var Module = d.Class.declare({ $name: 'Module', $extends: BaseModule, create: function (name, options) { this._assertProject(); // create spoon ba...
/* irc.js - Node JS IRC client library (C) Copyright Martyn Smith 2010 This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an...
module.exports = function() { Object.defineProperty(Structure.prototype, 'memory', { get: function() { if (_.isUndefined(Memory.structures)) { Memory.structures = {}; } if (!_.isObject(Memory.structures)) { return undefined; } ...
'use strict'; exports.config = { baseUrl: 'http://127.0.0.1:8000', specs: ['test/acceptance/spec/**/*.js'], };
const path = require('path') module.exports = { context: path.resolve(__dirname, 'src'), entry: ['@babel/polyfill', './index.js'], resolve: { alias: { '@actions': path.resolve(__dirname, 'src/redux/actions'), '@assets': path.resolve(__dirname, 'src/assets'), '@atoms': path.resolve(__dirname...
'use strict'; /*eslint-env node, mocha */ import ClientBuilder from '../src/ClientBuilder'; import LimeTransportWebsocket from 'lime-transport-websocket'; import Lime from 'lime-js'; require('chai').should(); describe('ClientBuilder', function () { function buildClient() { return new ClientBuilder() ...
(function($, undefined) { var InpNumber = function(el) { var $el = $(el); var _this = this; this.$input = $el.find('.inp-number__input'); this.$inc = $('<a href="#" class="inp-number__btn inp-number__btn--inc"><span>+</span></a>'); this.$dec = $('<a href="#" class="inp-number__btn inp-number__btn--dec"><s...
const Exception = require('./Exception') const defaultFileType = 'application/octet-stream' const defaultTextType = 'text/html' function Response(onSend, onFail) { var _type = 'json' var _status = 200 var _errors = [] var _data = {} var _addData = null var _sent = false var _headers = {} var _failure = false ...
'use strict'; // Include Gulp & tools we'll use var gulp = require('gulp'), ts = require('gulp-typescript'), merge = require('merge2'); var tsProject = { typescript: require('typescript'), //sourceRoot: 'app/scripts', sortOutput: true, declarationFiles: true, noExternalResolve: false, ...
'use strict'; var React = require('react'); var page = require('page'); var Promise = require('promise'); var thenRequest = require('then-request'); var Request = require('./request'); var Response = require('./response'); var global = Function('', 'return this')(); var container = document.getElementById('container...
var q = require('q'), http = require('http') watch = require('watch'), sys = require('sys'), exec = require('child_process').exec; var Syncd = function(){ this.etcd_endpoint = process.env.ETCD_ENDPOINT this.etcd_services_directory = (process.env.ETCD_SERVICES_D...
version https://git-lfs.github.com/spec/v1 oid sha256:5be8c6eb9cb5a4638c6e4605b1bf08244c8cc9155d326644f77aa2f5f2a1d721 size 6263
'use strict'; // MODULES // var partial = require( './partial.js' ), recurse = require( './recurse.js' ); // RANDOM // /** * FUNCTION: random( dims, alpha, beta[, rand] ) * Creates a multidimensional array of Pareto (Type I) distributed random numbers. * * @param {Number[]} dims - dimensions * @param {Number} alp...
jQuery(document).ready(function($) { $.ajax({ url:'https://dailyverses.net/getdailyverse.ashx?language=es&isdirect=1&url=' + window.location.hostname, dataType: 'JSONP', success:function(json){ $(".dailyVersesWrapper").prepend(json.html); } }); });
/** * @license Highcharts JS v9.0.0 (2021-02-02) * * Dot plot series type for Highcharts * * (c) 2010-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.ex...
const baseConfig = require('./karma.base'); module.exports = function karma(config) { Object.assign(baseConfig, { browsers: ['PhantomJS'], }); baseConfig.plugins.push('karma-phantomjs-launcher'); config.set(baseConfig); };
exports.buildQuery = function(filters){ var query = {}; if (filters){ console.log("lets build a query"); console.log(filters); query = {$and: []}; for (var filter_list in filters){ for (var filter of filters[filter_list]){ query_part = {}; if (filter.type == "text"){ ...
"use strict"; const net = require('net'), client = net.connect({port: 5432}); client.on('data', function (data) { let message = JSON.parse(data); if (message.type === 'watching') { console.log("Now watching: " + message.file); } else if (message.type === 'changed') { let date = new Date(message.timestamp); ...
var assert = require('assert'); var request = require('supertest'); var express = require('express'); var bodyParser = require('body-parser'); var demoApp = require('../demo/demoApp'); var app = express(); app.use(bodyParser.json()); demoApp(app, {debugToConsole: false}); describe('demoApp/nodulejs test suite', func...
import browserSync from 'browser-sync'; gulp.task('sync', () => { browserSync(config.browserSync); gulp.watch(['build/*.html', 'build/*.css'], browserSync.reload); });
'use strict'; //Feeds service used to communicate Feeds REST endpoints angular.module('feeds').factory('Feeds', ['$resource', '$http', function($resource, $http) { var endPoint = 'feeds'; return { find: function (query) { var options = {}; if (query) { options.params = query; } return $http.get(...
let wegameCanvas = null if (typeof wx !== 'undefined') { // 在开放数据域的环境下,用`wx.getSharedCanvas`创建canvas if (wx.getSharedCanvas) { wegameCanvas = wx.getSharedCanvas() } else if (wx.createCanvas) { wegameCanvas = wx.createCanvas() } } export default wegameCanvas
const path = require("path"); const testRunnerConfig = require('test-runner-config'); const _ = require("underscore"); const unitTestRunnerConfig = require("./.unitTestRunnerConfig.js"); const wallabyFiles = testRunnerConfig.getWallabyFiles(unitTestRunnerConfig.files); const _processorConfig = { preprocessors:...
modules.define( 'spec', ['checkbox', 'i-bem__dom', 'jquery', 'dom', 'BEMHTML', 'chai'], function(provide, Checkbox, BEMDOM, $, dom, BEMHTML, chai) { describe('checkbox_type_button', function() { var expect = chai.expect, checkbox, button; function buildCheckbox() { return BEMDOM.in...
const BORDER_LEFT = 'border-left'; const DRAG_START_BORDER_LEFT = '4px solid #d64336'; let _node; const _dragStart = function(ev){ if (_node){ _node.style.removeProperty(BORDER_LEFT) } _node = ev.currentTarget _node.style.setProperty(BORDER_LEFT, DRAG_START_BORDER_LEFT) } const _dragEnd = function(ev){ ...
describe("Queue", function () { var queue; beforeEach(function () { queue = new Queue(); }); describe("length", function () { it("should be zero if empty", function () { expect(queue.length()).toEqual(0); }); it("should be the right size", function () { ...
var mergeOptions=require('./libs/option_helper').mergeOptionsWithDefault; var HttpClient=function(url,attrs) { this.url=url; mergeOptions.call(this,attrs); } HttpClient.prototype._options={ accept : "application/json; charset=UTF-8" ,contentType : "application/json" } HttpClient.prototype._prepareHeader=function(...
import { combineReducers } from 'redux'; //Reducers import favourites from './favourites'; import home from './home'; import moviePage from './moviePage'; export default combineReducers({ favourites, home, moviePage });
import mocha from 'mocha' import chai from 'chai' import expect from 'expect' import isObject from '../src/isObject' describe ('isObject', () => { it ('returns true if input is an Object', () => { expect(isObject({Name:'Lizz'})).toEqual(true) }) it ('returns false if input is a Number', () => { expect( i...
/** * Wraps `querySelector` à la jQuery's `$`. * * @param {String|Element} sel CSS selector to match an element. * @param {Element=} parent Parent from which to query. * @returns {Element} Element matched by selector. */ module.exports.$ = function (sel, parent) { if (sel && typeof sel === 'string') { sel =...
// Dependências const restful = require('node-restful'); const mongoose = restful.mongoose; const Schema = mongoose.Schema; //var funcoes = require('../util/functions'); const cpf = require('./fields/field-cpf'); const cnpj = require('./fields/field-cnpj'); // Schema var usuarioSchema = new Schema({ "tipo": String...
var webpack = require('webpack'); var path = require('path'); module.exports = { context: __dirname, devtool: 'eval-source-map', entry: { main: [ 'webpack-dev-server/client?http://localhost:3335', 'webpack/hot/only-dev-server', './src/index.js' ] }, output:{ path: path.join(__di...
module.exports = { url: 'mongodb://localhost/ambidex' }
var Translator = require('./translator'); function i18n(options) { return new Translator(options); } i18n.middleware = require('./middleware'); i18n.Translator = Translator; i18n.backends = { fs: require('./backends/fs') }; module.exports = i18n;
const path = require('path') const writeFile = require('../utils/write-file') const padZero = require('../utils/pad-zero') const destPath = require('../utils/dest-path') const loadPage = require('../utils/load-page') const renderPage = require('./render-page') /** * MarkdownのファイルをHTMLに変換する処理。 * Markdownへのパス -> Page...
/* * Compartido por el cliente y servidor */ var lang = { anon: 'Anónimo', search: 'Buscar', show: 'Mostrar', hide: 'Esconder', report: 'Reportar', focus: 'Centrar', expand: 'Ampliar', last: 'Últimos', see_all: 'Mostrar todos', bottom: 'Abajo', expand_images: 'Ampliar imágenes', live: 'En vivo', catalog...
/* eslint-env node, mocha */ import Assert from 'assert' import Request from 'supertest' import Server from '../../src/server' describe('#Server', () => { let app before(() => { const noop = () => { } console.info = noop console.warn = noop }) after(() => { delete console.info delete co...
var app = require('application'); app.start({ moduleName: 'views/todo-list' });
// Eloquent JavaScript // Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on! // Program Structure // Write your own variable and do something to it. // var my_name = "Sarah" // var math = 2 + 4 // console.log(my_name.length) // console.log(math) // prompt("What's your f...
module.exports = function (App) { //Enable CORS App.use(require('./utils/cors')); //USER var User = require("./user"); User.addRoutes(App); //TASKS var Tasks = require("./tasks"); Tasks.addRoutes(App); }
/** * Image.js * * @description :: This represents a product image with file paths for different variations (original, thumb, ...). * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ var cloudinary = require('cloudinary'); module.exports = { attributes: { width: { ...
/******************************************************************************* * SixteenSegment * @constructor * Implements Points[] and CharacterMasks[] for a sixteen segment display ******************************************************************************/ function SixteenSegment(count, canvas, width, he...
var G = function() { this.x = 0; this.y = 0; } G.prototype.printG = function(ctx) { xG = this.x; yG = this.y; wG = 88; hG = 140; ctx.beginPath(); ctx.moveTo(xG + wG, yG); // ctx.lineTo(xG, yG); ctx.lineTo(xG, yG + hG); ctx.lineWidth = 20; ctx.strokeStyle = "#2FEF11"; ...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; import { addMemory } from '../../stores/MemoryStore'; import TypeSelector from '../TypeSelector'; import PersonForm from '../PersonForm'; import PlaceForm from '../PlaceForm'; import './CreateP...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
var gulp = require('gulp'); var dest = gulp.dest; var concat = require('gulp-concat'); var babel = require('gulp-babel'); var package = require('./package.json'); var version = package.version; gulp.task('10.5.1-ES3', function() { return gulp.src([ 'lib/es5-shim/es5-shim.min.js', 'lib/es5-shim/es5-sham.min.js'...
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function() { log.history = log.history || []; // store logs to an array for reference log.history.push(arguments); if(this.console) { arguments.callee = arguments.callee.caller; ...
import React from 'react'; import ReactDOM from 'react-dom'; export default class CustomUrl extends React.Component{ constructor(props){ super(props) this.state = {url:""} } componentDidUpdate(){ this.setFocus(); } componentDidMount(){ this.setFocus(); } setFocus(){ } handleChange(even...
Parsley.addMessages("fr",{dateiso:"Cette valeur n'est pas une date valide (YYYY-MM-DD).",minwords:"Cette valeur est trop courte. Elle doit contenir au moins %s mots.",maxwords:"Cette valeur est trop longue. Elle doit contenir tout au plus %s mots.",words:"Cette valeur est invalide. Elle doit contenir entre %s et %s mot...
/* *** INVENTORY JS *** */ //console.log("inventory.js called"); var hasKey = false; var itemsDiv = document.createElement("div"); itemsDiv.setAttribute("id", "itemsDiv"); var itemsStyle = "position:absolute; top:20px; right:0; width:50%; height:100px; text-align:center;" itemsDiv.setAttribute("style", itemsS...
/* * Utilities: A classic collection of JavaScript utilities * Copyright 2112 Matthew Eernisse (mde@fleegix.org) * * 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...
/** * Created by AndrewLiang on 2015/11/24. */ 'use strict'; /** * Module dependencies. */ /* * Define Variable * fullPath : "E:\Andrew\serve-komplete\public\pure.html" * fullDistPath : "E:\Andrew\serve-komplete\public\dist\pure.html" * fullDotPath : "E:\Andrew\serve-komplete\public\pure." * filePath ...
let story = require('storyboard').mainStory; let plugged = require('../client'); module.exports = { event: plugged.SOCK_ERROR, handler:()=> { story.error('Socket', 'Socket errored. Restarting...'); process.exit(1); } };
jcmp.events.AddRemoteCallable('race_Freeze_player_wait', function() { jcmp.localPlayer.controlsEnabled = false; // Maybe have the UI say : Wait it's you're turn to see the checkpoint jcmp.ui.CallEvent('WaityoutimeTTS',true); jcmp.ui.CallEvent('IsTTS',true); jcmp.events.CallRemote('race_debug', "race_Freeze_pl...
"use strict"; let debug = location.hostname === "localhost"; module.exports = analytics; /** * Initializes Google Analytics and sends a "pageview" hit */ function analytics () { if (!debug) { if (typeof gtag === "undefined") { console.warn("Google Analytics is not enabled"); } } } /** * Tracks ...
var HelloWorldLayer = cc.Layer.extend({ sprite: null, info: null, ctor: function() { ////////////////////////////// // 1. super init first this._super(); cc.log("Sample Startup") this.createTestMenu(); var winsize = cc.winSize; var logo = new cc.Sp...
(function() { 'use strict'; angular.module('services') .service('firebaseService', firebaseService); firebaseService.$inject = ['$q']; function firebaseService($q) { var svc = this; /*====================== Delegation Variables =========================== */ svc.checkUserSession = checkUserSession; ...
import Fuse from 'fuse.js'; import ClientModule from '../ClientModule'; import { extractTopModules, localize, resolveEntry } from '../mixins/Encyclopedia'; /** * @classdesc Module for the World of Tanks Tankopedia endpoint. * @extends ClientModule */ class Tankopedia extends ClientModule { /** * Constructor. ...
(function () { 'use strict'; function OsdAuth($q, $http, $rootScope, OsdAuthConfig, OsdAuthUser) { var self = {}; self.login = function (credentials) { return $q.when($http.post(OsdAuthConfig.config.login, credentials)) .then( function loginSucc...
var hopApp = angular.module('hopApp', []); /* .config(function ($routeProvider) { $routeProvider .when('/', { templateUrl: 'views/search.html', controller: 'searchCtrl', controllerAs: 'main' }) .when('/flavotron', { templateUrl: 'views/sortGrid.html', ...
import { app, router, store } from './app' const isDev = process.env.NODE_ENV !== 'production' // This exported function will be called by `bundleRenderer`. // This is where we perform data-prefetching to determine the // state of our application before actually rendering it. // Since data fetching is async, this fun...
#!./node_modules/.bin/babel-node import { createServer } from './server'; const port = Number(process.env.PORT || '8081'); createServer().listen(port);
var fs = require('fs') var request = require('request') var parser = require('csv-parse') var toArray = require('stream-to-array') var URL = 'http://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv' toArray(request(URL).pipe(parser()), function (err, codes) { if (err) throw err fs.writeFile('sr...
var context = require.context('../test/', true, /\.test\.js$/); //make sure you have your directory and regex test set correctly! context.keys().forEach(context);
(function() { 'use strict'; // Create the button videojs.ShareButton = videojs.Button.extend({ init: function( player, options ) { // Initialize the button using the default constructor videojs.Button.call( this, player, options ); } }); // Set the text for the button videojs.ShareButton.prototy...
'use strict'; class Inode { constructor (name, content) { this.name = name; this.content = content; } get type () { if (this.content instanceof Map) return 'directory'; else return 'file'; } dumps () { return JSON.stringify(this.dump(), null, 2); } } class File extends Inode { co...
/** * Copyright 2016 Google Inc. 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 required by appli...
/** * * AVIONIC * Propelling World-class Cross-platform Hybrid Applications ✈ * * Copyright 2015 Reedia Limited. 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 w...
dojo.require('esri.map'); dojo.require('esri.graphic'); dojo.require('esri.tasks.geometry'); dojo.require('esri.toolbars.draw'); dojo.require('esri.tasks.query'); dojo.ready(init); var map; var drawTool; var geomSvc; var printer; var measurer; var noticeAreas; var highlightSymbol; function init() { ...
version https://git-lfs.github.com/spec/v1 oid sha256:39d1495f28768a0592eb9ff158254f0e876c9367a59a1fb2529b2a047040e47b size 1641
// Download the Node helper library from twilio.com/docs/node/install // These consts are your accountSid and authToken from https://www.twilio.com/console const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const authToken = 'your_auth_token'; const client = require('twilio')(accountSid, authToken); client.calls...
import request from '@/utils/request' // home/mix export function home(data) { return request({ url: '/home/mix', method: 'get', params: data || {} }) } // recList?cid=&ct= export function recList(data) { return request({ url: '/cate/recList', method: 'get', params: data ...
function updateCart() { console.log('updating cart...'); // if there's no cart object, create one if (localStorage.cart === undefined) { $('#cartModal .modal-body table').html('There are no items in the cart.'); } else { console.log(localStorage.cart); // Get the current cart in array format v...
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**/*.e2e-spec.ts' ], capabilities: { 'browserName': 'chrome' }, directConnect: true, baseUrl: 'http://lo...
version https://git-lfs.github.com/spec/v1 oid sha256:177787e5207ae965f08129cd4d54e9ea2afe145e4160b33c06338ff1f425c159 size 40535
const $ = require('cafy').default; const MongoAdapter = require('../../modules/MongoAdapter'); const generateHash = require('../../modules/generateHash'); /** @param {{db:MongoAdapter}} context */ module.exports = async (context) => { // param: key const [key, keyErr] = $.string.get(context.params.key); if (keyErr)...
export default [ { name: 'entertainer', skills: { count: 2, list: ['acrobatics', 'performance'] }, tools: { count: 1, list: ['disguiseKit', 'musicalInstruments'] }, equipment: [ { name: 'musi...
window.debugLog=function(e){"use strict";"prod"!==window.ENV&&console.log.apply(console,arguments)},HOVERBOARD.Deferred=HOVERBOARD.Deferred||function(){"use strict";function e(){var e,r,o=new Promise(function(o,n){e=o,r=n});return{promise:o,resolve:e,reject:r}}return{createDeferred:e}}();
angular .module('package.account', [ 'controller.account', 'service.account', 'ngRoute' ]) .config(['$routeProvider', function ($routes) { $routes .when('/account', { controller: "AccountSettingsCtrl", controllerAs: "account", ...
app.controller('poolController', function($scope,$http){ $scope.pools = []; $http.get('http://localhost/ytforum/public/api/pool'). success(function(data, status, headers, config) { $scope.pools = data; }); $scope.addVote = function(pooloptions){ $http.get('http://localhost/ytforum/public/api/po...
import {customElement, bindable, inject} from 'aurelia-framework'; import {DOM} from 'aurelia-pal'; @customElement('tree-node') @inject(Element) export class TreeNode { @bindable node = null; constructor(element) { this.element = element; } onClick() { let event = DOM.createCustomEven...
var m = require('./m.js'); var instance = new m(); instance.require('thinkjs');
/** * sample module * * @project < write project name here > * @date < put date here > * @author < author name > * @site < site name > */ (function($, sf, window, document, undefined) { "use strict"; var ModuleName = function() { /** * add all event listene...
import {generateActions} from 'action-u'; import _bootstrap from './featureName'; export default generateActions.root({ // prefix all actions with our feature name, guaranteeing they unique app-wide! [_bootstrap]: { // actions(): Action ... the root IS an action (e.g. bootstrap() action) ...