code
stringlengths
2
1.05M
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', function($scope, Authentication) { // This provides Authentication context. $scope.authentication = Authentication; } ]);
import { ENV } from 'ember-environment'; import { dasherize } from '../../../system/string'; import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; function test(assert, given, expected, description) { assert.deepEqual(dasherize(given), expected, description); if (ENV.EXTEND_PROTOTYPES.String) { ...
/*! * Fluid Infusion v2.0 * * Infusion is distributed under the Educational Community License 2.0 and new BSD licenses: * http://wiki.fluidproject.org/display/fluid/Fluid+Licensing * * For information on copyright, see the individual Infusion source code files: * https://github.com/fluid-project/infusion/ */ /*...
/*! * CanJS - 2.2.7 * http://canjs.com/ * Copyright (c) 2015 Bitovi * Fri, 24 Jul 2015 20:57:32 GMT * Licensed MIT */ /*can@2.2.7#map/validations/validations*/ var can = require('../../util/util.js'); require('../map.js'); var validate = function (attrNames, options, proc) { if (!proc) { proc = optio...
$(document).ready(function() { $("div.blog-post").hover( function() { $(this).find("div.content-hide").slideToggle("fast"); }, function() { $(this).find("div.content-hide").slideToggle("fast"); } ); $('.flexslider').flexslider({ prevText: '', nextText: '' ...
'use strict'; //git repository //https://github.com/champnakub/CameraApp.git // Declare app level module which depends on views, and components var App = angular.module('myApp', [ 'ngRoute', 'myApp.version', //VIEW SECTION 'myApp.SyncView', 'myApp.ItemView', 'myApp.SetupView', 'myApp.Login...
var AzureOAuthStrategy = require('passport-azure-oauth').Strategy; var config = require('./config'); module.exports = function (passport) { passport.serializeUser(function (user, done) { done(null, user); }); passport.deserializeUser(function (user, done) { done(null, user); }); // Configure Passp...
import React from 'react' import Icon from 'react-icon-base' const FaArrowCircleLeft = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.6 21.4v-2.8q0-0.6-0.5-1t-1-0.5h-11.2l4.3-4.2q0.4-0.4 0.4-1t-0.4-1l-2.1-2q-0.4-0.4-1-0.4t-1 0.4l-10.1 10.1q-0.4 0.4-0.4 1t0.4 1l10.1 10.1q0.4 0.4 1 0.4t1-0...
import React from 'react' import Icon from 'react-icon-base' const MdControlPointDuplicate = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25 31.6q4.8 0 8.2-3.4t3.4-8.2-3.4-8.2-8.2-3.4-8.2 3.4-3.4 8.2 3.4 8.2 8.2 3.4z m0-26.6q6.3 0 10.6 4.4t4.4 10.6-4.4 10.6-10.6 4.4-10.6-4.4-4.4-10.6 4.4-...
requirejs.config({ baseUrl: "../src", paths: { "mocha": "../node_modules/mocha/mocha", "chai": "../node_modules/chai/chai", "configDir": "../tests/configs", "configFile": "../tests/configs/config", "testsDir": "../tests/apps", "src": "../src/apps", 'jquer...
'use strict'; var path = require('path'); var _ = require('lodash'); function requiredProcessEnv(name) { if(!process.env[name]) { throw new Error('You must set the ' + name + ' environment variable'); } return process.env[name]; } // All configurations will extend these options // =========================...
import Component from 'react-pure-render/component'; import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; class Header extends Component { static propTypes = { msg: PropTypes.object.isRequired, viewer: PropTypes.object }; render() { c...
'use strict'; goog.require('ThreeViewer.ViewerService'); goog.require('ThreeViewer.AppController'); goog.require('ThreeViewer.FileLoaderController'); goog.require('ThreeViewer.Directives'); goog.require('ThreeViewer.Filters'); goog.require('ThreeViewer.MessageBus'); goog.require('ThreeViewer.StorageService'); goog.requ...
/* |-------------------------------------------------------------------------- | Imports |-------------------------------------------------------------------------- */ var mongoose = require('mongoose'); var bcrypt = require('bcrypt'); var Schema = mongoose.Schema; /* |------------------------------------------------...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = ...
var path = require('path'); var expect = require('chai').expect; var pkg = path.normalize(path.join(__dirname, '..', '..', 'package.json')); describe('cli-command:', function() { it('should print error on missing required option', function(done) { var cli = require('../..')(pkg); cli.configure({exit: false})...
'use strict'; function okRoute(req, res) { res.send(200, '<h2>All good</2>'); res.end(); } function notOkRoute(req, res) { // prevent express from handling this error via a try/catch ;) setTimeout(function () { throw new Error('Don\'t ever go to ' + req.path); }, 50); } exports.initPages = function (app, exp...
version https://git-lfs.github.com/spec/v1 oid sha256:2fdb7af87eaca56508a7351de4f5fe9ca761db633140e46a8de0ff2c5e9fa13e size 2451
import meta from './button-radio.json' import template from './button-radio.html' import snippet from './snippet.html' import vsButtonRadio from 'src/components/button-radio' import docsDemo from 'vuestrap-docs/src/components/demo' import {sizes, variants} from 'src/utils' export default { route: { url: '/button...
var messageTxt = document.getElementById("messageTxt"); var messages = document.getElementById("messages"); var sendBtn = document.getElementById("sendBtn") w = new WebSocket("ws://" + HOST + "/my_endpoint"); w.onopen = function () { console.log("Websocket connection enstablished"); }; w.onclose = function ...
Meteor.methods({ delete_me: function() { if(!Meteor.userId()) throw new Meteor.Error("not-authorized"); var userId = Meteor.userId(); Devices.remove({"user": userId}); Meteor.users.remove({"_id": userId}); }, log: function(deviceId, message) { try { check(deviceId, String); ...
(function(angular){ "use strict"; /** * @ngdoc module * * @name mfl.setup.routes.contacts * * @description * Contains all the states used for contacts setup */ angular.module("mfl.setup.routes.contacts", ["mfl.setup.routes.dashboard"]) .config(["$stateProvider", func...
/*! * Bootstrap-select v1.7.5 (http://silviomoreto.github.io/bootstrap-select) * * Copyright 2013-2015 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Registe...
/* */ "format cjs"; (function() { 'use strict'; /** * Extend an Object with another Object's properties. * * The source objects are specified as additional arguments. * * @param dst Object the object to extend. * * @return Object the final object. */ var _extend = function(dst) { var...
var MediaListItem = React.createClass({ handleClick: function(event) { console.log('an item is clicked', this.props.media) this.props.onListItemClicked(this.props.media.id) }, render: function() { var media = this.props.media return ( <div className="media ro...
var mongoose = require('mongoose'); var Feature = require('../../model/feature'); var auth = require('../auth/'); var config = require('../../config/index'); var _ = require('underscore'); exports.addFeature = function(req, res, next) { var newFeature = req.body || {}; var errorMsg; if (!newFeature.type) { errorM...
module.exports = { env: { 'browser': false, 'node': true }, rules: { 'no-var': false, 'object-shorthand': false } };
'use strict'; var path = require('path'); var fs = require('fs'); var file = require('./file.js'); var utils = require('./utils'); var async = require('async'); global.cssConcatListMap = global.cssConcatListMap || {}; global.cacheBackgroundImageList = global.cacheBackgroundImageList || {}; function compile(cb) { ...
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS 180-1 * Version 2.2 Copyright Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. */ /* * Conf...
const should = require('should'); const sinon = require('sinon'); const testUtils = require('../../../../../../../utils'); const dateUtil = require('../../../../../../../../core/server/api/canary/utils/serializers/output/utils/date'); const urlUtil = require('../../../../../../../../core/server/api/canary/utils/seriali...
/*! * CanJS - 2.2.5 * http://canjs.com/ * Copyright (c) 2015 Bitovi * Wed, 22 Apr 2015 15:03:29 GMT * Licensed MIT */ /*can@2.2.5#view/stache/stache*/ define([ 'can/util/library', 'can/view/parser', 'can/view/target', 'can/view/html_section', 'can/view/text_section', 'can/view/mustache_co...
define({ "layerSelect": "Izaberite sloj snimka", "displayMeasureResultInPopup": "Prikaži rezultate merenja u iskačućem prozoru", "angularUnitSelect": "Podrazumevana jedinica za merenje ugla", "linearUnitSelect": "Podrazumevana linearna jedinica", "areaUnitSelect": "Podrazumevana jedinica površine", "display...
// Copyright 2015 Yahoo! Inc. // Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms. var Base = require('preceptor-core').Base; var PNGImage = require('pngjs-image'); /** * @class Image * @extends Base * @module Compare * * @property {PNGImage} _image * @property {number[]} _...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (...
class C { async * #g() { this; await 1; yield 2; return 3; } }
'use strict'; require('./services'); angular.module('app.controllers', ['app.services', 'ngCookies', 'lbServices']) .controller('AppCtrl', function($scope, $ionicModal, $timeout, AppAuth, Animal) { AppAuth.ensureHasCurrentUser(function(user) { $scope.currentUser = (user && user.email) ? user : {anonymous:...
import { nodeOrNew, register, wrapWithAttrCheck, extend } from '../utils/adopter.js' import { registerMethods } from '../utils/methods.js' import Container from './Container.js' import * as containerGeometry from '../modules/core/containerGeometry.js' export default class G extends Container { constructor (node, att...
/* App Module */ 'use strict'; var test; define([ 'angular', "jqueryAppear", 'angularAnimate', 'angularRoute', 'angularMousewheel', 'hamsterjs', 'angularChart', 'angularAMD', 'ngStorage', 'angularBootstrap', 'angularResource', 'angularUIRouter', '...
import createStore from 'store/createStore'; describe('(Store) createStore', () => { let store; before(() => { store = createStore(); }); it('should have an empty asyncReducers object', () => { expect(store.asyncReducers).to.be.an('object'); expect(store.asyncReducers).to.be.empty(); }); it(...
var fs = require('fs'); var libxml = require('../index'); module.exports.parse = function(assert) { var filename = __dirname + '/fixtures/parser.xml'; var str = fs.readFileSync(filename, 'utf8'); var doc = libxml.parseXml(str); assert.equal('1.0', doc.version()); assert.equal('UTF-8', doc.encodin...
/** Adds a static method `Y.Plugin.addHostAttr(...)` to allow plugging and unplugging to happen via host attribute configuration. @module gallery-pluginattr @for Plugin **/ var Lang = Y.Lang, isString = Lang.isString, isObject = Lang.isObject, isFunction = Lang.isFunction; /** Register a Plugin ...
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const AccordionUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExa...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
/******************\ | Word2Vec Utils | | @author Anthony | | @version 0.2.1 | | @date 2016/01/08 | | @edit 2016/01/08 | \******************/ var Word2VecUtils = (function() { 'use strict'; /********** * config */ /************* * constants */ var WORDS = Object.keys(wordVecs); /***************...
version https://git-lfs.github.com/spec/v1 oid sha256:c6baf8aa27773d65a523e53291b28fb629623068197e95f528659440b8f574fe size 896
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4H9zm-1...
export class ProseMirrorError extends Error { constructor(message) { super(message) if (this.message != message) { this.message = message if (Error.captureStackTrace) Error.captureStackTrace(this, this.name) else this.stack = (new Error(message)).stack } } get name() { return th...
"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")...
'use strict' const options = require('template-tools/src/utils/options') const urlparse = require('url').parse const async = require('async') const webserverTools = require('template-api/src/webserver/tools') const REQUIRED = [ 'client' ] const DEFAULTS = {} const BookingRoutes = (opts) => { opts = options.pr...
// @include ./modules/AddClass.js // @include ./modules/Attr.js // @include ./modules/Data.js // @include ./modules/HasAttr.js // @include ./modules/HasClass.js // @include ./modules/RemoveAttr.js // @include ./modules/RemoveClass.js // @include ./modules/RemoveData.js // @include ./modules/ToggleClass.js
(function () { 'use strict'; class awesomeOptions { constructor() { // pagination options this.paginationPrev = '«'; this.paginationNext = '»'; this.pageSize = 10; this.chomp = false; } setPaginationPrev(prev) {...
app.factory('Repeater', function() { function Repeater(expression) { var match = expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/); var lhs = match[1]; this.rhs = match[2]; this.aliasAs = match[3]; this.trackByExp = match[4]; match...
define(function(require) { "use strict"; function getReadWidget() { return '<ma-boolean-column value="::entry.values[field.name()]"></ma-boolean-column>'; } function getLinkWidget() { return '<a ng-click="gotoDetail()">' + getReadWidget() + '</a>'; } function getFilterWidget() {...
const url = require('url'); const Errors = require('../utils/errors.js'); // From https://github.com/sindresorhus/is-absolute-url const isAbsoluteUrl = (location) => /^(?:\w+:)\/\//.test(location); const parseUrlWithEnv = (location) => { const matches = /^\${([^"]*)}/.exec(location); return (matches) ? proces...
this.parseYield = function(context) { var arg = null, deleg = false; var c = this.c, li = this.li, col = this.col; var startc = this.c0, startLoc = this.locBegin(); this.next(); if ( !this.nl ) { if ( this.lttype === 'op' && this.ltraw === '*' ) { deleg = true; this.nex...
'use strict'; var fill = require('../../object/fill'), expect = require('expect.js'); describe('object/fill', function () { it('should copy new properties to an object', function () { var a = { foo: 1, bar: 2 }, b = { bar: 3, baz: 4 }, c = fill(a, b); expect(c).to.be(a); expect(c).to.eql({ foo: 1, bar:...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.rand = exports.loopFn = exports.ifColor = exports.animalTurn = exports.animalMove = exports.animalPaint = undefined; var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator)...
import SuperSelectField from 'material-ui-superselectfield' import { Component, createElement } from 'react' /** * Creates a component class that renders the given Material UI component * * @param MaterialUIComponent The material ui component to render * @param mapProps A mapping of props provided by redux-form to the...
const DrawCard = require('../../../drawcard.js'); class OlennasInformant extends DrawCard { setupCardAbilities() { this.reaction({ when: { onCardEntersPlay: event => event.card === this && this.game.currentPhase === 'challenge' }, handler: () => { ...
/* Unobtrusive JavaScript https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts Released under the MIT license */ (function() { var context = this; (function() { (function() { this.Rails = { linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled...
sample.foo = function() { alert('yay!'); console.log(jQuery); };
(function() { 'use strict'; var store; module('Model State Test', { setup: function() { store = setupStore({ tag: EG.Model.extend({ name: EG.attr({ type: 'string', defaultValue: '(none)' }) }) }, { adapter: EG.Adapter.extend({ findRecord: function() { return Em....
App.AppDbFinalCreateView = Ember.View.extend({ templateName: 'components/appdb_finalcreate' }); Ember.Handlebars.helper('appdb_finalcreate-view', App.AppDbFinalCreateView );
const ora = require('ora') const Table = require('cli-table2') const debug = require('logdown')() const Benchmark = require('benchmark') const fastMemoize = require('../src/') const iMemoized = require('iMemoized') const lodash = require('lodash').memoize const memoizee = require('memoizee') const R = require('ramda')...
@APP@.@CRESOURCE@Toolbar = Ember.View.extend({ templateName: '@RESOURCE@s-toolbar', searchQuery: '', new@CRESOURCE@ : function() { var v = @APP@.New@CRESOURCE@View.create({item:@APP@.@CRESOURCE@.create()}); v.appendTo('#content'); }, del@CRESOURCE@ : function() { @APP@.@RESOU...
import { ACTION_ON_USER_BOOKING_REQUEST, ACTION_ON_USER_BOOKING_SUCCESS, ACTION_ON_USER_BOOKING_FAILURE, CLEAR_ACTION_ERROR_ON_USER_BOOKING } from '../../../constants/ActionTypes'; const initialUserBookingActionState = { isSaving: false, actionName: null, error: null, }; function userBookingAction(state ...
version https://git-lfs.github.com/spec/v1 oid sha256:54aa5e024edac8351906cd40bdc59cb81be0cd02737482667afb2e061d3be4f4 size 52508
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010. // // ## Description // This class by Raffaele Viglianti, 2012 http://itisnotsound.wordpress.com/ // // This class implements hairpins between notes. // Hairpins can be either Crescendo or Descrescendo. import { Vex } from './vex'; import { Element ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides xml parsing and error checking functionality. sap.ui.define(['jquery.sap.global', 'sap/ui/Device'], function(jQuery, Dev...
"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")...
import AbstractController from "../../shared/controllers/abstract"; export default class SnsController extends AbstractController { static realm = "mail"; }
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const sinon = require("sinon") const Backbone = require("backbone") const { extend } = require("underscore") const { fabric...
var util = require('util'), _ = require('lodash'), excludedMap = {}, filterFn = function (head) { return function (ex) { return ex.indexOf(head + '.') === 0; }; }, mapFn = function (head) { return function (ex) { return ex.replace(head + '.', ''); ...
#!/usr/bin/env node console.log('Node OK'); var Program = require('commander') , Kuler2Gpl = require('../lib/kuler2gpl') Program .version('0.0.0') .option('-i, --inputDir [dir]', 'Input Directory') Program.on('--help', function() { console.log('Converts Kuler color palette files to GIMP / Inkscape GPL files. ...
/** * * Player for AnimationClips. * * * @author Ben Houston / http://clara.io/ * @author David Sarno / http://lighthaus.us/ * @author tschw */ THREE.AnimationMixer = function( root ) { this._root = root; this._initMemoryManager(); this._accuIndex = 0; this.time = 0; this.timeScale = 1.0; }; THREE.An...
/** * Module dependencies. */ var util = require('util'), _ = require('underscore'), Profile = require('./profile'), OAuth2Strategy = require('passport-oauth').OAuth2Strategy, InternalOAuthError = require('passport-oauth').InternalOAuthError, NaverAPIError = require('./errors/naverapierror'); /** * `Strategy` ...
// Requires: // utils/logger if (!this.Reading) { var logger = require('../utils/logger.js').Logger; module.exports.Line = require('./line.js').Line; } (function (app) { 'use strict'; var LinePredictor = { init: function (geomModel, settings) { _geomModel = geomModel; ...
// required so we can extend this object. import SafeString from "htmlbars-util/safe-string"; import EmberStringUtils from "ember-runtime/system/string"; /** Mark a string as safe for unescaped output with Handlebars. If you return HTML from a Handlebars helper, use this function to ensure Handlebars does not es...
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import configureStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import AppContainer from '../../../webapp/js/components/app/AppContainer'; describe('Component: AppContainer', () => { let component; const...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CONST = require('./tween/const'); var Extend = require('../utils/object/Extend'); /** * @namespace Phaser.Tweens */ var Tweens = { ...
/** * A method that returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. } module.exports = noop;
module.exports = { plugins: { cssDeclarationSorter: { order: 'alphabetically' }, cssnano: { minifySelectors: false }, autoprefixer: { browsers: [ '> 0.5% in GB', 'last 3 versions', 'not ie 9' ] } } }
'use strict'; /** * Dime - app/activity/routes.js */ (function ($, App) { App.menu.add({ id:"activity", title:"Activities", route:"activity", weight:-20, callback:function () { App.menu.activateItem('activity'); App.router.switchView(new App.Views....
var Config = require('./config.js'); module.exports = function (app, sockets) { app.get('/', function (req, res) { res.render('index'); }); app.get('*', function (req, res) { res.send(404); }); };
version https://git-lfs.github.com/spec/v1 oid sha256:c6f749106ecaba304906b82c047057080f9a616644aa502557674c2396633ee8 size 13817
'use strict'; var core = require('./lib/core'); module.exports = core;
import path from 'path'; import fs from 'fs'; /** * Utility function to construct object for directory & files structure * @param {String} projPath - project location * @param {Boolean} deepScan - deep scan into sub-directory * @param {String} extensions - file extensions */ exports.getDirectoryTree = function di...
'use strict'; var Imbo = require('imboclient'); var metadata = require('imboclient-metadata'); Imbo.Client.prototype.searchMetadata = metadata.searchMetadata; Imbo.Client.prototype.searchGlobalMetadata = metadata.searchGlobalMetadata; module.exports = Imbo;
// For Firefox < 3.6, which doesn't support document.readyState // verify that document.readyState is undefined // verify that document.addEventListener is there // these two conditions are basically telling us // we are using Firefox < 3.6 /*if(document.readyState == null && document.addEventListener){ // on DOMCo...
/* * GET home page. */ exports.index = function(request, response){ response.sendfile("./public/index.html"); };
describe('Iuchi Farseer', function() { integration(function() { describe('Iuchi Farseer\'s ability during conflict phase', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: [...
// Require dependencies var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); // var vidStreamer = require('vid-streamer'); // Define main route app.use(express.static(__dirname + '/public')); // app.get('/videos/', vidStreamer); io.on('con...
/* global appendChartID, loadColorFixture, loadColorFixture2, loadIrisFixture */ describe('dc.heatmap', function () { var id, data, dimension, group, chart, chartHeight, chartWidth; beforeEach(function () { data = crossfilter(loadColorFixture()); dimension = data.dimension(function (d) { return...
(function(hdv, $, _, Handlebars) { 'use strict'; var nullSafeNumber = function(number) { return (number === null || number === undefined || isNaN(parseInt(number, 10))) ? 0 : number; }; var areaValue = { of: function(accountValues, account) { var value = 0; if (!_.isEmpty(accountValues)) { value = nu...
version https://git-lfs.github.com/spec/v1 oid sha256:74709b4fd8f43416a01fe29d06a27ab62c1f9ce641d495e2ae61bd3dc6c0219f size 9633
$(function(){ $('.js-tooltip').each(function(){ var target = $(this); target.tooltip({ placement: target.data('placement') || 'top', title: target.data('tooltip'), delay: 100 }); }); $('.show-if-js').show(); $('.hide-if-js').hide(); });
import storage from './storageSwitcher'; export default async () => { const { fileSizeLimit } = await storage.get(); return Number(fileSizeLimit) * 1024 * 1024 * (4 / 3); // Base64 data volume is 4/3 more than original data };
/** * Error directive module. * * @author imoiseyenko93@gmail.com */ define(["angular"], function (angular) { var errorModule = angular.module("errorModule", []); errorModule.directive("error", function () { return { restrict: "E", templateUrl: "resources/js/app/directive/error/error.html", scope:...
import {h, Component} from 'preact/preact'; import DialogCommon from 'com/dialog/common/common'; import NavLink from 'com/nav-link/link'; import $User from 'shrub/js/user/user'; export default class DialogLogin extends Component { constructor( props ) { super(props); this.state = { login...
'use strict'; describe('Controller: DialerCtrl', function () { // load the controller's module beforeEach(module('phonewordApp')); var DialerCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); DialerCtrl =...