code
stringlengths
2
1.05M
(function($) { /** * Generate an indented list of links from a nav. Meant for use with panel(). * @return {jQuery} jQuery object. * TODO: remove this but keep the indentation via CSS */ $.fn.navList = function() { var $this = $(this), $a = $this.find('a'), b = []; $a.each(function() ...
/** * @author Mugen87 / https://github.com/Mugen87 */ const expect = require( 'chai' ).expect; const YUKA = require( '../../../build/yuka.js' ); const TriggerJSONs = require( '../../files/TriggerJSONs.js' ); const TriggerRegion = YUKA.TriggerRegion; describe( 'TriggerRegion', function () { describe( '#touching()...
'use strict'; /*eslint no-process-env:0*/ // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.ip || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.port || ...
'use strict'; import Feeds from './feedLoader'; import Config from './config'; import messenger from './messenger'; var db = null; const MAX_HISTORY_STORED = 20; /** * The Gif Storage API for the entire app * * @class Gifs */ const Gifs = { /** Init the DB */ init: function(){ var version = chrom...
'use strict'; // Use local.env.js for environment variables that grunt will set when the server starts locally. // Use for your api keys, secrets, etc. This file should not be tracked by git. // // You will need to set these on the server you deploy to. module.exports = { DOMAIN: 'http://localhost:9000', ...
chrome.extension.sendMessage({}, function(response) { if(location.href.length<500) { var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(readyStateCheckInterval); qs = function () { var query_string = {}; var query = window.location.search.subst...
/* */ "format amd"; //! moment.js locale configuration //! locale : Konkani Latin script [gom-latn] //! author : The Discoverer : https://github.com/WikiDiscoverer ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('...
(function () { 'use strict'; angular .module('app') .controller('DashboardController', DashboardController); DashboardController.$inject = ['$location']; function DashboardController($location) { /* jshint validthis:true */ var vm = this; vm.title = 'Dashboard...
/*! * Emoji dialog plugin for Editor.md * * @file emoji-dialog.js * @author pandao * @version 1.2.0 * @updateTime 2015-03-08 * {@link https://github.com/pandao/editor.md} * @license MIT */ (function() { var factory = function (exports) { var $ = jQuery; var plugin...
'use strict'; module.exports = { app: { title: 'myApp4', description: 'testing', keywords: 'testing' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection: 'sessions', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.css', 'public/...
const path = require('path'); const webpack = require('webpack'); const projectRoot = path.resolve(__dirname, '../'); const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; const config = { context: projectRoot, entry: { vendor: './src/vendor/index.js' }, output: { path: 'dist/js', filename: ...
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"2":"UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b SB RB","132":"0 1 2 3 4 5 6 7 c d e f L h i j k l m n o p q r s t y v"},D:{"2":"0 1 2 3 4 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q...
// Generated by CoffeeScript 1.7.1 (function() { $('h1:contains("&"),h2:contains("&"),h3:contains("&"),h4:contains("&"),h5:contains("&"),h6:contains("&"),.lead:contains("&"),.content > p:first-child:contains("&")').each(function() { return $(this).html($(this).html().replace(/&amp;/, "<abbr class='amp'>&amp;</abb...
(function(JsSIP) { var UA, C; C = { // UA status codes STATUS_INIT : 0, STATUS_READY: 1, STATUS_USER_CLOSED: 2, STATUS_NOT_READY: 3, // UA error codes CONFIGURATION_ERROR: 1, NETWORK_ERROR: 2, /* UA events and corresponding SIP Methods. *...
"use strict"; var now = Date.now; var CircleQueue = require("../../misc/CircleQueue.js"); var TransCommand = require("./TransCommand.js"); var TransCommandQueue = require("./TransCommandQueue.js"); var TASK_QUERY_SQL = 1; var TASK_BORROW_OBJECT = 2; function CommandQueue(pool, waitTimeout, queryTimeout) { CircleQue...
import Declaration from './declaration'; import Comment from './comment'; import Node from './node'; // CSS node, that contain another nodes (like at-rules or rules with selectors) export default class Container extends Node { // Stringify container children stringifyContent(builder) { if (...
search_result['4835']=["topic_0000000000000BC3_events--.html","StartupExtensions Events",""];
function Slider(thisSlider, sliderCallback){ function makeMarkers(){ var markers = document.createElement("table"); var row = document.createElement("tr"); for (var i = 0; i < data.length; i++){ var cell = document.createElement("td"); cell.style.width = (100 / d...
import buildPadding from 'helper/string/build_padding'; import clipNumber from 'helper/number/clip_number'; import coerceToString from 'helper/string/coerce_to_string'; import isNil from 'helper/object/is_nil'; import { MAX_SAFE_INTEGER } from 'helper/number/const'; import toInteger from 'helper/number/to_integer'; /*...
var uniquely = require('./uniquely.js'); console.log(uniquely(prompt('Enter a string...')));
(function(global) { var define = global.define; var require = global.require; var Ember = global.Ember; if (typeof Ember === 'undefined' && typeof require !== 'undefined') { Ember = require('ember'); } Ember.libraries.register('Ember Simple Auth Torii', '0.8.1'); define("simple-auth-torii/authenticators...
'use strict'; var FigureResource = require('../FigureResource'); var figureMethod = FigureResource.method; module.exports = FigureResource.extend({ path: 'places', includeBasic: [ 'create', 'get', 'getAll', 'edit', 'del' ] });
/* eslint-env jest */ import * as actions from '../optionActions'; describe('actions', () => { it('should create an action to toggle options', () => { expect(actions.toggleOptions(true)).toEqual({ type: 'TOGGLE_OVERLAY', payload: true }); expect(actions.toggleOptio...
import TabDebugger from './tab-debugger'; //we have to take into account height of the debug infobar at the top and window frame //TODO fetch actual values, don't hardcode them const INFOBAR_HEIGHT = 36; const FRAME_HEIGHT = 22; function createWindow(url, width, height) { return new Promise((resolve, reject) => { ...
/*! formstone v1.4.20-1 [mediaquery.js] 2021-01-29 | GPL-3.0 License | formstone.it */ /* global define */ (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery", "./core" ], factory); } else { factory(jQuery, Formstone); } }(...
/*! * Conditionizr test: Opera */ conditionizr.add('opera', [], function () { return !!window.opera || /opera|opr/i.test(navigator.userAgent); });
const moduleName = 'angular-firebase-app'; angular .module(moduleName, [ moduleName + '.helloworld', moduleName + '.vehicles', 'ui.router' ]); export default moduleName;
/*! * Module dependencies. */ var htxAction = require('../app/action/htxAction'); var smsProxy = require("../app/action/smsProxy"); /** * Expose routes */ module.exports = function (app, passport, errorCode) { // user routes app.post("/startSearch", htxAction.search); app.post("/sms/deliver", smsProx...
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import {assert} from '@ciscospark/test-helper-chai'; import Mercury, { BadRequest, NotAuthorized, Forbidden, // NotFound, config as mercuryConfig, ConnectionError, Socket } from '@ciscospark/internal-plugin-mercury'; import sinon fr...
/** * auth0-js v9.13.1 * Author: Auth0 * Date: 2020-04-01 * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.CordovaAuth0Pl...
Ext.define('sisprod.store.CompressorStopReasonTemplate', { extend: 'Ext.data.Store', model: 'sisprod.model.CompressorStopReasonModel', require: [ 'Ext.data.Store', 'sisprod.model.CompressorStopReasonModel' ], proxy:{ type: 'ajax', api: { read: 'rest/com...
const { withSentryConfig } = require('@sentry/nextjs'); /** * @type {import('next').NextConfig} * */ const nextConfig = { reactStrictMode: true, experimental: { // Enables the styled-components SWC transform styledComponents: true, // Allows Yarn PnP to work right now swcFileReading: false, ...
get( {data: {name:(+ new Date())} } );
loadjscssfile("https://fonts.googleapis.com/css?family=Lekton|Open+Sans|Open+Sans+Condensed:300", "css"); loadjscssfile("https://dl.dropboxusercontent.com/u/11819416/frog/annualreport.css", "css"); var name = document.getElementsByClassName('name')[0].childNodes[1].innerHTML.replace(/^\s+|\s+$/g,"").toUpperCase(); var...
var constants = require('../constants'); module.exports = function (context) { var node = context.node; var parent = context.parent; return node && node.type === 'ExpressionStatement' && node.expression && node.expression.type === 'CallExpression' && node.expression.callee && ...
function mmg_cluster(features, size) { // Extracted from polymaps; BSD licensed. // k-means clustering function kmeans() { var kmeans = {}, points = [], iterations = 1, size = 1; kmeans.size = function(x) { if (!arguments.length) return size; ...
/** * Tom Select v1.2.2 * Licensed under the Apache License, Version 2.0 (the "License"); */ import TomSelect from '../../tom-select.js'; /** * Plugin: "input_autogrow" (Tom Select) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the Licens...
'use strict'; var index = require('../controllers/index'); module.exports = function(System, app) { app.get('/', index.render); };
System.register(["./intervalitem"], function (_export) { var IntervallItem, _createClass, _get, _inherits, _classCallCheck, Annee; return { setters: [function (_intervalitem) { IntervallItem = _intervalitem.IntervallItem; }], execute: function () { "use strict"; ...
/*! * Boosted v5.1.1 (https://boosted.orange.com/) * Copyright 2015-2021 The Boosted Authors * Copyright 2015-2021 Orange * Licensed under MIT (https://github.com/orange-opensource/orange-boosted-bootstrap/blob/main/LICENSE) * This a fork of Bootstrap : Initial license below * Bootstrap v5.1.1 (https://boos...
'use strict';(function(){function T(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let d=0;d<b;d++){let b=a.readBits(8);c.push(b)}try{d+=decodeURIComponent(c.map(a=>`%${("0"+a.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}function U(a,b){a=new V(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes...
/* Copyright (c) 2017 NAVER Corp. @egjs/persist project is licensed under the MIT license @egjs/persist JavaScript library @version 2.4.0-rc */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ...
define(["./when-b43ff45e","./Check-d404a0fe","./Math-336da716","./Cartesian2-3c21ddb9","./Transforms-ffcbad88","./RuntimeError-bf10f3d5","./WebGLConstants-56de22c0","./ComponentDatatype-8956ad9a","./GeometryAttribute-c9800e88","./GeometryAttributes-fbf888b4","./IndexDatatype-c5295474","./GeometryOffsetAttribute-9f7392a...
/*! * dist/inputmask * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license * Version: 5.0.0-beta.238 */ !function webpackUniversalModuleDefinition(root, factory) { if ("object" == typeof exports && "object" == typeof module) module.exports = fac...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.5.0 (2020-09-29) */ (function () { 'use strict'; ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descript...
// MarionetteJS (Backbone.Marionette) // ---------------------------------- // v2.4.2 // // Copyright (c)2015 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com /*! * Includes BabySitter * https://github.com/marionettejs/backbone.babysitter/ * * Includes Wreqr * h...
var sketch; function init() { sketch = new Sketch(); document.body.appendChild(sketch); sketch.width = window.innerWidth; sketch.height = window.innerHeight; loop(); } function loop() { window.requestAnimationFrame(loop) sketch.draw(); } init();
$A.bind(window, "load", function() { // Syntax : setCalendar( ID , TriggeringElement , TargetEditField , EnableComments , clickHandler , config ) $A.setCalendar( "UniqueCalendarId", $A.getEl("dateIcon"), $A.getEl("date"), false, undefined, { // Configure optional overrides // C...
iD.ui.SelectionList = function(context, selectedIDs) { function selectionList(selection) { selection.classed('selection-list-pane', true); var header = selection.append('div') .attr('class', 'header fillL cf'); header.append('h3') .text(t('inspector.multiselect'));...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 1C7.59 1 4 4.59 4 9c0 5.57 6.96 13.34 7.26 13.67l.74.82.74-.82C13.04 22.34 20 14.57 20 9c0-4.41-3.59-8-8-8zm0 19.47C9.82 17.86 6 12.54 6 9c0-3.31 2.69-6 6-6s6 2.69 6 6c0 3.83-4.25 ...
/** * @flow */ class ClassFoo1 { returnsANumber(): number { return 42; } } export default ClassFoo1; export var foo1Inst: ClassFoo1 = new ClassFoo1();
var Buffer = require('buffer').Buffer; var Crypto = require('crypto'); var Auth = exports; function sha1(msg) { var hash = Crypto.createHash('sha1'); hash.update(msg, 'binary'); return hash.digest('binary'); } Auth.sha1 = sha1; function xor(a, b) { a = new Buffer(a, 'binary'); b = new Buffer(b, 'binary');...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { setupIntl } from 'ember-intl/test-support'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import { componen...
function getScroll() { var t, l, w, h; if (document.documentElement && document.documentElement.scrollTop) { t = document.documentElement.scrollTop; l = document.documentElement.scrollLeft; w = document.documentElement.scrollWidth; h = document.documentElement.scro...
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var $ = require('gulp-load-plugins')({ pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del'] }); gulp.task('partials', ['markups'], function () { return gulp.src([ path.join(conf.paths.src, '/a...
'use babel' import DebuggerStub from './debugger-stub' import Breakpoint from '../lib/breakpoint' import BreakpointEvent from '../lib/breakpoint-event' import SessionEvent from '../lib/session-event' export default class DebuggerStubBreakpointMove extends DebuggerStub { start(target: DebuggerTarget, bre...
'use strict' import React from 'react' import {connect} from 'react-redux' import {login} from '../../../modules/auth/actions/index' export const Login = React.createClass({ do_login (event) { event.preventDefault() const {email, pass} = this.refs const {dispatch, params} = this.props let data = {...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Phaser Scale Manager constants for orientation. * * @namespace Phaser.Scale.Orientation * @memberof Phaser.Scale * @since 3.16.0 */...
var fs = require('fs') var path = require('path') function read(dir) { var f = path.resolve(dir, '.node-dev.json') return fs.existsSync(f) ? JSON.parse(fs.readFileSync(f)) : {} } function resolvePath(unresolvedPath) { return path.resolve(process.cwd(), unresolvedPath) } module.exports = function(main, opts) { ...
version https://git-lfs.github.com/spec/v1 oid sha256:8ac39db71500a6cf157b51b38d6d1a196cf69db9c3379828475ae112282d664b size 15270
BlazeComponent.extendComponent({ mixins() { return [Mixins.PerfectScrollbar]; }, openForm(options) { options = options || {}; options.position = options.position || 'top'; const forms = this.childComponents('inlinedForm'); let form = forms.find((component) => { return component.data()....
import { run } from '@ember/runloop'; import { test } from 'qunit'; import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; let container, store; moduleForAcceptance('Acceptance | github blob', { beforeEach() { container = this.application.__container__; store = run(container, 'lookup',...
function graphScroll() { var windowHeight, dispatch = d3.dispatch("scroll", "active"), sections = d3.select('null'), i = NaN, sectionPos = [], n, graph = d3.select('null'), isFixed = null, isBelow = null, container = d3.select('body'), containerStart = 0, ...
"use strict"; var assert = require("assert"); exports["simple"] = function() { var logger = require('../').console({ transport : function(data) { console.log(data.output); return data; } }); var o = logger.info('hello'); assert.equal(o['message'], 'hello'); assert.equal(o['file'], 'test.js'); assert.eq...
'use strict'; // Scrape a linkedin profile for the public contents Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getProfile; var _bluebird = require('bluebird'); var _bluebird2 = _interopRequireDefault(_bluebird); var _analyser = require('./analyser'); var _analyser2 = _intero...
'use strict' require('../typedefs') // not using const to enable rewiring during test let fetch = require('node-fetch') const logger = require('../logger') /** * Convert a Bitbucket PR to a PR representation * @param {BitbucketServerPullRequest} bbPr - the API response from a Bitbucket API looking for a PR * @re...
// @flow // Note: we define properties with JSdoc since documentation.js doesn't recognize // exported types yet. See https://github.com/documentationjs/documentation/issues/680 /** * @property { 'easeInBack', 'easeInCirc', 'easeInCubic', 'easeInExpo', 'easeInQuad', 'easeInQuart', 'easeInQuint', 'easeInSine', 'easeO...
import React from "react" import classnames from "classnames" import PropTypes from "prop-types" import { Droppable } from "react-drag-and-drop" import { Choose, When, Otherwise } from "jsx-control-statements" import Button from "../button/button" import Wrestler from "../wrestler/wrestler" const NOOP = () => {} cons...
/*! * CanJS - 2.1.3 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Mon, 25 Aug 2014 21:51:29 GMT * Licensed MIT * Includes: CanJS default build * Download from: http://canjs.us/ */ /* jshint maxdepth:7*/ steal("can/view", function(can){ function makeMap(str){ var obj = {}, items = str.split(","); for...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/** * Version 2.4.0 Copyright (C) 2013 * Tested in IE 11, FF 28.0 and Chrome 33.0.1750.154 * No official support for other browsers, but will TRY to accommodate challenges in other browsers. * Example: * Print Button: <div id="print_button">Print</div> * Print Area : <div class="PrintArea" id="MyId...
const fs = require("fs"); const path = require("path"); const test = require("tape"); const write = require("write-json-file"); const load = require("load-json-file"); const truncate = require("@turf/truncate").default; const { getCoords } = require("@turf/invariant"); const { featureCollection, lineString, point } = r...
$(document).ready(function(){ $('.modal').modal(); $('.modal2').modal(); $('.modal3').modal(); $('.modal4').modal(); });
import Test from 'ava'; import * as Assignment from '../src'; Test(`Engine_Types is accessible`, t => { t.truthy(Assignment.ENGINE_TYPES); });
import Ember from 'ember'; import RegisterTableComponentMixin from 'ember-table/mixins/register-table-component'; import LazyItemView from 'ember-table/views/lazy-item'; export default LazyItemView.extend( RegisterTableComponentMixin, { templateName: 'table-row', classNames: 'ember-table-table-row', classNameBin...
$(document).on("cmck", function (e, params) { switch (params.type) { case 'editForm.init': case 'sequenceForm.init': case 'sequenceForm.refresh': $('div.formelement-richtext textarea').each(function () { id = $(this).attr('id'); rows = $(this).at...
import createSagaMiddleware from 'redux-saga'; import {take} from 'redux-saga/effects'; import {applyMiddleware, createStore as createReduxStore} from 'redux'; import sinon from 'sinon'; export const RETURN_FROM_CALL = 'SAGA_HELPERS__RETURN_FROM_CALL'; export default function(saga, {reducer, initialState = {}, args ...
/*jshint expr: true*/ 'use strict'; var should = require('should') , config = require('../lib/config'); describe('config#parseArgv', function() { var exited = false , oldProcessExit = process.exit , oldConsoleError = console.error; // test process.exit() before(function() { process.exit = functio...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import RandomGif from './RandomGif' const gifStyle = { float: 'left', marginRight: '20px' } const needGetGifAction = 'pairOfPairGif/NEED-GET-GIF' const PairOfPairGif = ({ randomGifActionPrefix, dispatch }) => ( <div> <RandomGif ...
requirejs.config({ baseUrl: 'js/app', paths: { jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min', lodash: '../lib/lodash', backbone: '../lib/backbone', handlebars: '../lib/handlebars.runtime', templates : 'compiled-templates' }, shim: { // Lib...
isAdminById=function(userId){ var user = Meteor.users.findOne(userId); return !!(user && isAdmin(user)); }; isAdmin=function(user){ user = (typeof user === 'undefined') ? Meteor.user() : user; return !!user && !!user.isAdmin; }; isInvited=function(user){ if(!user || typeof user === 'undefined') return fal...
import * as core from '../../core'; import generateBlurVertSource from './generateBlurVertSource'; import generateBlurFragSource from './generateBlurFragSource'; import getMaxBlurKernelSize from './getMaxBlurKernelSize'; /** * The BlurXFilter applies a horizontal Gaussian blur to an object. * * @class * @extends P...
(function() { var checkVersion = Dagaz.Model.checkVersion; Dagaz.Model.checkVersion = function(design, name, value) { if (name != "go-view") { checkVersion(design, name, value); } } Dagaz.View.showPiece = function(view, ctx, frame, pos, piece, model, x, y) { var val = null; if (model) { ...
// test.js var degree = require('./') console.log( degree.c(12), degree.f(4) )
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
module.exports = function (grunt) { return { server: { path: 'http://localhost:<%= connect.options.port %>' } }; };
module.exports = { rules: { // 'prefer-const': [0] } };
/** * HipChat plugin for the uptime project - https://github.com/fzaninotto/uptime * * Thanks to: * - DMathieu for the Campfire plugin - https://gist.github.com/dmathieu/5592418 * - xphyr for Pushover plugin - https://gist.github.com/xphyr/5994345 * * This index.js files goes to a directory `plugins/hipchat` i...
export function download(filename, stringOrBlob) { // yanked from here // https://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-server const blob = typeof stringOrBlob === 'string' ? new Blob([stringOrBlob], { type: 'application/octet-stream' }) : st...
(function() { 'use strict'; angular .module('siteApp') .factory('ProfileService', ProfileService); ProfileService.$inject = ['$http']; function ProfileService($http) { var dataPromise; var service = { getProfileInfo : getProfileInfo }; re...
/* * File: player.js * * Defines player viewpoint for rendering and does collision detection. * * Author: Karl Kangur <karl.kangur@gmail.com> * Licence: WTFPL 2.0 (http://en.wikipedia.org/wiki/WTFPL) */ function Player(world) { this.world = world; // player position is limited by Number.MAX_...
define(function(require) { 'use strict'; var ColumnManagerComponent; var _ = require('underscore'); var Backgrid = require('backgrid'); var tools = require('oroui/js/tools'); var BaseComponent = require('oroui/js/app/components/base/component'); var ColumnFilterModel = require('orodatagrid/...
//There are a few things you'll need to add if you want to use this file. You need to change the makechatroom command so //that it resets the hangman status upon making a chatroom; otherwise trying to run hangman in the new room will crash //the server. Specifically, you'll need to add "hangman.reset(id)" somewhere in...
var structr = require("structr"), EventEmitter = require("events").EventEmitter, vine = require("vine"), _ = require("underscore"), crema = require("crema"); var Mapper = structr({ /** */ "__construct": function(config) { this._registrar = config.registrar; this.connection = config.connection; this._waiti...
var path = require("path"); module.exports = { gitlab: { /** Example `url`: "http://gitlab.cs.smu.ca" */ url: null }, deploy: { /** SSH Public Key for Project Deploy Key */ sshPublicKey: path.resolve("./keys/id_rsa.pub"), /** S...
/* <option selected value=0>Zero Selected ETO Data</option> <option value=1>Subtract .05 inch from ETO Data</option> <option value=2>Add .05 inch from ETO Data</option> <option value=3>Select All Elements</option> <option value=4>Unselect All Elememts</option> */ $(document).ready( function(...
// test-timenumber.js // © 2013 Harald Rudell <harald@therudells.com> MIT License var timenumber = require('../lib/timenumber') // https://github.com/haraldrudell/mochawrapper var assert = require('mochawrapper') exports['TimeNumber'] = { 'Exports': function () { assert.exportsTest(timenumber, 1) }, 'EncodeTime...
file:/home/charlike/dev/glob-fs/fixtures/a/m0.js