code
stringlengths
2
1.05M
var tdf = require('./../index.js'); var expect = require('chai').expect; describe("events", function() { before(function() { tdf.quietDefine = true; }); after(function() { tdf.quietDefine = false; }); var calls, isCalled; beforeEach(function() { calls = 0; isCalled = function() { calls+...
var eventsService = require('../data/events'), usersService = require('../data/users'); var CONTROLLER_NAME = 'events'; module.exports = { getCreate: function (req, res, next) { res.render(CONTROLLER_NAME + '/event-create-form') }, create: function (req, res, next) { var userId = req.u...
"use strict"; const gcsstorage = require("@google-cloud/storage"); const GoogleCloudStorage = require("../index"); const chai = require("chai"); const expect = chai.expect; const assert = chai.assert; const bufferEqual = require("buffer-equal"); const request = require("request"); const fs = require("fs"); const path =...
/* bundleLogger ------------ Provides gulp style logs to the bundle method in browserify.js */ var gutil = require('gulp-util'); var prettyHrtime = require('pretty-hrtime'); var startTime; module.exports = { start: function() { startTime = process.hrtime(); gutil.log('Running', gutil.colors.green("'bu...
import React from 'react'; import { prefixLink } from 'gatsby-helpers'; import DocumentTitle from 'react-document-title'; import Product from '../components/Product'; import Hexagon from '../components/Hexagon'; import ProductFinder from '../components/ProductFinder'; import CatalogueForm from '../components/CatalogueF...
var inputoperandA = document.querySelector("#operand_a"); var inputOperator = document.querySelector("#operator"); var output = document.querySelector("#output"); var error = document.querySelector("#error"); var showError = function(){ error.setAttribute("class", ""); }; var hideError = function(){ error.setAttrib...
/** * Copyright 2014 GetHuman LLC * Author: Jeff Whelpley * Date: 10/21/14 * * */ var name = 'middleware/jng.pages'; var taste = require('../../pancakes.angular.taste'); var jng = taste.target(name); var utils = taste.target('middleware/jng.utils'); var filters = taste.target('middl...
fleetManager.panel.Home = function (config) { config = config || {}; Ext.apply(config, { baseCls: 'modx-formpanel', layout: 'anchor', /* stateful: true, stateId: 'fleetmanager-panel-home', stateEvents: ['tabchange'], getState:function() {return {activeTab:this.items.indexOf(this.getActiveTab())};}, ...
$(document).ready(function() { var container = $('.masonry-container'); container.imagesLoaded( function () { container.masonry({ columnWidth: '.initiative', itemSelector: '.initiative' }); }); $('.carousel').carousel({ interval: false }) });
// should-be-like.js /* * Copyright (c) 2016-2017 James Leigh, Some Rights Reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,...
// Add your polyfills here
import React from 'react' import { Message } from 'shengnian-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ShorthandExample from 'docs/app/Components/ComponentDoc/ShorthandExample' const Ch...
/** * UserCountry schema * @type {SimpleSchema} */ Schemas.UserCountry = new SimpleSchema({ name: { type: String }, code: { type: String, regEx: /^[A-Z]{2}$/ } }); /** * UserProfile * @type {SimpleSchema} */ Schemas.UserProfile = new SimpleSchema({ picture: { ...
export const levels = [ { xp: 200, reward: 100, name: "Nice" }, { xp: 700, reward: 500, name: "Good" }, { xp: 1400, reward: 1000, name: "Great" }, { xp: 3000, reward: 2000, name: "Excellent" }, { xp: 7000, reward: 5000, name: "Wondeful" }, ...
'use strict'; angular.module('mean.auth').config(['$stateProvider', function($stateProvider) { $stateProvider.state('auth example page', { url: '/auth/example', templateUrl: 'auth/views/index.html' }); } ]);
(function () { "use strict"; window.app.views.CommentPlaceholder = Backbone.View.extend({ className: "comment comment--placeholder", tagName: "li", template: "comment-placeholder", render: function() { var template = this.compileTemplate(this.template); this.$el.html(template()); ...
var m = m || false; var imgs = []; if (m && m.images && m.images.length > 0) imgs = m.images; $(function(){ var visible = 0, add = false; var pswpElement = document.querySelectorAll('.pswp')[0]; var FixSize = (function(){ var E = function() { // Меряем размер панельки заголовков var WW = $(window).width(...
const ping = require('ping') const speech = require('../speech') /** * Ping the server. * @param {string} host IP or Domain * @param {number} [num=1] Ping count * @returns {Promise<object, object>} Object or Error */ const getPing = (host, num = 1) => { return new Promise((resolve, reject) => { if (/^(\d{1,...
/** * Created by 殿麒 on 2015/11/3. */ function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } purchase.controller('goodsDetails',function($rootScope,$scope,$location,$cookieS...
import 'velocity-animate'; import 'velocity-animate/velocity.ui'; import templateUrl from './template.html'; import ngModule from '../../module'; class AvLoaderController { constructor($element) { this.av = { $element }; this.active = false; } start() { this.active = true; this.animate(); ...
export default [ { x1: 18, y1: 50, x2: 30, y2: 50, }, { x1: 18, y1: 50, x2: 18, y2: 22, }, { x1: -6, y1: 22, x2: 18, y2: 22, }, { x1: 30, y1: 50, x2: 30, y2: 10, }, { x1: 6, y1: 10, x2: 30, y2: 10, }, { x1: -6, y1: 22, ...
module.exports = { "parser": "babel-eslint", "rules": { "indent": [ 2, 2 ], "quotes": [ 2, "single" ], "linebreak-style": [ 2, "unix" ], "semi": [ 2, "always" ], "no-shadow" : 0, "no-cond-assign" : 2, ...
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
'use strict'; /* global routeToRegExp: false */ /** * @ngdoc object * @name angular.mock * @description * * Namespace from 'angular-mocks.js' which contains testing related code. * */ angular.mock = {}; /** * ! This is a private undocumented service ! * * @name $browser * * @description * This service i...
var Lab = require('lab'); var Code = require('code'); var Proxyquire = require('proxyquire'); var lab = exports.lab = Lab.script(); var stub = { RedirectActions: {}, xhr: function () { stub.xhr.guts.apply(this, arguments); } }; var JsonFetch = Proxyquire('../../../client/helpers/jsonFetch', { '../actions...
import { describe, it, beforeEach, afterEach } from 'mocha'; import { expect } from 'chai'; import startApp from '../../../helpers/start-app'; import destroyApp from '../../../helpers/destroy-app'; describe('Acceptance: | route |', function() { let application; beforeEach(function() { application = st...
'use strict'; // Declare app level module which depends on views, and components var app = angular.module('myApp', [ 'ngRoute', 'ngCookies', 'myApp.viewAuctions', 'myApp.viewSuppliers', 'myApp.viewAuctionDetails', 'myApp.viewSupplierDetails', 'myApp.viewAccount', 'myApp.viewAdminPanel' ]); app.config(...
game.SpearThrow = me.Entity.extend({ init: function (x, y, settings, facing) { this._super(me.Entity, 'init', [x, y, { image: "spear", width: 48, height: 48, spritewidth: "48", spriteheight: "48", getShape: function(){ return (new me.Rect(0, 0, 32, 64)).toPolygon(); } }]); this.alwaysU...
import codesEnum from "enum/codes.enum"; import a from "model/first.model"; import b from "model/second.model"; var models = {}; models[codesEnum.FIRST] = a; models[codesEnum.SECOND] = b; export default { getClass: function (type) { return models[type]; } };
'use strict'; var express = require('express'), app = express(), logger = require('./logger'), config = require('./config'); // Add the required parameters require('./setup')(app); require('./routes')(app); module.exports = app; var hostname = process.argv[2] || config.ip; var port = process.env.PORT || ...
'use strict'; const device = require('./device'); const types = require('./types'); const Scope = require('../base/scope'); class Uniform { get name() { return this._name; } get value() { return this._value; } set value(v) { this._value = v; this._write(); } get header() { return `${this._signature};`; }...
var simpleturing = (function() { function Machine(initial, states) { this.run = function(initialdata, position, defaultvalue) { var tape = initialdata.slice(); if (position == null) position = 0; var state = initial; ...
/* eslint-disable flowtype/require-valid-file-annotation */ export default from './Radio'; export Radio, { LabelRadio } from './Radio'; export RadioGroup from './RadioGroup';
/** * Created by Mark on 24-3-2016. */ 'use strict' module.exports = function(sequelize, DataTypes) { var Exhibition = sequelize.define('Exhibition', { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true, allowNull: fa...
(function(ng){ 'use strict'; ng .module('AbsenceChecker',[ 'ionic', 'AbsenceChecker.config', 'AbsenceChecker.pages', 'AbsenceChecker.services' ]); })(angular);
import actionTypes from 'Actions/actionTypes'; export default (state = {}, action) => { switch (action.type) { case actionTypes.UPDATE_SCANS: { const scanForHost = state.scanForHost || {}; const scanForCurrHost = { [action.payload.host]: action.payload.scan, }; const newScanForHos...
/*! * jQuery Scrollify * Version 1.0.19 * * Requires: * - jQuery 1.7 or higher * * https://github.com/lukehaas/Scrollify * * Copyright 2016, Luke Haas * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal...
module.exports = require('./lib/assets');
'use strict'; angular .module('angular.extras.core') .factory('AeTableService', ['NgTableParams', '$q', function () { return { /** * Process a row column bases object-array structure and generate excel like cell number. The input should be * like: * * var rows = [{ * ...
const massive = require("massive"); const aws = require('aws-sdk'); const spawn = require('lib/spawn'); const log = require('log-colors'); const sm = require('sitemap'); const get_slug = require('speakingurl'); const AWS_ACCESS_KEY_ID = process.env['AWS_ACCESS_KEY_ID']; const AWS_SECRET_ACCESS_KEY = process.env['AWS_S...
/*! * jQuery JavaScript Library v1.11.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-01-23T21:02Z */ (function( global, factory ) { if...
// @flow import FetcherBase from '../rb-appbase-universal/fetcherBase' export default class FetcherClient extends FetcherBase { constructor( url: string, payloads: any, UserToken1: ?string, UserToken2: string ) { super( url, UserToken1, UserToken2 ) this.payloads = payloads } async f...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/*jshint node:true*/ 'use strict'; module.exports = function(config) { return { compass: { files: [config.source + '/scss/**/*.{scss,sass}'], tasks: ['compass:server'] }, haychtml: { files: [config.pages + '/*.html'], tasks: ['haychtml'] }, livereload: { options: { livereload: config.liv...
//= require modernizr /* * Test for SubPixel Font Rendering * (to infer if GDI or DirectWrite is used on Windows) * Authors: @derSchepp, @gerritvanaaken, @rodneyrehm, @yatil, @ryanseddon * Web: https://github.com/gerritvanaaken/subpixeldetect */ Modernizr.addTest('subpixelfont', function() { var bool, ...
'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...
// Automatically generated by scripts/createStyleInterpolations.js at Tue Jun 20 2017 00:01:09 GMT+0900 (JST) // Imported atelier-sulphurpool-dark.css file from highlight.js export default ` /* Base16 Atelier Sulphurpool Dark - Theme */ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-scheme...
var pkg = require('../package.json'); var txtdmn = pkg.theme_infos.textdomain; var setupindexphp = ['<?php', '/**', '* The main app file', '*', '@package '+pkg.name, '@since '+pkg.version, '*/', 'get_header();', '?>', '', '', '<!-- Example Top navbar fixed-->', '<heade...
/** * @license angular-data-router v0.3.10 * (c) 2017 Michal Dvorak https://github.com/mdvorak/angular-data-router * License: MIT */ (function dataRouterModule(angular) { "use strict"; /** * @ngdoc overview * @name mdvorakDataRouter * @requires mdvorakDataApi * * @description ...
// Helper functions that converts some common sub/unsub patterns // to useEffect model (i. e. make them return a unsubscripion function) import { useEffect } from 'react'; export function withEventListener(element, event, handler) { element.addEventListener(event, handler); return () => element.removeEventListene...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.provider = undefined; exports.shallowEqual = shallowEqual; exports.observeStore = observeStore; exports.configureStore = configureStore; var _redux = require('redux'); function _toConsumableArray(arr) { if (Array.isArray(arr)) { f...
import React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; /* eslint-disable max-len */ const FacebookIcon = props => ( <SvgIcon viewBox="0 0 216 216" {...props}> <path d="M204.1,0H11.9C5.3,0,0,5.3,0,11.9v192.2c0,6.6,5.3,11.9,11.9,11.9h103.5v-83.6H87.2V99.8h28.1 v-24c0-27.9,17-43.1,41.9-43.1c11...
process.env.NO_DEPRECATION = 'send'; var assert = require('assert'); var fs = require('fs'); var http = require('http'); var path = require('path'); var request = require('supertest'); var send = require('..') var should = require('should'); // test server var dateRegExp = /^\w{3}, \d+ \w+ \d+ \d+:\d+:\d+ \w+$/; va...
'use strict'; angular.module('mapQuestApp') .controller('ParticipantsCtrl', ['$scope', '$routeParams', 'User', function ($scope, $routeParams, User) { $scope.view = {}; $scope.view.loading = true; $scope.view.participants = []; User.getParticipants($routeParams.quest) ...
var spawn = require('child_process').spawn; var gaze = require('gaze'); // The process where the commands are being run var cmdProcess; var queue = []; var running = false; // Default options var options = { verbose: false, interrupt: true, useQueue: false, pattern: ['**/*', '!**/node_modules/**'] }; module....
export const LOGIN_STATUS = 'LOGIN_STATUS'; export const LOGIN_USER = 'LOGIN_USER'; export const REGISTER_USER = 'REGISTER_USER'; export const LOGOUT_USER = 'LOGOUT_USER'; export const CREATE_GAME = 'CREATE_GAME'; export const END_GAME = 'END_GAME'; export const JOIN_GAME = 'JOIN_GAME'; export const LEAVE_GAME = 'LEA...
module.exports = (function(){ console.log("--stateProvider"); this.game_state = {}; this.loadCurrentState = function(game_state){ this.game_state = game_state; }; this.getPot = function(){ //handle return 222; }; this.getCurrentState = function() { return this.game_state; }; this.g...
(function (window, undefined) { 'use strict'; function setUpActiveTab() { if(localStorage.getItem('main-nav')){ $('a[href="'+ localStorage['main-nav'] + '"]').tab('show'); } } function setUpOptionsCheckboxes() { if(localStorage.getItem('options')){ var optionsArr = JSON.parse(localStorage.options), ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
'use strict' var path = require('path'); var req = require.context("../../../../api/models", true, /\.js$/); // an array of all files in folder var fileNames = req.keys(); var serverModels = {}; for (var name in fileNames) { if (fileNames.hasOwnProperty(name)) { var model = req(fileNames[name]); if (mod...
/** * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * Oracle Mobile Cloud Service Sync JavaScript SDK, Release: 16.4.5.0, E76062-04 */ (function(g){ // disable RequireJS and AMD var _define, _exports; if(typeof define === 'function' && define.amd){ _define = define; define = undefin...
/** * Pipedrive API v1 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * ...
var models = require('../models'); var Account = models.Account; var loginPage = function(req, res) { res.render('loggedOut', {csrfToken: req.csrfToken()}); }; var mainPage = function(req, res) { res.render('mainPage', {csrfToken: req.csrfToken()}); }; var logout = function(req, res){ req.session.destroy...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPairs = exports.spreadKeys = exports.or = exports.omitByUndefined = exports.mapValues = exports.isPlainObject = exports.get = exports.flow = exports.castArray = undefined; var _lodash = require('lodash.get'); var _lodash2 = _int...
'use strict'; angular.module('myApp.home', ['ngRoute','firebase']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/home', { templateUrl: 'home/home.html', controller: 'HomeCtrl' }); }]) .controller('HomeCtrl', ['$scope','$location','CommonProp','$firebaseAuth',function($scope,$l...
'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...
DeleteCommand = new Class({ Implements: ICommand, targetIndex: null, initialize: function(){}, setTargetIndex: function(val) { this.targetIndex = val; }, // Remove the target from the canvas execute: function() { this.canvas.removeChildAt(this.targetIndex); }, // Place target back in the...
'use strict'; module.exports = function(express) { const router = express.Router(); const async = require('async'); const db = require('../server/db.js'); let users = require('../models/users.js'); let intolerances = require('../models/intolerances.js'); router.route('/') .put((req, res) => { let...
/* ----------------------------------------------- /* How to use? : Check the GitHub README /* ----------------------------------------------- */ /* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ /* particlesJS.load('particles-js', 'particles.json', function() { cons...
import MinifyPlugin from 'babel-minify-webpack-plugin' export default (env, argv) => { const PROD = !!(argv.mode && argv.mode === 'production') if (PROD) { process.env.NODE_ENV = 'production' } return { entry: './src/js/App.js', output: { path: PROD ? `${__dirname}/dist` : `${__dirname}/src/...
// Relation // --------------- 'use strict'; const _ = require('lodash'); const inflection = require('inflection'); const Helpers = require('./helpers'); const ModelBase = require('./base/model'); const RelationBase = require('./base/relation'); const Promise = require('./base/promise'); const constants = require('./...
import React from "react" import { Grid, Container, Label, Segment, Header} from 'semantic-ui-react' import ContactForm from '../components/form' import SiteNav from '../components/site-nav' export default ({ data }) => { const post = data.markdownRemark return ( <div> <SiteNav></SiteNav> <Segment ...
var express = require('express'); var router = express.Router(); router.get('/', function(req, res){ req.logout(); res.redirect('/login'); }); module.exports = router;
/** * * Link * */ import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from './Wrapper'; function Link(props) { const { onClick } = props; return ( <Wrapper onClick={() => onClick()}> {props.children} </Wrapper> ); } Link.propTypes = { // properties children: PropT...
require('dotenv').config(); var assert = require('chai').assert; var expect = require('chai').expect; var Slamback = require('../slamback'); const readFile = require('fs-readfile-promise'); // https://my-ideas-slack.slack.com var configSet = {"slackChan":"#slamback-dev", "slackToken": process.env.SLACK_TOKEN}; // my...
/** * Module dependencies. */ if(!process.env.NODE_ENV) process.env.NODE_ENV = 'development'; var express = require('express') , crypto = require('crypto') , jws = require('jws') , http = require('http') , https = require('https') , path = require('path') , fs = require('fs') , date = require('date-uti...
/* --- name: "App.Behaviors" description: "DEPRECATED" license: - "[GNU Lesser General Public License](http://opensource.org/licenses/lgpl-license.php)" - "[MIT License](http://opensource.org/licenses/mit-license.php)" authors: - "Shock <shocksilien@gmail.com>" requires: - LibCanvas provides: App.Behaviors ....
// import axios from 'axios' import EditableTextInput from './EditableTextInput' export default class EditableUrlInput { constructor (element) { this.element = element this.endpoint = this.element.dataset.endpoint this.url = this.element.dataset.url this.anchor = this.element.queryS...
import competitions from './competitions'; import auth from './auth'; import users from './users'; import leagues from './leagues'; import bets from './bets'; import info from './info'; export { competitions, auth, users, leagues, bets, info };
d3.json('/data/weekly.json', function(data) { nv.addGraph(function() { var chart = nv.models.stackedAreaChart() .margin({right: 100}) .x(function(d) { return d[0] }) //We can modify the data accessor functions... .y(function(d) { return d[1]*100 }) //...in...
/* ======================================================================== * STAN Utils: Stan * Author: Andrew Womersley * ======================================================================== */ (function($STAN, CustomConfig) { 'use strict'; var Tag = !!CustomConfig.tag ? CustomConfig.tag : 'body'; va...
export function initialize(registry, application) { application.inject('route', 'ieCheck', 'service:ie-check'); application.inject('router:main', 'ieCheck', 'service:ie-check'); application.inject('controller', 'ieCheck', 'service:ie-check'); } export default { name: 'ie-check', initialize: initialize };
var path = require('path'); var appRoot = 'src/'; var outputRoot = 'dist/'; module.exports = { root: appRoot, source: appRoot + '**/*.ts', html: appRoot + '**/*.html', css: appRoot + '**/*.css', style: 'styles/**/*.css', output: outputRoot, doc:'./doc', e2eSpecsSrc: 'test/e2e/src/*.js', e2eSpecsDist...
'use strict'; angular.module('raml') .value('snippets', { options: ['options:', ' description: <<insert text or markdown here>>'], head: ['head:', ' description: <<insert text or markdown here>>'], get: ['get:', ' description: <<insert text or markdown here>>'], post: ['post:', ' description: <<i...
/* * * SettingsPage * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import makeSelectSettingsPage from './selectors'; import messages from './...
'use strict'; var key = 'YOURAPIKEY' , SparkPost = require('sparkpost') , client = new SparkPost(key) , options = { id: 'TEST_ID' , data: {} }; client.templates.preview(options, function(err, res) { if (err) { console.log(err); } else { console.log(res.body); console.log('Congrats you ...
Template.somModels.events({ 'click .load-model':function(event) { FlowRouter.go('learn', {id: FlowRouter.getParam("id")}, {m: event.target.id}); }, 'click .del-model': function(event) { Meteor.call('SOM:delete', event.target.id); }, 'submit .compute-som': function(event, instance) { console.log('called subm...
#!/usr/bin/env node-canvas /*jslint indent: 2, node: true */ "use strict"; var Canvas = require('../lib/canvas'); var canvas = new Canvas(320, 320); var ctx = canvas.getContext('2d'); var fs = require('fs'); var eu = require('./util'); ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.scale(3, 3); // Create gra...
'use strict'; exports.generateAppleScript = dir => { const terminalCommand = `tell application "Terminal" do script "cd ${dir}" in front window end tell`.split('\n').map(line => (` -e '${line.trim()}'`)).join(''); const iTermCommand = `tell application "iTerm" tell current session of current window ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { sources: 'https://newsapi.org/v1/sources', articles: 'https://newsapi.org/v1/articles' };
'use strict'; /** * @ngdoc module * @name ngAria * @description * * The `ngAria` module provides support for common * [<abbr title="Accessible Rich Internet Applications">ARIA</abbr>](http://www.w3.org/TR/wai-aria/) * attributes that convey state or semantic information about the application for users * of ass...
import React, { Component } from 'react'; import { connect } from 'react-redux'; const mapStateToProps = (state) => { return { teachers: state.adminReducer.teachers }; }; class TeachersDropdown extends Component { constructor(props) { super(props); this.state = { selectedTeacherId: null }...
var system = require('system'); if (system.args.length === 1) { console.log('Try to pass some args when invoking this script'); phantom.exit(0); } else { system.args.forEach(function (arg, i, array) { console.log(i + ': ' + arg + ' [' + array + ']'); }); phantom.exit(0); }
var gulp = require('gulp'); var del = require('del'); var gulp_less = require('gulp-less'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var minifyCSS = require('gulp-minify-css'); var coffee = require("gulp-coffee"); var ngAnnotate = require('gulp-ng-annotate'); var gutil = require('gulp-u...
const Backbone = require('backbone'); require('backbone.marionette'); const Template = require('ui/template/loader.hbs'); module.exports = Backbone.Marionette.View.extend({ template: Template, modelEvents: { 'change:isLoading': 'render' } });
module.exports = { autoRoutesEnabled: true, clusteringEnabled: false, compressionEnabled: true, requestLimitKB: 5120, keepAliveTimeoutSeconds: 30, includeErrorStackInResponse: true, viewEngine: 'ejs', controllerPath: './controllers', controllerSuffix: '-controller', controller...
// App Start. (function() { console.warn('beep…boop…beep\n%c🙇 hello world!', 'font-size: 16px'); })();
import React from 'react'; import { storiesOf } from '@storybook/react'; import Container from './Container'; import Autocomplete from 'react-widgets/lib/Autocomplete'; let generateNames = global.generateNames; let props = { data: generateNames(), valueField: 'id', textField: 'fullName', placeholder: 'type s...
const authEvents = require('./events/auth') const contentEvents = require('./events/content') const preferenceEvents = require('./events/preference') const googlePhotosEvents = require('./events/google-photos') const googleAnalyticsEvents = require('./events/google-analytics') module.exports.init = () => { authEvents...
// Export // ====== var example = { ip: '88.72.237.61', klab: { data : { lat : 52.5167, lng : 13.4, name : 'KLab-Berlin', details : 'Immer am Unterrichten' }, info : { type : 'Cluster', id : '42', city : 'Berlin/Würzburg', area : 'The Internet', country : 'Deutschland', n...