code
stringlengths
2
1.05M
// Full list of configuration options available at: // https://github.com/hakimel/reveal.js#configuration Reveal.initialize({ backgroundTransition: 'convex', transition: 'convex', history: true, height: '100%', width: '92%', center: true, slideNumber: 'c', keyboard: { // Customization for my spotlig...
if("undefined"==typeof jWait)var jWait={}; (function(){function g(a,c,k,l,g){var p=this,d=g?!0:!1;c=c?!0:!1;var m=0<k?k:100,h=0,b=0,n=!1,e=!1,f=l?"["+l+"]":"[cycle:"+(new Date).getTime()+"]";d&&c?console.log(f+" starts at: "+b+"ms"):d&&!c&&console.log(f+" will start in: "+m+"ms");this.call=function(){"function"==typeof...
'use strict' var Formatter = require('./Formatter.js') class LogicalEquation { constructor (toNode) { this.operator = null this.toNode = toNode this.nodes = [] this.logicalEdges = [] this.type = 'LogicalEquation' } getNodeList () { var list = [] this.nodes.forEach(n => { if (n...
"use strict"; function MsgHandler(api, client, config, sessiondata){ this.api = api; this.client = client; this.config = config; this.sessiondata = sessiondata; var msgHandles = []; require('fs').readdirSync(__dirname + '/' + "msgHandles").forEach(function(file) { // for every file in the 'cmds/' directory i...
//Define variables //(on smaller screens) menu icons var togglePosition = document.getElementById("togglePosition"); var toggleZoom = togglePosition.nextElementSibling; //dropdown filters menu (on smaller screens) var toolsNav = document.getElementById("toolsNav"); var toggleGrayscale = toolsNav.firstElementChild.chi...
/** * Created by Arsan Irianto on 12/12/2015. */ function reloadDataTable(){ $('#tgi').DataTable({ ajax: "modules/json_gi.php", pagingType: "full_numbers", dom: "B<'row'<'col-sm-8'l><'col-sm-4'f>>" + "<'row'<'col-sm-12'>>" + "<'row'<'col-sm-12'>>" + "<'row'<'col-sm-8'><'col-sm-4'>>tipr", ...
const express = require('express'), app = express(), path = require('path'); app.use('/build', express.static(path.resolve(__dirname, './build'))); app.get('/*', function (req, res) { res.sendFile(path.resolve(__dirname, './index.html')); }); app.listen(3000, function () { console.log('Demo live on l...
ext.chats = { def: function (id) { return { id: id, name: 'DELETED', abbr: 'DELETED', photo: 'http://vk.com/images/camera_b.gif', users: [], loaded: 0, typing: 0 } }, load: function (id, forced) { if(!ext.scope.chats[id] || forced) { if (!ext.scope.chats[id]) { ...
module.exports.timeout = ms => new Promise(res => setTimeout(res, ms))
'use strict'; const tap = require('tap'); const remark = require('remark'); const behead = require('.'); tap.test('remark-behead', t => { let actual; t.throws(() => { remark() .use(behead, {depth: 'foo'}) .processSync('# foo') .toString(); remark() .use(behead, {between: {}}) .processSync('# foo...
'use strict' var models = require('../models'); var address = "localhost"+":"+config.port;
// ReSharper disable UseOfImplicitGlobalInFunctionScope // SMS version of Poinless. console.log('Loading event'); // Twilio Credentials var accountSid = ''; var authToken = ''; var fromNumber = ''; var https = require('https'); var queryString = require('querystring'); // Lambda function: exports.handler = funct...
Meteor.methods({ /* save an entity and associated methods */ getEntity: function(id) { check(id, String); var entity = Entities.findOne(id); return entity; }, addEntity: function (entity) { console.log("entities.js: checking entity: ", entity); check(entity, { ...
var setFocus = function (a) { a = $(a); var token = a.data('token'); EventBroadcaster.broadcast(BroadcastMessages.SYSTEMTREEBINDING_FOCUS, token); }; var executeAction = function (a) { a = $(a); var providerName = a.data('providername'); var entityToken = a.data('entitytoken'); ...
import curry from './curry' import surround from './uncurried/surround' /** * Surrounds the list of `cs` with the values `a` and `b`. * * @function * @param a The left value. * @param b The right value. * @param {Array|String} cs The list to surround. * @returns {Array|String} A new list. * @example * * impo...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that...
// Generated by CoffeeScript 1.7.1 (function() { var Slack, request, _; request = require('request'); _ = require('lodash'); Slack = (function() { function Slack(team, token, options) { this.team = team; this.token = token; this.options = options; this.incomingUrl = "https://" + t...
export default [ { type: 'audio', id: 'ambient-sound', url: 'assets/sounds/ambient.mp3', options: { loop: true, volume: 1 } }, { type: 'model', id: 'polar-bear', url: 'assets/models/polar-bear.awd' }, { type: 'image', id: 'panda', url: 'assets/images/pan...
// ONLY USE ON CI BECAUSE IT MESSES UP `authorized_keys` var SSH = require('../'); describe('ssh-kit', function() { beforeEach(function() { this.ssh = new SSH(); }); it('connects to ssh', function(done) { this.ssh.set('host', 'localhost'); this.ssh.set('quiet', true); this...
import { LitElement } from 'lit-element'; import { render } from 'github-buttons'; import config from '../config/app'; export default class GithubButton extends LitElement { static cName = 'github-button'; static properties = { href: { type: String }, size: { type: String }, theme: { type: String }, ...
export default { SHOW_BUTTONS: 'SHOW_BUTTONS' }
require.config( { paths: { jsYaml: BASE_URL + "webjars/js-yaml/3.14.0/dist", ace: BASE_URL + "webjars/ace-builds/1.4.11/src", browser: "../../app-browser/modules", projects: "../../app-browser/modules/projects", editor: "../../editor/modules" }, } ) ; require( [ "browser...
module.exports = function(config) { config.set({ frameworks: ['jasmine', 'browserify'], files: [ 'src/redux-nest.js', 'tests/*.js' ], preprocessors: { 'src/redux-nest.js': ['browserify'], 'tests/*.js': ['browserify'] }, ...
(function (app) { var dataEvent = app('data-event'); var collExpense = app('coll-expense'); var collPeriod = app('coll-period'); var logger = app('logger')('ui-month-coins-counts'); var tp = app('time-processor'); var broadcast = app('broadcast'); var pouchProcEvs = broadcast.events('pouch-p...
// @flow import Icon from '@conveyal/woonerf/components/icon' import * as React from 'react' import {MenuItem as BsMenuItem} from 'react-bootstrap' /** * Simple wrapper around Bootstrap's menu item to inject a checkmark if the item * is selected. */ const MenuItem = ({children, selected, ...menuItemProps}: {childr...
var xhr = new XMLHttpRequest(); // config request // xhr.open('GET', 'https://api.vk.com/method/user.get?user_ids=198047774&fields=photo', false); // otherID 949 888 27 // otherID 9125068 // send request // xhr.send(); /* if (xhr.status != 200) { console.log('xhr status: ' + xhr.status); console.log('xhr statusTX...
$( document ).ready(function() { $("#submitLogin").bind('click', function() { login(document.getElementById('username').value, document.getElementById('password').value)}) $("#sendemail").on('click', function() { send(document.getElementById('email').value)}); }); $('.modal-trigger').leanModal({ dismiss...
const Util = { myAlert: function(text, time) { if(!document.getElementById('alertBg')) { let _time = time || 1000; let parent = document.createElement('div'); parent.setAttribute('id', 'alertBg'); let child = document.createElement('p'); child.setAttribute('class', 'text'); let _text = document.cre...
import Vue from 'vue' import VueRouter from 'vue-router' import routes from '../routes' import VueProgressBar from 'vue-progressbar' Vue.use(VueProgressBar, { color: 'rgb(143, 255, 199)', // failedColor: 'red', height: '3px' }) Vue.use(VueRouter) const router = new VueRouter({ routes, mode: 'hi...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import apiClient from '../api/apiClient'; import CONSTANTS from '../shared/constants'; class CreditCards extends Component { constructor() { super(); this.state = { username: "username" }; } componentWillMount() {...
'use babel' /* @flow */ export type Ucompiler$Plugins = { preprocessors: Array<UCompiler$Plugin>, compilers: Array<UCompiler$Plugin>, general: Array<UCompiler$Plugin>, minifiers: Array<UCompiler$Plugin> } export type UCompiler$Plugin = { name: string, compiler: ?boolean, minifier: ?boolean, preproces...
import React, { Component } from 'react'; import GoogleAdv from '../../GoogleAdv' import BaseConfig from '../../../BaseConfig'; import OfferWow from '../../OfferWow' import { Tag } from 'antd' import classes from './HomeContentRightAdv.scss' export default class HomeContentRightAdv extends Component { constructor(pr...
/*! * Tiny Carousel 1.9 * http://www.baijs.nl/tinycarousel * * Copyright 2010, Maarten Baijs * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/gpl-2.0.php * * Date: 01 / 06 / 2011 * Depends on library: jQuery */ ...
(function($){ asyncTest( "Opening a second popup causes the first one to close", function() { var initialHRef = location.href; expect( 5 ); $.testHelper.detailedEventCascade([ function() { $( "#test-popup" ).popup( "open" ); }, { opened: { src: $( "#test-popup" ), event: "opened.openAnotherS...
/* jshint node: true */ module.exports = function (environment) { var ENV = { modulePrefix: 'share-drop', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with...
var gulp = require('gulp'); var browserSync = require('browser-sync'); var sass = require('gulp-sass'); var prefix = require('gulp-autoprefixer'); var cp = require('child_process'); var gutil = require('gulp-util'); var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';...
(function(){ 'use strict'; // Prepare the 'calender' module for subsequent registration of controllers and delegates angular.module('calender', [ 'ngMaterial' ]); })();
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('wurstApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controll...
/* * Original code from https://github.com/itay/node-cover licensed under MIT did * not have a Copyright message in the file. * * Changes for the chain coverage instrumentation Copyright (C) 2014, 2015 Dylan Barrell * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this softwa...
require('ember-bootstrap/mixins/item_view_title_support'); require('ember-bootstrap/mixins/item_view_href_support'); Bootstrap.Pager = Ember.CollectionView.extend({ tagName: 'ul', classNames: ['pager'], itemTitleKey: 'title', itemHrefKey: 'href', content: Ember.A([Ember.Object.create({title: '&larr;'}), Embe...
var pool = require(__dirname + '/dbConnectionPool.js'); function Contract() {} Contract.prototype.UNCONFIRMED = 'UNCONFIRMED'; Contract.prototype.PENDING = 'PENDING'; Contract.prototype.CONFIRMED = 'CONFIRMED'; Contract.prototype.FAILED = 'FAILED'; Contract.prototype.readAll = function() { return pool.query('SEL...
GLOBAL.DEBUG = true; debug = require("sys").debug, inspect = require("sys").inspect; test = require("assert"); var Db = require('../lib/mongodb').Db, GridStore = require('../lib/mongodb').GridStore, Chunk = require('../lib/mongodb').Chunk, Server = require('../lib/mongodb').Server, ServerPair = require('../lib...
var hospitales = angular.module("hospitales", []); var actual = {}; hospitales.controller('listado', function($scope, $http) { $scope.datos = []; setInterval(function() { if (document.getElementById("search") !== document.activeElement) { $scope.borrar = false; } }, 100); if (typeof...
var Commander = require("../../lib/command"); var commands = require("../../lib/commands"); var commander = new Commander(commands); module.exports = { run: function(command, config, callback) { commander.run(command, config, function(err) { if (err != 0) { if (typeof err == "number") { e...
'use strict'; var request = require('request'); module.exports = function (grunt) { // show elapsed time at the end require('time-grunt')(grunt); // load all grunt tasks require('load-grunt-tasks')(grunt); var reloadPort = 35731, files; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), ...
'use strict'; let datafire = require('datafire'); let openapi = require('./openapi.json'); let aws = require('aws-sdk'); const INTEGRATION_ID = 'amazonaws_waf'; const SDK_ID = 'WAF'; let integ = module.exports = new datafire.Integration({ id: INTEGRATION_ID, title: openapi.info.title, description: openapi.info...
'use strict'; angular.module('mgcrea.ngStrap.typeahead', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions']) .provider('$typeahead', function() { var defaults = this.defaults = { animation: 'am-fade', prefixClass: 'typeahead', prefixEvent: '$typeahead', placement: 'bottom...
$(function() { $('#login-form-link').click(function(e) { $("#login-form").delay(100).fadeIn(100); $("#register-form").fadeOut(100); $('#register-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); $('#register-form-link').click(funct...
version https://git-lfs.github.com/spec/v1 oid sha256:9a2b0ef6b89bfc8deac4fad55d1ada8eff51d738c48f927b5755410c1f970078 size 41394
version https://git-lfs.github.com/spec/v1 oid sha256:f19893d23985aa11bf3aef0411ed7506c6214bed1bd2bcef825ccc78c113290c size 14731
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'th', { title: 'Accessibility Instructions', // MISSING contents: 'Help Contents. To close ...
import { isElement } from "lodash"; const setData = (type, data) => { switch (type) { case "Element": return document.getElementById(data); //document.getElementById(data); case "String": return data; default: try { return JSON.parse(data); } catch (e) { return nul...
/* */ var makeString = require("./helper/makeString"); module.exports = function strLeft(str, sep) { str = makeString(str); sep = makeString(sep); var pos = !sep ? -1 : str.indexOf(sep); return ~pos ? str.slice(0, pos) : str; };
class BrewTimerDialog { constructor(el, recipeId) { this.el = el; this.recipeId = recipeId; this.notify = new Notify(); this.startEl = this.el.find(".brew-timer-start"); this.pauseEl = this.el.find(".brew-timer-pause"); this.resetEl = this.el.find(".brew-timer-reset"); this.expandEl = this...
version https://git-lfs.github.com/spec/v1 oid sha256:4de0b070810ee2426ad8217356f1347d97e741e934a45bc31ea107f04eaf450b size 5528
/* * AngularJs Fullcalendar Wrapper for the JQuery FullCalendar * API @ http://arshaw.com/fullcalendar/ * * Angular Calendar Directive that takes in the [eventSources] nested array object as the ng-model and watches it deeply changes. * Can also take in multiple event urls as a source object(s) and feed t...
var query = run.require('src/parse'); QUnit.test('Simple.', function(assert) { var template = "test.#test:id[test].{{test}}"; assert.deepEqual(query.parse(template), [ [ // test{{test2test}} {type: '_', name: [{constant: 'test'}]} ],[ // *** {type: '#', name: [{constant: 'test'}]}, {type: ':', name: [{c...
var dkindred; (function (dkindred) { var layout; (function (layout) { 'use strict'; angular .module('dkindred.layout', ['dhSimpleGD']); })(layout = dkindred.layout || (dkindred.layout = {})); })(dkindred || (dkindred = {}));
/** * Extends the target object with properties from another object. */ module.exports.extend = function(target, object) { var property, src, copy; for (property in object) { if (target[property] === undefined) { copy = object[property]; if (typeof copy === object) { ...
'use strict'; var argv = require('minimist')(process.argv.slice(2), { alias: { 'var': 'variable', 'V': 'variable', 'h': 'help', 'v': 'version' }, string: ['_'], boolean: ['help', 'version'] }); if (argv.version) { console.log(require('./package.json').version); } else if (argv.help || argv....
var app = angular.module("app", ['jtt_footballdata']); app.controller('controller', ['$scope', 'footballdataFactory', function($scope, footballdataFactory) { var apiKey = 'e42cb6a6ecc949c8897e06d284a55e05'; footballdataFactory.getSeasons({ season: '2015', apiKey: apiKey, }).then(function(_...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Domain = require('../base/Domain'); /* jshint ignore:line */ var V1 = require('....
version https://git-lfs.github.com/spec/v1 oid sha256:5154464848b09225d55b45925abc699decd28931e96e58e6b34a7b5191720aa2 size 53542
define([ './demo.tpl.html' ], function (template) { // @ngInject function demoState ($stateProvider, $urlRouterProvider) { $stateProvider.state('rb-radio-control', { url: '/rb-radio-control', controller: 'demo-rb-radio-control-ctrl as demoCtrl', template: templat...
/** @constructor */ ScalaJS.c.scala_collection_MapLike$$anon$1 = (function() { ScalaJS.c.scala_collection_AbstractIterator.call(this); this.iter$2 = null }); ScalaJS.c.scala_collection_MapLike$$anon$1.prototype = new ScalaJS.inheritable.scala_collection_AbstractIterator(); ScalaJS.c.scala_collection_MapLike$$anon$1...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2267',"Tlece.Recruitment.Models.RecruitmentPlanning Namespace","topic_0000000000000692.html"],['2390',"InterviewerDto Class","topic_00000000000007F8.html"],['2391',"Properties","topic_00000000000007F8_props--.html"]...
/** * @author goliatone * @url https://github.com/goliatone/gpub * @copyright (c) 2013 goliatone * @license MIT * @title Gpub: Simple pub/sub * @overview Gpub is an Event Dispatcher library. Or pub/sub. * @module Gpub */ /*global define:true*/ /* jshint strict: false */ define('gpub', function($) { ////////////...
/** * @class Wando.ColorField * 对 Ext.form.field.Picker 的拓展,一个可用的拾色器组件。<br /> * 该组建用于grid下的columns的editor之后,其后必须添加renderer函数,其格式如下面的例子 * # Example usage * @example * * var grid = Ext.create('Ext.grid.Panel', { * title: 'Simpsons', * store: store, * columns: [ * { text: 'Name'...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
var fs = require('fs'); var md5 = require('MD5'); var defaultOptions = { "path": "/opt/tlks.io/.cache", "ttl": 3600000 }; module.exports = function cache(options) { 'use strict'; options = options || defaultOptions; return function(req, res, next) { // Check if the user is logged v...
/* global process */ var bower = require('bower'); var fs = require('fs'); var Vinyl = require('vinyl'); var PluginError = require('plugin-error'); var colors = require('ansi-colors'); var fancyLog = require('fancy-log'); var path = require('path'); var through = require('through2'); var walk = require('walk'); var inq...
import Pipe from '../classes/Pipe'; export function generateGrid(size,startPipeNum,endPipeNum){ let array2d = []; for(x = 0; x < size; x++){ var innerArray = []; for(y = 0; y < size; y++){ var pipe = new Pipe(x,y,Math.floor((Math.random()*4)),Math.floor((Math.random()*3))); ...
import { resolve } from 'path' import { withTempDirectory } from 'source/node/fs/Directory.js' import { run } from 'source/node/run.js' const { info = console.log } = globalThis const runFuncWithExposeGC = async (...funcList) => withTempDirectory( async (pathTemp) => run([ process.execPath, '--expose-gc', /...
const path = require('path'); const webpack = require('webpack'); const chalk = require('chalk'); const ora = require('ora'); const getAllConfig = require('./config.script'); const configs = getAllConfig(); /** * 打印出错误对象 * @param {Error} e - 错误对象 */ function logError(e) { console.log(e); } /** * 转化字节数为 KB * @...
var Class = require('igneousjs/class'); var console = process.console; var Result = Class.extend({ constructor: function (opts) { opts = opts || {}; this.args = opts.args; this.value = opts.value; this.createdDate = opts.createdDate || new Date(); } }); module.exports = Result;
'use strict'; exports.__esModule = true; var _Mesh2 = require('./Mesh'); var _Mesh3 = _interopRequireDefault(_Mesh2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new...
function initMap() { var image = { url: 'https://cdn2.iconfinder.com/data/icons/IconsLandVistaMapMarkersIconsDemo/256/MapMarker_Flag_Azure.png', scaledSize: new google.maps.Size(50, 50), origin: new google.maps.Point(0, 0), anchor: new google.maps.Point(30, 50) } var m...
/** * @file reactionRolesGroup command * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ exports.exec = async (Bastion, message, args) => { let reactionRolesGroupModels = await Bastion.database.models.reactionRolesGroup.findAll({ fields: [ 'messageID' ], where: { guildID: message....
import JodaTransform from './joda'; import { Instant } from 'ember-joda'; export default class InstantTransform extends JodaTransform { static JodaClass = Instant; }
var clone = function clone(obj) { var copy; if (obj === null || obj === undefined || typeof obj != "object") {// Handles boolean, number, string, null and undefined copy = obj; } else if (obj instanceof Date) {// Handle Date copy = new Date(); copy.setTime(obj.getTime()); } else if (obj instanceof Array) {//...
var assert = require('assert'); const parser = require('../src/index'); const { createFileHelper } = require('../src/test/helpers'); describe('module', function() { let ast = null; before(function(done) { const fileHelper = createFileHelper('./mock/module.js'); fileHelper.readFileAsync((err, data) => { ...
import React from 'react'; import { HourlyWeather } from './HourlyWeather'; export const SevenHours = props => { const hourlyArray = props.weatherData.hourly_forecast.splice(0, 7); return ( <div className="hourly-weather"> {hourlyArray.map((hour, i) => <HourlyWeather weatherData={hour} index={i} key={i} ...
require('colors'); var _ = require('lodash'), config = require('../config/config'); var noOperation = function(){}; var consoleLog = config.logging ? console.log.bind(console) : noOperation; var logger = { log: function() { var args = _.toArray(arguments) .map(function(arg) { if (typeof arg =...
/*: * @plugindesc 坦克大战小游戏 * @author Mandarava(鳗驼螺) * * @help * 本插件针对的教程地址:http://www.jianshu.com/p/ddfa12f1acc9 * */ var Scene_Boot_start = Scene_Boot.prototype.start; /** * 使游戏在运行时直接进入坦克大战游戏的标题画面,如果要使用NPC打开坦克大战小游戏,请将下面的 * 重写`Scene_Boot.prototype.start`方法的代码注释掉,在你的MV地图中添加NPC,并调用脚本: * `SceneManager.goto(Scene...
import range from 'lodash-es/range' import {genMap} from '../../../test-fixtures/current-game-states' import {isSettingsValid, settingsValidator} from './settings-validator' import {trans} from '../../utils/translate' /** * Create segment of redux tree for validator to consume * @param {IPlayerMap<string>} names Pla...
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7SwipeoutActions extends React.Component {...
'use strict'; /** * @ngdoc overview * @name wavesApp * @description * # wavesApp * * Main module of the application. */ angular .module('wavesApp', [ 'ngAnimate', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ui.router', 'puigcerber.capitaliz...
//////////////////////////////////////// // isgame-online-lambda // // Copyright (c) 2017 Jonathan Hardison // /controllers/game-checkisvalid.js /////////////////////////////////////// var config = require('../config'); let configInstance = new config(); //game list objects //includes alternate spellings b...
const express = require('express'); const router = express.Router(); const path = require('path'); const authenticate = require('../util/auth/authenticateRequest'); router.get('/', authenticate(), function(req, res) { res.sendFile(path.join(__dirname, '../../public/views', 'home.html')); }); module.exports = rout...
( function () { var input = new OO.ui.TextInputWidget(), list = new OO.ui.SelectWidget( { items: [ new OO.ui.OptionWidget( { label: 'Item 1', data: 'Item 1' } ), new OO.ui.OptionWidget( { label: 'Item 2', data: 'Item 2' } ), new OO.ui.OptionWidget( { label: 'Item 3', ...
(function($) { var Alpaca = $.alpaca; Alpaca.Fields.MLUrl2Field = Alpaca.Fields.Url2Field.extend( /** * @lends Alpaca.Fields.Url2Field.prototype */ { constructor: function (container, data, options, schema, view, connector) { var self = this; this.bas...
let AdventurePlayerObject = AdventurePlayerObject || {} let AdventureScreenObject = AdventureScreenObject || {} let AdventureGameObject = AdventureGameObject || {} ;(function (undefined) { let Player = AdventurePlayerObject let Screen = AdventureScreenObject let Game = AdventureGameObject Player.inventory = [] ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" }), 'DoneSharp');
// MODULES // var // Expectation library: chai = require( 'chai' ), // Test utilities: utils = require( './utils' ), // Module to be tested: qStream = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'iqr', function tests() { 'use strict'; i...
'use strict'; app.controller('BrowseController', function($scope, $routeParams, toaster, Task, Auth, Comment) { $scope.searchTask = ''; $scope.tasks = Task.all; $scope.signedIn = Auth.signedIn; $scope.listMode = true; $scope.user = Auth.user; if($routeParams.taskId) { var task = Task.getTask($routeParams....
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var util = require('util'); /* jshin...
angular.module('devotionalfinder').controller('HomeCtrl',function($scope,$facebook){ $scope.isLoggedIn = false; $scope.login = function() { console.log('login clicked'); $facebook.login().then(function() { refresh(); }); } $scope.logout = function() { console.log('logout clicked'); ...
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
var default_cost_duration = 'hourly'; var default_region = 'us-east-1'; var default_reserved_term = 'yrTerm1.noUpfront'; var current_cost_duration = default_cost_duration; var current_region = default_region; var current_reserved_term = default_reserved_term; var data_table = null; var require = Array(); require['me...
import defaultsDeep from 'lodash/fp/defaultsDeep'; /** * 解析 URL 中的参数为 JSON * @param {[type]} searchString [description] * @return {[type]} [description] */ export function searchToObject(search) { return search.substring(1).split("&").reduce(function(result, value) { var parts = value.split('='...