code
stringlengths
2
1.05M
/** * @license Angulartics v0.19.2 * (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics * Google Tag Manager Plugin Contributed by http://github.com/danrowe49 * License: MIT */ (function(angular){ 'use strict'; /** * @ngdoc overview * @name angulartics.google.analytics * Enables analytics support...
'use strict'; if (process.env.NODE_ENV !== "production") { (function() { 'use strict'; var invariant = require('fbjs/lib/invariant'); var react = require('react'); var objectAssign$1 = require('object-assign'); var require$$0 = require('fbjs/lib/warning'); var emptyFunction = require('fbjs/lib/emptyFunction'); var ...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v13.1.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __prot...
version https://git-lfs.github.com/spec/v1 oid sha256:ce4d981d82dbf0441b8976de6241708ad26b37223b2df50686172af51ce1ce3f size 2349
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/Asana-Math/Monospace/Regular/Main.js * * Copyright (c) 2013-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
'use strict'; var FileHistory = require('../lib/models/FileHistory'); /* ======== 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...
version https://git-lfs.github.com/spec/v1 oid sha256:d90b134d38aa6750e8bd4f11b82255a77d1deef54fd95136210917a5260187fc size 4186
// Copyright 2008 The Closure Library Authors. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
/************************************************************* * * MathJax/jax/output/HTML-CSS/entities/j.js * * Copyright (c) 2010-2014 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
var dnnProfileAutoCompleteService; function ProfileAutoCompleteService($) { var baseServicepath = $.dnnSF(-1).getServiceRoot('InternalServices') + 'ProfileService/'; this.searchProfilePropertyValues = function (portalId, propName, searchString, success) { $.ajax({ type: "GET", url: baseServicepath + 'Profi...
var docShredder = require('../doc-shredder'); var del = require('del'); var globby = require('globby'); var path = require('canonical-path'); var fs = require('fs'); var JsDiff = require('diff'); describe('doc-shredder', function() { var _shredOptions = { examplesDir: "test_source", fragmentsDir: "test_fr...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","tt",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Гомуми",items:[{name:"Edi...
version https://git-lfs.github.com/spec/v1 oid sha256:c69ee63c10a270f74a4c2c620346e92770ff0e138355ad17f77a7f28cb0e0614 size 80
YUI.add('graphics-canvas', function(Y) { var SHAPE = "canvasShape", DOCUMENT = Y.config.doc, Y_LANG = Y.Lang, AttributeLite = Y.AttributeLite, CanvasShape, CanvasPath, CanvasRect, CanvasEllipse, CanvasCircle, CanvasPieSlice, Y_Color = Y.Color, PARSE_INT = parseInt, PARSE_FLOAT = par...
import { normalizeUnits } from '../units/aliases'; import absFloor from '../utils/abs-floor'; export function get (units) { units = normalizeUnits(units); return this[units + 's'](); } function makeGetter(name) { return function () { return this._data[name]; }; } export var mill...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The "show border" plugin. The command display visible outline * border line around all table elements if table doesn't have a none-zero 'border' attrib...
async function f() { for await (let { x, y: [z] } of a) { g(x, z); } }
/** * @license * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) * MIT-licensed (http://opensource.org/licenses/MIT) */ /** * @fileoverview Description of this file. * @author danvk@google.com (Dan Vanderkam) * * A ticker is a function with the following interface: * * function(a, b, pixels, options_view, dy...
var archinfo = require('../utils/archinfo.js'); var buildmessage = require('../utils/buildmessage.js'); var buildPluginModule = require('./build-plugin.js'); var colonConverter = require('../utils/colon-converter.js'); var files = require('../fs/files.js'); var compiler = require('./compiler.js'); var linker = require(...
/** * @preserve jquery.fullscreen 1.1.3 * https://github.com/kayahr/jquery-fullscreen-plugin * Copyright (C) 2012 Klaus Reimer <k@ailis.de> * Licensed under the MIT license * (See http://www.opensource.org/licenses/mit-license) */ (function() { /** * Sets or gets the fullscreen state. * * @param {boolean=}...
'use strict'; if (!require('./is-implemented')()) { Object.defineProperty(Math, 'acosh', { value: require('./shim'), configurable: true, enumerable: false, writable: true }); }
// Generated by CoffeeScript 1.4.0 /* # # Opentip v2.4.3 # # More info at [www.opentip.org](http://www.opentip.org) # # Copyright (c) 2012, Matias Meno # Graphics by Tjandra Mayerhold # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fil...
tinymce.addI18n('de_AT',{ "Cut": "Ausschneiden", "Heading 5": "\u00dcberschrift 5", "Header 2": "\u00dcberschrift 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Ihr Browser unterst\u00fctzt keinen direkten Zugriff auf die Zwischenablage. Bitt...
Template.MasterLayout.helpers({ }); Template.MasterLayout.events({ });
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/localization/sv/TeX.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (t...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.2.0 * @link http://www.ag-grid.com/ * @license MIT */ var grid_1 = require("../grid"); function initialiseAgGridWithAngular1(angular) { var angularModule = angular.module("agGrid", []); ...
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.1.4 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : ...
(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...
(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...
/*! Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lv",[],function(){function e(e,t,n,r){return e===11?t:e%10===1?n:r}return{inputTooLong:function(t){var n=...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["History"] = factory(); else root["Histo...
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node beforeEach(function () { node =...
/*! * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 * @version 4.1.2 * * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced * features including the FileReader API. * * The plugin drastically enhances the HTML file input to preview multiple files on the client bef...
/** * @ngdoc directive * @restrict A * @name collectionRepeat * @module ionic * @codepen 7ec1ec58f2489ab8f359fa1a0fe89c15 * @description * `collection-repeat` allows an app to show huge lists of items much more performantly than * `ng-repeat`. * * It renders into the DOM only as many items as are currently v...
'use strict'; 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 ('value' in descriptor) descriptor.writable = true; Object.defineProp...
(function (tree) { tree.Media = function (value, features, index, currentFileInfo) { this.index = index; this.currentFileInfo = currentFileInfo; var selectors = this.emptySelectors(); this.features = new(tree.Value)(features); this.rules = [new(tree.Ruleset)(selectors, value)]; this.rules[0]....
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'about', 'sk', { copy: 'Copyright &copy; $1. Všetky práva vyhradené.', dlgTitle: 'O CKEditor-e', help: 'Zaškrtnite $1 pre pomoc.', moreInfo: 'Pre ...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'contextmenu', 'lt', { options: 'Kontekstinio meniu parametrai' });
/* * bootstrap-table - v1.6.0 - 2015-03-03 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2015 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.fn.bootstrapTable.locales["pt-BR"]={formatLoadingMessage:function(){return"Carregando, aguarde..."},formatRecordsPerPage:function(a){return a+" ...
/*! * # Semantic UI 2.2.4 - Site * http://github.com/semantic-org/semantic-ui/ * * * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { $.site = $.fn.site = function(parameters) { var time = new Date().getTime(), performan...
bar = 'bar'; exports = {};
#!/usr/bin/env node /* Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
define([ "../core", "../var/support" ], function( jQuery, support ) { (function() { var pixelPositionVal, boxSizingReliableVal, docElem = document.documentElement, container = document.createElement( "div" ), div = document.createElement( "div" ); if ( !div.style ) { return; } div.style.backgroundClip ...
define( "dojo/cldr/nls/sv/ethiopic", //begin v1.x content { "field-second": "sekund", "field-year-relative+-1": "i fjol", "field-week": "vecka", "field-month-relative+-1": "förra månaden", "field-day-relative+-1": "i går", "field-day-relative+-2": "i förrgår", "months-standAlone-wide": [ "Mäskäräm", "Teqemt"...
/* * Script run inside a Customizer preview frame. */ (function( exports, $ ){ var api = wp.customize, debounce; /** * Returns a debounced version of the function. * * @todo Require Underscore.js for this file and retire this. */ debounce = function( fn, delay, context ) { var timeout; return functi...
/*! tableSorter 2.3 widgets - updated 6/21/2012 * * jQuery UI Theme * Column Styles * Column Filters * Sticky Header * Column Resizing * Save Sort * */ ;(function($){ // *** Store data in local storage, with a cookie fallback *** /* IE7 needs JSON library for JSON.stringify - (http://caniuse.com/#search=json)...
module.exports = TapProducer var Results = require("./tap-results") , inherits = require("inherits") , yamlish = require("yamlish") TapProducer.encode = function (result, diag) { var tp = new TapProducer(diag) , out = "" tp.on("data", function (c) { out += c }) if (Array.isArray(result)) { result.fo...
/** * Select2 Arabic translation. * * Author: Adel KEDJOUR <adel@kedjour.com> */ (function ($) { "use strict"; $.fn.select2.locales['ar'] = { formatNoMatches: function () { return "لم يتم العثور على مطابقات"; }, formatInputTooShort: function (input, min) { var n = min - input.length; if (n ...
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use st...
/* * shariff - v0.2.12 - 12.11.2014 * https://github.com/heiseonline/shariff * Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])...
import absFloor from './abs-floor'; export default function toInt(argumentForCoercion) { var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { value = absFloor(coercedNumber); } return value; }
/* * Translated default messages for the jQuery validation plugin. * Locale: CS (Czech; čeština, český jazyk) */ (function($) { $.extend($.validator.messages, { required: "Tento údaj je povinný.", remote: "Prosím, opravte tento údaj.", email: "Prosím, zadejte platný e-mail.", url: "Prosím, zadejte platné UR...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
// @flow import phantomjs from 'phantomjs-prebuilt'; import { spawn } from 'child_process'; import os from 'os'; import path from 'path'; import split from 'split'; import winston from 'winston'; import EventEmitter from 'events'; import Page from './page'; import Command from './command'; import OutObject from './out...
/* We don't want to include babel-polyfill in our project. - Library authors should be using babel-runtime for non-global polyfilling - Adding babel-polyfill/-runtime increases bundle size significantly We will include our polyfill instance methods as regular functions. */ export function startsWith (str,...
import React, { Component } from 'react'; import GraphComponent from './graph/Graph'; import { SeriesComponent, NaiveSeriesComponent } from './series/SeriesComponent'; import { Provider, connect } from 'react-redux'; import ControlButton from './ControlButton'; import { store } from './store'; import { setupDataStream...
import shell from 'shelljs'; import _ from 'lodash'; import {io} from '../index'; import ShellLog from '../models/shellLog'; import eventEmitter from '../middleware/eventEmitter'; let executeShell = (script) => { let childProcess = shell.exec(`eval ${script.executableData}`, { async: true }); ShellLog.find({ ...
define([ 'jquery', 'underscore', 'backbone', 'app', 'modules/Menus', 'modules/Users' ], function ( $, _, Backbone, app, Menus, Users ) { var Models = {}; var Collections = {}; var Views = {}; Views.Facebook = Backbone.View.extend({ template: 'settings/facebook', events: { 'click .login': 'login' }, ...
var inport = process.env['INPORT_LISTEN'] || 'ipc:///tmp/routein' || 'tcp://127.0.0.1:12345'; var Module = require('..'); var Package = require('../package.json'); console.log("Package" , Package); var debug = require('hitd-debug')(Package.name); new Module(inport, { heartbeat : 30 } , function(){ debug("started");...
module.exports = function (req, res, next) { var userName = req.body.user_name; var channelID = req.body.channel_name; var botPayload = { text : 'Hello, ' + userName + '! It is great to see you hanging with me at ' + channelID }; // avoid infinite loop if (userName !== 'slackbot') { return res.sta...
import { assert, stub } from 'sinon'; import { expect } from 'chai'; import proxyquire from 'proxyquire'; describe('manifest', () => { let mod, cmd, app, cmdResult, deps; beforeEach(() => { app = { manifest: stub().returns('done'), build: stub() } deps = { '../apps': { load...
/* * Copyright (c) 2017 Tom Shawver */ 'use strict' const TimeoutExtender = require('src/TimeoutExtender') const SquissStub = require('test/stubs/SquissStub') const Message = require('src/Message') const delay = require('delay') let inst = null let clock = null const fooMsg = new Message({ msg: { MessageId: 'foo',...
/** * footer-reveal.js * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2014 Iain Andrew * https://github.com/IainAndrew */ (function($) { $.fn.footerReveal = function(options) { var $this = $(this), $prev = $this.prev(), ...
'use strict'; module.exports = function readJsonSync(data) { if (Buffer.isBuffer(data)) { if (data[0] === 239 /* 0xEF */ && data[1] === 187 /* 0xBB */ && data[2] === 191 /* 0xBF */) { return JSON.parse(data.slice(3).toString()); } return JSON.parse(data.toString()); } return JSON.parse(data.charCodeAt(0)...
var _ = require('highland'); var square = function(n) { return n * n; }; var product = function(a, b) { return a * b; }; var even = function(n) { return n % 2 === 0; }; var evenSquaresProduct = _.compose( _.reduce(1, product), _.map(square), _.filter(even) ); var result = evenSquaresProduct([1, 2, 3, 4...
var net = require('net'); var async = require('async'); var expect = require('chai').expect; var porter = require('./index'); describe('it should test library', function () { var busyPort, freePort, server; before(function (done) { async.series([ function (done_) { server ...
import Ember from 'ember'; import ResetScrollMixin from "selby.io/mixins/reset-scroll"; export default Ember.Route.extend(ResetScrollMixin, { setupController: function(controller, model) { // Call _super for default behavior this._super(controller, model); controller.set('dir', model); }, model: fun...
var _ = require('lodash'); var ansi = require('ansi'); var Jimp = require('jimp'); var os = require('os'); var cursor = ansi(process.stdout); var createNamespace = require('continuation-local-storage').createNamespace; var ns = createNamespace('ns'); var shuffle = require('fisher-yates'); var DEFAULT_OPTIONS = { m...
global.window = require("mithril/test-utils/browserMock.js")(); global.document = window.document; const assert = require("power-assert"); const Popup = require("../src/popup.js"); describe("Popup", () => { it("works", () => { const vnode = Popup.view({ state: { projects: { "219579": { ...
'use strict'; const { app, BrowserWindow, powerSaveBlocker } = require('electron'); const path = require('path'); const url = require('url'); let caffeine = null; let win = null; app.on('window-all-closed', () => { powerSaveBlocker.stop(caffeine); app.quit(); }); app.on('ready', () => { caffeine = powerSaveBlocke...
var gui = require('nw.gui'), os = require('os'), pjson = require('./package.json') // Create an empty menu. var menubar = new gui.Menu({type: 'menubar'}) // If we're on OS X, attach built-in menu items and nice app name. if (os.platform() === 'darwin') { menubar.createMacBuiltin(pjson.window.title) } // Create...
var Server = require('karma').Server; var util = require('gulp-util'); module.exports = function (done) { return new Server({ configFile: util.karmaConfig, singleRun: true }, done).start(); };
'use strict'; var through = require('through'), assert = require('assert'), re_S = /[ \t\r\n\f]/, lexer, tokens = [ 'S', 'IDENT', 'COMMENT_ML', 'COMMENT_SL', 'SLASH', 'STRING_SQ', 'UNTERMINATED_SQ', ...
import * as React from 'react'; import Box from '@mui/material/Box'; import Switch from '@mui/material/Switch'; import Paper from '@mui/material/Paper'; import Grow from '@mui/material/Grow'; import FormControlLabel from '@mui/material/FormControlLabel'; const icon = ( <Paper sx={{ m: 1 }} elevation={4}> <Box c...
var path = require('path'); var fs = require('fs'); var crypto = require('crypto'); var externalRx = /^(\s*[a-z0-9\-]+:)?\/\//i; var queryAndHashRx = /[\?\#].*$/; var slashRx = /\\/g; var textFileExt = ['.css', '.js', '.json', '.tmpl', '.txt', '.svg', '.html']; var textType = ['script', 'style', 'template', 'json', '...
import nprogress from 'nprogress'; import io from 'socket.io-client'; // $httpProvider.interceptors.push('httpInterceptor'); // 모든 AngularJS Ajax Http 호출을 관리함 export function httpInterceptor($q, $rootScope) { return { request(req) { nprogress.start(); return req || $q.when(req); }, requestErr...
(function(){ 'use strict'; angular.module('phonebook', ['onsen.directives']); })();
/** * This revised FileDownloader uses the AWS plugin. * Gary Griswold, April 2018 */ function FileDownloader(database, locale) { this.database = database; var parts = locale.split('-'); this.countryCode = parts.pop(); console.log('Country Code', this.countryCode); if (deviceSettings.platform() === 'ios') { this...
Template.registerHelper('debug', function (optionalValue) { if (typeof console !== "undefined" || typeof console.log !== "undefined") { console.log("Current Context"); console.log("===================="); console.log(this); if (optionalValue) { console.log("Value"); console.log("==========...
"use strict"; import React from "react"; import ReactDOM from "react-dom"; import * as SynthCore from "./synth_core"; import * as DefaultSong from "./default_song"; import { BufferGenerator } from "./buffer_generator"; import { IDGenerator } from "./id_generator"; import { MidiController } from "./midi_controller"; i...
exports.config = { // See http://brunch.io/#documentation for docs. files: { javascripts: { joinTo: "js/app.js" // To use a separate vendor.js bundle, specify two files path // http://brunch.io/docs/config#-files- // joinTo: { // "js/app.js": /^(web\/static\/js)/, // "js/v...
'use strict'; var express = require('express'); var passport = require('passport'); var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; var tokenUtils = require('../tokenUtils'); var generateStateVal = require('../stateMiddleware').generate; var verifyStateVal = require('../stateMiddleware').verify; ...
"use strict"; var util = require("substance-util"); var Surface = require("./surface"); var Keyboard = require("substance-commander").ChromeKeyboard; var MutationObserver = window.MutationObserver; var MutationObserver; if (!window.MutationObserver) { if (window.WebKitMutationObserver) { MutationObserver = win...
(function(window) { // Global variables. var state = window.state = { $actor_select: null, $editor: null, $grid_container: null, $map_tab: null, $map_tab_body: null, editor: null, parsedJson: null, in_error: false, delay_counter: 0, ...
// babel.config.js module.exports = { presets: [ "@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript", ], };
// qb_kafa_tests.js // If we are getting a test.done complaint, turn this on. It helps find errors process.on('uncaughtException', function(err) { console.error(err.stack); }); process.setMaxListeners(0); require('longjohn') var async = require('async') var QB = require('qb').backend(require('../index').backend) v...
var ExtractTextPlugin = require('extract-text-webpack-plugin') var postCssImport = require('postcss-import') var postCssNested = require('postcss-nested') var postCssSimpleVars = require('postcss-simple-vars') var postCssAutoprefixer = require('autoprefixer') module.exports = { module: { loaders: [ { ...
'use strict'; angular.module('<%= _.camelize(appname) %>', [<%= angularModules %>]) .config(function ($routeProvider) { $routeProvider .when('/', { templateUrl: 'views/main.html', controller: 'MainCtrl' }) .otherwise({ redirectTo: '/' }); });
// Testacular configuration // Generated on Sun Mar 03 2013 08:24:25 GMT-0400 (Atlantic Standard Time) // base path, that will be used to resolve files and exclude basePath = ''; // list of files / patterns to load in the browser files = [ JASMINE, JASMINE_ADAPTER, 'js/duration.js', 'test/*test.js', ]; //...
import React from 'react'; import TickCircleIcon from './TickCircleIcon'; import generateSketchIconSizes from '../private/generateSketchIconSizes'; export const symbols = { ...generateSketchIconSizes('TickCircle/1. Unfilled', <TickCircleIcon />), ...generateSketchIconSizes('TickCircle/2. Filled', <TickCircleIcon f...
var makeTests = require('../testBuilder.js'); module.exports = makeTests([ { template: '{{padCenter a}}', input: {a:'1234567890'}, output: '1234567890' }, { template: '{{padCenter a b}}', input: {a:'1234567890', b:10}, output: '1234567890' }, { template: '{{padCenter a b}}', input: {a:'1234567890...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import PreventDrag from '../PreventDrag'; storiesOf('PreventDrag', module).add( 'API', withInfo({ text: 'Try to drag the second one.', inline: true, })(() => ( <div> <img s...
require('es6-promise').polyfill(); var fetch = require('isomorphic-fetch'); var config = require("../../private/config.js") module.exports={ fetchEvents:function(callback) { fetch('/meetups') .then(function(response) { if (response.status >= 400) { throw new Error("Bad response from se...
/** * Reponds with a private message when someone says "hi" * @param {Object} bot * @param {Object} message */ module.exports = function hi(bot, message) { bot.startPrivateConversation(message, function(err, convo) { convo.say('Every day, you should tell me what your plan is for the day. Just a few br...
import app from 'app'; import _ from 'lodash'; import template from 'text!./task-id-directive.html'; import 'views/forms/view/record-loader.directive'; import 'toastr'; import 'ngDialog'; import 'views/directives/document-reference-history'; import 'services/main'; import 'views/directives/block-region-directive'; ap...
;(function($, undefined){ sblp.SBLPView_Photo_Gallery = sblp.SBLPView.extend({ init: function($view){ this._super($view, { source_list: 'div.image' }); if( $view.data('alert') ) alert("No links could be found. Are you sure you have selected a field of the type 'upload' for the relation in the Sel...
import alphamap_fragment from './ShaderChunk/alphamap_fragment.js'; import alphamap_pars_fragment from './ShaderChunk/alphamap_pars_fragment.js'; import alphatest_fragment from './ShaderChunk/alphatest_fragment.js'; import aomap_fragment from './ShaderChunk/aomap_fragment.js'; import aomap_pars_fragment from './ShaderC...
/* AXISJ Javascript UI Framework */ /* http://www.axisj.com, license : http://www.axisj.com/license */ jQuery.fn.loadHtmlElement = function(arg) { if(arg == undefined) arg = {} var varObj = new AXHtmlElement(); arg.target = this.get(0).id; varObj.setConfig(arg); return this; }; var AXHtmlElemen...