code
stringlengths
2
1.05M
'use strict'; require('./_pub-recipe.scss'); module.exports = { template: require('./pub-recipe.html'), controller: ['$log', 'recipeService', PubRecipeController], controllerAs: 'pubRecipeCtrl', bindings: { recipe: '<', loggedIn: '<' } }; function PubRecipeController($log, recipeService) { $log.d...
import React from 'react' import LogMeOut from 'containers/LogMeOut' import LogMeIn from './LogMeIn' const LogMe = props => props.me.get('token') ? <LogMeOut {...props} /> : <LogMeIn {...props} /> LogMe.propTypes = { } export default LogMe
$.propHooks.checked = { set: function(elem, value, name) { var ret = (elem[name] = value); $(elem).trigger("change"); return ret; } }; $.fn.isOnScreen = function() { var win = $(window); var viewport = { top: win.scrollTop(), left: win.scrollLeft() }; vie...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = express(); app.set('views', path.join(__dirname...
/** * Register controllers * @param {Object} app */ exports.register = (function(){ var homeController = require('./homeController'); function registerController(app, controller){ var settings = controller.settings; var beforeFilters = settings ? settings.beforeFilters : null; v...
module.exports = function(config){ config.set({ basePath: './', colors: true, port: 9876, reporters: ['progress'], logLevel: config.LOG_INFO, autoWatch: true, frameworks: ['jasmine'], browsers: ['PhantomJS'], plugins: [ 'karma-jasmine', 'karma-phantomjs-launche...
var gulp = require('gulp'), //按Home跳到行首 End跳到行尾 connect = require('gulp-connect'),//搭建livereload服务器的, browserify = require('gulp-browserify'), concat = require('gulp-concat'), port = process.env.port || 5000; gulp.task('browserify',function(){ gulp.src('./app/js/main.js') // .pipe(browserify({ // transfor...
define(function() { var Layout_; return Layout_ = (function() { function Layout_() {} Layout_.prototype.__initMixinLayout = function() { return this._dims = { width: null, height: null }; }; Layout_.prototype.setWidth = function(w) { this._dims.width = w; t...
angular.module('mapboxgl-directive').factory('PopupsManager', ['Utils', 'mapboxglConstants', '$rootScope', '$compile', function (Utils, mapboxglConstants, $rootScope, $compile) { /* /\$\{(.+?)\}/g --> Lorem ${ipsum} lorem ${ipsum} --> ['${ipsum}', '${ipsum}'] /[^\$\{](.+)[^\}]/g --> ${ipsum} --> ipsum */ var _r...
/* eslint key-spacing:0 spaced-comment:0 */ const path = require('path') const debug = require('debug')('app:config:project') const argv = require('yargs').argv const ip = require('ip') debug('Creating default configuration.') // ======================================================== // Default Configuration // ====...
'use strict'; const fs = require('fs'); const path = require('path'); const glob = require('glob'); const camelCase = require('camelcase'); const ngc = require('@angular/compiler-cli/src/main').main; const rollup = require('rollup'); const uglify = require('rollup-plugin-uglify'); const sourcemaps = require('rollup-pl...
'use strict'; /** * @ngdoc directive * @name ng.directive:ngSwitch * @restrict EA * * @description * Conditionally change the DOM structure. * * @usageContent * <ANY ng-switch-when="matchValue1">...</ANY> * <ANY ng-switch-when="matchValue2">...</ANY> * ... * <ANY ng-switch-default>...</ANY> * * @sc...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
/*jshint strict: false */ /** * @desc floatToDollar() - turns floats into a dollar format string with commas * * @param {Number} float - the number to be turned into a '$' with commas * * @return {String} - string beginning with a dollar sign and ending with two * decimal points for cents */ function f...
import { createSet } from '../../../helpers' import profilePhoto from './matt-in-toronto-2017.jpg' import profilePhotoAt2x from './matt-in-toronto-2017@2x.jpg' import profilePhotoAt3x from './matt-in-toronto-2017@3x.jpg' const assets = { profilePhoto: { default: profilePhoto, set: createSet(profilePhoto, pr...
import _ from 'lodash'; class BreadcrumbController { constructor(BreadcrumbService) { 'ngInject'; this.BreadcrumbService = BreadcrumbService; this.path = []; } $onInit() { this.currentState = this.BreadcrumbService.getCurrentState(); this.subscription = this.Breadcr...
var mandrill = require('mandrill-api/mandrill'); var config = require('../config/app'); var mandrillClient = new mandrill.Mandrill(config.MANDRILL_API_KEY); // All types of email content is stored within this object exports.messages = { // Welcome email template welcome: { "message": { "from_email": co...
(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...
export { default as AdminMenu } from './admin-menu'; export { default as Menu } from './menu'; export { default as InputFieldOverlay } from './input-field-overlay'; export { default as PortSelector } from './port-selector';
// Write your package code here! Countries = [ {name:'Afghanistan', iso:'af'}, {name:'Aland Islands', iso:'ax'}, {name:'Albania', iso:'l'}, {name:'Algeria', iso:'dz'}, {name:'American Samoa', iso:'as'}, {name:'Andorra', iso:'ad'}, {name:'Angola', iso:'ao'}, {name:'Anguilla', iso:'ai'}, ...
import React from 'react'; import { CLIENT_SECRET } from 'api'; import { authReducer, initialState } from 'auth/auth.reducer'; import { CHANGE_LOCALE, GET_AUTH_ORGS, GET_AUTH_STAR_COUNT, GET_AUTH_USER, LOGIN, LOGOUT, } from 'auth/auth.type'; import { user } from 'testData/api/user'; import { events } from '...
version https://git-lfs.github.com/spec/v1 oid sha256:a9dba54dc113cbdbdb45874799aec3e32c9e5d8fbeac9baa402715765432f0f1 size 450
import 'dotenv/config'; import chai, { expect } from 'chai'; import chaiAsPromised from 'chai-as-promised'; import WorldOfTanksConsole from '../../../src/clients/WorldOfTanksConsole'; describe('Tankopedia', function () { const client = new WorldOfTanksConsole({ realm: 'xbox', applicationId: process.env.APPLI...
/** Allow parsing of description of static parking to use in other parts of the app */ var parkingLabelPattern = new RegExp(/EXCEPTÉ (VÉHICULES MUNIS D'UN PERMIS DE STATIONNEMENT|PERMIS|VÉH.){1} ZONE (\S+)/); var hoursIntervalPattern = new RegExp(/\d+h\d*\s-\s\d+h\d*/g); var dateIntervalPattern = new RegExp(/(\d{1,2})...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:settings/index', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { var route = this.subject(); assert.ok(route); });
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'bs-commerce'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSaniti...
import { getToken } from '../actions/authTokenActions'; class EventApi { static getAllItems() { return new Promise((resolve) => { fetch('http://localhost:3000/api/events').then(function (response) { return response.json(); }).then(function (eventTypes) { resolve(Object.assign([], eve...
const electron = require('electron') // Module to control application life. const app = electron.app // Module to create native browser window. const BrowserWindow = electron.BrowserWindow const path = require('path') const url = require('url') // Keep a global reference of the window object, if you don't, the window...
module.exports = { Field: require('../DatetimeField'), Filter: require('../DatetimeFilter'), section: 'Date', spec: { label: 'Datetime', path: 'datetime', paths: { date: 'datetime.date', time: 'datetime.time', }, value: new Date(), }, };
'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { var relative_path = require('nconf').get('relative_path'); module.exports = factory(require('../utils'), require('benchpressjs'), require('string'), relative_path); } else if (typeof define === 'function' && define.amd) { d...
/* eslint-env browser */ /* global $ */ "use strict"; var formField = require("../ui/utils/form-field.js"), getAvatar = require("../lib/get-avatar.js"); module.exports = function(core) { core.on("pref-show", function(tabs, next) { var $avatar, $about, user, avatars = []; user = tabs.user || {}; user.para...
'use strict'; // Middleware for error handling var errorHandler = function(err, req, res, next) { var message = err.message; var error = err.error || err; var status = err.status || 500; res.status(status).json({ message: message, error: error }); }; module.exports = errorHandler;
import { connect } from 'react-redux'; import NotificationList from './NotificationList'; const mapStateToProps = state => ({ notifications: state.notifications }); export default connect( mapStateToProps )(NotificationList);
$ergo.defineClass('Ergo.demo.List', { extends: 'Ergo.widgets.Panel', defaults: { title: 'Список', as: 'widget default blue', $header: { $title: { as: 'heavy padding large' } }, $toolbar: { as: 'padding', weight: -5, items: [{ etype: 'button', include: ['ic...
/** * Created by chrisp on 28/08/2016. */ "use strict"; //# sourceMappingURL=karma.local.cofig.js.map
// Filename: touchboom.test.js // Timestamp: 2017.11.03-13:33:54 (last modified) // Author(s): bumblehead <chris@bumblehead.com> const touchboom = require('./touchboom'); let THREE = null; function gettouchboom (fn) { let threescript = '//cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js'; (function next ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bodyParser = require("body-parser"); const express = require("express"); class ComponentsApi { constructor(componentsEventStore) { this.componentsEventStore = componentsEventStore; this.router = express.Router(); ...
import { connect } from 'react-redux'; import { doHideModal } from 'redux/actions/app'; import ModalViewImage from './view'; const perform = dispatch => ({ closeModal: () => dispatch(doHideModal()), }); export default connect(null, perform)(ModalViewImage);
/*eslint-env node*/ var webpackConfig = require('./webpack.config') var webpack = require('webpack') var WebpackDevServer = require('webpack-dev-server') var path = require('path') var gutil = require('gulp-util') module.exports= function(){ var devPort = 8081 var wbpk = Object.create(webpackConfig) wbpk.d...
'use strict'; let Service; let Characteristic; let CBusAccessory; let uuid; let cbusUtils = require('../lib/cbus-utils.js'); const chalk = require('chalk'); // does not alter string prototype const FILE_ID = cbusUtils.extractIdentifierFromFileName(__filename); const SPIN_TIME = 3000; module.exports = function (_s...
/** * copyright Ryan Day 2010 <http://ryanday.org>, Joscha Feth 2013 <http://www.feth.com> [MIT Licensed] */ var elementStartChar = 'a-zA-Z_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD'; var elementNonStartChar = '\-.0...
/** * # Query to obtain a token to access a portfolio or a portfolio token * * Execute the query to obtain a token to access a portfolio or a portfolio token * * It is mostly use to build a restrictive page, which only * have an access to the portfolio/portfolio item optionally with a specific context * * ...
var FqClient = require('../lib/client'); var opts = { exc: 'testfooexchange', p: 'prefix:"test.prefix." sample(1)', pm: 0 }; module.exports = { setUp : function(callback){ var self = this; var clientSender = new FqClient(); clientSender.connect(); clientSender.on('ready...
var gulp = require('gulp'); var del = require('del'); gulp.task('clean-dist', function(cb) { del([ 'dist' ], cb); });
import React from "react"; import PropTypes from "prop-types"; import cs from "classnames"; import Draggable from "react-draggable"; import { Resizable } from "react-resizable"; import DialogTitle from "./DialogTitle"; import DialogBody from "./DialogBody"; import DialogFooter from "./DialogFooter"; import EventStack f...
/** * Kockák plugin * * @author Sándor Preszter <preszter.sandor@gmail.com> * @version 1.0 * @dependency jquery-ui-min.js */ var kockak = { /** * Inicializálás * @constructor */ ini: function(){ // Gomb hozzáadása a főmenühöz $("#menu").append('<div><a class="tools"><img src="programdata/gfx/dot.g...
/** * @license Copyright (c) 2014, smrtlabs * For licensing, see LICENSE */ "use strict"; var assert = require("chai").assert, esformatter = require("gulp-esformatter"), eslint = require("gulp-eslint"), fs = require("fs"), gulp = require("gulp"), istanbul = require("gulp-istanbul"), mocha =...
var gitHooks = require('./git-hooks'), fs = require('fs'), hooks = require('../hooks.json'); module.exports = { /** * @param script 要执行的脚本的文件名,比如package.json中定义了: {"hint": "f2ehint-hook --check"},则:script值为:'hint'。会传到sh代码中有相应执行 * @param hookName 对应的钩子名字,比如要在执行git commit后执行hint(tnpm run hin...
{ var className = "Query elapsed"; if (elapsed >= 10.0) { className += " warn_long"; } else if (elapsed >= 1.0) { className += " warn"; } else { className += " short"; } return className; }
// flow-typed signature: 2ebe831f8642996ad9a60aa6d180f62a // flow-typed version: <<STUB>>/gulp-sass_v2.3.2/flow_v0.52.0 /** * This is an autogenerated libdef stub for: * * 'gulp-sass' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * ...
/** * Created by ubuntu on 17-6-14. */ Template.commentsIndexBlurbCell.helpers({ blurb: function () { // var blurb = jQuery.truncate(this.body, { // length: 15 // }); var blurb = jQuery.trim(this.body).substring(0, 150) .split(" ").slice(0, -1).join(" ") + "..." ...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Ambiente = mongoose.model('Ambiente'); /** * Globals */ var user, ambiente; /** * Unit tests */ describe('Ambiente Model Unit Tests:', function() { beforeEach(fun...
require('SomeSillyObjectToGenerateAnError');
/* globals __dirname */ const fs = require('fs'); const path = require('path'); const routerNameSufix = '.router'; const attachTo = (app, controllers, user) => { fs.readdirSync(__dirname) .filter((file) => file.includes(routerNameSufix)) .forEach((file) => { const router = path.join(__...
class ConsentCommand { turnOffSearchCustomization() { this.page.section.customizeSearch.click('@turnOffButton'); return this; } turnOffYoutubeHistory() { this.page.section.youtubeHistory.click('@turnOffButton'); return this; } turnOffAdPersonalization() { this.page.section.adPersonaliz...
var classRefObjLocker = [ [ "RefObjLocker", "classRefObjLocker.html#a54a5259878080eebe74ad2f510bd25fe", null ], [ "~RefObjLocker", "classRefObjLocker.html#af6ef154bbfd99421d622b1221225a652", null ], [ "operator*", "classRefObjLocker.html#adf3a47f4b2ae453f66634bb41e82b7a0", null ], [ "operator->", "class...
"no use strict"; var console = { log: function(msg) { postMessage({type: "log", data: msg}); } }; var window = { console: console }; var normalizeModule = function(parentId, moduleName) { // normalize plugin requires if (moduleName.indexOf("!") !== -1) { var chunks = moduleName.spl...
var _ = require('underscore'); var BaseObject = require('./BaseObject'); var aliasMethod = require('./util').aliasMethod.bind(undefined, Set); function Set(key, myRedis, options) { BaseObject.apply(this, arguments); } module.exports = exports = Set; exports.prototype = Object.create(BaseObject.prototype); exports.p...
'use strict'; var fs = require('fs'); var path = require('path'); var compile = require('./'); delete require.cache[require.resolve(__filename)]; module.exports = function (file, opts) { file = path.join(path.dirname(module.parent.filename), file); if (!fs.existsSync(file) && fs.existsSync(file + '.schema')) fil...
/** * The HTMLView can be used to embed HTML formatted content in a hierarchy of jide.js components. * * @module jidejs/ui/control/HTMLView * @extends module:jidejs/ui/Control */ define([ './../../base/Class', './../../base/ObservableProperty', './../Control', './../Skin', './../../base/Util', './../register' ], ...
#!/usr/bin/env node 'use strict'; /** * Run example-app unit tests. */ const sh = require('shelljs'); const tools = require('../../packages/tools/index.js'); const src = 'example-app/example-app.specs.js'; // exit on error sh.set('-e'); tools.mocha(src, { config(loader) { loader.config({ map: { ...
var Shape = require('./Shape') , shallowClone = require('../utils/Utils').shallowClone , copy = require('../math/vec2').copy; module.exports = Particle; /** * Particle shape class. * @class Particle * @constructor * @param {object} [options] (Note that this options object will be passed on to the {{#crossLink...
/*! dom.js | Copyright 2015 Jonathan Wilsson. */ ;(function (window, document, undefined) { 'use strict'; var $ = function (selector) { if (selector.nodeType) { this.elements = [selector]; } else { this.elements = [].slice.call(document.querySelectorAll(selector)); ...
import { MeshStandardMaterial } from 'three'; import VglMaterial from './vgl-material'; import { add, color, inst, map, remove, } from '../constants'; export default { mixins: [VglMaterial], props: { /** The material color. */ [color]: { type: [String, Number], default: 0xffffff }, }, computed: { ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4....
'use strict'; const translator = require.main.require('./src/translator'); const Middlewares = module.exports; Middlewares.requireSecondFactor = function (req, res, next) { if (req.session.hasOwnProperty('tfa') && req.session.tfa === true) { next(); } else { translator.translate('[[2factor:second-factor-requir...
'use strict'; // Fire me up! module.exports = { implements: ['interfaces/unnested/singleAsList'] }; module.exports.factory = function () { return require('path').relative(process.cwd(), __filename); };
describe('AppComponent', function() { var phoneService, appComponent; beforeEach(function() { phoneService = { phones: [] }; appComponent = new app.AppComponent(phoneService); }); it("should have zero phones", function() { expect(appComponent.phones.length)...
var exec = require('cordova/exec'); var StatusBarNotification = { coolMethod : function (arg0, success, error) { exec(success, error, "StatusBarNotification", "coolMethod", [arg0]); }, showNotification : function (arg0, success, error) { exec(success, error, "StatusBarNotification", "showNo...
'use strict'; var enumerate = require('./enumerate'); /** * @class * @global * @param {object} options Construction options * @classdesc This class is used to report error conditions, frequently as the first parameter to callbacks throughout the Braintree SDK. * @description <strong>You cannot use this construct...
Package.describe({ name: "angular-meteor-auth", summary: "Angular-Meteor authentication module", version: "1.1.1", git: "https://github.com/urigo/angular-meteor-auth.git", documentation: null }); Package.onUse(function(api) { api.versionsFrom('METEOR@1.2.0.1'); api.use('underscore@1.0.4'); api.use('tr...
import DomainResourceSerializer from 'ember-fhir/serializers/domain-resource'; export default DomainResourceSerializer.extend({ attrs: { identifier: { embedded: 'always' }, definition: { embedded: 'always' }, basedOn: { embedded: 'always' }, replaces: { embedded: 'always' }, requisition: { embedd...
define(['common/html', 'common/jobs', 'common/ui', 'util/string'], (html, Jobs, UI, String) => { 'use strict'; const div = html.tag('div'), p = html.tag('p'), blockquote = html.tag('blockquote'); const outputObjectsBlurb = 'Any output objects already created will remain in your nar...
var psCtx = Yihu.constants.psCtx + '/download', ctx = Yihu.constants.webCtx, cmsCtx = Yihu.constants.cmsCtx; var userArticleFlow; //用户博文瀑布流对象 var uid; //登录用户ID (function($) { $(document).ready(function(){ //广告轮播 // $('#bannerSliders').slideBox({ // duration : 0.3,//滚动持续时间,单位:秒 // easing : 'line...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
import db from './utils/db.js'; /** * @typedef Environment * @type {Object} * @property {Number} id - Unique id of the environment. * @property {String} name - A name for this environment. Must only consist * of the letter A-Za-z0-9. * @property {Object} values - A object of key-value pairs, which may be used *...
/** * French translation for bootstrap-datepicker * Nico Mollet <nico.mollet@gmail.com> */ ;(function($){ $.fn.bdatepicker.dates['fr'] = { days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"], daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"], daysMin: ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var circle = exports.circle = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M10,0.4C4.698,0.4,0.4,4.698,0.4,10C0.4,15.302,4.698,19.6,10,19.6c5.301,0,9.6-4.298,9.6-9.601\r\n\tC19.6,4.698,15.301,0.4,10,0.4z M10,1...
this.NesDb = this.NesDb || {}; NesDb[ 'D4E928142290DA7ABAED485051946E69AAB95A24' ] = { "$": { "name": "Kung-Fu Heroes", "class": "Licensed", "catalog": "NES-CE-USA", "publisher": "Culture Brain", "developer": "Culture Brain", "region": "USA", "players": "2", "date": "1989-03" }, "cartridge": [ { ...
/** * @author: @AngularClass */ const webpack = require('webpack'); const helpers = require('./helpers'); /* * Webpack Plugins */ // problem with copy-webpack-plugin const AssetsPlugin = require('assets-webpack-plugin'); const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin'); c...
// import spinner from 'dummy/utils/spinner'; // import { module, test } from 'qunit'; // module('Unit | Utility | spinner');
const unicodeDataPackage = require('./unicode-data-package.js'); const sequences = require(`${unicodeDataPackage}/Sequence_Property/RGI_Emoji/index.js`) // Sort by code point length; longest sequences first. .sort((a, b) => [...b].length - [...a].length); module.exports = sequences;
var baseDistFile = 'dist/ember-pusher-<%= pkg.version %>.'; var s3Uploads = []; var builds = [ "", "amd.", "min." ]; builds.forEach(function(build){ s3Uploads.push({ src: baseDistFile + build + 'js', dest: 'ember-pusher.' + build + 'js' }); }); module.exports = { options: { bucket: 'ember-push...
// Copyright 2016-2021, University of Colorado Boulder /** * A numeric range with a required default value. * * @author Chris Malley (PixelZoom, Inc.) * @author Chris Klusendorf (PhET Interactive Simulations) */ import Range from './Range.js'; import dot from './dot.js'; class RangeWithValue extends Range { /...
'use strict' const saveJSON = require('./utils/saveJson.js'); const dbUtils = require('./config/db.js'); const yelpReq = require('./searchYelp.js'); module.exports = function(app){ let locPrev = ""; //Checks for query parameters app.get('/', (req,res) => { //saves location after hosting a table. r...
// //h1 is Joe, h2 is daniel // $( ".chat-body").append( "<h1>ayyo bruh</h1>" ); // // $( ".chat-body").append( "<h2>fuck u</h2>" ); $(document).ready(function () { setTimeout(function(){ $( ".chat-body").append("<h1>YYooooo! How was class today?</h1>").fadeIn(500); $(document).ready(function () {...
/*! * jQVMap Version 1.0 * * http://jqvmap.com * * Copyright 2012, Peter Schmalfeldt <manifestinteractive@gmail.com> * Copyright 2011-2012, Kirill Lebedev * Licensed under the MIT license. * * Fork Me @ https://github.com/manifestinteractive/jqvmap */ (function ($){ var apiParams = { colors: 1, va...
/* eslint-disable space-before-function-paren, no-return-assign, no-undef, padded-blocks */ /*= require merge_request */ (function() { describe('MergeRequest', function() { return describe('task lists', function() { fixture.preload('merge_requests_show.html'); beforeEach(function() { fixture...
// app.js // // the main application file for PickSix // // ## Dependencies: // // - js/helper.js // - js/storage.js (function() { var storage = window.app.storage; var $ = window.app.$; var items = []; // grab the static UI elements to work with var itemElements = document.querySelectorAll('#main .todo-i...
'use strict'; var BaseReporter = require('./base'); var ProgressReporter = function ProgressReporter(formatError, reportSlow) { BaseReporter.call(this, formatError, reportSlow); this.writeCommonMsg = function (msg) { this.write(this._remove() + msg + this._render()); }; this.specSuccess = function () { ...
(function() { var CarteroFileDescriptorBuilder, DefaultCarteroFileDescriptorBuilder, Promise, ScannedTemplate, fs, mkdirp, path, saveCarteroJSON, _, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for ...
'use strict' import CropArea from './crop-area' class CropAreaSquare extends CropArea { constructor () { super(...arguments) this._resizeCtrlBaseRadius = 10 this._resizeCtrlNormalRatio = 0.75 this._resizeCtrlHoverRatio = 1 this._iconMoveNormalRatio = 0.9 this._iconMoveHoverRatio = 1.2 ...
import isEqual from 'lodash.isequal'; /* It iterates through each deep nested object and if finds object that has prop and value specified in objToFindBy argument, it deletes it, stops the walk and returns the whole tree. If none is found, it returns false. */ const findAndDeleteFirst = (tree, childrenKey, objToFindB...
fcViews.agenda = AgendaListView; function AgendaListView(element, calendar) { var t = this; // exports t.render = render; // imports AgendaList.call(t, element, calendar, 'agenda'); var opt = t.opt; var renderList = t.renderList; var skipHiddenDays = t.skipHiddenDays; var format...
'use strict'; /*globals describe, it*/ /*eslint no-unused-expressions:0 */ const chai = require('chai'), sinon = require('sinon'); chai.should(); const expect = chai.expect; // The thing we're testing const logger = require('../../plugins/logger'), util = require('../../util'); const timeMatch = /^\(\d\d:\d\...
// All code points in the Ancient Greek Numbers block as per Unicode v5.1.0: [ 0x10140, 0x10141, 0x10142, 0x10143, 0x10144, 0x10145, 0x10146, 0x10147, 0x10148, 0x10149, 0x1014A, 0x1014B, 0x1014C, 0x1014D, 0x1014E, 0x1014F, 0x10150, 0x10151, 0x10152, 0x10153, 0x10154, 0x10155, 0x10156, 0x10157, ...
export default class Carousel { constructor(options) { this.className = 'mr-carousel'; this.options = options; this._init(); } _init() { this._render(); } _render() { this.options.container.setAttribute('class', this.className); this.items = this.o...
app.controller('ProfileController', function profileCtrl($scope, $http, $rootScope, $location, $timeout) { $scope.uploadedFiles = []; $('#jsonfileinput').on('change', function uploadJSON() { const files = $(this).get(0).files; if (files.length > 0) { for (let i = 0; i < files.length; i += 1) { ...
function Grid(size) { this.size = size; this.cells = []; this.build(); } // Build a grid of the specified size Grid.prototype.build = function () { for (var x = 0; x < this.size; x++) { var row = this.cells[x] = []; for (var y = 0; y < this.size; y++) { row.push(null); } } }; // Find th...