code
stringlengths
2
1.05M
/** * This is file is the entry point of the application * You can import any supported file or modules here * To see more detail check out the README.md file */ // Import your Sass import './styles/index.scss'; // And CSS files import './styles/index.css';
module.exports = function (grunt) { 'use strict'; // check task runtime require('time-grunt')(grunt); // load generic configs var configs = require('dalek-build-tools'); // project config grunt.initConfig({ // load module meta data pkg: grunt.file.readJSON('package.json'), // define a src...
'use strict'; var expect = require('chai').expect, path = require('path'), load = requireTest('load'); describe('Error test: swig-loader', function() { it('should throw nicely formatted error', function(done) { load(path.resolve(__dirname, 'template.js'), function(err, mod) { expect(err).to.exist; expect(...
/*! Element Plus v2.0.4 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ElementPlusLocaleKk...
import debug from 'debug'; import { browserHistory } from 'react-router'; // Paths are relative to `app` directory import createFlux from 'flux/createFlux'; import ApiClient from '../shared/api-client'; import universalRender from '../shared/universal-render'; const { NODE_ENV } = process.env; if (NODE_ENV === 'devel...
define( 'argumenta/widgets/Proposition', [ "require-jquery", "argumenta/widgets/Base", "argumenta/widgets/AddTag", "argumenta/widgets/Tags", "text!./Proposition/template.html.mustache" ], function( $, Base, AddTag, Tags, Template ) { var Proposition = Base.module( { moduleID: 'Proposit...
/*! * DevExtreme (dx.messages.en.js) * Version: 20.2.4 (build 20365-0316) * Build date: Wed Dec 30 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
// ================================== // flaresMemberReports.js // Generates PDF or Excel reports of // member data // ==================================
import { combineReducers } from 'redux'; import { wealth } from '../Wealth/reducers'; import { users } from '../Home/reducers'; const reducer = combineReducers({ wealth, users, }); export default reducer; /** combineReducers({ reducer1, reducer2 }) -> function reducer(state, action) { keys => { ...
import React from 'react'; import classNames from 'classnames'; export default class Input extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value, }; } /** * Public Methods */ getValue() { return this.state.value; } /** * Private...
/*! Buefy v0.8.14 | MIT License | github.com/buefy/buefy */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.Field = {})); }(this, fun...
/* * * * X-range series module * * (c) 2010-2021 Torstein Honsi, Lars A. V. Cabrera * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; var __extends = (this && this.__extends) || (function () { var extendStatics = f...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Mootable = {})); }(this, (function (...
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("deepmerge")),r=e(require("shvl"));module.exports=function(u,o,i){function c(e,t,r){try{return(r=t.getItem(e))&&"undefined"!==r?JSON.parse(r):void 0}catch(e){}}if(o=(u=u||{}).storage||window&&window.localStorage,i=u.key||"vuex",!funct...
/*! * vue-i18n v9.0.0-rc.1 * (c) 2021 kazuya kawaguchi * Released under the MIT License. */ import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue'; /** * Original Utilities * written by kazuya kawaguchi */ const inBrowser = t...
var should = require('should'); var path = require('path'); var paths = require('../lib/paths'); var tmpDirPath = path.resolve(__dirname, './.tmp'); // directories var homeDirPath = tmpDirPath + '/user_home'; var localDirPath = tmpDirPath + '/project'; var authDirPath = homeDirPath + '/auth'; var indexDirPath ...
/** * Created by yuyangyang on 2015/5/19. */ var foodDao = require('../dao/food'); var Constants = require('../utils/constants'); var _ = require('underscore'); module.exports = { addFood: function (params) { return foodDao.createFood(params); }, queryFoodByStore: function (params) { retu...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<31e1e5d0bce8731a52774daa27e4a2b9>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
import util from '../util'; const VS_SET_OPTIONS = 'VueScreens/setOptions', VS_GET_OPTIONS = 'VueScreens/getOptions', VS_GET_SCREENS = 'VueScreens/getScreens', VS_RM_SCREENS = 'VueScreens/rmScreens', VS_SET_ACTIVE_SCREEN = 'VueScreens/setActiveS...
'use strict'; var gulp = require('gulp'); var path = require('path'); gulp.plugin = require('gulp-load-plugins')(); gulp.plugin.browserSync = require('browser-sync').create(); gulp.cfg = require(path.join(process.cwd(),'config.json')); var loadTasks = require('gulp-load')(gulp); loadTasks(path.resolve(process.cwd()...
if(typeof cptable === 'undefined') cptable = {}; cptable[20838] = (function(){ var d = "ŸŸ\u0002\u0003œ\t†—Ž\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013…\b‡\u0018\u0019’\u001c\u001d\u001e\u001f€‚ƒ„\n\u0017\u001bˆ‰Š‹Œ\u0005\u0006\u0007‘\u0016“”•–\u0004˜™š›\u0014\u0015ž\u001a  กขฃคฅฆง[¢.<(+|&�จฉชซฌญฎ]!$*);¬-/ฏฐฑฒ...
//= require ./split_view /** VerticalSplitView divides the current view between leftView and rightView using a vertical dividerView. */ Flame.VerticalSplitView = Flame.SplitView.extend({ classNames: ['flame-vertical-split-view'], childViews: ['leftView', 'dividerView', 'rightView'], leftWidth: 100, ...
/** * Uniforms library for shared webgl shaders */ THREE.UniformsLib = { common: { "diffuse": { type: "c", value: new THREE.Color( 0xeeeeee ) }, "opacity": { type: "f", value: 1.0 }, "map": { type: "t", value: null }, "offsetRepeat": { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) }, "specularMap...
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
'use strict'; require('./check-deps'); var chalk = require('chalk'), inquirer = require('inquirer'); var CommonUtil = {}; CommonUtil.header = function(grunt, msg, color) { msg = color ? chalk[color](msg) : msg; var line = Array(msg.length + 1).join('-'); line = color ? chalk[color](line) : line; grunt....
/** * Preprocess and compile JavaScript file. * * @param {Object|String} config configuration JSON object or configuration file path. * @param {Boolean} config.verbose determines if program should print not only errors. * @param {String} config.entry entry file path. * @param {String} config.intermediate intermed...
import React from 'react' import { Image, Grid } from 'stardust' const image = <Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' /> const GridDividedExample = () => ( <Grid columns={3} divided> <Grid.Row> <Grid.Column>{image}</Grid.Column> <Grid.Column>{image}</Grid.Column> ...
(function(DAV) { DAV.Bucket = Bucket; var bucketCache = []; var when = require('when'); var fs = require('fs'); var Path = require('path'); /** * Constructor * @param AWS.S3 instance */ function Bucket(bucketObject) { this._bucket = bucketObj...
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import { SnackbarContent } from 'material-ui/Snackbar'; const action = ( <Button color="accent" dense> lorem ipsum dolorem </Button> ); const ...
/** @jsx h */ import h from '../../../helpers/h' export default function (change) { change.replaceNodeByKey('a', { kind: 'text', leaves: [{ text: 'three' }] }) } export const input = ( <state> <document> <paragraph> one </paragraph> <paragraph> <text key="a">one</text> <...
'use strict'; var isObservableSet = require('observable-set/is-observable-set') , multiSetSymbol = require('./symbol'); module.exports = function (value) { return isObservableSet(value) && Boolean(value[multiSetSymbol]); };
/*jshint node:true */ 'use strict'; var backend = require('../liveDbClient'); var getDocumentHash = require('../file/getDocumentHash'); var path = require('path'); var downloadController = { downloadFile: function (req, res) { var parsedUrl = req.params[0].split('/'); var projectName = parsedUrl[1]; var ...
/* eslint-disable */ module.exports = { dataOrgs: { 'meta': { 'total-rows': '18', 'total-pages': 1 }, 'links': { 'self': '/organisations?sort=organisationName&offset=0&rows=200' }, 'data': [ { 'type': 'organisations', 'id': 1, 'attributes': { 'knownAs': 'ABC Ltd', 'name': 'ABC Ltd', 'au...
import React from 'react'; import TitleComponent from './TitleComponent'; import { mount } from 'enzyme'; import sinon from 'sinon'; describe('(Component) TitleComponent', () => { let _component; const _dispatch = sinon.spy(); const incrementFunc = sinon.spy(); const _actions = { incrementCounter: incremen...
/// <reference path="~/Scripts/_references.js" /> Microsoft.WebPortal.Views.List.InfiniteScrollingRenderer = function (list) { /// <summary> /// Renders an infinite scrolling list. As the user reaches the bottom of the list, new rows will be requested from the listener. /// </summary> /// <param name=...
var StreamEventController = function ($scope, EventStorageService) { $scope.removeEvent = function () { EventStorageService.removeEvent($scope.eventIndex); } }; var StreamEventLinker = function ($scope, element) { } app.directive('streamEvent', function(WebSocketService) { return { restr...
import Ember from 'ember'; export default Ember.Route.extend({ model: function() { return { name: "Louis" }; } });
(function() { function cookie(key, value, end, path, domain, secure) { if (arguments.length === 1) { return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(key).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null; ...
import { run } from '@ember/runloop'; import Application from '../../app'; import config from '../../config/environment'; export default function startApp(attrs) { let attributes = Object.assign({}, config.APP); attributes = Object.assign(attributes, attrs); // use defaults, but you can override; return run(() ...
let pnp; try { pnp = require(`pnpapi`); } catch (error) { // not in PnP; not a problem } let defaultResolver; function requireDefaultResolver() { if (!defaultResolver) { try { defaultResolver = require(`jest-resolve/build/defaultResolver`).default; } catch (error) { defaultResolver = requi...
'use strict'; /** * EventHandler */ var util = require('util'), events = require('events'); var EventHandler = function(instance) { events.EventEmitter.call(this); this.instance = instance; this.supportedEvents = ['on','once','removeListener','removeAllListeners','emit']; /** * expose ...
var assert = require("assert"), should = require("should"), Flavordb = require("../src/flavordb").Flavordb; var Product = require("../src/product").Product, Business = require("../src/business").Business, ProductCategory=require("../src/product_category").ProductCategory; var fdb = new Flavordb(); describe('B...
(function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', 'rxjs': 'node_modules/rxjs', 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', '@angular': 'node_mod...
{ "AD" : "AD", "Africa/Abidjan_Z_abbreviated" : "GMT", "Africa/Abidjan_Z_short" : "GMT", "Africa/Accra_Z_abbreviated" : "GMT", "Africa/Accra_Z_short" : "GMT", "Africa/Addis_Ababa_Z_abbreviated" : "Ethiopia Time", "Africa/Addis_Ababa_Z_short" : "EAT", "Africa/Algiers_Z_abbreviated" : "Algeria Time", "Africa/Alg...
'use strict'; //Setting up route angular.module('contacts').config(['$stateProvider', function($stateProvider) { // Contacts state routing $stateProvider. state('createContact', { url: '/contacts', templateUrl: 'modules/contacts/views/create-contact.client.view.html' }). state('listContact', { url:...
window.Physijs = (function() { 'use strict'; var SUPPORT_TRANSFERABLE, _is_simulating = false, _Physijs = Physijs, // used for noConflict method Physijs = {}, // object assigned to window.Physijs Eventable, // class to provide simple event methods getObjectId, // returns...
var filename='http://themes.3rdwavemedia.com/demo/orbit/demo-only/demo-ads.css?' + new Date().getTime(); var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); document.getElementsByTagName("head")[0].app...
/* @flow */ import arrayReduce from 'fast-loops/lib/arrayReduce' function addIsolation(style: Object, exclude: Array<string> = []): Object { if (style.isolation === false) { // remove the isolation prop to // prevent false CSS properties delete style.isolation return style } const excludedDeclar...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
var PositionGizmo = Fire.extend("Fire.PositionGizmo", Editor.Gizmo, function () { var svg = arguments[0]; var target = arguments[1]; this.allowMultiTarget = true; var worldposList = []; var entities = target; var self = this; ...
const path = require("path"); class JavaCodeResolvePlugin { constructor(options) { this.options = options || {}; if (!("targetRoot" in this.options)) { throw new Error("`targetRoot` is required option."); } } apply(resolver) { const target = resolver.ensureHook(...
define({ "_widgetLabel": "Business Analyst", "addPoint": "Legg til punkt ved å klikke på kartet", "addRingsDtWt": "Legg til ringer, kjøretid eller gåtid.", "apply": "Bruk", "back": "Tilbake", "colon": ":", "creditInformation": "Creditinformasjon", "driveTime": "Kjøretid", "esriInfographics": "Esri-inf...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
/** * Convert degree to gradiant * * @param {number} angle Angle in degree * @return {number} Angle in radian */ const COEF = Math.PI / 180; export default function degreeToRadian( angle ) { return angle * COEF; }
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Cursor from './Cursor'; import store from '../store'; /*** Stateful leaf nodes ***/ class Identifier extends Component { handleClick = (e) => { const name = this.props.node.name; const span = this._span; ...
"use strict" var fs=require("fs"); var path=require("path"); class Directory{ constructor(file){ this.files_m=file //? this.file_path=fs.lstatSync(file); //http://stackoverflow.com/questions/15630770/node-js-check-if-path-is-file-or-directory } isFileExist(){ //? return this.f...
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.2.0 Version: 1.4.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v1.4/ */ var getMonthName = function(number) { var month = []; month[0] = "January"; month[1] = "February"; ...
import _ from 'lodash' const alchemicals = [ [-1, +1, -1], [+1, -1, +1], [+1, -1, -1], [-1, +1, +1], [-1, -1, +1], [+1, +1, -1], [-1, -1, -1], [+1, +1, +1], ] const ingredients = [ "Mushroom", "Fern", "Toad", "Birdclaw", "Flower", "Mandrake", "Scorpion", "Feather", ] const correctness...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-...
module.exports = Company = require('typedef') // THIS CODE WAS GENERATED BY AN AUTOMATED TOOL. Editing it is not recommended. // For more information, see http://github.com/bvalosek/grunt-infusionsoft // Generated on Wed Jan 08 2014 12:43:55 GMT-0600 (CST) // This table holds the Company data in the system. .class('C...
import React from 'react' import { Row, Col } from 'react-bootstrap' import { t } from '../i18n' export default class Footer extends React.Component { render () { const footerLines = t('footer-content') .split('\n') .map((x, i) => (<div key={i}>{ x }</div>)) return ( <footer classN...
/* * Copyright 2012 Cloud9 IDE, Inc. * * This product includes software developed by * Cloud9 IDE, Inc (http://c9.io). * * Author: Mike de Boer <info@mikedeboer.nl> */ "use strict"; var Assert = require("assert"); var Client = require("./../lib/index"); var testAuth = require("./../testAuth.json"); describe("...
exports.connection = { endpoint: 'https://ryancrawcour.documents.azure.com:443/', authKey: 'wYIlzQJh2pO8ganvKsGV/GwvpYjPkwPNcqin3sn1ZGOgyU1gwfAqLc6rh84elQjTCJ9jkoBlwnpliMq5+tp0dQ==' }; exports.names = { database: 'NodeSamples', collection: 'Families', };
/** * Created by guangqiang on 2017/10/10. */
(function ($) { 'use strict'; var calendarTextFr = { days: ['S', 'L', 'M', 'M', 'J', 'V', 'S'], months: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'], monthsShort: ['Janv', 'Févr', 'Mars', 'Avr.', 'Mai', 'Juin',...
import S from './s'; import React from 'react'; import { mount } from 'enzyme'; describe('<S />', () => { test('should underline text when specified', () => { const context = { styles: { components: { s: { strikethrough: { color: '#ff0' }, }, }, }, ...
initSidebarItems({"struct":[["ConnectFuture","Future returned by `TcpStream::connect` which will resolve to a `TcpStream` when the stream is connected."],["Incoming","Stream returned by the `TcpListener::incoming` function representing the stream of sockets received from a listener."],["TcpListener","An I/O object repr...
'use strict'; require('es6-shim'); require('./');
BASE.require([ "BASE.util.Observable", "LG.AjaxProvider", "BASE.collections.Hashmap", "LG.ServiceError", "LG.ServiceResponse", "BASE.async.Future", "LG.query.ApiProvider", "BASE.data.UnauthorizedError", "BASE.data.ForbiddenError", "BASE.data.ValidationError", "BASE.data.Netw...
"use strict"; var helpers = require("../../helpers/helpers"); exports["Atlantic/Azores"] = { "guess:by:offset" : helpers.makeTestGuess("Atlantic/Azores", { offset: true }), "guess:by:abbr" : helpers.makeTestGuess("Atlantic/Azores", { abbr: true }), "1912" : helpers.makeTestYear("Atlantic/Azores", [ ["1912-01-...
/* jshint node: true */ 'use strict'; var util = require('util'); var _ = require('underscore'); var defaults = require('../defaults'); var options = require('../options'); var descriptor = defaults.defaultDescriptor({ 'name': { name: 'App Name', required: true }, 'apiProducts': { name: 'API Pr...
import Logger, { configure, levels } from '..'; import ConsoleHandler from 'nightingale-console'; configure([ { handlers: [new ConsoleHandler(levels.ALL)], }, { key: 'app', handlers: [new ConsoleHandler(levels.DEBUG)], }, { pattern: /^app\.service\./, handlers: [new ConsoleHandler(levels....
"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 = Refl...
$(function(){ $.getJSON('https://graph.facebook.com/hf.lan.esiee?fields=albums.fields(name,type,count,id,photos.limit(3).fields(picture))', function(data){ $('#photo-albums').html(''); $.each(data.albums.data, function(i, e){ if(e.type == 'normal' && e.count > 20){ var al...
/** * Test for bin. * Runs with mocha. */ 'use strict' const bin = require.resolve('../bin/apeman-app') const assert = require('assert') const cp = require('child_process') describe('bin', () => { it('Bin assert.', (done) => { let cmd = `${bin} -h` cp.exec(cmd, (err) => { assert.ifError(err) ...
var searchData= [ ['visiontouchsurfacelib',['visionTouchSurfaceLib',['../md__r_e_a_d_m_e.html',1,'']]], ['visionprocessor',['VisionProcessor',['../class_vision_processor.html',1,'VisionProcessor'],['../class_vision_processor.html#a0dfc833174259e8b57fd658669b76c6b',1,'VisionProcessor::VisionProcessor()']]], ['visi...
import { _, passport, request, LocalStrategy, crypto, FacebookStrategy, TwitterStrategy, GitHubStrategy, GoogleStrategy, OpenIDStrategy, RedditStrategy, config, nodemailer } from './modules'; import { User } from '../database'; import { getGravatar } from '../utils'; const hash = (pwd)...
/* eslint-disable no-unused-expressions */ const merge = require('lodash.merge'); const request = require('superagent'); const createApplication = require('../fixtures/server'); const chai = require('chai'); const sinon = require('sinon'); const sinonChai = require('sinon-chai'); const { expect } = chai; chai.use(sino...
import { Meteor } from 'meteor/meteor'; import { actionLinks } from '../both/lib/actionLinks'; // Action Links Handler. This method will be called off the client. Meteor.methods({ actionLinkHandler(name, messageId) { if (!Meteor.userId()) { throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: ...
'use strict' var midi = require('./midi') /** * Get the pitch frequency in herzs with custom concert tuning * * This function is currified so it can be partially applied (see examples) * * @name note.freq * @function * @param {Float} tuning - the frequency of A4 (null means 440) * @param {String|Array} note -...
var _ = require("lodash"); var Chan = require("./models/chan"); var crypto = require("crypto"); var fs = require("fs"); var identd = require("./identd"); var log = require("./log"); var net = require("net"); var Msg = require("./models/msg"); var Network = require("./models/network"); var slate = require("slate-irc"); ...
export const StorylineTransitiveChildPages = function(storyline, storylines, pages) { var isTranstiveChildStoryline; this.contain = function(page) { if (!isTranstiveChildStoryline) { search(); } return !!isTranstiveChildStoryline[page.chapter.storyline.id]; }; function search() { isTran...
Prism.languages.ini= { 'comment': /^\s*;.*$/gm, 'important': /\[.*?\]/gm, 'constant': /^\s*[^\s\=]+?(?=[ \t]*\=)/gm, 'attr-value': { pattern: /\=.*/gm, inside: { 'punctuation': /^[\=]/g } } };
const util = require("util") const ansi = { "reset": "\x1B[0m", "hicolor": "\x1B[1m", "underline": "\x1B[4m", "inverse": "\x1B[7m", // foreground colors "black": "\x1B[30m", "red": "\x1B[31m", "green": "\x1B[32m", "yellow": "\x1B[33m", "blue": "\x1B[34m", "magenta": "\x1B[35m", "cyan": "\x1B[36...
var config = {}; config.port = process.env.PORT || 3000; module.exports = config;
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define */ // HandlebarHelpers.js // Helper methods for our handlebars.js templates. define(function (require) { "use strict"; var Underscore = require('underscore'), Handlebars = require('handlebars'), ...
var expect = require("chai").expect; var ingredientsParser = require("../../src/day-15/ingredients-parser"); describe("Ingredients parser", () => { it("parses 1 ingredient", () => { var availableIngredients = [ "Butterscotch: capacity -1, durability -2, flavor 6, texture 3, calories 8" ]; var pars...
import Helper, { states } from './_helper'; import { module, test } from 'qunit'; module('Integration | ORM | Belongs To | One To One | delete', { beforeEach() { this.helper = new Helper(); } }); states.forEach((state) => { test(`deleting the parent updates the child's foreign key for a ${state}`, function...
import addNotEnumProps from "../helper/addNotEnumProps"; import { Multicast } from "./Multicast"; import { Observable as Observ } from "./Observable"; addNotEnumProps( Observ.prototype, { multicast: function( options ) { return new Multicast( this, options ); } } ); export default Observ;
1 |> f(#) |> g(#);
import React, { PropTypes } from 'react'; import styles from './index.module.scss'; import cssModules from 'react-css-modules'; import Heading from 'grommet-udacity/components/Heading'; import Box from 'grommet-udacity/components/Box'; import Button from 'grommet-udacity/components/Button'; import Menu from 'grommet-ud...
ace.define("ace/snippets/sql",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet tbl\n create table ${1:table} (\n ${2:columns}\n );\nsnippet col\n ${1:name} ${2:type} ${3:default ''} ${4:not null}\nsnippet ccol\n ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\nsnippet ncol...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ define([ "../core" ], function( jQuery ) { // Support: Android 2.3 // W...
export default { color: { link: '#F50', }, };
(function() { 'use strict'; angular .module('app.statistics_report') .controller('StatisticsMemberConsumptionCtrl', StatisticsMemberConsumptionCtrl); StatisticsMemberConsumptionCtrl.$inject = ['UtilityService']; function StatisticsMemberConsumptionCtrl(UtilityService) { var vm...
'use strict'; const getChannelURL = require('ember-source-channel-url'); module.exports = async function() { return { scenarios: [ { name: 'ember-lts-3.12', npm: { devDependencies: { 'ember-source': '~3.12.0' } } }, { name: 'ember-lts-3.16', npm: { devDependencies:...
import isNumber from './isNumber'; import isObject from './isObject'; import isString from './isString'; const convertCamelCase = (key) => { return key.replace(/([a-z](?=[A-Z]))/g, '$1-').toLowerCase(); }; const fromKeyOrValue = (key, value) => { return isNumber(value) || isString(value) ? value.toString() :...
"use strict"; var _ = require('underscore'); var EventEmitter = require('events').EventEmitter; var EJSON = require("ejson"); class DDPClient extends EventEmitter{ constructor(opts) { super(); var self = this; opts = opts || {}; // backwards compatibility if ("use_ssl" in opts) opts.ssl = ...
"use strict"; var TestApplyEntryOptionPlugin = require("./TestApplyEntryOptionPlugin"); /** @type {import("../../../").Configuration} */ module.exports = { entry: { parent: "./parent" }, output: { filename: "[name].js" }, plugins: [ new TestApplyEntryOptionPlugin({ entry: { child: "./child" } }...
var baseProperty = require('./baseProperty'); /** * Gets the "length" property value of `object`. * * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) * in Safari on iOS 8.1 ARM64. * * @private * @param {Object} object The object to query. * @return...