code
stringlengths
2
1.05M
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = setDay; var _index = require('../toDate/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../addDays/index.js'); var _index4 = _interopRequireDefault(_index3); function _interopRequireDe...
Rules = new Mongo.Collection('biolog_rules'); Rules.attachSchema( new SimpleSchema({ name: { type: String, label: "Name" }, description: { type: String, label: "Description" }, //the description etypes: { type: [String], optional: true, index: 1 }, //the types of entities this can be applie...
'use strict'; // Declare app level module which depends on filters, and services /*angular.module('myApp', [ 'ngRoute', 'myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers' ]); config(['$routeProvider', function($routeProvider) { $routeProvider.when('/view1', {templateUrl: 'partials/...
/*! * vue-i18n v8.17.6 * (c) 2020 kazuya kawaguchi * Released under the MIT License. */ /* */ /** * constants */ var numberFormatKeys = [ 'style', 'currency', 'currencyDisplay', 'useGrouping', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits',...
/* eslint-env jquery */ /** * @module diagnostics */ /** * Handles diagnostic messages on the HTML page. * * When something goes wrong, messages can be displayed in * divs. There will also be a control to clear those messages. */ export class Diagnostics { constructor(destination, onClear) { this.destina...
window.onload = function() { document.getElementById("p1").innerHTML = "Starting"; var res = getOptimalLocationAffordabilityGroups(); // var out = printOut(res); document.getElementById("p2").innerHTML = res; } function printOut(data) { console.log(data); str = ""; data.forEach( function(e) { ...
/** * Copyright (c) 2011 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ var speakKeyStr; function speakSelection() { var focused = document.activeElement; var selectedText; if (focused) { try { sel...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), fs = require('fs'), defaultAssets = require('./config/assets/default'), testAssets = require('./config/assets/test'), testConfig = require('./config/env/test'), glob = require('glob'), gulp = require('gulp'), gulpLoadPlugins = requi...
// Generated by CoffeeScript 1.8.0 (function() { "use strict"; var globals, nonAsyncCount, root; root = typeof exports !== "undefined" && exports !== null ? exports : this; globals = { '../vendor/underscore/underscore.js': '_' }; window.require = function(path, herp) { var ext, name, _ref; if...
var path = require('path'); var webpack = require("webpack"); var nodeExternals = require('webpack-node-externals'); const TARGET = process.env.npm_lifecycle_event; module.exports = { devtool: "cheap-module-source-map", externals: [ nodeExternals(), // in order to ignore all modules in node_mod...
window.__global.lib = "test"; module.exports = "lib";
angular.module('app', []); angular.module('app').controller('mainCtrl', function($scope) { $scope.bountyHunters = [{ name: 'Boba Fett', age: 35 }, { name: 'IG-88', age: 130 }, { name: 'Dengar', age: 42 }, { name: 'Bossk', age: 782 }, { name: 'Cad Bane', age: ...
/* * This file controls the behaviour of the build tasks in gulpfile.js */ var COMPONENT_NAME = 'MovieSelect'; // Read the package.json to detect the package name and dependencies var pkg = JSON.parse(require('fs').readFileSync('./package.json')); // Default dependencies from package.json, except reactify (which i...
/* Left Nav View * * Handles the display of main selectable categories on the * left side of the screen * */ (function (exports) { "use strict"; //gloabl constants var CONTAINER_SCROLLING_LIST = "#left-nav-scrolling-list", CONTAINER_MAIN = "#left-nav-list-container", ...
/*! * wptimber-biosciences * * * @author Bryan M. Robles <bryanaka0@gmail.gov> * @version 0.0.1 * Copyright . MIT licensed. */ (function(window, document, $){ 'use strict'; $(function() { FastClick.attach(document.body); }); $.webshims.polyfill(); window.TestSlider = $('#slider')...
/** * Unit tests for Lo-dash Join plugin. * Depends on QUnit <http://qunitjs.com> testing framework. */ ;(function(_) { 'use strict'; /** * Data for some tests. * @type {{customers: Array, employees: Array, orders: Array}} */ var data = { customers: [{ id: 1, name: 'John' }, { id: 2, name: 'Rober...
System.register(['angular2/core', 'angular2/http', 'angular2/common', 'angular2/router', '../../shared/components/control-messages.component', '../../shared/services/validationService', '../../posts/postService'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; v...
import { request } from 'utils' export async function logout (params) { return request('/api/logout', { method: 'post', data: params, }) } export async function userInfo (params) { return request('/api/userInfo', { method: 'get', data: params, }) }
/** * @typedef {import('unist').Node} Node * @typedef {import('unist').Position} Position * @typedef {import('unist').Point} Point * @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike * @typedef {import('./minurl.shared.js').URL} URL * @typedef {import('..').VFileData} VFi...
// navigatie function myFunction() { var x = document.getElementById("unfold"); if (x.className === "topnav") { x.className += " responsive"; } else { x.className = "topnav"; } var topnav = document.querySelector } // Naar top van scherm // knop verschijnt als je 500 px naar beneden ...
// Copyright 2013 Matt Brenneke. All rights reserved. // Released under the MIT license. See the LICENSE file in top directory of this project. var db = require('../models/pgdb.js'), emailer = require('../models/emailer.js'), crypto = require('crypto'), credentials = require('../models/credentials.js');...
const objPath = require('path') const objElectron = require('electron'); const objIPC = objElectron.ipcMain; const objApplication = objElectron.app; // Module to create native browser window. const TBrowserWindow = objElectron.BrowserWindow; const TTray = objElectron.Tray; const objMenu = objElectron.Menu; let objM...
let style = __inline('./hoster.inline.less'); let tpl = __inline('./hoster.tpl'); require.loadCss({ name: 'admin-widget-hoster-style', content: style }); export default Vue.component('hoster', { template: tpl, props: { disable: {default: false}, custodiantype : {default : ''}, custodian : {defaul...
/** * @author Raivo Laanemets <raivo@infdot.com> */ var ua = require('../'); exports['iPad 2'] = function (test) { var s = 'Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46' + ' (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3'; var a = ua.parse(s); test.ok(a.isMob...
/** * Copyright 2016 Reza (github.com/rghorbani) * * @flow */ 'use strict'; const _ = require('lodash'); const Colors = require('./Colors'); class ThemeManager { theme = { primaryColor: Colors.blue30, CTA: { textColor: Colors.white, disabledColor: Colors.dark60, backgroundColor: Color...
module.exports = (function() { var util = require('./util.js'); const WEBDIS_HOST = 'https://api.il2missionplanner.com:80' ; return { scripts: { getChannel: '', publishState: '', newStream: '', getReconnect: '' }, init:...
import styled from 'styled-components'; const Wrapper = styled.article` `; export default Wrapper;
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global', 'sap/ui/core/IconPool'], function(jQuery, IconPool) { "use strict"; /** * ObjectHeader rend...
import assertString from './util/assertString'; import isFQDN from './isFQDN'; import isIP from './isIP'; import merge from './util/merge'; const default_url_options = { protocols: ['http', 'https', 'ftp'], require_tld: true, require_protocol: false, require_valid_protocol: true, allow_underscores: false, ...
/** * This module extracts the walls from a matrix maze with each wall as an * object. * * @example * // Example usage * wallExtractor.extract(maze); * // Returns: * [{height: 1, width: 1, x: 0, y: 6}, {height: 5, width: 1, x: 1, y: 0}, ...] * * // Where the maze looks like: * matrixMaze.printMatrix(maze) *...
/** * ArtSVG.js * @fileoverview HTML5 SVG Library * * Copyright (c) 2013 Tomohiro IKEDA (Korilakkuma) * Released under the MIT license */ (function(global) { 'use strict'; /** * This class can be used as global object. * This class has classes that are defined by "ArtSVG.js" as class prop...
module.exports = { "env": { "mocha": true, }, "rules": { "no-unused-expressions": ["off"] }, "globals": { "expect": true } }
/* * server.js * * Sample App * * gets all profile data about a user and displays it * * Copyright (C) Province of British Columbia, 2013 */ var express = require('express') , app = express() , fs = require('fs') , request = require('request') , a2p3 = require('a2p3') // make sure you have a config.json and v...
// TODO: Create a variable to hold mood 'happy' or 'sad' // TODO: Create a webserver and serve './public/happy.html' or './public/sad.html' // TODO: Make sure the server also serves images // TODO: Collect data from the user using process.stdin.on('data', callback); // TODO: Allow user to set happy or sad from console ...
// flow-typed signature: 2bd7f718f2456808086dd26995946c03 // flow-typed version: <<STUB>>/stylelint-processor-styled-components_v^1.2.2/flow_v0.65.0 /** * This is an autogenerated libdef stub for: * * 'stylelint-processor-styled-components' * * Fill this stub out by replacing all the `any` types. * * Once fil...
try{ Plugin.Load("spp.loader.3d"); //创建解析器 importer=new Importer(); //检查输入文件是否存在 if(!VFS.Exists(filename)) { alert("can not find the input file"); } else { //解析输入3ds文件 scene = importer.ReadFile(filename, (importer.TargetRealtime_MaxQuality | importer.FlipUVs | importer.ConvertToLeftHanded | importer.J...
var battles = [ { event_name: "Battles of Lexington & Concord", date_start: moment([1775, 3, 19]), date_end: null, location: "Lexington, Massachusetts", description: "The Patriots (American Revolutionaries) had been stockpiling supplies in preparation for a conflict with the British. They were also training ...
/** * Created by alisabelousova on 3/24/15. */ var bodyParser = require('body-parser'); module.exports = function (req, res, next) { bodyParser.json(); // for parsing application/json next(); };
/** * @name Class * @description Constructs a Class type. * @example * Class(name, factory) * Class(name, inherits, factory) * Class(name, mixints, factory) * Class(name, inherits, mixints, factory) * @params * name: string - name of the class * it can take following forms: * ...
function hist(x,k) { var mk = x.fillVM(k,x.length/k); return mk.colSum().hist(); } var centralLimit = function(x) { print('hist(x,1)=', x.hist()); print('hist(x,2)=', hist(x,2).str(0)); print('hist(x,10)=', hist(x,10).str(0)); print('hist(x,20)=', hist(x,20).str(0)); } var x = R.samples([0,1], 100...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _componentFeatures = require('../utils/componentFeatures'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj };...
function pointPosition(coords) { let [x, y, xMin, xMax, yMin, yMax] = coords; if (x >= xMin && x <= xMax && y >= yMin && y <= yMax) { console.log('inside'); }else{ console.log('outside'); } } pointPosition([8,-1,2,12,-3,3]); pointPosition([12.5,-1,2,12,-3,3]);
import _ from 'lodash'; /** * Utilize the extended error information returned from elasticsearch * @param {Error|String} err * @returns {string} */ export default function formatESMsg(err) { const rootCause = _.get(err, 'resp.error.root_cause'); if (!rootCause) { return; //undefined } const result = ...
/** * Bitcrusher * * [See more bitcrusher examples](examples/distortion.html) * * @plugin * @category Distortion * @function * @memberof cracked * @name cracked#bitcrusher * @param {Object} [params] map of optional values * @param {Number} [params.frequency=0.1] * @param {Number} [params.bits=6] */ cracked...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerate...
/* global tavJS, HTMLFormElement, Object */ /** * Get run tests in form (HTMLFormElement) * @author Helio de Paula Nogueira <helio.nogueir@gmail.com> * @version 1.0.0 * * @param {formObject} formObject HTMLFormElement * @returns {Array} Results of validate */ tavJS.test.run = function (formObject) { var te...
var fs = require("fs"); fs.readFile('input.txt', function(err, data){ if(err) return console.error(err); console.log(data.toString()); }); console.log("Program Ended");
/** * Selfbits API V2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the cl...
'use strict'; var _ = require('underscore'); var md5 = require('md5'); var mongodump = require('mongo-dump-stream'); var Mail = new (require('./mail'))(); var Models = require('../models/main'); class Additional { serialize(status, body) { body = body || null; var result = { status, ...
var should = require('should'), madge = require('../lib/madge'); describe('module format (ES6)', function () { it('should behave as expected on ok files', function () { madge([__dirname + '/files/es6/normal'], { format: 'es6' }).obj().should.eql({ 'a': [ 'sub/b' ], 'fancy-main/not-index': []...
// // Copyright (c) 2016 Satoshi Nakajima (https://github.com/snakajima) // License: The MIT License // import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import Cursor from './Cursor'; ReactDOM.render( <App />, document.getElementById('root') ); ReactDOM.render( <Cursor />, ...
let Lang = { localShortMonths(lang) { if (lang === undefined) { lang = navigator.language; } let formatter = null; if (window.Intl !== undefined) { formatter = new Intl.DateTimeFormat(lang, { month: 'short', timeZone: 'UTC' ...
var keystone = require('keystone'); var Types = keystone.Field.Types; var IdeaPostCategory = new keystone.List('IdeaPostCategory', { autokey: { from: 'name', path: 'key', unique: true }, label: '分類', }); IdeaPostCategory.add({ name: { type: String, required: true }, }); IdeaPostCategory.relationship({ ref: 'IdeaP...
var key_data = new Array('键位课程四:g h', "fgfg", "fgfg", "fgjh", "fgjh", "jhjh", "jhjh", "igs", "figs", "figs", "figs", "hair", "hair", "fig", "fig", "fig", "hair", "hair", "hair", "ages", "half", "ages", "half", "ages", "half", "ages", "half", "gull", "had", "gull", "had", "gull", "had", "gull", "had", "gurus", "giggle",...
import React from 'react'; import Layout from '../components/Layout'; import AppBar from './components/AppBar'; export default ({children}) => ( <Layout> <AppBar /> {children} </Layout> );
'use strict'; // Declare app level module which depends on views, and components angular.module('app', [ 'ui.router', 'ngAnimate', 'oc.lazyLoad' ]);
var constants = require("./Constants.js"); var errorCode = require("./ErrorCode.js"); var dbObject = require("./DbObject.js"); var remoteAPI = require("bluebird").promisifyAll(require("request")); var common = module.exports = exports = { Consts : constants, ErrCode: errorCode, DBObject: dbObject, RemoteAPI: remo...
angular.module('EvalApp').controller('LoginController', ['$scope', 'LoginResource', '$location', function ($scope, LoginResource, $location) { $scope.user = ''; $scope.pass = ''; $scope.login = function () { LoginResource.login($scope.user, $scope.pass) .success(function (response) { LoginResource.s...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.data = undefined; var _utilities = require('../utilities'); var data = exports.data = { settings: { 'numericRegex': /^-?(?:\d+)(?:\,\d+)?$/ }, messages: { 'isRequired': 'gereklidir', 'onValidateCallback': 'geçerl...
/** * Created by Christian Westhoff * @type {*|exports|module.exports} */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var Consts = require('./../settings.json'); var sha1 = require('sha1'); var Str = require('string'); mongoose.connect(Consts.MONGOLAB_DB); var personSchema = new Schema({ na...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ /* get_data_time_and_uuid will return the creation date and a uuid fo...
import { compile } from 'ember-template-compiler'; import { test, testModule } from 'ember-glimmer/tests/utils/skip-if-glimmer'; testModule('ember-template-compiler: transform-input-on'); test('Using `action` without `on` provides a deprecation', function() { expect(1); expectDeprecation(function() { compil...
import Pano from '../../src' import { Element, Page } from '../../src' /* global describe, it, expect */ describe('pano Library', () => { describe('constructor', () => { it('creates pano object', () => { expect(Pano).to.exist }) }) describe('Element', () => { it('is exported', () => { ex...
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCss = require('gulp-minify-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var mainBowerFiles = require('main-bower-files')...
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ 'use strict'; var platform = require('../../platform'); var globals = require('../../core/globals'); var canvasGraphics = require('./graphics'); var BaseTexture = require('../../textures/BaseTexture'); var Texture = require('../../textures/Texture'); var...
/** Used to escape characters for inclusion in compiled regexes. */ var regexpEscapes = { '0': 'x30', '1': 'x31', '2': 'x32', '3': 'x33', '4': 'x34', '5': 'x35', '6': 'x36', '7': 'x37', '8': 'x38', '9': 'x39', 'A': 'x41', 'B': 'x42', 'C': 'x43', 'D': 'x44', 'E': 'x45', 'F': 'x46', 'a': 'x61', 'b': 'x62', 'c': '...
const BaconTimerScreen = require('./BaconTimerScreen').default; module.exports = { BaconTimerScreen }
module.exports = { streamTweets: streamTweets, stopTweets: stopTweets }; var Twit = require('twit'); var Tweet = require('./../../api/tweet/tweet.model.js'); var _ = require('lodash'); var $ = require('jquery'); var filter = require('wordfilter'); var extractor = require('keyword-extractor'); var secrets = { co...
const marked = require('../'); const version = require('../package.json').version; const name = 'Marked'; module.exports = (req, res) => { if (req.method !== 'GET') { return res.status(405).json({ error: { code: 'method_not_allowed', message: 'Only GET requests are supported for this endpoi...
var _ = require('lodash'); var async = require('async'); var fs = require('fs'); var http = require('http'); var url = require('url'); var browserSync = require('browser-sync'); var RunListHelper = require('../src/RunListHelper'); var CmdHelper = require('../src/CmdHelper'); module.exports = { name: 'cdn', usage: ...
var redis = require('redis'), subscribeStream = require('../'); var stream = subscribeStream({ subscription: 'hithere' }); var client = redis.createClient(); var testObj = { test: 'value', other: 'otherValue' }; stream.on('readable', function () { var obj = stream.read(); console.log('obj', obj); }); c...
class textinputpanel_textinputpanel_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService...
/** * Created by David Windows on 5/17/2016. */ define([ './../generated_proto/sketch', // protoSketch './../protobufUtils/protobufUtils', // protobufUtils './SketchLibraryException', // SketchException './SrlBoundingBox', // SrlBoundingBox './SrlStroke' // SrlStroke ], function( protoSke...
var assert = require('assert'); var fs = require('fs'); var Connection = require('../lib/Connection'); var Bucket = require('../lib/Bucket'); var Key = require('../lib/Key'); var BufferStream = require('../lib/BufferStream'); describe('Upload', function() { var test_upload; var parts = []; before(fun...
'use strict'; /** * Test Producer * * @author Chen Liang [code@chen.technology] */ /*eslint "no-unused-expressions": 0 */ /*! * Module dependencies. */ // var Promise = require('bluebird'); // var Producer = require('./../lib/producer.js'); var Router = require('./../lib/router.js'); // var debug = require('de...
'use strict'; $(document).ready(function () { var last_mtime = null; // Check the last modified time and reload the page // if modified since. function checkMtime() { $.ajax({ url: '/mtime.txt', method: 'GET' }).done(function (data) { var mtime = new...
var fs = require("fs"), assert = require("assert"), valid = fs.readFileSync(__dirname + "/valid.txt").toString(), empty = fs.readFileSync(__dirname + "/empty.txt").toString(), parser = require(".."); describe("Init", function () { it("should return an object", function (done) { assert.ok(parser, "parser is not ...
/** * @module models/civil_services/zipcode * @version 1.0.0 * @author Peter Schmalfeldt <me@peterschmalfeldt.com> */ var DataTypes = require('sequelize'); var db = require('../../config/sequelize'); /** * Zip Codes * @type {object} * @property {number} id - Unique ID * @property {string} zipcode - Unique Zip...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Autor Schema */ var AutorSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Autor name', trim: true }, perfil: { type: String, required: 'Por Favor rellena e...
'use strict'; //Fixtures service used for fixtures REST endpoint angular.module('mean.fixtures').factory('Fixtures', ['$resource', function($resource) { return $resource('api/fixtures/:fixtureId', { fixtureId: '@_id' }, { update: { method: 'PUT' }...
angular.module("bookmarksApp").controller("userCtrl", function(userResource) { "use strict"; userResource.get(); });
/** * @license AngularJS v1.2.16 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function (window, angular, undefined) { 'use strict'; /** * @ngdoc module * @name ngCookies * @description * * # ngCookies * * The `ngCookies` module provides a convenien...
let colors = ["red", "green", "blue"]; let colors2 = colors.concat("yellow", ["black", "brown"]); alert(colors); // ["red", "green","blue"] alert(colors2); // ["red", "green", "blue", "yellow", "black", "brown"]
import portfinder from 'portfinder' portfinder.basePort = 3000 const getPort = async () => { try { const port = await portfinder.getPortPromise() return port } catch (e) { throw e } } export default { getPort } export { getPort }
/* // File: html2.idl #ifndef _HTML2_IDL_ #define _HTML2_IDL_ #include "dom.idl" #pragma prefix "dom.w3c.org" module html2 { typedef dom::DOMString DOMString; typedef dom::Node Node; typedef dom::Document Document; typedef dom::NodeList NodeList; typedef dom::Element Element; interface HTMLElement; ...
version https://git-lfs.github.com/spec/v1 oid sha256:7cfe93917c8bfca59bf03d37951f4f5f1cccb0e0191fa30bfa89cd88262683da size 281502
var $ = require('jquery'); var inherit = require('./inherit'); var feature = require('./feature'); var transform = require('./transform'); ////////////////////////////////////////////////////////////////////////////// /** * Create a new instance of class heatmapFeature * * @class geo.heatmapFeature * @param {Objec...
'use strict'; // Test specific configuration // =========================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://localhost/familyconnection-test' } };
var app; var r; var first=true; Polymer({ is: "shop-main", ready: function() { app = this; this.setupRouter(); this.loadingScreen = document.getElementById("loadingScreen"); this.loading = true; this.logout = this.logoutFunc; this.selectedPage = 1; this.se...
var comms = require('./ServerComms.js'); //globals var CONNECTION_ERROR = 'Connection Issue'; var MEAL_TIME_ERROR = 'Meal Time Error'; var MEAL_TIMES_TAKEN = 'Meals already taken for this period'; var counter = 0; function MockServerPoster() { var self = this; self.doPost = function(url,data, callback) { //chec...
/** * [Description] * @param {Object} ruleValue - the value for the current rule. * @param {Node} node - the node matched by the rule. * @param {Number} index - the node's index in the nodeList. * @param {NodeList} nodeList - the nodeList returned from the rule. * @module domLens */ function {{camelCase name}}(r...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
(function () { 'use strict'; angular .module('ap-file-upload') .factory('File', File); File.$inject = ['$q', '$http']; function File($q, $http) { function File(data, options) { var file = this; options = angular.copy(options); file.data = data; file.newFile = options.new...
emq.globalize(); App.setupForTesting(); App.injectTestHelpers(); setResolver(Ember.DefaultResolver.create({ namespace: App })); moduleFor('controller:compoundsPharmacology', 'Compounds Pharmacology Controller', { needs: ['controller:compounds', 'controller:application', 'controller:flash'] }); test('can see the a...
//var musiclib = ["https://www.youtube.com/watch?v=gh1sbCaSrmA", "https://www.youtube.com/watch?v=tG3k5Zu5vDc", "https://www.youtube.com/watch?v=_ljaqUN0QqQ", "https://www.youtube.com/watch?v=6ctLWL3Ipqs", "https://www.youtube.com/watch?v=6aQHNwYCwuE"]; const yt = require("ytdl-core"); //const funclist = ["PLAY","AD...
import { Address } from '../models/address'; export const add = (req,res) => { let addr = req.body.address; let userid = addr.user; console.log(addr); let _address = new Address(addr); if(addr.default){ new Promise(function(resolve,reject){ Address.findOneAndUpdate({user: userid,default: true},...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.8.1 (2021-05-20) */ (function () { 'use strict'; ...
export default function planet_list($translateProvider) { $translateProvider.translations('en', { DEMO: { } }); }
const CopyWebpackPlugin = require('copy-webpack-plugin'); const Dotenv = require('dotenv-webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); const ReplaceInFileWebpackPlugin = require('replace-in-file-webpack-plugin'); const { merge } = require('webpack-merge'); co...
/* * mobileLoggedInSubscriberHome */ mdlDirectTvApp.controller('MobileLoggedInSubscriberHomeCtrl', ['$scope', '$modal', 'Gigya', '$timeout', '$http', 'AccountService', 'SocialService', '$rootScope', 'Sessions', 'Authentication', 'configuration', '$filter', '$window', 'Vindicia', '$location', 'analyticsService', '$coo...