code
stringlengths
2
1.05M
var geometryCalcs = (function() { // Inputs and outputs var type = "poly"; var num_sides = 6; var len1 = 0; var len2 = 0; var len3 = 0; var len4 = 0; var len5 = 0; var len6 = 0; var int_radius = 0; var ext_radius = 0; var int_dia = 0; var ext_dia = 0; var height = 0; v...
const axios = require('axios') window.addEventListener('message', (event) => { console.log("RECEIVED POSTED DATA FROM ELECTRON") const type = event.data.type if (type === 'contacts') { axios.post('/api/contacts', event.data.data) } if (type === 'messages') { axios.post('api/messages', event.data.da...
angular.module('BitToriousApp').controller('UserController', ['$scope', '$location', 'growl', 'Restangular', function($scope, $location, growl, Restangular) { console.log("Initializing AngularJS UserController."); // Administrators Restangular.all('users').getList().then(function(users) { console.log("Loaded " ...
version https://git-lfs.github.com/spec/v1 oid sha256:90e7d7c357311c3ffd0e68e4dab3ef81877aba928cb48fef6f4b66e013da1b45 size 1095
import { include } from 'lodash'; import { CHOOSE_PREMIUM, CHOOSE_FEATURED, CHOOSE_STANDARD, IS_ASYNC } from '../../actions/ActionNames'; /* 1 - premium , 2 - featured, 3 - standard */ const choosePackageInitialState = { packageKind: 1, isChecked: 0, isOpenPremium: 0, isOpenFeatured: 0, isOpenStandard: 0, isAsyn...
import * as ActionTypes from '../model/action-types'; import * as Constants from '../model/constants'; import { getAwardForGrant, getEditAwards, getGrantReason, getSettings, getUserHighlight, getUserInspect, getUsername, getUsers, getUsersForGrant } from '../model/selector/selectors'...
import React from "react"; import { connect } from "react-redux"; import MyApp from "../components/my-app"; import Actions from "../actions"; function mapStateToProps(state) { return state; } function mapDispatchToProps(dispatch) { return { onClickLogo: function() { dispatch({ ...
import Capability from '../index' let mockContainer = [] const mockStoppingFn = jest.fn(() => { mockContainer.push('stopping...') }) const mockStoppingPreventsFn = jest.fn(() => { mockContainer.push('stopping...') return true }) const mockUninstalledFn = jest.fn(() => { mockContainer.push('uninstalled...') }) ...
angular.module('proxtop').config(['$mdThemingProvider', function(themingProvider) { themingProvider.theme('default') .primaryPalette('blue-grey') .accentPalette('blue') .dark(); }]);
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['backbone', 'underscore', 'marionette'], function (Backbone, _, Marionette) { return factory(Backbone, _, Marionette); }); } else if (typeof exports !== 'undefined') { var Backbone = req...
/** * combinator.js * * @author <a href="https://github.com/pahund">Patrick Hund</a> * @since 01 Jul 2016 */ import fullRange from "../processors/fullRange"; import enabled from "../processors/enabled"; import button from "../processors/button"; import messages from "../messages"; const mapping = new Map([ [ ...
/* Ship.js KC3改 Ship Object */ (function(){ "use strict"; var deferList = {}; window.KC3Ship = function( data, toClone ){ // Default object properties included in stringifications this.rosterId = 0; this.masterId = 0; this.level = 0; this.exp = [0,0,0]; this.hp = [0,0]; this.afterHp = ...
var APT_HUNT_LIB = APT_HUNT_LIB || {}; var _ = _ ? _ : {}; var console = console ? console : {}; $(document).ready(function () { <!-- $("#results .collapse").collapse(); --> $("#rooms").chosen({width: "100px"}); //$("#reload_select").chosen({width: "500px"}); $("#example").dataTable( ...
var _ = require('lodash') var auth = require('basic-auth') var Hasher = require('./Hasher') var oo = require('@carbon-io/carbon-core').atom.oo(module) /*************************************************************************************************** * @class HttpBasicAuthenticator * @extends Authenticator */ mo...
/** * Module dependencies. */ var express = require('express') , passport = require('passport') , site = require('./site') , oauth = require('./oauth') , user = require('./user') // Express configuration var app = exports.app = express(); app.set('view engine', 'ejs'); app.use(express.logger()); app....
/** * @license * lodash 3.10.0 (Custom Build) <https://lodash.com/> * Build: `lodash include="filter,merge,omit" -d -o .lodash/lodash.js` * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2015 Jeremy Ashkenas, D...
angular.module('loginApp') /** * Directive to solve the form autofill data * as desribed in this blog post: * https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec */ .directive('formAutofillFix', function ($timeout) { return function (scope, element, attrs...
'use strict' var SAP = require('p2/src/collision/SAPBroadphase') var AABB = require('p2/src/collision/AABB') exports.name = 'p2.js sweep and prune' exports.prepare = function(boxes) { var bodies = [] for(var i=0; i<boxes.length; ++i) { var box = boxes[i] bodies.push({ id: i, aabb: new AABB({ ...
var passport = require('passport'); const jwtAuthGuard = passport.authenticate('jwt', { session: false }) exports.jwtAuthGuard = jwtAuthGuard
 var boxSize = 70; var boxMargin = 17; var floorMargin = 16; var borderWidth = 7; var selectedBox; var links = []; var values = new Array(16); var solutions; var pattern1_names = ["Tekton","Vasa","Guards","Mages","Shamans","Muta","Vangs","Vesp"]; var pattern1 = []; var pattern2_names = ["Tekton","Muta...
/** * * Datepicker * * Simple material-ui datepicker which, however, does not trigger on an input field * but on a button. We try to load the german intl DateTimeFormat. Upon failure we * take the default english. * * Triggers `selectDate` method from the Calendar container onChange. */ import React from 'react'; impo...
/* globals Lo-Dash */ // https://github.com/rwjblue/ember-cli-pretender define('sockjs', [], function() { "use strict"; return { 'default': SockJS }; });
import Auth from './Auth' const baseUrl = 'http://localhost:5000' const getOptions = () => ({ mode: 'cors', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } }) const handleJsonResponse = res => res.json() const applyAuthorizationHeader = (options, authenticated) => { if (...
describe('typeaheadPopup - result rendering', function () { var scope, $rootScope, $compile; beforeEach(angular.mock.module('sm.molecules.typeahead')); // beforeEach(module('template/typeahead/typeahead-popup.html')); // beforeEach(module('template/typeahead/typeahead-match.html')); beforeEach(inject(functi...
#!/usr/bin/env node var path = require('path') var fs = require('fs') var colors = require('colors/safe') var packageJson = require('./../package.json') var argv = require('yargs') .option('run', { alias: 'r', describe: 'Run a sal application - `sal --run <path>`' }) .option('test', { alias: 't', ...
/*! iScroll v5.1.3-master ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */ (function (window, document, Math) { var rAF = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || funct...
/*** Copyright 2020 Teun Duynstee Licensed under the Apache License, Version 2.0 ***/ !function(n,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():n.firstBy=t()}(this,function(){return function(){function n(n){return n}function t(n){return"string"==typeof n?n.toLowerCase...
const attach = require('../../../src/extensions/ignite') const path = require('path') const jetpack = require('fs-jetpack') test('has the right interface', () => { expect(typeof attach).toBe('function') const toolbox = { print: {}, parameters: { options: {}, }, system: { which: () => t...
import React from 'react'; import { Layout, Cell, Text } from 'wix-style-react'; export default () => ( <div> {'<Layout>'} <Layout> <Cell>{text('<Cell>Header</Cell>')}</Cell> <Cell> {'<Layout>'} <Layout> <Cell span={2}>{text('<Cell span={2}><div >Left</div></Cell>')}</...
'use strict'; angular.module('modulePlannerApp') .directive('dimissMessage', function ($timeout) { return { template: '<p class="help-block">{{message}}</p>', restrict: 'E', scope: { message: '=message' }, link: function postLink(scope, element, attrs) { scope.$watch...
'use strict'; const passport = require('passport'); module.exports = function(app) { let ctrl = app.controllers.user; app.post('/register', ctrl.addUser); app.post('/login', passport.authenticate('local'), function(req, res) { res.status(200).json('ok your are authenticated!'); }); };
/*jshint camelcase:false*/ /*globals Point*/ /*exported NearestPoint*/ var NearestPoint = (function( Point ) { 'use strict'; /* Adapted to JavaScript from: Solving the Nearest Point-on-Curve Problem and A Bezier Curve-Based Root-Finder by Philip J. Schneider from "Graphics Gems", Academic ...
// check that selector is unique and matches the given html element function testSelector(element, selector) { var check = document.querySelectorAll(selector); if(check.length && check.length === 1 && check[0] === element) { return true; } return false; } // check if element is an anchor tag and generate...
import fetchLatest from 'actions/home' import {RECEIVE_LATEST} from 'actions/home' const initState = {} export default (state = initState, action) => { switch (action.type) { case RECEIVE_LATEST: return { ...state, ...action.data } default: return state } }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _Slide = require('./Slide'); Object.defineProperty(exports, 'Slide', { enumerable: true, get: function get() { return _interopRequireDefault(_Slide).default; } }); var _Grow = require('./Grow'); Object.defineProperty(expor...
/** * Created by a58 on 16/6/29. */
import { isObj, isArr, isFn, isStr, isNum, isThenable } from './types' import mapValues from './mapValues' import { GET_TABLE } from './constants' let createDispatche = table => { if (!isObj(table)) { throw new Error(`createDispatche(table): Expected table to be an object which is ${ table }`) } let dispatch = (k...
/*! * Ash (Another Syntax Highlighter) - jQuery syntax highlighter * * @license The MIT License * Copyright (c) 2013-* Alban COQUOIN acoquoin@gmail.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...
'use strict'; /** * Module dependencies. */ var postcss = require('postcss'); var lodash = require('lodash'); /** * Register the PostCSS plugin. */ module.exports = postcss.plugin('postcss-bad-selectors', plugin); /** * PostCSS plugin definition. * * @param {Function} cb * @return {Function} */ function p...
var oauth2 = require('../'); var clientStrategy = new oauth2.InMemoryClientStrategy({ authStrategy: 'params', clients: [{ id: 'client', secret: 'secr3t', grantTypes: ['authorization_code', 'client_credentials'], redirectUris: ['http://localhost:3001/cb'], status: 'active' }] }); var userStr...
var assert = require('assert') var index = require('../index') var packageJson = require('../package.json') describe('index', function () { var injector it('exposes module version to runtime', function () { assert.ok(index.version, packageJson.version) }) it('inject() with overrides', function (done) { index...
'use strict'; var mongoose = require('mongoose'), LocalStrategy = require('passport-local').Strategy, TwitterStrategy = require('passport-twitter').Strategy, FacebookStrategy = require('passport-facebook').Strategy, GitHubStrategy = require('passport-github').Strategy, GoogleStrategy = require('passport-goog...
$(document).ready(function(){ ("#title").fadeIn(slow); });
/** * Usage: 针对fs的一些操作 * Author: Spikef < Spikef@Foxmail.com > * Copyright: Envirs Team < http://envirs.com > */ var fs = require('fs'); var path = require('path'); var BUF_LENGTH = 64 * 1024; var BUF_EMPTY = new Buffer(BUF_LENGTH); exports.copyFileSync = function(source, target, options) { option...
const { test } = require('tap'); const zam = require('../'); const { steps, up, $ } = require('./test-utils'); test('z-class-*', t => { // Conditional class name t.plan(2); up(`<h4 class="thing" z-class-red="warning" z-class-blue="!warning"></h4>`); let view = zam(document.body); view.warning = false; steps( ()...
var path = require('path'); var fs = require('fs'); var glob = require('glob'); var _ = require('lodash'); var loadGruntConfig = require('load-grunt-config'); var defaults = { bundlesPath : path.join(process.cwd(), 'grunt_bundles'), configPath: 'config', tasksPath: 'tasks' }; module.exports = function...
import React from "react" import ReactTestUtils from "react-dom/test-utils" import NoundSelect from './NoundSelect' describe("NoundSelect", () => { it("renders a NoundSelect", () => { const tuRenderer = ReactTestUtils.createRenderer() const props = {} const noundSelect = tuRender...
/** * Module dependencies. */ var helper = require("../test_helper"), assert = helper.assert, mapper = helper.Mapper, X = new Date; describe("Client", function() { it('should get a scalar value', function(done) { mapper.client.scalar('select count(*) from information_schema.columns', function(err, cou...
/** * Created by liuhuizhi on 15/11/21. */ require.config({ baseUrl: '/LorF/src/lib', paths: { zepto: 'zepto.min', swiper: 'tools/swiper', fastclick: 'tools/fastclick', mustache: 'tools/mustache.min', }, shim: { zepto: { exports: '$' }, ...
/* */ module.exports = function(hljs) { return { contains: [ { begin: /[^\u2401\u0001]+/, end: /[\u2401\u0001]/, excludeEnd: true, returnBegin: true, returnEnd: false, contains: [ { begin: /([^\u2401\u0001=]+)/, end: /=([^\u2401\u0001=]+)/, re...
var requireDir = require('require-dir'); requireDir('./gulp/tasks', { recurse: true });
// Write a script that finds the maximal sequence of equal elements in an array. var arr, arrSequence, i, len, count =1, bestSquence = 1, num = 0; arr = [2, 3, 5, 6, 2, 2, 2, 2, 1]; arrSequence = []; for (i = 1, len = arr.length-1; i <= len; i+=1) { if (arr[i] === arr[i-1]) { cou...
/** * * @name: ExtPlaneJs * @author: Wade Wildbore - Bluu Interactive * @description: ExtPlane TCP Connector for NodeJS * @see: https://github.com/vranki/ExtPlane - For more information */ var ExtPlaneEmitter = require('./ExtPlaneJs'); var ExtPlane = new ExtPlaneEmitter(require('./config.json')); // Loaded CB Ex...
import React from 'react'; import ReactDOM from 'react-dom'; import ListingItem from './ListingItem.js'; import { MemoryRouter } from 'react-router'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<MemoryRouter> <ListingItem index={0} item={{ thumbnail...
'use strict'; const addtimestamps = (_obj) => { for (let i = 0, arrsize = _obj.length; i < arrsize; i++) { let timestamp = new Date(); _obj[i]['createdAt'] = timestamp; _obj[i]['updatedAt'] = timestamp; } return _obj; } module.exports = addtimestamps;
Function.prototype.twice = function () { var original = this; var called = 0; return function () { if (called++ < 2) { return original.apply(this, argsToArray(arguments)); } }; };
var __extends = 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 tsUnit; (function (tsUnit) { var Test = (function () { function Test() { v...
;(function(){ jsonReq.post('/json/attendance',"isCheck",{},function(data){ if(data.result === false){ $('#checkinout').text('签到'); }else{ $('#checkinout').text('签退'); } $('#checkinout').click(function(){ var _this = $(this); jsonReq.post('/json/attendance',"check",{},function(data){ if(data.re...
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 113640008, "Date": "12\/30\/2011", "Time": "01:17 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "...
import { cubicToLinear } from 'src/coordinates'; export default class Hexal { constructor(x, y, d, baseType, empty) { this.x = x; this.y = y; this.z = 0 - x - y; this.d = d; this.i = cubicToLinear([x, y, 0-x-y]); this.baseType = baseType || 'default'; this.empty = empty || false; } }
import getLineMidPoint from './getLineMidPoint'; import createFrame from './createFrame'; import getPercentages from './getPercentages'; import getFromToForPoints from './getFromToForPoints'; import { head, pipe, map, memoize, partial } from 'ramda'; const createLineFrame = partial(createFrame, ['line']); const getPo...
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { graphql, useStaticQuery } from 'gatsby'; import { Header, Link, Nav } from '~components'; // ────────────────...
/* Generic Canvas Layer for leaflet 0.7 and 1.0-rc, copyright Stanislav Sumbera, 2016 , sumbera.com , license MIT originally created and motivated by L.CanvasOverlay available here: https://gist.github.com/Sumbera/11114288 */ /* eslint-disable */ // -- L.DomUtil.setTransform from leaflet 1.0.0 to work on 0....
const fs = require('fs-extra') const path = require('path') const appRoot = require('app-root-path').path const _infoForPkg = require('../core/_info-for-pkg') const writePackageInfoToUnpmPackages = require('./write-package-info-to-unpm-packages') const {syncMissingMetaFiles} = require('node-unity-guid-utils') const tra...
var express = require('express'); var app = express(); app.set('port', (process.argv[2] || 3000)); app.set('view engine', 'jsx'); app.set('views', __dirname + '/views'); app.engine('jsx', require('express-react-views').createEngine()); require('node-jsx').install(); app.use('/', function(req, res) { res.render('in...
var d3 = require('d3'); var attrs = require('plugins/heatmap/vis/components/utils/attrs'); var baseLayout = require('plugins/heatmap/vis/components/layout/layout'); var gGenerator = require('plugins/heatmap/vis/components/elements/g'); function layoutGenerator() { var layout = baseLayout(); var group = gGenerator(...
(function() { 'use strict'; angular .module('quickSight') .run(runBlock); /** @ngInject */ function runBlock($log) { $log.debug('runBlock end'); } })();
var BlockStream = require("../") var blockSizes = [16]//, 25]//, 1024] , writeSizes = [4, 15, 16, 17, 64 ]//, 64, 100] , writeCounts = [1, 10]//, 100] , test = require('tape') writeCounts.forEach(function (writeCount) { blockSizes.forEach(function (blockSize) { writeSizes.forEach(function (writeSize) { test("...
require(TEST_HELPER); const request = require('supertest'); const routes = require(__server + '/index.js'); const _ = require(__server + '/utilities.js'); const sinon = require('sinon'); const db = require(__server + '/db.js'); const players = require(__server + '/models/players'); describe('API "/players"', function(...
/* Safari doesn't support CSS `scroll-behavior: smooth`, so here is a compatible solution for all browser to smooth scrolling See: <https://css-tricks.com/snippets/jquery/smooth-scrolling/> Warning: It must be called after all `<a>` tags (e.g., the dynamic TOC) are ready. */ $(function() { const $topbarWra...
const styles = require('./styles'); const ReactNative = require('react-native'); const React = require('react'); const { Dimensions, Animated, PanResponder, View, TouchableWithoutFeedback, } = ReactNative; const deviceScreen = Dimensions.get('window'); const { Component, } = React; /** * Size of the amou...
Package.describe({ name: 'srinivas:commemorative-days', version: '0.0.1', // Brief, one-line summary of the package. summary: '', // URL to the Git repository containing the source code for this package. git: '', // By default, Meteor will default to using README.md for documentation. // To avoid submit...
/** @constructor */ ScalaJS.c.scala_xml_Utility$ = (function() { ScalaJS.c.java_lang_Object.call(this); this.SU$1 = 0 }); ScalaJS.c.scala_xml_Utility$.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_xml_Utility$.prototype.constructor = ScalaJS.c.scala_xml_Utility$; ScalaJS.c.scala_xml_Utilit...
import React, { Component } from 'react' import { Link } from 'react-router-dom' import './publicprofilelink.scss' class PublicProfileLink extends Component { render() { return ( <div className='public-profile-link__wrapper'> <Link to='profile/test'>Публичен профил</Link> </div> ) } }...
var htmlparser2 = require('htmlparser2');
 $(document).ready(function () { $('#LogOutUrl').click(function() { localStorage.removeItem('scToken'); }); });
Template.registerHelper('translateUnit', function(id) { var unit = UnitsList.findOne({ _id: id }); if (unit) { return unit.name; } else { // Ultimately this should never happen. return "???"; } }); Template.registerHelper('orNA', function(text) { if (text) { return text; } else { ...
/* * Copyright (C) 2012 Binux <17175297.hk@gmail.com> * * This file is part of YAAW (https://github.com/binux/yaaw). * * YAAW is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of ...
'use strict'; const LinkedList = require('internal/linked-list'); test('push(buf)', () => { const buf1 = Buffer.from([1, 2, 3, 4, 5]); const buf2 = Buffer.from([6, 7, 8, 9, 10]); const list = new LinkedList(); list.push(buf1); list.push(buf2); expect(list.length).toEqual(buf1.length + buf2.length); ex...
Meteor.subscribe('userscount') Meteor.subscribe('vendorscount') Template.accountBalances.helpers({ CBD: function () { var userId = Meteor.userId() Meteor.call("CBDbalance", [Meteor.userId()], function (error, result) { if (error) { console.log(error.reason) } else { Session....
import Player from './Player'; import BaseTrack from 'kaku-core/models/track/BaseTrack'; import Firebase from '../../modules/wrapper/Firebase'; class RemotePlayer { constructor() { this._initialized = false; this._onPlayerPlay = this._onPlayerPlay.bind(this); this._onPlayerPause = this._onPlayerPause.bi...
import pg from 'pg' import logger from '~/logger' import config from '~/config' // this initializes a connection pool const pool = new pg.Pool(config.postgres) pool.on('error', (err, client) => { // if an error is encountered by a client while it sits idle in the pool // the pool itself will emit an error event w...
var msXMLVersions = [ "MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp" ]; var ajax = {}; var app = {}; app.todos = {}; app.initializationUrl = "/api/list"; ajax.x = function() { if (typeof XMLHttpRequest !== 'undefined') { ret...
var fs = require('fs'); var chalk = require('chalk'); var socket_io = require('socket.io'); var plugin = require('./plugin'); var files = require('./files'); var logMsg = require('./utils').logMsg; var commands = {}; var socketEvents = [ 'error', 'connect', 'disconnect', 'newListener', 'removeListener' ]; fu...
var angular = require('angular'); require('./templates'); angular.module('main', [require('./module_a'), "templates"]) .controller('AppCtrl', function ($scope) { $scope.title="Im Angular! Im your friend."; });
import CoMenu from './menu'; import CoMenuItem from './menu-item'; import CoSubmenu from './submenu-wrapper'; import CoMenuGroup from './menu-group'; export { CoMenu, CoMenuItem, CoSubmenu, CoMenuGroup };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_filter_center_focus = exports.ic_filter_center_focus = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm...
// placeholderPlugin{ import {Plugin} from "prosemirror-state" import {Decoration, DecorationSet} from "prosemirror-view" let placeholderPlugin = new Plugin({ state: { init() { return DecorationSet.empty }, apply(tr, set) { // Adjust decoration positions to changes made by the transaction set = s...
module.exports = { roles: { moderator: 'Baby Sitters', //moderator role user: 'Special Babbies 👶', //role for !join command naughty: 'Naughty Corner', }, channels: { welcome: 'welcome', //welcome channel for !join command music: 'music', //text channel for music commands musicVC: 'Music-a...
var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); const path = require('path'); const rootDir = path.resolve(__dirname, '..'); module.exports = { entry: { 'polyfills': './src/polyfills.ts', 'ven...
var annotated_dup = [ [ "sf", null, [ [ "XInputDevice", "classsf_1_1_x_input_device.html", "classsf_1_1_x_input_device" ] ] ], [ "V3DCamera", "class_v3_d_camera.html", "class_v3_d_camera" ], [ "V3DLight", "struct_v3_d_light.html", "struct_v3_d_light" ], [ "V3DLightShader", "class_v3_d_light_sh...
{ /* global angular, APP_NAME, moment */ angular.module(APP_NAME).controller('eventsViewCtrl', eventsViewCtrl); eventsViewCtrl.$inject = ['$state', '$stateParams', 'eventsService', 'gamesService', 'dialogService', 'errorService']; function eventsViewCtrl($state, $stateParams, eventsService, gamesService, di...
/** * @module mumath/loop * * Looping function for any framesize */ module.exports = require('./wrap')(function (value, left, right) { //detect single-arg case, like mod-loop if (right === undefined) { right = left; left = 0; } //swap frame order if (left > right) { var tmp = right; ...
import _ from 'lodash'; import Value from './Value'; const FALSE_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF']; export default class Boolean extends Value { get type() { return 'boolean'; } // private castValue(value) { if (value === '') { return null; } return !_...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
import React from 'react' import { PlansList } from './index' const planTypes = [ { title: 'CURATORS FAVOURITES', subtitle: 'Find out the favourite objects and exhibits from our curators', path: '/plan/curators-favourites', backgroundUrl: 'http://www.portlandmuseum.org/sites/default/files/styles/eve...
define(['common/http', 'app/config'], function($http, $config) { function GenericService(basepath){ this.Basepath = $config.webserviceRoot + basepath; this.getAll = function(filterDto){ var url = this.Basepath + (filterDto ? '/?filtro=' + encodeURIComponent(JSON.stringify(filterDto))...
var expect = require('chai').expect, fsCheck = require('../../lib/index.js').id('missingMother'), doc = require('../../docs/util.js'), utils = require('../test-utils.js'), FS = utils.FS; describe('missingMother', function(){ it('should return nothing when there is a mother', function() { var chi...
export default { key: 'Bb', suffix: 'aug9', positions: [ { frets: '1223', fingers: '1223', barres: 2 }, { frets: '5645', fingers: '2413' }, { frets: '7889', fingers: '1223', barres: 8 }, { frets: 'bcab', fingers: '2413' } ...
var path = require('path'); var camelCase = require('camelcase'); // Lodash functions for that are stripping $ which we use for special keys var decamelize = require('decamelize'); var CpTranslations = require('cp-translations'); module.exports = function (options) { function pgConfig () { return { name: ...