code
stringlengths
2
1.05M
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3...
var test = require('tape'); var distance = require('@turf/distance'); var destination = require('./'); test('destination', function(t){ var pt1 = { type: "Feature", geometry: {type: "Point", coordinates: [-75.0, 39.0]} }; var dist = 100; var bear = 180; var pt2 = destination(pt1, dist, bear, 'kilome...
export default { activeCall: "Aktiver Anruf" }; // @key: @#@"activeCall"@#@ @source: @#@"Active Call"@#@
'use strict'; var test = require('tape'); var forEach = require('foreach'); var is = require('object-is'); var debug = require('object-inspect'); var assign = require('object.assign'); var keys = require('object-keys'); var has = require('has'); var assertRecordTests = require('./helpers/assertRecord'); var v = requ...
angular .module('app') .factory('nodejsService', nodejsService); nodejsService.$inject = ['$window']; function nodejsService($window) { var ok = !!$window.require; var service = { ok : ok, fs : (ok?$window.require('fs'):null), path : (ok?$window.require('path'):null), }; return service; }
/*************************************************************************************************************************************************************** * * Initiate app * ****************************************************************************************************************************************...
import GroupD8 from '../math/GroupD8'; /** * A standard object to store the Uvs of a texture * * @class * @private * @memberof PIXI */ export default class TextureUvs { /** * */ constructor() { this.x0 = 0; this.y0 = 0; this.x1 = 1; this.y1 = 0; thi...
///////////////////////////////////////////////////////////////////// // Viewing.Extension.A360View // by Philippe Leefsma, Feb 2016 // ///////////////////////////////////////////////////////////////////// import ToolPanelModal from 'ToolPanelModal/ToolPanelModal' import Dropdown from 'Dropdown/Dropdown' import './Crea...
import { Meteor } from 'meteor/meteor'; import { check, Match } from 'meteor/check'; import { dbCompanies } from '/db/dbCompanies'; import { limitSubscription } from '/server/imports/utils/rateLimit'; import { debug } from '/server/imports/utils/debug'; import { publishTotalCount } from '/server/imports/utils/publishT...
/** * @author mrdoob / http://mrdoob.com/ * @author Larry Battle / http://bateru.com/news * @author bhouston / http://exocortex.com */ var loadStatus = 0; var THREE = { REVISION: '66' }; self.console = self.console || { info: function () {}, log: function () {}, debug: function () {}, warn: function () {}, ...
/** * Copyright (c) Microsoft Corporation * All Rights Reserved * MIT License * * 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 ...
(function() { // some API urls var google = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&callback={callback}&rsz=large&q={query}", questions = "http://api.stackoverflow.com/1.0/questions/{id}?key={key}&body=true&jsonp={callback}", questionsTagged = "http://api.stackoverflow.com/1.0/questions/?ke...
require('./vector/main'); window.initGoogleMaps = require('./google/main');
// flow-typed signature: a49a6c96fe8a8bb3330cce2028588f4c // flow-typed version: de5b3a01c6/redux_v4.x.x/flow_>=v0.89.x declare module 'redux' { /* S = State A = Action D = Dispatch */ declare export type Action<T> = { type: T } declare export type DispatchAPI<A> = (action: A) => A; de...
exports.names = ['settings', 'set']; exports.hidden = true; exports.enabled = true; exports.cdAll = 10; exports.cdUser = 10; exports.cdStaff = 5; exports.minRole = PERMISSIONS.BOUNCER_PLUS; exports.handler = function (data) { var input = data.message.split(' '); var logMessage = ''; var chatMessage = ''; ...
import { expect } from 'chai'; import typeMapper from '../src/typeMapper'; import { BOOLEAN, ENUM, FLOAT, INTEGER, STRING } from 'sequelize'; import { GraphQLString, GraphQLInt, GraphQLBoolean, GraphQLFloat, GraphQLEnumType, GraphQLList } from 'graphql'; describe('typeMapper', () => { // TODO...
var fs = require('fs'); var path = require('path'); var Sequelize = require('Sequelize'); var _ = require('lodash'); var config = require('./config'); var db = {}; var sequelize = new Sequelize(config.db.dbName, config.db.username, config.db.password, { dialect: config.db.dialect, ...
const Audio = { play() {}, }; export default Audio;
export * from './class';
import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, componentDidMount () { let el = document.createElement('div'); document.body.appendChild(el); this.portalElement = el; this.componentDidUpdate(); }, componentWillUn...
'use strict'; // -------------------------------------------------------------------- // Imports // -------------------------------------------------------------------- var ohm = require('..'); var test = require('tape-catch'); // -------------------------------------------------------------------- // Helpers // ---...
//! ScriptApp.Test.debug.js // (function() { function executeScript() { //////////////////////////////////////////////////////////////////////////////// // IBase window.IBase = function() { }; IBase.prototype = { print : null } IBase.registerInterface('IBase'); } ss.loader.registerScript('...
/** * Geometry functions simplifier. * * @type {{normalizeAngle: Function, angleDifference: Function}} */ var Geometry = { normalizeAngle: function(angle) { return (angle + Math.PI*2) % (2*Math.PI); }, angleDifference: function(sourceAngle, destinationAngle) { return Math.atan2(Math.si...
import Mingus from 'mingus'; import { chunk, classNames, debounce, getClassName, noop, request } from '../utils'; Mingus.createTestCase('ChunkTest', { testChunkIterableWithItems() { const xs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; const result = chunk(xs, 3); this.asse...
/** * MongooseError constructor * * @param {String} msg Error message * @inherits Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error */ function MongooseError (msg) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.message = msg; this.name...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Boundary = mongoose.model('Boundary'); /** * Globals */ var user, boundary; /** * Unit tests */ describe('Boundary Model Unit Tests:', function () { beforeEach(fun...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" /> , 'MoreVertRounded');
'use strict'; var fs = require('fs'); module.exports = function( dest, target, grunt ){ // Create the file withe the column headers if( !grunt.file.exists( dest ) ){ grunt.file.write( dest, 'name,date,error,count,cycles,hz\n' ); } // Append a line with...
/* eslint-env mocha */ import Vue from 'vue-test'; // eslint-disable-line import Vuex from 'vuex'; import sinon from 'sinon'; import { expect } from 'chai'; import { mount } from '@vue/test-utils'; import AssignmentCopyModal from '../../src/views/assignments/AssignmentCopyModal'; const defaultProps = { modalTitle: '...
window.addEvent('domready', function() { prettyPrint() document.getElements('[data-example]').each(function(el) { el.addClass('simulated-example'); Moobile.Simulator.create('iPhone', el.get('data-example'), { container: el }); }); document.getElements('[data-simulator-app]').each(function(el) { el.addClas...
var ExtendError = require('../error').ExtendError, types = require('swig/lib/lexer').types; /** * This class is used to manage all tag plugins in Hexo. * * @class Tag * @constructor * @namespace Extend * @module hexo */ var Tag = module.exports = function(){ /** * @property store * @type Object */ this.s...
import _curry3 from './internal/_curry3'; /** * Takes a function and two values, and returns whichever value produces the * larger result when passed to the provided function. * * @func * @memberOf R * @since v0.8.0 * @category Relation * @sig Ord b => (a -> b) -> a -> a -> a * @param {Function} f * @param ...
import Component from '@ember/component'; import template from './template'; import { tagName, layout } from '@ember-decorators/component'; @tagName('') @layout(template) class PaperSelectSearchMessage extends Component { } export default PaperSelectSearchMessage;
const expect = require('chai').expect; const React = require('react'); import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import RecipeEntry from '../../client/components/RecipeEntry.js'; import fakeStore from './fakeStore'; const recipe = { title: 'Recipe Title' }; describe('<RecipeEntry />', (...
const path = require('path'); const Promise = require('bluebird'); const {i18n} = require('../../lib/common'); const errors = require('@tryghost/errors'); const dbBackup = require('../../data/db/backup'); const models = require('../../models'); const permissionsService = require('../../services/permissions'); const ALL...
version https://git-lfs.github.com/spec/v1 oid sha256:57011f078c3553835f2c4853a065baf60bc6c66a5221870a5d571087aaa3a47b size 2280
'use strict'; var assign = require('object-assign'); var XMLNode = require('./xml'); function SVG() { this.width = 100; this.height = 100; this.svg = new XMLNode('svg'); this.context = []; // Track nested nodes this.setAttributes(this.svg, { xmlns: 'http://www.w3.org/2000/svg', width: this.width, height: t...
var Swarm = require('swarm'); var Spec = Swarm.Spec; var TodoList = require('./model/TodoList'); var TodoItem = require('./model/TodoItem'); var TodoApp = require('./TodoApp'); module.exports = window.TodoApp = (function(superclass){ var defaultModels = []; // TODO: default english version defaultM...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _util = require('../util'); var _styleUtils = require('style-utils'); function _interopRequireDefault(obj) { return obj &&...
(function(){ 'use strict'; angular.module('myApp.AdminModule') .service('userService', ['$q', UserService]); /** * Users DataService * Uses embedded, hard-coded data model; acts asynchronously to simulate * remote data service call(s). * * @returns {{loadAll: Function}} * @constructor...
/*! * @license twgl.js 2.8.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved. * Available via the MIT license. * see: http://github.com/greggman/twgl.js for details */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = ...
'use strict'; function enumerate(values, prefix) { prefix = prefix == null ? '' : prefix; return values.reduce(function (enumeration, value) { enumeration[value] = prefix + value; return enumeration; }, {}); } module.exports = enumerate;
'use strict' /** * Internal event constructor */ var ConnexionEvent = function (origin) { this.emitter = origin && origin.emitter || '' this.scope = origin && origin.scope || '' this.type = (origin && origin.type) || '*' this.timeStamp = (origin && ('timeStamp' in origin)) ? origin.timeStamp : new Date().getTim...
'use strict'; var fs = require('fs'); var path = require('path'); var mkdirp = require('mkdirp'); var Promise = require('rsvp').Promise; var Plugin = require('broccoli-plugin'); var walkSync = require('walk-sync'); var mapSeries = require('promise-map-series'); var symlinkOrCopySync = require('symlink-or-copy').sync; ...
module.exports = SoftSetHook; function SoftSetHook(value) { if (!(this instanceof SoftSetHook)) { return new SoftSetHook(value); } this.value = value; } SoftSetHook.prototype.hook = function (node, propertyName) { if (node[propertyName] !== this.value) { node[propertyName] = this.valu...
//= require jquery-ui (function($) { $(document).ready(function() { $('.handle').closest('tbody').activeAdminSortable(); }); $.fn.activeAdminSortable = function() { this.sortable({ update: function(event, ui) { var url = ui.item.find('[data-sort-url]').data('sort-url'); $.ajax({ ...
/*------------------------------------------------------------------------------------ MSF Dashboard - dev-defined.js (c) 2015-2017, MSF-Dashboard contributors for MSF List of contributors: https://github.com/MSF-UK/MSF-Dashboard/graphs/contributors Please refer to the LICENSE.md and LICENSES-DEP.md for...
/** * This file contains the variables used in other gulp files * which defines tasks * By design, we only put there very generic config values * which are used in several places to keep good readability * of the tasks */ var gutil = require('gulp-util'); /** * The main paths of your project handle these...
/*jshint esnext: true*/ /*global require, module, fetch*/ 'use strict'; import React, { PropTypes } from 'react' import { StyleSheet, View, WebView } from 'react-native' class MnmWebviewEntry extends React.Component { static propTypes = { uri: PropTypes.string.isRequired }; render() { retu...
"use strict"; exports.logs = require('./facets/logs'); exports.kvstore = require('./facets/kvstore'); exports.musher = require('./facets/musher'); exports.metrics = require('./facets/metrics'); exports.jsonrpc = require('./facets/jsonrpc'); exports.mq = require('./facets/mq');
System.register(['./headers'], function(exports_1) { var headers_1; var HttpResponseMessage, mimeTypes; return { setters:[ function (_headers_1) { headers_1 = _headers_1; }], execute: function() { HttpResponseMessage = (function () { ...
/** * ajax.js * https://github.com/twiforce/fukuro/blob/master/js/ajax.js * * Send posts via AJAX * * Released under the MIT license * Copyright (c) 2013 Michael Save <savetheinternet@tinyboard.org> * 2013-2015 Simon Twiforce <twiforce@syn-ch.ru> * 2014-2015 GhostPerson <https://github.com/GhostPerso...
/** * HTTP method override Interceptor. */ export default function (request) { if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) { request.headers.set('X-HTTP-Method-Override', request.method); request.method = 'POST'; } }
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L...
/** * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not use this file except in compliance with the License. A copy of * the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the ...
/** * @author Geert Fokke [geert@sector22.com] * @www sector22.com * @module sector22/utils */ /** * @namespace */ var colorUtils = {}; /** * Calculates the rgb value between 2 colors given a percentage. * @param rgb1 * @param rgb2 * @param percentage * @returns {string} - the new rgb value as string */ c...
export default function position(x = 0, y = 0) { return { x, y }; }
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Takes an array of objects and passes each of them to the given callback. * * @function Phaser.Actions.Call * @since 3.0.0 * * @gener...
"use strict"; var child_process = require('child_process'); var fork = child_process.fork; var exec = child_process.exec; var database = require('../../database'); var MAXIMUM_NICENESS = 19; var ONE_HOUR = 60*60*1000; var CACHE_ENTRY_NO_ACCESS_MAX_TIME = 24*ONE_HOUR; /* territoireId => mutable{ graph:...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.12_A4_T4; * @section: 15.10.2.12; * @assertion: The production CharacterClassEscape :: W evaluates by returning the set of all characters not * included in th...
"use strict"; const ServiceBroker = require("../src/service-broker"); const fs = require("fs"); const path = require("path"); const crypto = require("crypto"); // Create broker const broker = new ServiceBroker({ nodeID: "streaming-receiver-" + process.pid, transporter: "TCP", serializer: "ProtoBuf", logger: conso...
var sys = require('sys'); // starts a new TestCase with the given description. // // var assert = require('assert') // describe("An array") // it("tracks length", function() { // var a = [1] // assert.equal(1, a.length) // }) // exports.describe = function(desc) { var test = new TestCase(desc...
(function() { 'use strict'; angular.module('words').controller('MainCtrl', ['mainService', 'categoryManager', 'userService', function(mainService, categoryManager, userService) { var vm = this; vm.categories = []; vm.currentCategory = mainService.selectedCategory(); vm.switch = { on: 'Learn...
'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...
const dec = () => {}; class Foo { static #A; static get a() { return this.#A; } static set a(v) { this.#A = v; } static #B = 123; static get b() { return this.#B; } static set b(v) { this.#B = v; } static #C = 456; static get 'c'() { return this.#C; } static set ...
version https://git-lfs.github.com/spec/v1 oid sha256:f8d46d531f29d111c23f9ea8906b1c1fab8e85162e4d6b52c8d21724774f6b98 size 135453
'use strict'; var mongoose = require('mongoose'); var device = new mongoose.Schema({ name: { type: String, required: true, unique: true }, description: { type: String, required: true }, ip: { type: String, required: true }, triggers: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Trigger', ...
var app = require('koa')(); var router = (new require('koa-router'))(); var koaBody = require('koa-better-body'); require('koa-qs')(app, 'extended'); var validate = require('../../lib/validate'); app.use(koaBody({ 'multipart': true })); app.use(validate()); require('./query_routes')(app, router); require('./hea...
/** * QUnit v1.3.0pre - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2012 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ (function(window) { var defined = { setTimeout: typeof window.setTimeout !== "...
/** * Created with JetBrains PhpStorm. * User: helder * Date: 10/05/13 * Time: 14:53 * To change this template use File | Settings | File Templates. */ $(document).ready(function() { $("div.accordi").accordion({ autoHeight: false, collapsible: true, active: false }); });
module.exports = function ({ $lookup }) { return { object: function () { const crypto = require('crypto') const assert = require('assert') return function (object, { hash = (() => crypto.createHash('md5'))() } = {}, $step = 0, $i = [], $$ = []...
module.exports = { Photos: require("./photos") };
import React from 'react'; import expect from 'expect'; import { mount } from 'enzyme'; import Checkbox from '../Checkbox'; function setup(props = {text: 'GSoC', checked: false}) { let actions = { onChange: expect.createSpy() }; let component = mount( <Checkbox {...props} {...actions} /> ); return...
var assert = require('assert'), _ = require('lodash'); describe('Semantic Interface', function() { describe('Integer Type', function() { describe('with valid data', function() { ///////////////////////////////////////////////////// // TEST METHODS /////////////////////////////////////////...
(function(){ 'use strict'; angular .module('app') .directive('pictureUpload', pictureUpload); function pictureUpload () { return { templateUrl: 'widgets/picture-upload/picture-upload.tpl.html', restrict: 'EA', scope: { callback: '=', targetUrl: '=', targetTa...
'use strict'; import Parse from './_parse_mongo.js'; let MongoSocket = think.adapter('socket', 'mongo'); /** * mongo db class */ export default class extends Parse { /** * init * @param {Object} config [] * @return {} [] */ init(config){ super.init(); this.config = config; this....
// Generated by LiveScript 1.5.0 /** * @package CleverStyle Widgets * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @license 0BSD */ (function(){ csw.behaviors.csIcon = [ csw.behaviors.tooltip, { observers: ['_icon_changed(icon, flipX, flipY, mono, rotate, spin, spinStep)'], properties: { ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
const web3 = require('web3'); const Example = artifacts.require("Example"); const IsLibrary = artifacts.require("IsLibrary"); const UsesExample = artifacts.require("UsesExample"); const UsesLibrary = artifacts.require("UsesLibrary"); const PayableExample = artifacts.require("PayableExample"); module.exports = async f...
const _ = require(`lodash`) const slash = require(`slash`) const fs = require(`fs`) const path = require(`path`) const crypto = require(`crypto`) const glob = require(`glob`) const { store } = require(`../redux`) const nodeAPIs = require(`../utils/api-node-docs`) const testRequireError = require(`../utils/test-require...
// Shim & native-safe ownerDocument lookup var owner = (document._currentScript || document.currentScript).ownerDocument; class MetaTableController extends MRM.MetaComponentController{ constructor(dom){ super(dom); this.dom = dom; this.setupComponent(); this.parent = dom.parentElement.controller; ...
//>>built define({findLabel:"Najdi:",findTooltip:"Vnesite besedilo za iskanje",replaceLabel:"Zamenjaj z:",replaceTooltip:"Vnesite besedilo za zamenjavo",findReplace:"Najdi in zamenjaj",matchCase:"Razlikuj velike in male \u010drke",matchCaseTooltip:"Razlikuj velike in male \u010drke",backwards:"Nazaj",backwardsTooltip:"...
module.exports = Cmds.addCommand({ cmds: [";skip"], requires: { guild: true, loud: false }, desc: "Skip to the next song", args: "[song_name]", example: "gonna give you up", func: (cmd, args, msgObj, speaker, channel, guild) => { var connection = guild.voiceConne...
const logging = require('../../../../../shared/logging'); const commands = require('../../../schema').commands; const table = 'members'; const message1 = 'Adding table: ' + table; const message2 = 'Dropping table: ' + table; module.exports.up = (options) => { const connection = options.connection; return conn...
// 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...
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', };
'use strict';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 property_binding_parser_1 = require('./property_binding_parser'); va...
import { app, BrowserWindow } from 'electron'; let mainWindow = null; let path = app.getPath('exe') app.on('window-all-closed', () => { if (process.platform != 'darwin') { app.quit(); } }); app.on('ready', () => { console.log(path) mainWindow = new BrowserWindow({width: 800, height: 600, globals: {id: 17...
import slack from 'slack' export default class SlackAPI { constructor (token) { this.token = token this.slack = slack } users () { return new Promise((resolve, reject) => { this.slack.users.list({ token: this.token }, (err, res) => { if (err) reject(err) else ...
/** * Test dependencies */ var assert = require('assert'), Record = require('../../lib/record'), RID = require('orientjs').RID, _ = require('lodash'), util = require('util'); describe('record helper class', function () { var record; before(function(done){ record = new Record(); don...
/** * KineticJS 3d JavaScript Library v1.0.0 * http://www.kineticjs.com/ * Copyright 2011, Eric Rowell * Licensed under the MIT or GPL Version 2 licenses. * Date: Aug 01 2011 * * Copyright (C) 2011 by Eric Rowell * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwa...
import {ModifyCollectionObserver} from './collection-observation'; let setProto = Set.prototype; export function getSetObserver(taskQueue, set) { return ModifySetObserver.for(taskQueue, set); } class ModifySetObserver extends ModifyCollectionObserver { constructor(taskQueue, set) { super(taskQueue, set); }...
dc.ui.FeaturedReport = Backbone.View.extend({ attributes: { 'class': 'report' }, events: { 'click .ok' : 'save', 'click .edit_glyph' : 'edit', 'click .cancel' : 'cancel', 'click .delete' : 'deleteReport' }, initialize: function(options) { _.bindAll(this,'_onError','_...
/*! * Knockout JavaScript library v3.3.0 * (c) Steven Sanderson - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ (function () { var DEBUG = true; (function (undefined) { // (0, eval)('this') is a robust way of getting a reference to the global object ...
'use strict'; var keyMirror = require('keymirror'); var PlayerConstants = keyMirror({ PLAYER_PLAY: null, PLAYER_STOP: null, PLAYER_SET_VOLUME: null, PLAYER_RESET: null, }); module.exports = PlayerConstants;
/*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.reveal = { name : 'reveal', version : '4.2.2', locked : false, settings : { animation: 'fadeAndPop', animationSpeed: 250, closeOnBackg...
/* global angular */ angular.module('afkl.lazyImage', []); /* global angular */ angular.module('afkl.lazyImage') .service('afklSrcSetService', ['$window', function($window) { 'use strict'; /** * For other applications wanting the srccset/best image approach it is possible to use this modul...
const fs = require('fs') const path = require('path') const readline = require('readline') const envFile = path.join(process.argv[2], '..', process.env['ENVFILE'] || '.env') const outDir = path.join(process.argv[3], 'Generated Files') console.log(`Generating files in ${outDir} from ${envFile} env file`) if (!fs.exis...
if(!Date.now) Date.now = function(){ return (new Date).getTime()}; test('package',function() { expect(7); ok(Package,'has Package'); ok(Package('x'),'creation Package x'); ok(Package('x.yy'),'creation Package x.yy'); ok(Package('x.yy.zzz'),'creation Package x.yy.zzz'); ok(Package.classProvider.x...
import 'hidpi-canvas/dist/hidpi-canvas.min'; import config from 'src/config'; import Matrix from 'src/classes/Matrix'; import View from 'src/classes/View'; import Field from 'src/classes/Field'; import 'src/app.css'; const matrix = new Matrix(); const view = new View(document.querySelector('canvas').getContext('2d'...