code
stringlengths
2
1.05M
'use strict'; /** * @ngdoc function * @name tagrefineryGuiApp.thatcontroller:MainCtrl * @description * # MainCtrl * Controller of the tagrefineryGuiApp */ angular.module('tagrefineryGuiApp') .controller('MainCtrl', ["$scope", "socket", "$rootScope", "$timeout", function ($scope, socket, $rootScope, $timeout) {...
"use strict"; exports.__esModule = true; var _stringify = require("babel-runtime/core-js/json/stringify"); var _stringify2 = _interopRequireDefault(_stringify); var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck"); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); function _intero...
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); var browserSyncSpa = require('browser-sync-spa'); var config = require('./config'); var paths = config.paths; function browserSyncInit(baseDir, browser) { browser = browser === undefined ? 'default' : browser; var routes; // if...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../core/tsSupport/assignHelper ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../request ../core/promiseUtils ../c...
/* jshint node: true */ var timer = require('grunt-timer'); module.exports = function (grunt) { timer.init(grunt); var config = require('./config'); require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { dist: { ...
define(['jquery', 'amplify', 'ko', 'a/settings/model.settingPanel', 'languages'], function ($, amplify, ko, settingPanelModel, languages) { var organizationModel = function () { var self = this; self.id = ko.observable(); self.name = ko.observable() ...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
'use strict'; var hunt = require('./../index.js')({ 'port': 3000, 'mongoUrl': 'mongo://localhost/hunt_dev', 'enableMongoose': true, 'disableCsrf': true }); /* * Creating mongoose model of Trophies * So, this model is accessible by hunt.model.Trophy * and by request.model.Trophy in controllers */ hunt.exte...
/* stylec comparison: strict */ var good = 1 === 3; var good = 1 !== 3; var bad = 1 == 3; //! column: 10 var bad = 1 != 3; //! column: 10
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Post Schema */ var PostSchema = new Schema({ created: { type: Date, default: Date.now }, name:{ type: String, required: true, trim: true }, description: { type: Stri...
// FIRST TIME ONLY- run: // ./node_modules/.bin/webdriver-manager update // // Try: `npm run webdriver:update` // // AND THEN EVERYTIME ... // 1. Compile with `tsc` // 2. Make sure the test server (e.g., lite-server: localhost:8080) is running. // 3. ./node_modules/.bin/protractor protractor.config.js // // ...
const config = { mongoURL: process.env.MONGO_URL || 'mongodb://localhost:27017/mern-starter', port: process.env.OPENSHIFT_NODEJS_PORT || 8, }; export const baseURL = typeof window === 'undefined' ? process.env.BASE_URL || (`http://localhost:${config.port}`) : ''; export const API_URL = (typeof window ===...
'use strict'; angular .module('FlexUI') .directive('flexList', flexList); function flexList() { var directive = { scope: false, template: '<div class="flex-list" ng-transclude></div>', // html路径 transclude: true, replace: true, restrict: 'E' //指令的使用方式 }; return directive; }
export const basic_cup = {"viewBox":"0 0 64 64","children":[{"name":"path","attribs":{"fill":"none","stroke":"#000000","stroke-width":"2","stroke-miterlimit":"10","d":"M16,27c0,4.418,6.059,8,16,8s16-3.582,16-8V1H16V27z\r\n\t"},"children":[]},{"name":"line","attribs":{"fill":"none","stroke":"#000000","stroke-width":"2",...
import test from 'ava' import identity from '../../lib/internals/identity' test('returns identity', t => { const x = identity(42) t.is(x, 42) })
export { default } from './datamap';
// @flow import React, {Component} from 'react'; import { View, ScrollView, RefreshControl, TouchableOpacity, Text, Image, StyleSheet } from 'react-native'; import {connect} from 'react-redux'; import {CSHeader} from '../../components/CSHeader'; import {loadRequests, acceptRequest, removeRequest} from '.....
const fs = require('fs'); const path = require('path'); const Benchmark = require('benchmark'); const load = require('load-json-file'); const nearestPoint = require('./').default; const pts = load.sync(path.join(__dirname, 'test', 'in', 'points.json')); /** * Benchmark Results * * turf-nearest-point x 72,623 ops/...
/** Functions related to the Timer Bar */ import { UpdateBotTimerBarPosition } from '../../Config/SpecificToggles'; import { BuffColours, ColourBackPre, ColourGray, ColourOrange, ColourPurple, LastNumberOfTimers, } from '../VariablesAndData'; import { CreateTimer } from './CreateDOMElements'; /** * This ...
window.Channel = Backbone.Model.extend({ urlRoot: "/api/channels", idAttribute: "_id", initialize: function () { this.validators = {}; this.validators.name = function (value) { return value.length > 0 ? {isValid: true} : {isValid: false, message: "You must enter a name"}; ...
/* eslint-env node */ const Canvas = require('canvas'); const fs = require('fs'); const { Image } = Canvas; /** * Create a new canvas object with height and width * set to the given values. * * @param width {number} The width of the canvas. * @param height {number} The height of the canvas. * * @return {Canva...
/* * grunt-init-gruntfile * https://gruntjs.com/ * * Copyright (c) 2012 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ 'use strict'; // Basic template description. exports.description = 'Create a basic Gruntfile.'; // Template-specific notes to be displayed before question prompts. expor...
define(["require", "exports", "../Util", "../Factory", "../Shape", "../Validators", "../Global"], function (require, exports, Util_1, Factory_1, Shape_1, Validators_1, Global_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Ellipse = void 0; /** * Ellipse co...
version https://git-lfs.github.com/spec/v1 oid sha256:76394fcd8b69f1fb049370566cb65476f56411174ce3c91740f3cedc0b2e0446 size 35769
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidFolder extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_10_"> <g> <g> <path d="M213.338,96H74.666C51.197,96,32,115.198,32,138.667v234.666C32,396.802,51.197,416,74...
export var trueDocs = { name: 'true', category: 'Constants', syntax: ['true'], description: 'Boolean value true', examples: ['true'], seealso: ['false'] };
function simpleState (options) { "use strict"; if (!options) { options = {}; } this._state = null; /// name of the stored cookie this.cookieName = options.cookieName || "last-page-state"; /// cookie persistance mode: /// page - valid for the current page only with long expir...
import { connect } from 'react-redux'; import { getErrorMessage } from '../../../../technical/network/selectors'; function mapStateToProps(state) { return { errorMessage: getErrorMessage(state), }; } function createMapDispatchToProps({ goNext }) { return (dispatch) => ({ onClick(event) { event.pre...
const NeDB = require('nedb'); const path = require('path'); module.exports = function (app) { const dbPath = app.get('nedb'); const Model = new NeDB({ filename: path.join(dbPath, 'overlay.db'), autoload: true }); return Model; };
import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import rokka from '../rokka' import Spinner from './Spinner' import FramelessLayout from './layouts/FramelessLayout' import { login, setAlert } from '../state' import cx from 'classnames' function hasUpperCase(str) { return str.toLowerCa...
export class CreateRoleWindow { load() { $(document).ready(() => { const _roleAppService = abp.services.app.role; const $container = $("#container"); const $form = $("#createRoleForm"); $container .jstree({ "checkbox": { ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const InnerGraph = require("../optimize/InnerGraph"); const ConstDependency = require("./ConstDependency"); const HarmonyExportExpressionDependency = require("./HarmonyExportExpressionDependency"); const ...
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { provideHooks } from 'redial' import { Link } from 'react-router' import { loadCategories, loadTags } from '../../actions/home' const hooks = { fetch: ({ dispatch }) => Promise.all( [dispatch(loadCategories()), dis...
/** * Подключиться к БД * Создать проект и сохранить его идентификатор * Попробовать: * добавить к проекту не существующий email * добавить к проекту */ 'use strict'; const mongo = require('../../libs/db.js'); const config = require('../../config'); const ObjectId = require('mongodb').ObjectId; const invite ...
;(function($, crud, win){ var i18n = win.i18n; bind_events(); $.widget("crud.crud_form", { options: {}, _create: function() { console.log('form created'); var $form = this.element; var self = this; //init controls ...
var stream = require('stream'), util = require('util'); var Channel = require('./channel'); var router = module.exports = {}; var Router = router.Router = function(fanout) { this.inputStream = new stream.Duplex(); this.outputStream = new stream.Duplex(); if(typeof fanout === 'boolean'){ this.fanout =...
/// <reference path="../Interfaces/IDisposable.ts" /> /// <reference path="../Interfaces/ITyped.ts" /> var EndGate; (function (EndGate) { /** * Defines a type constrained event handler object that can maintain bound functions which take in a value T, U and V and trigger them on demand. */ var EventHandl...
const path = require('path'); const file = 'file'; const file2 = 'file'; console.log(path.join(__dirname, file, file2));
// Karma configuration // Generated on Fri May 09 2014 17:05:10 GMT+0800 (SGT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
// dependencies 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 mongoose = require('mongoose'); var passport = require('passport'); var LocalStr...
/* jqPlot 1.0.7r1224 | (c) 2009-2013 Chris Leonello | jplot.com jsDate | (c) 2010-2013 Chris Leonello */(function(f){ f.jqplot.Trendline=function(){ this.show=f.jqplot.config.enablePlugins; this.color="#666666"; this.renderer=new f.jqplot.LineRenderer(); this.rendererOptions={ ...
'use strict'; (() => { function toggleNavigationBar() { const navigationElements = document.querySelectorAll('.navigation'); for (const navigationElement of navigationElements) { navigationElement.classList.toggle('open'); } } // Hamburger button - toggles the navigation bar const hamburger ...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['bn'] = { "editor": "Rich Text Editor", "editorPanel": "Rich Text Editor panel", "common": { "editorHelp": "Press ALT 0 for help", ...
function Spot(name){ ToolBox.call(this, name); this.name = name || 'Spot box'; this.family = "spots"; this.tool = null; } Spot.prototype = Object.create(ToolBox.prototype); Spot.prototype.init = function(){ var self = this; var html = "<button type=''class='spot-btn ' data-type='hotspot-tool'>hot spot</button>";...
var HelloWorldLayer = cc.LayerColor.extend({ _sprite:null, ctor:function () { ////////////////////////////// // 1. super init first this._super(); this.setColor(new cc.Color(255,255,255)); ///////////////////////////// // 2. add a menu item with "X" image, whic...
/** * The var name from which the data will be retrieved in the browser * * @type {String} * @const * @default */ module.exports = 'data';
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var MeanUser = new Module('users'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ MeanUser.register(function(app, auth, passport, database) { //We enable routing. By de...
'use strict'; import React from 'react'; import Location from './location'; import RainImage from './rainimage'; import Data from './data'; import Shelter from './shelter'; const Main = (props) => { return ( <main className="noah-main"> <Location current={props.current} list={props.list} ...
#!/usr/bin/env node 'use strict'; var repreprep = require('..') , path = require('path'); var root = process.argv.length > 2 ? path.resolve(process.argv[2]) : null; repreprep(root);
function checkLoginState() { FB.getLoginStatus(function (response) { if (response.status === 'connected') { // Logged on Facebook. console.log("Connected into facebook"); FB.api("/me/picture", function (picture) { if (picture && !picture.error) { ...
// Players const Player = require('./players/Player'); // Cards const BlackGladiator = require('./cards/heroes/BlackGladiator'); // Battle const Battle = require('./battle/Battle'); let mockDeck = []; for (let i = 0; i < 40; i++) { mockDeck.push(new BlackGladiator); } let playerOne = new Player({ firstName: 'Ce...
/*global Lava, Firestorm */ (function (Lava, Firestorm) { 'use strict'; Lava.define( 'Lava.widget.input.AutofocusText', /** * Helper widget, that focuses input element when it's in DOM. */ { Extends: 'Lava.widget.input.Text', broadcastInDOM: function() { this.Text$broadcastInDOM(); var element = this._input...
define(function (require, exports, module) { 'use strict'; var $ = require('jquery'); module.exports = function ($el) { $el.find('.menu').on('click', function (e) { e.preventDefault(); $(this).toggleClass('is-hidden'); $('nav.main-transparent .icon-close').tog...
import DS from 'ember-data'; export default DS.Model.extend({ firstName: DS.attr('string'), lastName: DS.attr('string'), email: DS.attr('string'), twitter: DS.attr('string'), totalArticles: DS.attr('number') });
var moment = require('moment-range'); var bLocations = [ /\bBeckham Hall\b/gi, /\bDaniel Family Commons\b/gi ]; var bEventKeywords = [ /\bPA\b/g, /\bspeakers\b/gi, /\bmicrophones\b/gi, /\btable top\b/gi, /\btable-top\b/gi ]; var cEventKeywords = [ /\bwebcast\b/gi, /\bweb-cast\b/gi, /\bli...
/** * @name test-code-2 */
var React = require('React'); var AboutPage = React.createClass({ render: function() { return ( <div className="body"> <div className="body-with-sidebar"> <div className="about-header header-text">About</div> <div className="about-body"> <p> Hi! My name...
/*jshint node:true*/ 'use strict'; var path = require('path'); var utils = require('../utils/utils'); var generateChangelog = require('../utils/generate-changelog'); var EOL = require('os').EOL; var gitUser = utils.getGitUserInfo(); module.exports = { name: 'genie:changelog'...
import { storiesOf } from '@storybook/polymer'; import { document } from 'global'; import { html } from 'lit-html'; import { StringTemplateButton } from '../string-template-button'; import '../separated-button/separated-button.html'; storiesOf('Custom/Methods for rendering', module) .add('html string', () => '<div>...
var assert = require('assert'); var postcss = require('postcss'); var cssbyebyevaluePlugin = require('../lib/css-filter-by-value'); function cssbybyeProcess(css, opts) { return postcss([cssbyebyevaluePlugin(opts)]).process(css); }; describe('css-filter-by-value', function () { it('should remove ruleset(s) w...
const LANGUAGES = { en: { confirm: 'confirm', cancel: 'cancel', close: 'close', timezonePickerTitle: 'Pick a Timezone', timezonePickerLabel: 'Closest City or Timezone', am: 'AM', pm: 'PM' }, 'zh-cn': { confirm: '确认', cancel: '取消', close: '关闭', timezonePickerTitle: '选择时区...
var MyDriver = { Driver2d: function () { var that = this; var Canvas = null; var CanvasContext = null; this.RenderCanvas = function (canvas) { if (canvas instanceof HTMLElement) { Canvas = canvas; CanvasContext = canvas.getCon...
module.exports = { entry: './public/app.jsx', output: { path: __dirname, filename: './public/bundle.js' }, resolve: { root: __dirname, alias: { Greeter: 'public/components/Greeter.jsx', GreeterMessage: 'public/components/GreeterMessage.jsx', GreeterForm: 'public/components/Gree...
import transformErrorArraysToString from './transformErrorArraysToString' describe('transformErrorArraysToString', () => { it('should join array values to a string', () => { const data = { errors: { base: ['multiple', 'values'] } } const expected = { errors: { base: 'multiple. values' } } const actual = ...
'use strict'; require('source-map-support').install(); const DefaultContext = require('../../build/jel/DefaultContext.js').default; const ApproximateNumber = require('../../build/jel/types/ApproximateNumber.js').default; const JelBoolean = require('../../build/jel/types/JelBoolean.js').default; const Fraction = requir...
(function() { 'use strict'; var paths = require('./package.json').paths; var gulp = require('gulp'); var es = require('event-stream'); var gutil = require('gulp-util'); var conf = require('./.conf.json'); var $ = require('gulp-load-plugins')({ pattern: [ 'gulp-*', 'gulp.*', 'del', 'mk...
import { createLocalVue, mount } from '@vue/test-utils' import { useI18n } from '../../__utils__/i18n' import WalletNew from '@/pages/Wallet/WalletNew' import WalletService from '@/services/wallet' const localVue = createLocalVue() const i18n = useI18n(localVue) describe('pages > WalletNew', () => { const mountPage...
var db = require('../utils/mysqlDbutil'), utils = require('../utils/utils'); var Article = {}; /** * 插入文章 */ Article.insertArticle = function(articleData, callback){ var article = { title: 'test', summary: 'test', content: 'test', markdown_content: 'test', user_id: 1, create_time: util...
/*! * Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. */ import {WebexPlugin} from '@webex/webex-core'; /** * @class * @extends {Lyra} * @memberof Lyra */ const Device = WebexPlugin.extend({ namespace: 'Lyra', /** * Gets the audio state of the device * @param {Types~LyraSpace} space ...
var Substance = require("substance"); var _ = require("substance/helpers"); // A simple tree implementation // ------------- var Tree = function(nodes) { this.nodes = nodes; this.buildIndexes(); }; Tree.Prototype = function() { this.buildIndexes = function() { // Build a map of parents referencing their k...
'use strict'; angular.module('bankRoll').constant('API_URL', 'https://bankroll.firebaseio.com/'); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hc3NldHMvbWFpbi5jb25zdGFudHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLENBQ0wsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUNsQixRQUFRLEN...
var thuck = require('../') , stream = require('stream') describe('thuck.api.test.js', function () { describe('thuck(flag)', function () { it('should return new instance of Thuck', function () { thuck(2).should.be.an.instanceof(thuck) }) it('should be an instance of stream.Transform', function (...
/* * Copyright (c) 2017, Jeff Hlywa (jhlywa@gmail.com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * th...
/** * Local environment settings * * Use this file to specify configuration settings for use while developing * the app on your personal system: for example, this would be a good place * to store database or email passwords that apply only to you, and shouldn't * be shared with others in your organization. * * ...
/** * @name is * @description Checks if given object has specified member defined * @example * isDefined(obj, memberName) * @params * obj: object - object that needs to be checked * memberName: string - name of the member to check * @returns {boolean} - true/false */ const _isDefined = (obj, memberName) =>...
import _ from "lodash"; import inatjs from "inaturalistjs"; import moment from "moment-timezone"; import util from "../util"; const Project = class Project { constructor( attrs, additionalSearchParams = { } ) { Object.assign( this, attrs ); this.is_traditional = this.project_type !== "collection" && this.pro...
version https://git-lfs.github.com/spec/v1 oid sha256:a1c4c5a0af9c9b3c7ab772c4b262eb969c086cedde34442988661be082f032e1 size 21520
var ajaxRunCount = 0; var ENTER_KEY = 13; var ESC_KEY = 27; var tokenobj=null; var tokenSetDate=new Date(); var redirectTo=null; /** * Main class for login */ var authmonApp = { /** * init Function */ init: function() { //check if can access localstorage if(typeof(Storage) == "unde...
/* jshint node: true */ 'use strict'; var path = require('path'); module.exports = { name: 'ember-promise-button', treeForStyles: function() { var stylesheetPath = path.resolve(__dirname, 'app', 'styles'); var stylesheetTree = this.pickFiles(this.treeGenerator(stylesheetPath), { srcDir: '/', des...
"use strict"; var commandToBuffer = require("./commandToBuffer"); var Common = module.exports = function(self) { this.self = self; }; Common.prototype.allStates = function() { var buffer = commandToBuffer(0, "Common", "AllStates"); this.self._writePacket(this.self._networkFrameGenerator(buffer)); return ...
var Mocha = require('mocha'); var walk = require('walker'); var path = require('path'); global.mocha = new Mocha({ ui: 'bdd', reporter: 'list', timeout: 25000 }); walk(path.join(__dirname, 'spec')) .on('entry', function(entry, stat){ if ( stat.isFile() ) { if ( entry.slice(-8) === '.test.js' ) mocha...
import Ember from "ember"; import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('user-menu', 'Integration | Component | user menu', { integration: true, beforeEach() { this.signInViaGithubCalled = false; this.signOutCalled = false; thi...
CKEDITOR.dialog.add('candimagePickerDialog', function (editor) { var dialog, container plugin = editor.plugins.candimage; return { title: editor.lang.candimage.dlgPickerTitle, width: plugin.picker.width, height: plugin.picker.height, minWidth: plugin.picker.minWidth, minHeight: plugin.picker.minHeight,...
{ var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split("\n"), function parser(line) { i = line.indexOf(":"); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] &&...
/** @flow */ import { isArray, isObject } from './pattern'; const { slice } = Array.prototype; export function sliceArray(array: any[], startAt: number) { return slice.call(array, startAt); } export function mixin(target: {}, ...source: any[]) { const t = target; for (let i = 0; i < source.length; i += 1) { ...
angular.module('ioniclub.controllers', []) .controller('AppCtrl', function($scope, $rootScope, $ionicLoading, $ionicModal, $timeout) { console.log("AppCtrl"); // Form data for the login modal $scope.loginData = {}; // error handler var errorMsg = { 0: '网络出错啦,请再试一下', 'wrong accessToken': '授权失败' }; ...
Grailbird.data.tweets_2011_11 = [ { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "14195319197256908...
(function() { 'use strict'; var module = angular.module('users'); module.config(function($stateProvider) { $stateProvider .state('map', { url : '/map', controller : 'SigninController', views: { 'main@' : { ...
'use strict'; var TaskRunner = require('terminal-task-runner'); var Base = TaskRunner.Base; var logger = TaskRunner.logger; var isInt = function(val) { return !isNaN(parseInt(val)); }; var Task = Base.extend({ id: 'WebServiceSimulator', name: 'Launch web service simulator', command: 'simulator', o...
'use strict'; /** * menu.js shall not be called directly. xxxMenu.js files shall require this file * to extend each particular menu's functionality * * e.g. * ```js * module.exports = function(client) { * return require('./menu.js')(client, menuMap); * }; */ module.exports = (client, menuMap) => { co...
function splat() { alert('splat'); } splat();
import DS from 'ember-data'; export default DS.RESTAdapter.extend({ host: 'http://10.20.1.2', namespace: 'todo' });
//Chatroom website var username = 'guest'; var chatroom = 'PublicRoom'; var messageLength = 0; var memberLength = 0; function remove(id){ $(id).find('li').remove(); } function show(id, argu1){ var arrayLength = argu1.length; for (var i = 0; i < arrayLength; i++) { $(id).find('ul').append('<li>' + ...
//Protractor configuration exports.config = { /* The address of a running selenium server; if you do not want to have to run 3 command prompt just keep this comment out; left incase someone does want to try out the 3 command prompt seleniumAddress: 'http://localhost:4444/wd/hub', */ // Directory where Protrac...
"use strict"; var React = require('./react'); var tu = require('./tutils'); var EMPTY_ARR = []; var hasPromise = (window && window.Promise || global && global.Promise) !== void(0); /** * Safe chained function * * Will only create a new function if needed, * otherwise will pass back existing functions or null. * *...
window.zinger=window.zinger||{}; (function(window) { var common= { } common.curry=function(scope,fn) { //var scope = scope || {}; var args = []; for (var i=2, l = arguments.length; i < l; ++i) { args.push(arguments[i]); }; return function() { fn.apply(scope, a...
"use strict"; var DirectoryHelper = (function () { function DirectoryHelper() { } DirectoryHelper.prototype.GetAutodiscoverScpUrlsForDomain = function (domainName) { throw new Error("DirectoryHelper.ts - GetAutodiscoverScpUrlsForDomain : Not implemented."); }; DirectoryHelper.prototype.GetScpUrlList = f...
import React, { PropTypes } from 'react'; import { List, ListItem } from 'material-ui/List'; import Toggle from 'material-ui/Toggle'; import { grey50 } from 'material-ui/styles/colors'; const VideoInfoList = ({ video, toggleVideo }) => ( <List style={{ backgroundColor: grey50, }} > <ListItem ...
import {protocol,metadata} from 'aurelia-metadata'; import {AggregateError} from 'aurelia-pal'; /** * Decorator: Indicates that the decorated class/object is a custom resolver. */ export const resolver: Function & { decorates?: any } = protocol.create('aurelia:resolver', function(target): string | boolean { if (!(ty...
'use strict'; var app = angular.module('com.module.protocols'); app.service('ProtocolsService', ['CoreService', 'gettextCatalog', 'Protocol', function( CoreService, gettextCatalog, Protocol) { this.getProtocols = function() { return Protocol.find({ filter: { order: 'created DESC', includ...