code
stringlengths
2
1.05M
// Select list of users, starting by pattern (or exact match) 'use strict'; function escapeRegexp(source) { return String(source).replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'); } // - nick - first letters of nick // - strict - exact match when true // module.exports = function (N, apiPath) { N.validate(apiPath, { ...
$(function () { var kitty = new ComputeModel({ name: 'ToobSox', weight: 12, sassLevel: 'notSassy', isFatAndSassy: function (weight, sassLevel) { return weight > 14 && ['quiteSassy', 'ludicrouslySassy'].indexOf(sassLevel) >= 0; }.computed('weight', 'sassLevel'), description: function (n...
System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system", ] }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "babel": "npm:babel-core@5.8...
/** * Created by Konstantinos Tsatsarounos<konstantinos.tsatsarounos@gmail.com> * Project Name: * Filename: index.js * Date: 14/1/2017 * Time: 4:34 πμ */ //Remit Collection object for use on nodejs scripts var Collection = require('./src/collection'); module.exports = Collection;
describe("Game.resources", function() { var gr = Game.resources; var gb = Game.buildings; describe("update", function() { var b; beforeEach(function() { b = { "name": "test", } Game.data.buildings.push(b); spyOn(gb, "can_consume"); ...
jQuery(document).ready(function ($) { var _SlideshowTransitions = [ //Fade in L {$Duration: 1200, x: 0.3, $During: { $Left: [0.3, 0.7] }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 } //Fade out R , { $Duration: 1200, x: -0.3, $Sl...
'use strict' const Bcrypt = require('bcrypt') const Boom = require('@hapi/boom') const Config = require('getconfig') const JWT = require('jsonwebtoken') const Joi = require('@hapi/joi') module.exports = { description: 'Sign up', tags: ['api', 'user'], handler: async function (request, h) { const invite = aw...
// Regular expression that matches all symbols in the Batak block as per Unicode v9.0.0: /[\u1BC0-\u1BFF]/;
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json') }); grunt.loadTasks('grunt'); grunt.registerTask('default', ['eslint']); };
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const morgan = require('morgan'); const errorHandler = require('./utils/error-handler'); const auth = require('./routes/auth'); const experiences = require('./routes/experiences'); const agg = require('./routes/agg'); ...
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import ...
'use strict'; //Setting up route angular.module('enumerations').config(['$stateProvider', function($stateProvider) { // Enumerations state routing $stateProvider. state('enumeration-modal', { url: '/enumeration-modal', templateUrl: 'modules/enumerations/views/enumeration-modal.client.view.html' }). st...
'use strict'; describe('Service: Auth', function () { // load the service's module beforeEach(module('waxeApp')); // instantiate service var Auth; beforeEach(inject(function (_Auth_) { Auth = _Auth_; })); it('should do something', function () { expect(!!Auth).toBe(true); }); });
var objectpool_8h = [ [ "ObjectPool", "class_object_pool.html", "class_object_pool" ], [ "ThreadPool", "objectpool_8h.html#a74fd40ae0f03db8ae4c549df93b46345", null ] ];
var fs = require('../../util/fs'); var path = require('path'); var mout = require('mout'); var Q = require('q'); var rimraf = require('../../util/rimraf'); var endpointParser = require('apella-endpoint-parser'); var PackageRepository = require('../../core/PackageRepository'); var semver = require('../../util/semver'); ...
/** * Minified by jsDelivr using Terser v3.14.1. * Original file: /npm/jquery@3.4.1/src/event/alias.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ define(["../core","../event","./trigger"],function(e){"use strict";e.each("blur foc...
var mysql = require('mysql'); module.exports = function(app, config){ var self = this; var mysqlPool = mysql.createPool(config.db); function createSystem(req, res) { //var sql = "INSERT INTO " } function updateSystem(req, res) { } function deleteSystem(req, res) { } fu...
'use strict'; angular.module('todoApp') .directive('autofocus', function () { return { link: function (scope, element, attrs) { scope.$watch(attrs.autofocus, function (val) { if (angular.isDefined(val) && val) { // $timeout(function() { element[0].focus(); ...
/** * Open Payments Cloud Application API * Open Payments Cloud API * * OpenAPI spec version: 1.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 class manually. * */ (function(root, factory) { if (ty...
import curry1 from './_private/curry1' /** * @function exists * @desc Validates if a value is not null or undefined * @param {*} x - any valid Javascript value * @example * * exists(null) // false * exists([] // true * */ export default curry1(function exists (x) { return !(x == null) })
var http = require('http'); var fs = require('fs'); var path = require('path'); var mime = require('mime'); var cache = {}; function send404 (response) { response.writeHead(404, {'Content-Type': 'text/plain'}); response.write('Error 404: resource not found.'); response.end(); } function sendFile (response, file...
export const length1 = "Lorem"; export const length2 = "Lorem ipsum"; export const length3 = "Lorem ipsum dolor"; export const length4 = "Lorem ipsum dolor sit amet"; export const length5 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
/** * Canned policy tests */ var _ = require('lodash'); var chai = require('chai'); var expect = chai.expect; var CannedPolicy = require('../../lib/CannedPolicy'); describe('CannedPolicy', function() { it('should convert `expireTime` to seconds', function(done) { var expireTimeMs = new Date().getTime(); ...
'use strict'; var express = require('express'), posts = require('./mock/posts.json'); var app = express(); app.get('/', function(req, res){ res.send("<h1>Hello!</h1>"); }); app.get('/blog/:title?', function(req, res){ var title = req.params.title; if (title == undefined) { res.status(503); res.send("This...
const express = require('express'); const path = require('path'); const port = process.env.PORT || 8080; const app = express(); app.use(express.static(__dirname)); app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, 'index.html')); }); app.listen(port); console.log('Server has started.');...
import styles from './UserInput.less'; import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { MIN_FONT_SIZE, MAX_FONT_SIZE } from 'constants'; import { updateTextColor, blurTextColor, updateFontSize, blurFontSize, updateFontSizeUnit, toggleFontWeight, updateBackgroundColor, ...
import React from 'react'; import PubSub from 'pubsub-js'; class RadioButton extends React.Component { constructor(props) { super(props); this.state = { selectedIndex: 0 }; this.onChange = this.onChange.bind(this); } componentDidMount() { } componentWillUnmount() { } onChange(state...
import test from 'ava'; import 'babel-core/register'; import reducer from '../src/reducer'; import { ROUTE_TO_NEXT, ROUTE_TO, MODIFY_ROUTE } from '../src/ActionTypes'; const createRouteAction = (options) => ({ type: options.type, payload: { replace: !!options.replace, exit: !!options.exit, state: opt...
(function() { 'use strict'; var express = require('express'); var router = express.Router(); // var mongojs = require('mongojs'); // var db = mongojs('myApp', ['myCollections']); router.get('/', function(req, res) { res.render('dist/index'); }); module.exports = router; }());
import moment from 'moment'; import {Factory} from 'ember-cli-mirage'; export default Factory.extend({ createdAt() { return moment().toISOString(); }, createdBy: 1, name(i) { return `Label ${i}`; }, slug(i) { return `label-${i}`; }, updatedAt() { return moment().toISOString(); }, updatedBy: 1, ...
Credits = function (game) { this.game = game; this.screenName = 'creditScreen'; this.image = 'assets/screenshots/credits.png'; }; Credits.prototype.preload = function(){ game.load.image(this.screenName, this.image); }; Credits.prototype.create = function() { var bg = game.add.sprite(0, 0, this.scr...
CMS.ui.attach.fileUpload = function(){ var all_input = $('input.file-upload'); all_input.each(function(){ var input = $(this); input.change(function(){ var el = $(this); var val = $(this).val(); var bar = $('.upload-bar'); var preview_...
var config = require('../../config'); var express = require('express'); module.exports = function (app) { // ## Vendor Middleware app.use(express.compress()); app.use(express.bodyParser()); app.use(express.methodOverride()); app.use(express.cookieParser()); app.use(express.cookieSession(config.session)); ...
import assert from 'power-assert'; import lib from '../src'; describe('sample-package', () => { it('is defined', () => { assert(lib); }); });
$(document).ready(function () { $('select[id*="addressForm_country"]').click(function () { url = $(this).parent().parent().parent().parent().data('countryurl'); $.ajax({ url: url, type: "post", dataType: "json", data: "country="+$(this).val(), ...
const series = require('./series'); const parallel = require('./parallel'); const batch = require('./batch'); // A sample promise which takes an argument function promise(name) { console.log('Begin task', name); return new Promise((resolve) => { setTimeout(() => { console.log('Finish task',...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-4 8...
// (The MIT License) // Copyright (c) 2012 Richard S Allinson <rsa@mountainmansoftware.com> // 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 limi...
"use strict"; angular.module('IssueTrackingSystem.Issues.Issues', []) .factory('issues', [ '$http', '$q', 'BASE_URL', function ($http, $q, BASE_URL) { function getMyIssues(pageSize, pageNumber, orderBy) { var pageSize = pageSize || 5, ...
var supportVibrate = 'vibrate' in navigator; if (supportVibrate) { // vibrate for one second navigator.vibrate(2000); // vibrate for 2 secs, wait for 5 secs, then again vibrate for 2 secs navigator.vibrate([2000, 5000, 2000]); // Either of these stop vibration navigator.vibrate(0); navigator.vibrate([]); //...
import React, {Component} from 'react'; import './style.css'; import {NavLink} from 'react-router-dom'; import axios from 'axios'; import $ from 'jquery'; import Navbar from '../navbar/index3'; class BasicForm extends React.Component { constructor(props) { super(props); this.state = { username: '', ...
var balltop=0 , bouncetime=1000,p=0; $(document).ready(function(){ $(".main section").hide(); $("nav a").click(function(){ $(".main section").hide(); $(".main section:eq(" + $(this).index() + ")").fadeIn(); }); $("nav a:eq(0)").click(); if($(window).width()>=480){ $("nav").ho...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './FilePicker.scss'; import WixComponent from '../BaseComponents/WixComponent'; import Add from '../Icons/dist/components/Add'; import uniqueId from 'lodash/uniqueId'; /** * File picker component */ class FilePicker extends WixCompon...
/** * @private * @flow */ import EventEmitter from 'events'; import * as util from 'silk-sysutils'; /** * Silk volume module * * @module silk-volume * @example * const volume = require('silk-volume').default; * volume.level = 50; * volume.mute = false; */ class Volume extends EventEmitter { _level: numbe...
let Mousetrap = require('mousetrap'); export default function trapMice() { Mousetrap.bind('alt+f', function () { $("#searchfield-mousetrap").focus(); }); }
'use strict'; var yeoman = require('yeoman-generator'); // var chalk = require('chalk'); // var yosay = require('yosay'); module.exports = yeoman.generators.Base.extend({ // method1: function () { // console.log('method 1 just run'); // }, // method2: function () { // console.log('method 2 just run'); ...
function initMap() { var uluru = { lat: 12.8447287, lng: 77.6623789 }; var map = new google.maps.Map(document.getElementById('map'), { zoom: 18, center: uluru }); var marker = new google.maps.Marker({ position: uluru, map: map }); }
var classandroid_1_1support_1_1constraint_1_1_r_1_1id = [ [ "all", "classandroid_1_1support_1_1constraint_1_1_r_1_1id.html#aea0787d90242ff600326d61d470a83f7", null ], [ "basic", "classandroid_1_1support_1_1constraint_1_1_r_1_1id.html#a8a7dca908a299e16c3c1e5e35fe5fcf5", null ], [ "chains", "classandroid_1_1s...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _storesQuestionStore = require('../stores/QuestionStore');...
import React, { Component } from 'react'; import Card from '../../partials/card'; import styles from './style.scss'; class Index extends Component { render() { return ( <div className={styles.home}> <Card> 1 </Card> <Card> 1 </Card> <Card> 1...
import React, {Component, PropTypes} from 'react'; class PassageClick extends Component { render() { return ( <div> PassageClick </div> ); } } PassageClick.propTypes = { }; export default PassageClick;
import * as assert2 from "../base/assert2.js"; import * as url2 from "../base/url2.js"; describe('url', function () { it('should succeed', function () { const params = {a: 10}; const params2 = {a: 10, b: 'big'}; assert2.e(url2.url('http://localhost/test'), 'http://localhost/test'); assert2.e(url2.url...
$(function () { $('.navbar-toggle').click(function () { $('.navbar-nav').toggleClass('slide-in'); $('.side-body').toggleClass('body-slide-in'); $('#search').removeClass('in').addClass('collapse').slideUp(200); /// uncomment code for absolute positioning tweek see top comment i...
// JavaScript Document // jQuery 1.8.2 plug-in // Author:李俊 长大在线 // set point by star ;(function($){ /*code here*/ $.fn.extend({ "star":function(point,fun){ //分数为point,开始初始化 //1. 创建5个<li>标签,并初始化 var dat; var init_data=["0px 17px","0px 17px","0px 17px","0px 17px","0px 17px"]; for(var init=0;init<poi...
'use strict'; define('admin/plugins/anon', ['settings'], function(Settings) { var ACP = {}, banList = []; ACP.init = function() { Settings.load('anon', $('.anon-settings')); $('#save').on('click', function() { Settings.save('anon', $('.anon-settings'), function() { app.alert({ ...
var chai = require('chai'); var expect = chai.expect; var recurlyWebhookServerFactory = require('../index.js'); var server; beforeEach(function(){ server = recurlyWebhookServerFactory(); }); describe('recurly-webhook-server', function(){ it('should return a function', function(){ expect(recurlyWebhookServer...
export const ic_wrap_text_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M4 17h6v2H4zm13-6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4zM4 5h16v2H4z"},"children":[]}]};
// @flow import React from 'react'; import {connect} from 'react-redux'; import type {ContextRouter} from 'react-router'; import {withRouter} from 'react-router-dom'; import debounce from 'lodash.debounce'; import {enableFocusMode, addToast, confirmFocusMode} from '../actions'; import type {Action, Translation} from ...
/* * PhoneGap is available under *either* the terms of the modified BSD license *or* the * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. * * Copyright (c) 2005-2010, Nitobi Software Inc. * Copyright (c) 2010, IBM Corporation */ if (!PhoneGap.hasResource("filetransfer")) { Pho...
// https://jbum.com/cdg_revealed.html /* In the CD+G system, 16 color graphics are displayed on a raster field which is 300 x 216 pixels in size. The middle 294 x 204 area is within the TV's "safe area", and that is where the graphics are displayed. The outer border is set to a solid color. The colors are store...
'use strict'; const Mongoose = require('mongoose'); const Schema = Mongoose.Schema; module.exports = function (N, collectionName) { let Ignore = new Schema({ // user who is ignoring messages from: Schema.Types.ObjectId, // user whose messages are ignored to: Schema.Types.ObjectId, /...
// copyright Jonathan Topf 2014 // class to create singing character // requires THREE.js // requires commands.js var Singer = {}; // ---------------------------------------------------------------------------------------------------- // constructor // --------------------------------------------------------------...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { increment, decrement } from '../../logic/actions/'; const About = ({ count, onIncrement, onDecrement }) => { return ( <div> Counter <div> <dl className="counter-display"> <...
'use strict'; //Start by defining the main module and adding the module dependencies angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies); // Setting HTML5 Location Mode angular.module(ApplicationConfiguration.applicationModuleName).config(['$loc...
// Chargement du fichier index.html affiché au client var server = http.createServer(function(req, res) { fs.readFile('./index.html', 'utf-8', function(error, content) { res.writeHead(200, {"Content-Type": "text/html"}); res.end(content); }); }); // Chargement de socket.io var io = require('so...
module.exports = require('../dist/Collapse');
'use strict' // code mostly from https://github.com/sindresorhus/ora let console = require('./console') let color = require('./color') let errors = require('./errors') class Spinner { constructor (options) { this.options = Object.assign({ text: '' }, options) this.ansi = require('ansi-escapes') ...
import webpack from 'webpack' import { join, sep } from 'path' require('dotenv').config() import * as config from './config.js' export default { entry: { bundle: [`.${sep}` + join('src', 'js', 'index.js')], vendor: [`.${sep}` + join('src', 'js', 'vendor.js')] }, output: { filename:...
angular.module('eventApp') .controller('insertReturn_Ctr', function ($scope,executeResults ,$http, $route, $rootScope, $location ,$routeParams) { });
const Model = require('../libraries/model'); const Card = require('../schemas/card-schema'); class CardModel extends Model { findRandomDeck() { return this.SchemaModel.find().execAsync() .then(collection => (this.shuffle(collection).slice(0, 8))); } shuffle(array) { let currentIndex = array.length; ...
(function (GRA) { "use strict"; GRA.kernel = GRA.kernel || {}; /** * Classe Bus * Permet l'échange d'information (de Message) entre les applications * * @constructor */ GRA.kernel.Bus = function Bus() { /** * @type {object} */ var subscribers ...
'use strict'; // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT |...
var SplashLudusLayer = cc.Layer.extend({ init:function() { this._super(); var background = cc.Director.getInstance().getWinSizeInPixels(); var label = cc.LabelTTF.create("START!", "GhoulySolidRegular", 70); label.setPosition(new cc.Point(background.width / 2, back...
module.exports = estimateFloat; function estimateFloat(predicate) { var r = 0, l = predicate.length; switch (l) { case 1: r = predicate[0]; break; case 2: r = predicate[0] + predicate[1]; break; case 3: r = predicate[0] + predicate[1] + predicate[2]; break; case 4:...
var DialogCoolDownLayer = cc.Layer.extend({ ctor:function () { this._super(); var size = cc.winSize; var backgroundLayer = new cc.LayerColor(); backgroundLayer.setColor(cc.color(0,0,0)); backgroundLayer.opacity = 230; this.addChild(backgroundLayer); var pag...
var _ = require('underscore') , pg = require('pg') , config = require('../config.js'); function getWindowsForId (id, options, callback) { if(_.isFunction(options)) { // Check if we want to use the default options callback = options; options = { windows: 200 }; } else if(!_.isObject(options)) { ...
/* globals msgStream */ import _ from 'underscore'; const removeUserReaction = (message, reaction, username) => { message.reactions[reaction].usernames.splice(message.reactions[reaction].usernames.indexOf(username), 1); if (message.reactions[reaction].usernames.length === 0) { delete message.reactions[reaction]; ...
var should = require('should'), sinon = require('sinon'), _ = require('lodash'), Promise = require('bluebird'), hbs = require('express-hbs'), utils = require('./utils'), configUtils = require('../../utils/configUtils'), moment ...
/** * @fileoverview Used for creating a suggested configuration based on project code. * @author Ian VanSchooten */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const ...
/* @echo header */ var _local ; /** * ### Version <!-- @echo VERSION --> * Issue collector widget * * @module <!-- @echo MODULE --> * @class <!-- @echo NAME_FULL --> */ var jira = { }; /** * Do stuff * * @method publicMethod */ jira.publicMethod = function() { }; ...
/* Copyright (c) 2012-2013 Jonathan Soma https://github.com/jsoma/tabletop */ (function(global) { "use strict"; var inNodeJS = false; if (typeof process !== 'undefined') { inNodeJS = true; var request = require('request'); } // from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference...
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var crypto = require('crypto'); var UserSchema = new Schema({ name: String, email: { type: String, lowercase: true }, role: { type: String, default: 'user' }, hashedPassword: String, provider: String, ...
module.exports = { staticFileGlobs: [ 'dist/**.html', 'dist/**.js', 'dist/**.css', 'dist/assets/images/*', 'dist/assets/*.png' ], runtimeCaching: [{ urlPattern: /api\.themoviedb\.org/, handler: 'networkFirst' }], root: 'dist', stripPrefix: 'dist/', navigateFallback: '/index.htm...
// flow-typed signature: 41fc84c2298f453122e152f42cda58a5 // flow-typed version: <<STUB>>/wdio-mocha-framework_v^0.5.4/flow_v0.35.0 /** * This is an autogenerated libdef stub for: * * 'wdio-mocha-framework' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share...
'use strict'; require('./init'); require('./lib'); // Is Server. // Import Init if (Meteor.isServer) { require('./server'); } // Is Client // Import libs if (Meteor.isClient) { require('./client'); }
import React from 'react'; import PropTypes from 'prop-types'; import { MainInfoContainer, PosterContainer, PosterImage, AnimeDetails, Row, TitleDetail, Detail, } from 'style/animeMainInfo'; const AnimeMainInfo = props => ( <MainInfoContainer> <PosterContainer> <PosterImage src={props.poster...
export const extensionID = 'fcmdkgabkdkmdnbppfliniacpgadhcpo';
'use strict'; var $ = require('jquery'); var Confirm = require('pandora-confirm'); var Widget = require('pandora-widget'); var matcher = { regexp: /<embed\s+[^>]*?src="(.+?)"[^>]*>/gim, lookup: function (arr, item) { // id 转成字符串 return (arr.indexOf(item.src) !== -1); } }; function itemExist...
//GLOBALS var APP = require("core"); var CONFIG = arguments[0]; var audioPlayer = {}; //FUNCTIONS var init = function() { APP.log("debug", "radio_milwaukee.init | " + JSON.stringify(CONFIG)); $.NavigationBar.setBackgroundColor(APP.Settings.colors.primary || "#000"); if(CONFIG.isChild === true) { $.NavigationBar....
import './blaze.js'; import './object.js'; import './string.js'; import './ui.js'; import './user.js'; import './utils.js'; import './viewer.js';
let DiceRoller = require('roll-dice'); let diceRoller = new DiceRoller(); let result1 = diceRoller.roll('d20'); let result2 = diceRoller.roll('2d8+2'); let result3 = diceRoller.roll('[ cat | dog | fish ]'); console.dir(result1); console.dir(result2); console.dir(result3);
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Holodeck = require('../../../../holodeck'); /* jshint ignore:line */ var Request...
import React from 'react'; import Seeding from './Seeding'; import Checking from './Checking'; import Downloading from './Downloading'; import Error from './Error'; import Status from './Status'; function StatusDetails({ torrent }) { if (torrent.hasErrors) { return <Error torrent={torrent} />; } if (torren...
import Ember from 'ember' const {Router} = Ember import config from './config/environment' const DemoRouter = Router.extend({ location: config.locationType, rootURL: config.rootURL }) DemoRouter.map(function () { this.route('demo', {path: '/'}, function () { this.route('overview', {path: '/'}) this.rout...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'blog-client-jsonapi-ember', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build ...
/*global Backbone:true */ /*! Podcasts | https://github.com/mozilla/high-fidelity */ 'use strict'; // Require.js allows us to configure shortcut alias require.config({ paths: { backbone: 'lib/backbone', localstorage: 'lib/backbone.localstorage', jed: 'lib/jed', // jsmad: 'lib/jsmad...
import Promise from 'bluebird'; import mongoose from 'mongoose'; import DateProcess from '../Helpers/DateProcess'; // const debug = require('debug')('chatify-server:index'); /** * Message schema * Stores the registered Message data * @author: Mithun Das * */ const Schema = mongoose.Schema; const ObjectId = Schema.Ob...
import Ember from 'ember'; import SerialPort from '../utils/serial-port'; const { Service, computed } = Ember; const { Promise } = Ember.RSVP; export default Service.extend({ serialPortFactory: window.require("serialport"), init() { this.set('ports', {}); }, baudRate: 9600, dataBits: 8, stopBits: 1,...
const toolingPresetVue = require('../') test('main', () => { expect(typeof toolingPresetVue).toBe('function') })
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var CIL; (function (CIL) { var Runtime; (function (Runtime) { var OpCodes; ...