code
stringlengths
2
1.05M
<<<<<<< HEAD <<<<<<< HEAD module.exports = exports = list exports.usage = 'Prints a listing of the currently installed node development files' /** * Module dependencies. */ var fs = require('graceful-fs') , path = require('path') , log = require('npmlog') function list (gyp, args, callback) { var devDir =...
import axios from 'axios'; import getServer from '../utils/api'; function getGoldHistory() { axios.get(getServer()+'gold/history') .then((function (response) { return response.data.dataset.data; }) .catch(function (error) { console.log(error); return error; }) )}; export default ge...
var express = require("express"), app = express(); app.get("/", function (req, res) { res.redirect("tests.html"); }); app.configure(function () { app.use(express.methodOverride()); app.use(express.bodyParser()); app.use(express.static(__dirname)); app.use(express.errorHandler({ dumpExceptions: true, showSta...
import React, { PropTypes, Component } from 'react'; /* eslint-disable import/no-unresolved */ import { LogoImage, Header, } from 'components'; /* eslint-enable import/no-unresolved */ import styles from './index.module.scss'; import cssModules from 'react-css-modules'; import { connect } from 'react-redux'; import...
'use strict'; angular.module('myApp.happies.happy-list', []) // <happy-list></happy-list> .directive('happyList', function() { var directive = { restrict: 'E', scope: {}, templateUrl: 'components/happies/happy-list.tpl.html' , controller: 'HappyListController', controllerAs: 'vm', }; return directive; })...
ns.page.title = function() { return 'Noscript Todo'; }; $(function() { ns.init(); ns.page.go(); });
'use strict'; // Declare app level module which depends on filters, and services angular.module('few', [ 'angular-momentjs', 'ngRoute', 'ngAnimate', 'few.filters', 'few.services', 'few.directives', 'few.controllers' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', {co...
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' angular.module('app', ['ionic']) .run(function($ionicP...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'); var lev = require('leven'); var request = require('request'); var fs = require('fs'); var mkdirp = require('mkdirp'); var chalk = require('chalk'); var strip = require('strip-ansi'); var util = { /** * Handles tabbed auto-completion based ...
// Source : https://leetcode.com/problems/baseball-game // Author : Dean Shi // Date : 2017-09-24 /*************************************************************************************** * * You're now a baseball game point recorder * * Given a list of strings, each string can be one of the 4 following types ...
pc.extend(pc, function () { function sortDrawCalls(drawCallA, drawCallB) { if (drawCallA.distSqr && drawCallB.distSqr) { return drawCallB.distSqr - drawCallA.distSqr; } else { return drawCallB.key - drawCallA.key; } } // Global shadowmap resources ...
const assert = require('chai').assert; const xssSeed = require('../../../src/seed/xss.js'); describe('seed/xss.js', function () { it('format', function () { assert.equal(xssSeed.noStrict(), '<a href="javascript:void(0)">click me!</a>'); }); it('strict format', function () { assert.equ...
(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD define(['snd.AudioUnit'], factory); } else if (typeof exports === 'object') { // Node } else { // Browser globals (root is window) root.snd = factory(root.snd); } }(this, function(...
// Custom javascript $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); ...
//Abstract var TextsEditor = function() { this.Extends = TextsEditorUIComponent; this.initialize = function(name,properties) { this.parent(name,properties); this.keyup_Handler = this.keyup_Handler.bindWithEvent(this); this.addEvent(SjamayeeFacade.KEYUP, this.keyup_Handler); }; this.keyup_Handler = fun...
export var getMatrixDataTypeDocs = { name: 'getMatrixDataType', category: 'Matrix', syntax: ['getMatrixDataType(x)'], description: 'Find the data type of all elements in a matrix or array, ' + 'for example "number" if all items are a number ' + 'and "Complex" if all values are complex numbers. ' + 'If a matrix ...
var Dispatcher = require('flux').Dispatcher; var Constants = require('../constants/AppConstants'); var assign = require('object-assign'); var AppDispatcher = assign(new Dispatcher(), { handleViewAction: function(action) { this.dispatch({ source: Constants.PayloadSources.VIEW_ACTION, ...
// Compiled by ClojureScript 0.0-2322 goog.provide('clojure.browser.event'); goog.require('cljs.core'); goog.require('goog.events.EventType'); goog.require('goog.events.EventTarget'); goog.require('goog.events'); goog.require('goog.events'); clojure.browser.event.IEventType = (function (){var obj10769 = {};return obj10...
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
var events = require('events'), util = require('util'), common = require('./common'), Resource = require('./resource'); var Engine = module.exports = function Engine(options) { if(!(this instanceof Engine)) { return new Engine(options); } events.EventEmitter.call(this); this.options = options;...
$(document).ready( function(){ $.tablesorter.defaults.widgets = ['zebra']; $("#user_list").tablesorter({sortList: [[2,0]]}); } );
module.exports = (query, request) => { const data = { limit: query.limit || 10, offset: query.offset || 0, } return request( 'POST', `https://music.163.com/store/api/point/expense`, data, { crypto: 'api', cookie: query.cookie, proxy: query.proxy, realIP: query.realI...
/* global module,require */ 'use strict'; module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, all: [ ...
#!/usr/bin/env node 'use strict' const yargs = require('yargs') const logger = require('../lib/utils/logger') const octopus = require('../lib/octopus-deploy') const createRelease = require('../lib/commands/simple-create-release') const args = yargs .usage('Usage:\n $0 [options]') .option('host', { describe: 'Th...
'use strict' angular.module('myApp.directives', []). directive('browserToolbar', ['$timeout', function (init) { var linkFn = function(scope, element, attrs) { } return { restrict: 'E', templateUrl: '/t/browserToolbar', replace: true, ...
// 10 Days of JavaScript // Day 2: Conditional Statements: Switch // https://www.hackerrank.com/challenges/js10-switch/problem 'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin...
/** @constructor */ ScalaJS.c.scala_runtime_VolatileIntRef = (function() { ScalaJS.c.java_lang_Object.call(this); this.elem$1 = 0 }); ScalaJS.c.scala_runtime_VolatileIntRef.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_runtime_VolatileIntRef.prototype.constructor = ScalaJS.c.scala_runtime_...
const pg = require('pg') const fs = require('fs') const path = require('path') const connect = connectionConfig => { const poolConfig = { idleTimeoutMillis: 30000, max: 10 } const config = Object.assign({}, poolConfig, connectionConfig) const pool = new pg.Pool(config) /* istanbul ignore next */ ...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.filter"); require("core-js/modules/es.array.find"); require("core-js/modules/es.array....
import React from 'react'; import * as d3 from 'd3'; class ScatterPlot extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { var margin, width, height, svg, g, color; margin = {top: 20, right: 20, bottom: 30, left: 40}; width = this.props....
define(['jquery'], function ($) { 'use strict'; $(function () { console.log('test2'); }); });
var Api = require('../../lib/api.js'); module.exports = { setUp: function (callback) { this.client = require('../nightwatch.js').init(); callback(); }, testAddCommand : function(test) { var client = this.client; var api = client.api; client.on('selenium:session_create', function(sessionId) ...
var isPositiveZero = require('./isPositiveZero'); module.exports = function sign1 (value) { "use strict"; if (isNaN(value)) { return NaN; } else if (value > 0 || isPositiveZero(value)) { return 1; } else { return -1; } };
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function (req, res) { res.render('index', {title: 'suzume', subtitle: 'Node.JS danbooru-style imageboard'}); }); module.exports = router;
Template.cvGoals.helpers({ cvGoalsList: function () { return CV.Goals.collection.find(); } });
/* */ define(['exports', 'aurelia-dependency-injection', 'aurelia-templating'], function (exports, _aureliaDependencyInjection, _aureliaTemplating) { 'use strict'; exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot ...
describe('Balistos home page', () => { it('should redirect to home after clicking on balistos logo', () => { cy.visit('/'); cy.get('#logo').click(); cy.url().should('eq', Cypress.config().baseUrl + '/'); }); });
import Slider from '../../src/modules/slider/Slider.vue' import { createVm ,createVue,destroyVm } from '../util' describe('Slider', function() { let vm afterEach(() => { destroyVm(vm) }) it('init', function (){ vm = createVm(Slider) expect(vm.$el.classList.contains('ph-slider'...
$(document).ready(function() { var i18nOpts = { lng: 'en', getAsync: true, useCookie: false, fallbackLng: 'en', resGetPath: 'static/locales/__lng__.json' }; var translate = function() { $('.i18container').i18n(); $('#i18_navbar').i18n(); $('#i18_about_me').i18n(); $('#i18_skil...
import {Injectable} from 'angular2/core'; import {Http} from 'angular2/http'; /* Generated class for the <%= jsClassName %> provider. See https://angular.io/docs/ts/latest/guide/dependency-injection.html for more info on providers and Angular 2 DI. */ @Injectable() export class <%= jsClassName %> { constructo...
export { default } from 'ember-goods/models/basket-rule-validation';
//////////////////// // Etu controller // //////////////////// 'use strict'; module.exports = function (db, config) { return { login: require('./login')(db, config), searchUsers: require('./searchUsers')(db, config), block: require('./block')(db, config), sendReset: r...
var _ = require('lodash'); var socket = require('./socket'); var selectedTabStore = require('./stores/selectedTab'); var channelActions = require('./actions/channel'); var messageActions = require('./actions/message'); var serverActions = require('./actions/server'); var routeActions = require('./actions/route'); var ...
/** * jsLib.widgets Module * * Description */ angular.module('jsLib.utils',[ 'jsLib.utils.sprintf', 'jsLib.utils.emailValidator', 'jsLib.utils.dateConverter' ]);
ig.module( "game.entities.torch" ) .requires( "impact.entity" ) .defines(function () { EntityTorch = ig.Entity.extend({ animSheet: new ig.AnimationSheet("media/entities/objects.png", 16, 16), init: function (x, y, settings) { this.parent(x, y, settings); this.addAnim("idle", 0.2, [75, 74, 75, 73]); } }); ...
var searchData= [ ['image',['image',['../classImageHandler.html#a0ce1a69f70d8e75e0eea611a8e85d7ee',1,'ImageHandler']]], ['imagebuffermap',['imageBufferMap',['../classVideoImageBuffer.html#ae11339c099fee47945d3cf0abde6ccf4',1,'VideoImageBuffer']]], ['imagedetection',['imageDetection',['../classMainWindow.html#a63e...
'use strict'; /* * Attention: let's add end-to-end tests instead of this! * Check ./end-to-end/moro.tests.bats * */ import test from 'ava'; import { printSingleDayReport, printAllDaysReport, printSearchResults, } from '../lib/utils/helpers.js'; const moment = require('moment'); const diff = (start, end) => ...
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; var path = require("path"); /* * Currently the tooling uses load-grunt-config to manage it's tasks. * In future grunt plugin will be created for better management */ module.expor...
var config = require('./config'), nestApi = require('./lib/nest'), nest = new nestApi(config); nest.login() .then(nest.cameras()) .then(function(obj) { console.log(obj); //console.log(JSON.parse(obj,null,4)); }) .catch(function(err) { console.log('there has been an error', err); }); // nest.login(confi...
/** * Created by kira on 3/15/17. */ 'use strict'; var TourOfficialService = require('.././tour/service.official'); module.exports = function (app) { app.get('/api/v1/tour/filter', function (req, res) { TourOfficialService.selectHotTrip(res, req.query.HotTrip, req.query.PageSize); }); app.get(...
function ElasticClient(connection) { this.host = connection.host; this.username = connection.username; this.password = connection.password; this.createAuthToken=function(username,password) { var auth = null; if (isDefined(username) && isDefined(password)) { auth = "Basic " + window.btoa(username + ":" + pa...
// Use Parse.Cloud.define to define as many cloud functions as you want. // For example: Parse.Cloud.beforeSave("Event", function(request, response) { uri = request.object.get("ImageUri"); Parse.Cloud.httpRequest({ method: 'HEAD', url: uri, }).then(function(httpResponse) { if(httpResponse.status == ...
/* global exports */ "use strict"; // module DOM.HTML.Navigator.Geolocation exports.geolocation = function (navigator) { return function () { return navigator.geolocation; }; }; exports.fGetCurrentPosition = function (geolocation) { return function (successCallback) { return function (err...
(function(obj) { var requestFileSystem = obj.webkitRequestFileSystem || obj.mozRequestFileSystem || obj.requestFileSystem; function onerror(message) { alert(message); } function createTempFile(callback) { var tmpFilename = "tmp.zip"; requestFileSystem(TEMPORARY, 4 * 1024 * 1024 * 1024, function(filesystem)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.log1pDependencies = void 0; var _dependenciesComplexClass = require("./dependenciesComplexClass.generated"); var _dependenciesDivideScalar = require("./dependenciesDivideScalar.generated"); var _dependenciesLog = require("./depen...
module.exports = exports = function (app) { var b = app.bold; var request = app.utils.request; var cheerio = app.utils.cheerio; var useragent = app.utils.useragent; app.cmdRegister('urbandict', { "f": urbanDict, "h": "Gets first defintion from UrbanDictionary for a given term.", }); ...
describe('the daterange directive', function () { var $ngCompile, $ngRootScope; beforeEach(module('ngBootstrap.dateRangePicker')); beforeEach(inject(function ($compile, $rootScope) { $ngCompile = $compile; $ngRootScope = $rootScope; })); it('creates an instance of daterangepicker', function () { var eleme...
'use strict'; module.exports = function(sequelize, DataTypes) { var Faculte = sequelize.define('Faculte', { nom: DataTypes.STRING }, { classMethods: { associate: function(models) { // associations sdfsdf can be defined here hhh test bupe sfsdfs dfgfd } } }); return Faculte; };
/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arg...
module.exports = { head: { title: 'Encounter Tracker', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: 'Fan-Made Dungeons and Dragons 4th edition Encounter Tracker' } ], link: [ {...
import React, { Component } from 'react'; import reactDOM from 'react-dom'; import withStyles from '../../../decorators/withStyles'; import styles from './Modal.css'; import GSAP from 'react-gsap-enhancer'; import Link from '../../Link'; import _ from 'lodash'; function modalShow({target}){ var modal = target; ret...
version https://git-lfs.github.com/spec/v1 oid sha256:4b5a26e32335fb6912d4f2216b9b1987ed3484f3568582415a8967d4bb14b249 size 384906
game.HeroDeathManager = Object.extend({ init: function(x, y, settings){ this.alwaysUpdate = true; }, update: function(){ if(game.data.player.dead){ me.state.current().resetPlayer(10, 0); me.game.world.removeChild(game.data.player); } ...
// jscs:disable maximumLineLength /* global StackFrame: false, ErrorStackParser: false, CapturedExceptions: false */ describe('ErrorStackParser', function() { describe('#parse', function() { var unit = ErrorStackParser; it('should not parse IE 9 Error', function() { expect(function() { ...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { let closeButton; const { className, children, toggle, tag: Tag, closeAriaLabel, ...attributes } = this.props; c...
'use strict'; /* eslint-disable no-restricted-syntax */ const { rules } = require('./index'); const ruleTableRows = Object.keys(rules) .sort() .map((id) => { const { meta } = rules[id]; const { fixable, docs } = meta; return [ docs.recommended ? '✔' : '', fixable ? '🔧' : '', `[reac...
const fetch = require('node-fetch'); const getRemotePackage = async (url) => { const result = await fetch(url); if (result.status > 299) { // eslint-disable-next-line no-console console.error(`Received unexpected status ${result.status} from call to ${url}`); return {}; } return result.json(); }; ...
var should = require('should'); var vm = require('vm'); var fs = require('fs'); var filename = __filename.replace(/\.test\.js$/, '.js'); vm.runInThisContext(fs.readFileSync(filename), filename); describe('evenOddRepeat', function() { it('should exist', function(){ should.exist(evenOddRepeat); }); ...
var mongoose = require('mongoose'); mongoose.Promise = global.Promise; var Schema = mongoose.Schema; var bcrypt = require('bcrypt-nodejs'); var uniqueValidator = require('mongoose-unique-validator'); var adminSchema = new Schema({ name: {type: String, required: true}, email: {type: String, required: true, uniq...
import { createPropsArray } from '../../../../stories/utils/LiveCodeExample'; export const createStaticPopoverExample = props => ` <Box align="center" verticalAlign="middle" height={80} style={{ overflow: 'auto', }} > <Popover shown showArrow placement="right" appendTo="scrollParent" ${createPropsArra...
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29ycy5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiQ29ycy5zcGVjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
/** * Minimax Implementation * @jQuery version */ function Game() { this.rows = 6; // Height this.columns = 7; // Width this.status = 0; // 0: running, 1: won, 2: lost, 3: tie this.depth = 4; // Search depth this.score = 100000, // Win/loss score this.round = 0; // 0: Human, 1: Computer ...
module.exports = function stream_context_get_options (stream_or_context) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // * example 1: var opts = {http:{method:'GET', header: 'Accept-language: en\r\nCookie: foo=bar\r\n'}}; // * example 1: var context = stream...
function create_chart(chart_stats){ chart_json = chart_stats; var gD = [ ['data1', chart_json.skip], ['data2', chart_json.complete], ]; gD[0][0] = "Skipped: " + gD[0][1]; gD[1][0] = "Completed: " + gD[1][1]; var grammarChart = c3.generate({ ...
/** * Created by FredAdmin on 11/16/13. */ var buildPhotoGrid = function() { var html = ''; html += '<ul class="grid">'; for (var i = 0; i < artwork.artwork.length; i++) { var piece = artwork.artwork[i]; html += '<li class="photo"><img src="img/art/' + piece.thumbnail + '"' + ' alt="' + piece....
define({ "_widgetLabel": "Koordinātu pārveidošana", "DD": "DD", "DDM": "DDM", "DMS": "GMS", "DDRev": "DDRev", "DDMRev": "DDMRev", "DMSRev": "DMSRev", "USNG": "USNG", "MGRS": "MGRS", "UTM_H": "UTM (H)", "UTM": "UTM", "GARS": "GARS", "GEOREF": "GEOREF", "DDLatLongNotation": "Decimālgrādi — pla...
import { Audio } from './legacy/audio.js'; import { Sprite } from './sprite.js'; import { utilTHREE } from "./threejs/utilthree.js"; /** * Loading bar. * @param {Array.<Object>=} objectsToPoll Objects that contain loadedFraction() * function that returns 1 when the object is fully loaded. * @constructor */ const...
var CONFIG = require('./config'); var _wire = require('./wire'); var util = require('./util'); exports.parse = function parseHandshake( connection ) { var request = {}; request.string = connection.bBuffering.toString('utf8'); request.headers = {}; isComplete( request ) && firstParsePass( request ) && reques...
import {RingBuffer} from 'ember-csp';
import { Meteor } from 'meteor/meteor'; import { Mongo } from 'meteor/mongo'; import { check } from 'meteor/check'; import { company_const } from './../constants.js'; import { Schemas } from './../schemas/schemas.js'; /* { name, createdAt, creator } */ export const Companies = new Mongo.Collection("companies"...
function Winwheel(a,c){defaultOptions={canvasId:"canvas",centerX:null,centerY:null,outerRadius:null,innerRadius:0,numSegments:1,drawMode:"code",rotationAngle:0,textFontFamily:"Arial",textFontSize:20,textFontWeight:"bold",textOrientation:"horizontal",textAlignment:"center",textDirection:"normal",textMargin:null,textFill...
var res = { HelloWorld_png : "res/HelloWorld.png", LI07_jpg: "res/ui/Login/LI07.jpg", Login_json: "res/ui/Login.json", Layer_json: "res/ui/Layer.json", BaS31_png: "res/ui/Login/BaS31.png", BaS32_png: "res/ui/Login/BaS32.png", MainMenu_json: "res/ui/MainMenu.json", MM01_png: "res/ui/MainM...
import { round } from '../utils'; var FaceMatch = /** @class */ (function () { function FaceMatch(label, distance) { this._label = label; this._distance = distance; } Object.defineProperty(FaceMatch.prototype, "label", { get: function () { return this._label; }, enumerable: t...
(function(){ // editor.js UEDITOR_CONFIG = window.UEDITOR_CONFIG || {}; var baidu = window.baidu || {}; window.baidu = baidu; window.UE = baidu.editor = window.UE || {}; UE.plugins = {}; UE.commands = {}; UE.instants = {}; UE.I18N = {}; UE._customizeUI = {}; UE.version = "1.4.3"; var dom...
import {join, buildQueryString} from 'aurelia-path'; import {Headers} from './headers'; /** * Represents a request message. */ export class RequestMessage { /** * The HTTP method. */ method: string; /** * The url to submit the request to. */ url: string; /** * The content of the request. */ c...
'use strict'; /* global -JQLitePrototype, -addEventListenerFn, -removeEventListenerFn, -BOOLEAN_ATTR */ ////////////////////////////////// //JQLite ////////////////////////////////// /** * @ngdoc function * @name angular.element * @module ng * @kind function * * @description * Wraps a raw DOM element...
export default function logger(isServer, prefix, color) { let logit = () => {}; if (!isServer) { return function log(msg) { console.log(`%c[${prefix}]`, `color: ${color || '#b0c4de'};`, msg); }; } return logit; }
'use strict' const _ = require('ramda') const requireDir = require('requiredir') const Config = require('../config/config.js') const Analysis = require('./analysis.js') const Utils = require('./utils.js') const Package = require('../package.json') const Parsing = require('./parsing.js') const Writers = requireDir('./...
'use strict'; angular.module('common',[ 'common.interceptors', 'common.filters', 'common.directives', 'common.validators' ]);
var gulp = require('gulp'); var plugins = require('gulp-load-plugins')(); var path = require('path'); var gls = require('gulp-live-server'); var server = gls.static('dist', 8000); /**************** Utility **********************/ function highlight(str) { return str.replace(/\*\*(.+?)\*\*/g, '<strong>$1</strong>...
var mongoose = require('mongoose') var ClubSchema = new mongoose.Schema({ title:String, description:String, members:[{ name:String }] })
var searchData= [ ['statichtmlitem_150',['StaticHtmlItem',['../class_static_html_item.html',1,'']]] ];
/* * file.js: Transport for outputting to a local log file * * (C) 2010 Charlie Robbins * MIT LICENCE * */ var events = require('events'), fs = require('fs'), path = require('path'), util = require('util'), colors = require('colors'), common = require("winston").common, Transport = requir...
export { default } from 'ember-power-datepicker/components/power-datepicker';
import * as THREE from '../../libs/three/three.module.js'; import { Stats } from '../../libs/stats.module.js'; import { OrbitControls } from '../../libs/three/jsm/OrbitControls.js'; import { ARButton } from '../../libs/ARButton.js'; class App{ constructor(){ // Creates a <div> element and adds it to the HTM...
import { pageView } from '../view/page-viewer.js'; import { homeModel } from '../models/home-model.js'; class HomeController { home(context, selector) { // homeModel.getHomeData() // .then((res) => { // let data = { // data: res[0] // }; ...
'use strict' import React, {PropTypes} from 'react' import {NavigationExperimental, View, StyleSheet} from 'react-native' import { connect } from 'react-redux' import First from './First' import Second from './Second' import { navigatePop } from '../actions' const { Transitioner: NavigationTransitioner, Card: Navi...
require("./test-utils");
it("should handle different querystrings for assets correctly", () => { __webpack_base_uri__ = "https://example.com"; const file = new URL("../_images/file.png", import.meta.url); expect(file.href).toMatch(/^https:\/\/example.com\/path\/[0-9a-f]+.png$/); });
import assert from 'assert' import { isGoodNode, uniq, attach, access, camelCase } from '../../src/core/utils' describe('Utils', () => { it('node', () => { assert(!isGoodNode()) }) it('uniq', () => { const a = [1, 2, 3, 1, 3, 4] assert.deepEqual(uniq(a), [1, 2, 3, 4]) }) it('attach', () =...