code
stringlengths
2
1.05M
import database from "../api/database"; import * as types from "../actions/ActionTypes" const receiveAspects = aspects => ({ type: types.GET_COMMON_ASPECTS, aspects }); export const getCommonAspects = () => dispatch => { database.getCommonAspects(aspects => { dispatch(receiveAspects(aspects)) }) }; expo...
var https = require('https'), q = require('q'), cache = require('./cache').cache; var API_KEY = process.env.TF_MEETUP_API_KEY; var fetch_events = function () { var deferred = q.defer(); var options = { host: 'api.meetup.com', path: '/2/events?&sign=true&photo-host=public&group_urlname=GOTO-Night-Sto...
/* globals Ember, require */ (function() { var _Ember; var id = 0; var dateKey = new Date().getTime(); if (typeof Ember !== 'undefined') { _Ember = Ember; } else { _Ember = require('ember').default; } function symbol() { return '__ember' + dateKey + id++; } function UNDEFINED() {} f...
import Resolver from 'ember/resolver'; var resolver = Resolver.create(); resolver.namespace = { modulePrefix: 'todo-app' }; export default resolver;
export { default } from './ui' export * from './ui.selectors' export * from './tabs'
/* Credits: Most of the original code seems to have been written by George Michael Brower. The changes I've made include adding background particle animations, text placement and modification, and integration with a sparkfun heart rate monitor by using Pubnub and johnny-five. INSTRUCTIONS ...
define("resolver", [], function() { "use strict"; /* * This module defines a subclass of Ember.DefaultResolver that adds two * important features: * * 1) The resolver makes the container aware of es6 modules via the AMD * output. The loader's _seen is consulted so that classes can be *...
(function() { 'use strict'; var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = express(); // view engine setup app.set('v...
"use strict"; var C = function () { function C() { babelHelpers.classCallCheck(this, C); } babelHelpers.createClass(C, [{ key: "m", value: function m(x) { return 'a'; } }]); return C; }();
var assert = require('assert'); var fs = require('fs'); var requireFiles = require(__dirname + '/../lib/requireFiles'); var files = [ __dirname + '/moch/custom_test.txt', __dirname + '/moch/json_test.json', __dirname + '/moch/test.js' ]; describe('requireFiles testing', function(){ describe('Structure...
export default function() { var links = [ { icon: "fa-sign-in", title: "Login", url: "/login" }, { icon: "fa-dashboard", title: "Dashboard", url: "/" }, { icon: "fa-calendar", titl...
const Koa = require('koa'); const http = require('http'); const destroyable = require('server-destroy'); const bodyParser = require('koa-bodyparser'); const session = require('koa-session'); const passport = require('koa-passport'); const serve = require('koa-static'); const db = require('./db'); const config = requir...
PhotoAlbums.Router.map(function() { this.resource('login'); this.resource('album', {path: '/:album_id'}); this.resource('photo', {path: 'photos/:photo_id'}); });
import Icon from '../components/Icon.vue' Icon.register({"arrows":{"width":1792,"height":1792,"paths":[{"d":"M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-384v384h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-384h-384v128q0 26-19 45t-45 19-45-19l-256-256...
import { h, Component } from 'preact'; import moment from 'moment'; const MonthPicker = ({ onChange, ...props }) => ( <select onChange={onChange} id="select-month">{ optionsFor("month", props.date) }</select> ); const DayPicker = ({ onChange, ...props }) => ( <select onChange={onChange} id="select-date">{ options...
'use strict'; angular.module('users').factory('Permissions', ['Authentication', '$location', function(Authentication, $location) { // Permissions service logic // ... // Public API return { //check if user suits the right permissions for visiting the page, Otherwise go to 401 userRolesContains: functio...
import $ from 'jquery'; import keyboard from 'virtual-keyboard'; $.fn.addKeyboard = function () { return this.keyboard({ openOn: null, stayOpen: false, layout: 'custom', customLayout: { 'normal': ['7 8 9 {c}', '4 5 6 {del}', '1 2 3 {sign}', '0 0 {dec} {a}'], }, position: { // null...
/** * Trait class */ function Trait(methods, allTraits) { allTraits = allTraits || []; this.traits = [methods]; var extraTraits = methods.$traits; if (extraTraits) { if (typeof extraTraits === "string") { extraTraits = extraTraits.replace(/ /g, '').split(','); }...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Game = mongoose.model('Game'), Team = mongoose.model('Team'), Player = mongoose.model('Player'), async = require('async'); exports.all = function(req, res) { Game.find({'played': true}).exec(function(err, games) { if (err)...
(function(){ 'use strict'; angular.module('GamemasterApp') .controller('DashboardCtrl', function ($scope, $timeout, $mdSidenav, $http) { $scope.users = ['Fabio', 'Leonardo', 'Thomas', 'Gabriele', 'Fabrizio', 'John', 'Luis', 'Kate', 'Max']; }) })();
const express = require('express'); const router = express.Router(); const routes = require('./routes')(router); module.exports = router;
var HDWalletProvider = require("truffle-hdwallet-provider"); var mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"; module.exports = { networks: { development: { provider: function () { return new HDWalletProvider(mnemonic, "http://127.0.0.1...
var ExtractTextPlugin = require("extract-text-webpack-plugin"); var HtmlWebpackPlugin = require("html-webpack-plugin"); var path = require("path"); var webpack = require("webpack"); var projectTemplatesRoot = "../../ppb/templates/"; module.exports = { context: path.resolve(__dirname, "src"), entry: { a...
var h = require('hyperscript') var human = require('human-time') exports.needs = {} exports.gives = 'message_meta' exports.create = function () { function updateTimestampEl(el) { el.firstChild.nodeValue = human(new Date(el.timestamp)) return el } setInterval(function () { var els = [].slice.call(...
version https://git-lfs.github.com/spec/v1 oid sha256:e40a08695f05163cfb0eaeeef4588fcfad55a6576cfadfb079505495605beb33 size 27133
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * 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...
var map; var bounds; var markers = {}; var cluster_polygons = {}; var zoomTimeout; var cluster_center_overlay; var white_overlay; var overlay_opacity = 50; var OPACITY_MAX_PIXELS = 57; var active_cluster_poly; var marker_image; var center_marker; var cluster_center_marker_icon; function createMap() { bounds = new ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { MultiSelect } from '../../src' class MultiSelectWithStringValues extends Component { constructor(props) { super(props) this.state = { value: [] } } handleChange = (event) => { const { valueKey } = this.p...
/*! * Module dependencies. */ var util = require('util'), moment = require('moment'), super_ = require('../Type'); /** * Date FieldType Constructor * @extends Field * @api public */ function datearray(list, path, options) { this._nativeType = [Date]; this._defaultSize = 'medium'; this._underscoreMethods...
if ( !window.console ) window.console = { log:function(){} }; jQuery(document).ready(function($) { console.log('Keep being awesome.'); });
'use strict'; var emojiArr = require('./emojis'); var i = 0; var existingRules = {}; var generateEmoji = function(selector) { if (!existingRules[selector]) { existingRules[selector] = emojiArr[i]; if (i !== emojiArr.length) { i++ } else { i = 0; } } retur...
var fractal = fractal || {}; fractal.workerPaths = { "mandelbrot": "public/js/mandel.js", }; fractal.Fractal = function (canvas, workerCount) { this.canvas = canvas; this.workerCount = workerCount; this.workerDoneCount = 0; this.ctx = canvas.getContext("2d"); this.width = canvas.width; this.height = c...
describe('raureif', function () { it('test', function () { }); });
/** * @file ui/core/styleguide/index//html/01-body/40-main/main.js * @description Listeners on the body, iframe, and rightpull bar. */ /* istanbul ignore if */ if (typeof window === 'object') { document.addEventListener('DOMContentLoaded', () => { const $orgs = FEPPER_UI.requerio.$orgs; const { uiFns...
"use strict"; (function() { // "todos-angular" is just a hard-code id for storage var LOCAL_STORAGE_KEY = 'todos-angular'; var ENTER_KEY = 13; var ESC_KEY = 27; var internalFilters = { active: function(toDoItem) { return !toDoItem.completed; }, completed: functi...
define(function() { return { draw: function(context, t) { var x = this.getNumber("x", t, 100), y = this.getNumber("y", t, 100), size = this.getNumber("size", t, 60), h = this.getNumber("h", t, 40), colorLeft = this.getColor("colorLeft", t, "#999999"), colorRight = this.getColor("col...
import React from 'react'; import {connect} from 'cerebral-view-react'; import styles from './styles.css'; import { isObject, isArray, isString, isBoolean, isNumber, isNull } from 'common/utils'; import JSONInput from './JSONInput'; import connector from 'connector'; function isInPath(source, target) { i...
'use strict'; function valuefy(value) { if (typeof value !== 'object') { return (typeof value === 'string') ? `"${value}"` : value; } let values = []; if (Array.isArray(value)) { for (const v of value) { values.push(valuefy(v)); } values = `[${values.join(',')}]`; } else { for (let v in value) { ...
export default class TasksService { static async fetchTasks() { const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); await delay(1000); return [ { id: 0, description: "task1", status: "Active" }, { id: 1, description: "task2", status: "Active" }, ]; } }
/** * Vasya Hobot * * Copyright (c) 2013-2014 Vyacheslav Slinko * Licensed under the MIT License */ function Message(chat, body) { this._chat = chat; this._body = body; } Message.prototype.getChat = function() { return this._chat; }; Message.prototype.getBody = function() { return this._body; ...
import React from 'react'; import { shallow } from 'enzyme'; import UserProfile from '../UserProfile'; import Wrapper from '../Wrapper'; describe('<UserProfile />', () => { it('should render <Wrapper />', () => { const wrapper = shallow(<UserProfile />); expect(wrapper.find(Wrapper).length).toEqual(1); }...
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; import LookCell from './LookC...
var cv = require('../lib/opencv'); var COLOR = [0, 255, 0]; // default red var thickness = 2; // default 1 cv.readImage('./files/mona.png', function(err, im) { if (err) throw err; if (im.width() < 1 || im.height() < 1) throw new Error('Image has no size'); im.detectObject('../data/haarcascade_frontalface_alt2....
// ======================================================================== // SproutCore -- JavaScript Application Framework // Copyright ©2006-2011, Strobe Inc. and contributors. // Portions copyright ©2008 Apple Inc. All rights reserved. // ======================================================================== s...
import React, {Component} from 'react'; import PdfJS from './pdfJS'; import Contract from "../../contract"; import Event from '../../event'; import AnnotationLoader from '../../annotator/loader'; class Viewer extends Component { constructor(props) { super(props); this.state = ({ page_n...
var ratio = require('ratio') function error(actual, expected) { return Math.abs(actual - expected) / expected } function approx(target, max) { max = (max || 10) // find a good approximation var best = 1, j, e, result for (var i = 1; i < max; i++) { j = Math.round(i * target) e ...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
/** * Write the input to the paramsified file * * --- * INPUTS: * * - FILES * Write the list of files to the paramsified file (line feed after each filename). * * - STRINGS * Write the strings (concatenated) to the paramsified file. * * - STRING * Write the string to the paramsified file. * * - UN...
(function () { "use strict"; /** * This module have an ability to contain constants. * No one can reinitialize any of already initialized constants */ var module = (function () { var constants = {}, hasOwnProperty = Object.prototype.hasOwnProperty, prefix = (M...
var address = ''; var config = {}; var requestGroupId = 0; var readRequestsTodo = 0; var readRequestsDone = 0; var scanRequestsTodo = [0, 0, 0]; var scanRequestsDone = [0, 0, 0]; var scanResults = []; var requestSentCounter = 0; var requestSuccessCounter = 0; var requestFailureCounter = 0; var requestInProgress = false...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
module.exports = { parserOptions: { sourceType: 'script', }, };
window.ImageViewer = function(url, alt, title){ var img = $('<img />').attr('src', url).attr('alt', title).css({ display: 'inline-block', 'max-width': '90vw', 'max-height': '90vh' }); var a = $('<a></a>').attr('target', '_blank') .attr('title', title) .attr('h...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
define("helios/Helios-Debugger", ["amber/boot", "amber_core/Kernel-Objects", "helios/Helios-Core", "helios/Helios-Workspace"], function($boot){ var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals; smalltalk.addPackage('Helios-Debugger'); smalltalk.packages["Helios-Debugger"].transport = {"ty...
/** * Error for services to through when they encounter a problem with the request. * Distinguishes between a bad service request and a general error */ function ServiceError(message) { this.name = "ServiceError"; this.message = (message || ""); } ServiceError.prototype = Object.create(Error.prototype, { construc...
import shaven from 'shaven' const svgNS = 'http://www.w3.org/2000/svg' export default function (svg, config) { const yDensity = 0.1 const yRange = config.max.value - config.min.value const graphHeight = config.height * 0.8 const graphWidth = config.width * 0.95 const coSysHeight = config.height * 0.6 con...
import Ember from "ember"; export default Ember.Route.extend({ model: function() { return this.store.query('answer', {correct: true}); } });
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { 'use strict'; return "/**\n\ * Converts an RGB color to HSB (hue, saturation, brightness)\n\ * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl}\...
/** * Demo App for TopcoatTouch */ $(document).ready(function() { <% if (kitchenSink) { if (mvc) { %> // Create the topcoatTouch object var tt = new TopcoatTouch({menu: [{id: 'help', name: 'Help'}, {id: 'info', name: 'Info'}, {id: 'about', name: 'About'}]}); tt.on(tt.EVENTS.MENU_ITEM_CLICKED, functi...
const sizeOf = { object: function () { return function (object) { let $start = 0 $start += 1 * object.array.length + 2 return $start } } () } const serializer = { all: { object: function () { return function (object, $buffer, $start)...
import modelExtend from 'dva-model-extend' import { create, remove, update } from '../services/user' import * as usersService from '../services/users' import { pageModel } from './common' import { config } from 'utils' const { query } = usersService const { prefix } = config export default modelExtend(pageModel, { ...
var blueMarker = L.AwesomeMarkers.icon({ icon: 'record', prefix: 'glyphicon', markerColor: 'blue' }); var airportMarker = L.AwesomeMarkers.icon({ icon: 'plane', prefix: 'fa', markerColor: 'cadetblue' }); var cityMarker = L.AwesomeMarkers.icon({ icon: 'home', markerColor: 'red' }); var...
/** * jspsych plugin for categorization trials with feedback and animated stimuli * Josh de Leeuw * * documentation: docs.jspsych.org **/ jsPsych.plugins["categorize-animation"] = (function() { var plugin = {}; jsPsych.pluginAPI.registerPreload('categorize-animation', 'stimuli', 'image'); plugin.info = ...
'use strict'; var app = angular.module('Fablab'); app.controller('GlobalPurchaseEditController', function ($scope, $location, $filter, $window, PurchaseService, NotificationService, StaticDataService, SupplyService) { $scope.selected = {purchase: undefined}; $scope.currency = App.CONFIG.CURRENCY; $s...
export const ic_my_location_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M13 3.06V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06c-...
import Form from 'cerebral-module-forms/Form' import submitForm from './chains/submitForm' import resetForm from './chains/resetForm' import validateForm from './chains/validateForm' export default (options = {}) => { return (module, controller) => { module.addState(Form({ name: { value: '', ...
"use strict"; define("ace/snippets/scala", ["require", "exports", "module"], function (require, exports, module) { "use strict"; exports.snippetText = undefined; exports.scope = "scala"; });
'use strict'; module.exports = { set: function (v) { this.setProperty('src', v); }, get: function () { return this.getPropertyValue('src'); }, enumerable: true };
'use strict'; exports.connect = function () { var mongoose = require('mongoose'), config = require('../config'), options = { user : config.mongo.user, pass : config.mongo.pass }; mongoose.connect(config.db, options); return mongoose.connection; };
//APP var app = angular.module('PortfolioApp', ['ngRoute', 'slick']); //ROUTING app.config(function ($routeProvider) { "ngInject"; $routeProvider .when('/', { controller: "HomeController", templateUrl: "js/angular/views/home-view.html" }) .when('/work/:projectId', { controller: 'ProjectController', templa...
import { moduleForModel, test } from 'ember-qunit'; import Pretender from 'pretender'; // ToDo: Install ember-cli-faker import mocks from './mocks'; const { inventoryMock, productMock, componentsMock } = mocks; let mockServer; moduleForModel('inventory', 'Unit | Serializer | inventory', { needs: ['serial...
+(function () { 'use strict'; angular .module('DashboardApplication') .controller('FileManagerRemoveFolderController', ['$scope', '$q', 'Event', 'FoldersRest', FileManagerRemoveFolderController]); function FileManagerRemoveFolderController($scope, $q, Event, FoldersRest) { var vm ...
/** * @module {Module} utils/math * @parent utils * * The module's description is the first paragraph. * * The body of the module's documentation. */ import _ from 'lodash'; /** * @function * * This function's description is the first * paragraph. * * This starts the body. This text comes after the sign...
// *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configuration option. // // You can read more here: // https://on.cypress.io/plugins-g...
var box, mbox; function demo() { cam ( 0, 20, 40 ); world = new OIMO.World(); world.add({ size:[50, 10, 50], pos:[0,-5,0] }); // ground var options = { type:'box', size:[10, 10, 10], pos:[0,20,0], density:1, move:true } box = world.add( options ); ...
var fs = require('fs'), cons = require('consolidate'), dust = require('dustjs-linkedin'); var pages = [ 'index', 'contact', 'faq', 'registration', 'sponsors', 'travel', 'visit', 'volunteers' ]; pages.forEach(function(page) { cons.dust('views/'+page+'.dust', { views: __dirname+'/views'}, function(err, htm...
'use strict'; module.exports = function (grunt) { var exec = require('child_process').exec; grunt.registerMultiTask('install-dependencies', 'Installs npm dependencies.', function () { var cb, options, cp; cb = this.async(); options = this.options({ cwd: '', stdout: true, stderr: tru...
const electron = require('electron'); const ipcRenderer = electron.ipcRenderer; window.onload = function() { ipcRenderer.send('game-preview-loaded'); } ipcRenderer.on('game-preview-start', function(event, data) { var app = new Application({ // resize: true, fullscreen: true, antyAliasing: true, ...
module.exports = { token: 'TELEGRAM_BOT_TOKEN', polling: { timeout: 3, limit: 100 } };
Template.friendPosts.onCreated(function() { Bisia.Notification.resetNotify('note', 'post'); }) Template.friendPosts.helpers({ getPost: function(postId) { var post = Posts.findOne(postId); if (post) { var user = Users.findOne({ '_id': post.authorId }, { 'fields': { 'username': 1, 'profile.city': 1, ...
import { all, takeEvery } from 'redux-saga/effects'; import actions from '#actions'; import handleShareFormChange from './startAlbumsSharingService/handleShareFormChange'; import handleShareFormSubmit from './startAlbumsSharingService/handleShareFormSubmit'; import handleShareItemsSelect from './startAlbumsSharingSer...
var fs = require('fs'), eol = require('eol'), path = require('path'), mkdirp = require('mkdirp'), watch = require('watch'); var specialFiles = { 'welcome.md': function(fileContent, consoleContent) { consoleContent.welcome = processFileContent(fileContent); }, 'config.json': function...
const determineTestFilesToRun = ({ inputFile, inputArgs = [], config }) => { const path = require("path"); const fs = require("fs"); const glob = require("glob"); let filesToRun = []; if (inputFile) { filesToRun.push(inputFile); } else if (inputArgs.length > 0) { inputArgs.forEach(inputArg => files...
// nodejs按行读取文件流 var Stream = require('stream').Stream, util = require('util'); var LineStream = function() { this.writable = true; this.readable = true; this.buffer = ''; }; util.inherits(LineStream, Stream); LineStream.prototype.write = function(data, encoding) { if (Buffer.isBuffer(data)) { data = data.to...
'use strict'; /** * Module dependencies. */ var users = require('../../app/controllers/users'), goaliedash = require('../../app/controllers/goaliedash'); module.exports = function(app) { app.route('/goaliedash') .get(users.requiresLogin, users.hasAuthorization); };
// @flow import React from 'react' import withPropsStream from '@vega/utils/withPropsStream' import {map} from 'rxjs/operators' import styles from './styles/Communicator.css' import ThreadList from './ThreadList' import CreateComment from './CreateComment' function getPropsStream(props$) { // todo: implement open/c...
var models = require('../models'); var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { console.log(req.session); res.render('layout'); }); module.exports = router;
(function() { 'use strict'; process.env.debug_sql = true; var Class = require('ee-class') , log = require('ee-log') , assert = require('assert') , fs = require('fs') , QueryContext = require('related-query-context') , ORM ...
var passport = require('passport'); var WebIDStrategy = require('passport-webid').Strategy; var tokens = require('../../util/tokens'); var ids = require('../../util/id'); var console = require('../../log'); var createError = require('http-errors'); var dateUtils = require('../../util/date'); var url = require('url'); ...
const chai = require('chai'); const expect = chai.expect; const ComplexArray = require('../complex-array/complex-array'); function assertArrayEquals(first, second) { const message = `${first} != ${second}`; first.forEach((item, i) => { expect(item).to.equal(second[i], message); }); } describe('Complex Ar...
/** @jsx h */ import h from '../../helpers/h' export const schema = { blocks: { paragraph: { marks: [{ type: 'bold' }, { type: 'underline' }], }, }, } export const input = ( <value> <document> <paragraph> one <i>two</i> three </paragraph> </document> </value> ) expo...
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
module.exports = { before: [function () { console.log('global beforeAll1'); }, 'alias1'], 'alias1': 'alias2', 'alias2': function () { console.log('global beforeAll2'); }, 'One': function () { this.sum = 1; }, 'plus one': function () { this.sum += 1; }, 'equals two': function () { ...
exports.__esModule = true; exports.parseServerOptionsForRunCommand = parseServerOptionsForRunCommand; exports.parseRunTargets = parseRunTargets; var _cordova = require('../cordova'); var cordova = babelHelpers.interopRequireWildcard(_cordova); var _cordovaProjectJs = require('../cordova/project.js'); var _cordovaRu...
'use strict'; angular.module('terminaaliApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.get(); } return { /** * Authenticate user and save token * *...
$(document).ready(function(){ var toggleMuffEditor = function(stat=false){ $("#muff-opt").remove(); // bind event if(stat){ $(".muff").mouseover(function() { $("#muff-opt").remove(); muffShowOptions($(this)); $(window).scroll(function(){ $("#muff-opt").remove(); }) ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/p...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19.99 9.79c.51-.4.51-1.18 0-1.58l-6.76-5.26c-.72-.56-1.73-.56-2.46 0L9.41 4.02l7.88 7.88 2.7-2.11zm0 3.49l-.01-.01a.991.991 0 00-1.22 0l-.05.04 1.4 1.4c.37-.41.34-1.07-.12-1.43zm1.45 5.6L4.12 1.56a.9...
import { assign, forEach, isArray } from 'min-dash'; var abs= Math.abs, round = Math.round; var TOLERANCE = 10; export default function BendpointSnapping(eventBus) { function snapTo(values, value) { if (isArray(values)) { var i = values.length; while (i--) if (abs(values[i] - value) <...