code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:4a7ac474b309c38ff06bfda7c928b8b864f6f8da9b489ab5eb9f5fb44edcb2e7 size 28041
//Author: Sam var parkIds = []; $(document).ready(function() { $('#toMap').on('click', function() { if (typeof map == 'undefined') { initialize(); } }); $('.park').on('click', '.select', function(e) { e.preventDefault(); var parkId = $(this).attr('data-id');...
({ ["__proto__"]: 0, ["__proto__"]: 0 });
'use strict'; module.exports = function htmlescape(html) { if (!html) { return ''; } return html.replace(/&/g, '&amp;') .replace(/"/g, '&quot;') .replace(/'/g, '&#039;') .replace(/>/g, '&gt;') .replace(/</g, '&lt;'); };
function Enemy() {} Enemy.prototype = new Actor(); // tick method Enemy.prototype.onTick = function() { if (this.dead) { if (this.currentFrame == this.deadFrame) game.enemies.removeChild(this); return; } if (this.top() > game.canvas.height) this.die(); this.move(); return this; }; // tak...
module.exports = function (NodeTeaparty) { NodeTeaparty.Status = function(widgetKey) { var UP = 'up', DOWN = 'down'; this.send = function(status, callback) { if (typeof status === 'undefined') status = DOWN; else if (typeof status !== 'string') status = !!statu...
/** * @private * @param {Node} node Node. * @param {Array.<*>} objectStack Object stack. * @return {ol.Extent|undefined} Bounding box object. */ ol.format.WMSCapabilities.readLatLonBoundingBox_ = function (node, objectStack) { goog.asserts.assert(node.nodeType == Node.ELEMENT_NODE, 'node.nodeType shoul...
'use strict' const { STATES, timeout, default: Channel } = require('../src/channel') const { List, FixedQueue, DroppingBuffer, SlidingBuffer, } = require('../src/data-structures') const { assert } = require('chai') const log = console.log.bind(console) // eslint-disable-line describe('Channel', function() { ...
import FizzBuzzPopCalculator from '../src/index.js'; import { expect } from 'chai'; describe('fizz-buzz-pop-js tests', () => { let results = []; beforeEach(() => { let calculator = new FizzBuzzPopCalculator(); results = calculator.generateValues(); }); describe('When is not multiple 1...
import * as React from 'react'; import TextField from '@mui/material/TextField'; import Autocomplete from '@mui/material/Autocomplete'; import Stack from '@mui/material/Stack'; export default function Playground() { const defaultProps = { options: top100Films, getOptionLabel: (option) => option.title, }; ...
module.exports = function(grunt) { grunt.initConfig({ elm: { compile: { files: { "bingo.js": ["Bingo.elm"] } } }, watch: { elm: { files: ["Bingo.elm", "BingoUtils.elm"], tasks: ["elm"] } }, clean: ["elm-stuff/build-artifacts"] })...
/* * File created by Amitesh Chauhan * <ami070ipec@gmail.com> * Main Javascript file to make plugins initialize and write functions to manipulate view. */ (function($) { 'use strict'; var ShowApp = { // Initialization the functions init: function() { ShowApp.Preloader(); ShowApp.AffixMenu(); Sh...
import Vue from 'vue' import Vuelidate from 'vuelidate' import { shallowMount } from '@vue/test-utils' import useI18nGlobally from '../../__utils__/i18n' import ModalExportWallets from '@/components/Modal/ModalExportWallets' import StringMixin from '@/mixins/strings' import WalletMixin from '@/mixins/wallet' Vue.use(V...
let result = (() => { let Suits = { CLUBS: "\u2663", // ♣ DIAMONDS: "\u2666", // ♦ HEARTS: "\u2665", // ♥ SPADES: "\u2660" // ♠ }; let Faces = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']; class Card { constructor(face, suit) { ...
var led_8h = [ [ "Led_Init", "led_8h.html#af1aee968a5ceeb7915921aa6d78aca23", null ], [ "Led_Off", "led_8h.html#a274dbef77287444be852fe96969b3c55", null ], [ "Led_On", "led_8h.html#a39675df62ae72fa5af35fc7ec2e8c950", null ], [ "Led_Toggle", "led_8h.html#a5ebbd778fb3444fbfbded2130e08b33d", null ] ];
import {sleepUntilReactAvailable} from "test/e2e/utils/index.js"; const {maxTimeout, originUrl} = browser.params; // Private variables const dom = Symbol("dom"); class HelmetPageObject { static location = `${originUrl}/helmet-example`; _dom = { container: $("#helmet"), link: $("#helmet-link"...
function login(e) { e.preventDefault(); var email = document.getElementById("email").value; var password = document.getElementById("password").value; var data = {}; data.email = email; data.password = password; var xhttp = new XMLHttpRequest(); xhttp.open("POST", "/skinstore/loginuser",...
{ "status" : "active" }
export const throttle = (func, limit) => { let inThrottle return function () { const args = arguments const context = this if (!inThrottle) { func.apply(context, args) inThrottle = true setTimeout(() => { inThrottle = false }, limit) } } } export const debounce = (func, delay) =...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.commons.layout.MatrixLayout. sap.ui.define(['jquery.sap.global', './MatrixLayoutCell', './MatrixLayoutRow'...
function refresh_highlighter() { SyntaxHighlighter.highlight(); var sh = $("#high_text .syntaxhighlighter"); if (sh.length == 0) { sh.floatingScroll("destroy"); $(".fl-scrolls").remove(); } else { sh.floatingScroll("init"); sh.floatingScroll("update"); } } var ajax...
import glob from 'glob'; import { CLIEngine } from 'eslint'; import { assert } from 'chai'; const paths = glob.sync('./src/**/!(*.spec).js'); const engine = new CLIEngine({ envs: ['node', 'mocha'], useEslintrc: true }); const results = engine.executeOnFiles(paths).results; describe('ESLint', function() { ...
module.exports = { options: { width: 300, height: 300, overwrite: true }, resize: { files: { 'public/assets/projects/thumbnails/*': 'public/assets/projects/*' } } };
import React from "react"; import PropTypes from "prop-types"; import LightComponent from "ui-lib/light_component"; import Input from "react-toolbox/lib/input"; import Autocomplete from "react-toolbox/lib/autocomplete"; import Dropdown from "react-toolbox/lib/dropdown"; import { Form as TAForm, Section as TASe...
// set timeouts for feedback messages $(document).ready(function () { $('.feedback .alert-success').delay(2000).fadeOut(500); $('.feedback .alert-info').delay(2500).fadeOut(500); $('.feedback .alert-warning').delay(3000).fadeOut(500); $('.feedback .alert-danger').delay(4500).fadeOut(500); $('.tim...
var $ = global.jQuery = require('jquery'); var add = require('lodash/math/add'); var flow = require('lodash/function/flow'); require('bootstrap/js/button'); function square(n) { return n * n; } var addSquare = flow(add, square); $('#myButton').on('click', function() { var $btn = $(this); var loading = $btn.dat...
import { ConnectDataClass, UserClass, UserDataClass } from './class_models' import { ivanka } from './base64img' const createConnectData = (description, text) => { return new ConnectDataClass(description,text) } const createUser = () => { let userData_personalData_name = createConnectData('Name','Trump') le...
var bell_sounds = function () { var ctx = new AudioContext(); var ring_bell = function (freq, length) { var osc = ctx.createOscillator(); var gain = ctx.createGain(); osc.frequency.value = freq; osc.connect(gain); gain.connect(ctx.destination); osc.start(); ...
import React, { Component } from 'react'; import {sub} from 'elegant-react'; import Counters from './Counters'; import {on, stream} from 'flyd'; import counterPlugin from './counter-plugin'; export default class App extends Component { constructor(props) { super(props); const {atom} = this.props; this....
'use strict'; /** * @ngdoc function * @name com.module.users.controller:LoginCtrl * @description Login Controller * @requires $scope * @requires $routeParams * @requires $location * Contrller for Login Page **/ angular.module('com.module.users') .controller('LoginCtrl', function($scope, $routeParams, $locatio...
'use strict'; // Returns a random whole number between the min (inclusive) and max (exclusive). function randomize(min, max){ return Math.floor(Math.random() * (max - min) + min); } // Selects a random question. function selectQuestion(questionType){ var attackQuestions = JSON.parse(localStorage.getItem('attackQu...
var mariadb = require('../database/mariadb'); module.exports = function (email, callback) { mariadb.get(function (err, con) { if (err) { if (con) { con.release(); } console.log("Failed to get mariadb."); return callback(err); } ...
/* Handles converting the app's concept of a 'project' * to/from the GitHub API's concept of an 'issue' */ const commentExtractionRegex = /<!-- ([.\d]+),([.\d]+) -->/ function parseCoordinatesFromComment (commentLines) { var lastLine = commentLines.slice(-1)[0] var matches = commentExtractionRegex.exec(lastLine...
var searchData= [ ['lecture_5fdata',['lecture_data',['../projet__MAUSSION__RIOU_8cpp.html#a667003cfd6f66a62d7f583af4a61459b',1,'projet_MAUSSION_RIOU.cpp']]] ];
// All code points in the `Inscriptional_Pahlavi` script as per Unicode v9.0.0: [ 0x10B60, 0x10B61, 0x10B62, 0x10B63, 0x10B64, 0x10B65, 0x10B66, 0x10B67, 0x10B68, 0x10B69, 0x10B6A, 0x10B6B, 0x10B6C, 0x10B6D, 0x10B6E, 0x10B6F, 0x10B70, 0x10B71, 0x10B72, 0x10B78, 0x10B79, 0x10B7A, 0x10B7B, 0x10B7C...
//tv.js Page({ data: { listArray:[ {date:"2016年11月20日 星期五 今天", items:[ {name:"战神",imageUrl:"http://www.hzeduask.com/edit5.0/uploadfile/201009/20100918133824708.jpg" ,scores:"9.0",id:"123123" } ] } ], }, onLoad: function () { }, didSelected:fu...
import React, { Component } from 'react'; /** * Button that counts how many times it was pressed and exposes a `@public` method to reset itself. */ export default class CounterButton extends Component { constructor() { super(); this.state = { value: 0, }; } /** * Sets the counter to a particular value...
/** CSRF Provides Cross-Site Request Forgery protection for applications. » Configuration Options {string} tokenSuffix: Suffix to append to csrf tokens {int} onFailure: HTTP Error code to respond on token validation failure » Usage example The ideal usage is to create the csrf toke...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1984',"Tlece.Recruitment.Models.Company Namespace","topic_0000000000000699.html"],['1998',"CompanyDto Class","topic_00000000000006A8.html"],['2000',"Properties","topic_00000000000006A8_props--.html"],['2009',"Compan...
const mongoose = require("mongoose"); const db = require("../../models"); mongoose.Promise = global.Promise; //This file seeds the database mongoose.connect( process.env.MONGODB_URI || "mongodb://localhost/petrescuers", { useMongoClient: true } ); //Seeding the breed collection with the breed recommendatio...
/** * This module formats precise time differences as a vague/fuzzy * time, e.g. '3 weeks ago', 'just now' or 'in 2 hours'. */ /*globals define, module */ (function (globals) { 'use strict'; var times = { year: 31557600000, // 1000 ms * 60 s * 60 m * 24 h * 365.25 d month: 2629800000, // ...
Package.describe({ summary: 'A solution for the allow/deny vs methods dilemma', name: 'mquandalle:collection-mutations', version: '0.1.0', documentation: null, }); Package.onUse(function(api) { api.versionsFrom('1.2-rc.7'); api.use('mongo'); api.use('ecmascript'); api.use('underscore'); api.use('dbur...
var co = require('co') var os = require('os') var fs = require('fs') var path = require('path') var http = require('http') var request = require('..') var tmpdir = os.tmpdir() var uri = 'https://raw.github.com/component/domify/84b1917ea5a9451f5add48c5f61e477f2788532b/component.json' var redirect = 'https://raw.github...
/*! * This file is part of me-cms. * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Mirko Pagliai * @link https://github.com/mirko-pagliai/me-cms *...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17.09 11h4.86c-.16-1.61-.71-3.11-1.54-4.4-1.73.83-2.99 2.45-3.32 4.4zM6.91 11c-.33-1.95-1.59-3.57-3.32-4.4-.83 1.29-1.38 2.79-1.54 4.4h4.86zM15.07 11c.32-2.59 1.88-4.79 4.06-6-1.6-1.63-3.74-2.71...
/*jshint node:true*/ module.exports = { scenarios: [ { name: 'default', dependencies: { } }, { name: 'ember-1.13', dependencies: { 'ember': '~1.13.0' }, resolutions: { 'ember': '~1.13.0' } }, { name: 'ember-2.0', dependencies: {...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Bars = f()}})(...
describe('wokArmyBuilder.builder.army.optionList', function () { beforeEach(module('wokArmyBuilder')); describe('wokOptionListController', function () { var controller, $scope, Army, Models, gameSizes; beforeEach(function () { module('wokArmyBuilder.builder.army.coreList', function ($provide) { ...
// const express = require('express'); const Activity = require("../models/activities"); const Trip = require("../models/trip"); const User = require("../models/user"); const router = express.Router(); var app = express(); /* GET activities. */ router.get('/trip/:id/activities', (req, res, next) => { var tripi...
'use strict'; const assert = require('assert'); //const app = require('../../../src/app'); describe('user service', function() { it('registered the users service', () => { // assert.ok(app.service('users')); }); });
'use strict' const sgf = require('staged-git-files') const Listr = require('listr') const has = require('lodash/has') const pify = require('pify') const makeCmdTasks = require('./makeCmdTasks') const generateTasks = require('./generateTasks') const resolveGitDir = require('./resolveGitDir') const debug = require('deb...
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 routes = require('./routes'); var app = express(); // view engine setup app.set('views', path....
//document.write 只能重绘整个页面 // //innerHTML 可以重绘页面的一部分 var d = document.getElementById("d");
import Test from '../../_helpers/Test' import bp from '../../_helpers/breakpoints' import mq from '../../_helpers/mq' import report_result_summary from '../../_helpers/report_result_summary' import sequence from '../../_helpers/sequence' import ResultTracker from '../../_helpers/ResultTracker' import apply_style from '...
// gulpfile.js "use strict"; import gulp from "gulp"; import path from "path"; import fs from "fs"; import htmlmin from "gulp-htmlmin"; import uglify from "gulp-uglify"; import rename from "gulp-rename"; import concatCss from "gulp-concat-css"; import csso from "gulp-csso"; import inject from "gulp-inject"; import r...
import React from 'react' import cookie from 'react-cookie' import { Link } from 'react-router' import url from '../../config.js' // components import NavBar from './NavBar' import Header from './Header' import ToggleDisplay from 'react-toggle-display' import FlatButton from 'material-ui/lib/flat-button' import Raised...
import React from 'react'; import style from 'PVWStyle/ReactProperties/CheckboxProperty.mcss'; export default React.createClass({ displayName: 'Checkbox', propTypes: { idx: React.PropTypes.number, label: React.PropTypes.string, onChange: React.PropTypes.func, value: React.PropTypes.bool, }, ...
/** * runApp * Created by dcorns on 1/3/15. * Returns a new object with a run method that executes os commands in node. */ 'use strict'; module.exports = function(){ this.run = function run(arg, cnn, cmd){ var spawn = require('child_process').spawn; var proc = spawn(cmd, arg); proc.on('exit', fu...
define(function () { var Meal = function () { this.ids = {}; this.time = null; this.timezone = null; // if available this.params = { }; /* this.params = { // in grams or ml 'calories': 900, 'fat': 99 }; */ }; ...
var gulp = require('gulp'); var del = require('del'); var config = require('../config'); gulp.task('clean', function(cb) { del([config.dir_dist + '/**'], cb); });
module.exports = { re: /^https?:\/\/(?:[\w\-]+\.)?genius\.com\/(?!jobs)([a-zA-Z\-]+)/i, mixins: [ "domain-icon", "*" ], getLinks: function(urlMatch, twitter) { var id = twitter.app.url.iphone.match(/\d+/)[0]; if (id) { return { html: '<di...
// Karma configuration // Generated on Thu Oct 01 2015 17:56:10 GMT+0900 (JST) 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...
var creds = (function () { var creds = {}; creds.API_SECRET=""; creds.API_KEY=""; creds.AUTHOR=''; return creds; }());
/* * grunt-arcgis-press * https://github.com/agrc/grunt-arcgis-press * * Copyright (c) 2015 Steve Gourley & Scott Davis * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var PythonShell = require('python-shell'); var chalk = require('chalk'); var mixin = require('...
var d = global.d; describe("bfs", function () { it("should throw a TypeError when no arguments are given", function () { expect(() => d.bfs().next()).toThrow(new TypeError("Argument 1 must be an Object or Array")); }); it("should throw a TypeError when any arguments are the wrong type", function () { expect(() ...
window.onload = function() { var video = document.getElementById('video'); var canvas = document.getElementById('canvas'); var context = canvas.getContext('2d'); var tracker = new tracking.ObjectTracker('eye'); tracking.track('#video', tracker, { camera: true }); tracker.on('track', function(event) { ...
'use strict'; exports.init = function(req, res){ res.render('new/index'); };
var CancelTextCommand = function() { this.Extends = SimpleCommand; this.execute = function(note) { //alert("CancelTextCommand"); var mediator = note.getBody(); var textEditor = null; if (mediator instanceof ModelObjectsTextsEditorMediator) { textEditor = mediator.getViewComponent().gridListSplitter.rig...
version https://git-lfs.github.com/spec/v1 oid sha256:1d9080414602f6f5917e7b36b5aba29a65872741dae9d855477b867a38088897 size 7969
'use strict'; var React = require('react-native'); var Navigation = require('./Navigation'); var CatalogCell = require('./CatalogCell'); var { StyleSheet, Text, View, ListView, Image, DrawerLayoutAndroid, TouchableHighlight, TouchableNativeFeedback, ToolbarAndroid, } = React; import {manager, Reac...
/* */ "format cjs"; import ActionAccessibility from './action/accessibility'; export { ActionAccessibility }; import ActionAccessible from './action/accessible'; export { ActionAccessible }; import ActionAccountBalanceWallet from './action/account-balance-wallet'; export { ActionAccountBalanceWallet }; import ActionAc...
// Always request javascript when sending xhr $(function() { $.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } }); }); $().ready(function(){ jQuery(top).trigger('initialize:frame'); // hide roxanne toolbar if mercury toolbar is present in parent wi...
const weekly = require('./'), botMessages = require('../messages/bot-msgs'), sendMessage = require('../tools/sendMessage') ; module.exports = function (datastore, userObject, quick_reply) { let day = quick_reply.payload.split('_')[1].toLowerCase(); weekly(datastore, userObject, day).then(postsElem...
var app = angular.module('js'); app.controller('RegistrationOwnEditCtrl', function($scope, $filter, $routeParams, $location, NotificationSvc, ActivitiesSvc, RegistrationSvc, conf, PlatformSvc) { //$scope.busyPromise = RegistrationSvc.findById; $scope.cities = PlatformSvc.getCities(); $scope.platform = PlatformSvc;...
(function(window, document, undefined) { 'use strict'; console.log('This would be the main JS file.'); particlesJS("particles-js", { "particles": { "number": { "value": 400, "density": { "enable": true, "value_area...
import differenceInCalendarWeeks from '../differenceInCalendarWeeks/index.js' import lastDayOfMonth from '../lastDayOfMonth/index.js' import startOfMonth from '../startOfMonth/index.js' /** * @name getWeeksInMonth * @category Week Helpers * @summary Get the number of calendar weeks a month spans. * * @description...
(function(){ 'use strict'; var app = angular.module('readingList', []); app.controller = ('ReadingListController', function(){ this.books = books; this.genres = genres; } ); var genres = ['fable', 'fantasy', 'fiction', 'folklore', 'horror', 'humor', 'legend', 'metafiction', 'mystery', 'myt...
module.exports.createCommands = (world) => { return [ new world.Command({ name: `look`, positions: world.constants().positionsAwake, execute: async (world, user, buffer, args) => { if ( typeof args[0] == `string` ) { /** If the first argument is 'in'... */ if ( `in`.s...
'use strict'; // Load modules const Code = require('code'); const Hapi = require('hapi'); const Lab = require('lab'); const Info = require('../lib/modules/hello-world'); // Declare internals const internals = {}; // Test shortcuts const lab = exports.lab = Lab.script(); const it = lab.it; const describe = lab.de...
'use strict'; var commander = require('../../lib/commander'); var config = require('../../lib/config'); var gulp = require('gulp'); var gulpIf = require('gulp-if'); var gulpLess = require('gulp-less'); var gulpWatchLess = require('gulp-watch-less'); var mac = require('mac'); var path = require('path'); module.exports...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { BigNumberDependencies } from './dependenciesBigNumberClass.generated' import { UnitDependencies } from './dependenciesUnitClass.generated' import { createBoltzmann } from '../../factoriesAny.js' export const boltzmannDependencies = { BigNumbe...
const path = require("path"); var DuplicatePackageCheckerPlugin = require("../../src"); module.exports = function(options, mode = "development") { return { entry: "./entry.js", mode, context: __dirname, output: { path: path.resolve(__dirname, "dist"), filename: "bundle.js" }, plug...
/* Known Modes: - neutral - walkaway - Enable walkaway option - play-by-play - Enable play-by-play popup window showing the history of this game - condition-random - Utilize a random condition provided by the auth server - condition - Utilize a specific condition provided by the auth server - ...
version https://git-lfs.github.com/spec/v1 oid sha256:cc94bba58e6d6997e534f1aad9e9b1f76f8b8c5ee0356b423bebed6ad1024ace size 2601
define('dojorama/layers/nls/release_zh-cn',{ 'dojorama/ui/release/mixin/nls/_ReleaseActionsMixin':{"indexLabel":"Overview","createLabel":"Create New Release"} , 'dojorama/ui/release/mixin/nls/_ReleaseBreadcrumbsMixin':{"homeLabel":"Home","releaseIndexLabel":"Releases","releaseCreateLabel":"Create New Release"} , 'dojor...
import { elt, removeChildren } from "../util/dom" import { indexOf } from "../util/misc" import { updateGutterSpace } from "./update_display" // Rebuild the gutter elements, ensure the margin to the left of the // code matches their width. export function updateGutters(cm) { var gutters = cm.display.gutters, specs ...
/** * Users * Pokemon Showdown - http://pokemonshowdown.com/ * * Most of the communication with users happens here. * * There are two object types this file introduces: * User and Connection. * * A User object is a user, identified by username. A guest has a * username in the form "Guest 12". Any user whose u...
import isArray from '../util/isArray' import isNumber from '../util/isNumber' import isArrayEqual from '../util/isArrayEqual' /** @internal */ class Coordinate { /** @param {Array} path the address of a property, such as ['text_1', 'content'] @param {int} offset the position in the property */ construct...
(function () { angular .module('mogul') .constant('OPTS', { 'server': 'http://localhost:9292/', 'itemsPerPage': 12 }); })();
angular.module('companyService',[]) .factory('Company', function($http){ var companyFactory = {}; companyFactory.create = function(companyData){ return $http.post('/api/companycreate', companyData); }; companyFactory.allCompany = function(){ return $http.get('/api/companygetall'); }; // com...
define([ "dojo/_base/declare", "mijit/_WidgetBase", "mijit/_TemplatedMixin", "dojo/dom-construct" ], function ( declare, _WidgetBase, _TemplatedMixin, domConstruct ) { return declare([_WidgetBase, _TemplatedMixin], { templateString: '<input type="text" data-dojo-att...
/* * ComposeJS, object composition for JavaScript, featuring * JavaScript-style prototype inheritance and composition, multiple inheritance, * mixin and traits-inspired conflict resolution and composition */ (function(define){ "use strict"; define([], function(){ // function for creating instances from a prototyp...
'use strict'; var path = require('path') , _ = require('lodash') , chalk = require('chalk') , yo = require('yeoman-generator') , utils = require('../lib/utils') , Base = yo.generators.Base; _.mixin(require('lodash-deep')); var AppGenerator = Base.extend({ constructor: function () { Base.appl...
/* --- Day 15: Science for Hungry People --- Today, you set out on the task of perfecting your milk-dunking cookie recipe. All you have to do is find the right balance of ingredients. Your recipe leaves room for exactly 100 teaspoons of ingredients. You make a list of the remaining ingredients you could use to finish...
import run from './run'; /** * Compiles the project from source files into a distributable * format and copies it to the output (build) folder. */ async function build() { await run(require('./clean')); await run(require('./copy')); await run(require('./bundle')); } export default build;
const assert = require('assert'); const { execSync } = require('child_process'); const fs = require('fs'); const specMarkdown = require('../'); const shouldRecord = Boolean(process.env.RECORD); function testSource(dir, input, options) { return [input || `test/${dir}/input.md`, `test/${dir}/ast.json`, `test/${dir}/...
import { Mongo } from 'meteor/mongo' import { SimpleSchema } from 'meteor/aldeed:simple-schema' const Articles = new Mongo.Collection('articles') export const UPVOTE = 1 export const DOWNVOTE = -1 export const ELASTIC_SEARCH_INDEX = 'articles' export const ELASTIC_SEARCH_TYPE = 'publications' export const ArticleRep...
angular.module('devlogin', [ 'devlogin.index', 'devlogin.forgot', 'devlogin.reset' ]);
'use strict'; const assert = require('assert'); const Browscap = require('../src/index.js'); suite('checking for issue 1725. (29 tests)', function () { test('issue-1725-00000 ["Mozilla/5.0 (iPhone; CPU iPhone OS 10_0 like Mac OS X) AppleWebKit/602.1.43 (KHTML, like Gecko) AppleNews/607 Version/2.0"]', function () {...
// @flow strict import { renderHook, act } from '@testing-library/react-hooks'; import * as PopperJs from '@popperjs/core'; // Public API import { usePopper } from '.'; const referenceElement = document.createElement('div'); const popperElement = document.createElement('div'); describe('userPopper', () => { afterE...