code
stringlengths
2
1.05M
'use strict'; var util = require('util') var fs = require('fs') var test = require('tap').test // mock fs.statSync to return signed uids/gids var realStatSync = fs.statSync fs.statSync = function(path) { var stats = realStatSync.call(fs, path) stats.uid = -2 stats.gid = -2 return stats } var gfs = require('.....
'use strict'; var blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); var setupTestHooks = blueprintHelpers.setupTestHooks; var emberNew = blueprintHelpers.emberNew; var setupPodConfig = blueprintHelpers.setupPodConfig; var emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; var expect =...
var $switch = $('.switch'); var $lamp = $('.lamp'); var on = false; $switch.click(function () { on = !on; if (on) { $lamp.attr('src', 'img/lamp_on.svg'); $switch.attr('src', 'img/switch_on.svg'); } else { $lamp.attr('src', 'img/lamp.svg'); $switch.attr('src', 'img/switch.svg'); } });
'use strict'; var fs = require('fs'); var Mock = require('./mock'); var PrismUtils = require('../services/prism-utils'); var PrismProxy = require('./proxy'); var MockFilenameGenerator = require('../services/mock-filename-generator'); function MockRecord(prismUtils, mockFilenameGenerator, mock, proxy) { this.handl...
(function() { var Controller; Controller = (function() { function Controller(bracketService, $scope, $log, liveFeed) { liveFeed.subscribe(function(eventName, updates){ if(eventName === 'livefeed:$connected'){ // livefeed is connected, so application is online & safe to resume data loadi...
var Abstract = require('../abstract/query'); var util = require('util'); function InsertQuery() { Abstract.call(this); this.collection = ''; this.query = {}; }; util.inherits(InsertQuery, Abstract); InsertQuery.prototype.table = function(table) { this.collection = table; return this; ...
// const blacklist = require('react-native/packager/blacklist'); // // const reactNativeRoot = path.resolve(__dirname, '..', '..'); // // const config = { // getBlacklistRE(platform) { // return blacklist([ // new RegExp(`${reactNativeRoot}/node_modules/react-native/.*`), // ]); // } // }; // // modul...
/* Using the sqlite3-transactions.js from ../my_modules which I've downloaded from https://github.com/Strix-CZ/sqlite3-transactions. This is because the npm downloaded version although it has the same version number, it is not the same with the one at github. The github uses the util module instead of the sys module w...
// flow-typed signature: 495829a50523c9dd8391dfaf77eb72f6 // flow-typed version: <<STUB>>/babel-preset-latest_v6.16.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: * * 'babel-preset-latest' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share y...
/** * Created by shirish.goyal on 8/28/16. */ (function () { 'use strict'; angular .module('BlurAdmin.services') .factory('Course', Course); Course.$inject = ['$cookies', '$http', '$q', '$window']; function Course($cookies, $http, $q, $window) { var Course = { ...
// Async tests QUnit.test("An async test", function(assert) { var ready = assert.async(); ready(); }); QUnit.test("A test", function(assert) { var ready = assert.async(); var ready1 = assert.async(); ready(); ready1(); }); QUnit.test("A test", function(assert) { var ready = assert.async();...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
export default function minLengthValidator(validatorProps) { return function validateMinLength(value, context) { let length = value ? value.length : 0; let props; if (typeof validatorProps === 'function') { props = validatorProps({...context, length}); } else if (typeof ...
"use strict"; /* global jQuery */ function PH() { this.headerMinimized = false; this.jHeader = null; this.initialHeaderHeight = 0; this.scrollListener = []; } PH.prototype.init = function() { this.jHeader = jQuery("#header"); this.initialHeaderHeight = this.jHeader.height(); };...
/** * @author Christopher D. Canfield * Zones.js * November 2013 */ function Zones() { this.zones = []; } /** * Adds a zone to the Zones list. * @param {Zone} zone */ Zones.prototype.add = function(zone) { // if (zone instanceof Zone) // { // throw 'Invalid parameter provided to Zones.ad...
'use strict'; module.exports = function(app) { app.controller('AuthController', ['$scope', '$http', '$cookies', '$location', function($scope, $http, $cookies, $location) { $scope.getUser = function() { $scope.token = $cookies.get('token'); $http.defaults.headers.common.token = $scope.token; $ht...
googletag.cmd.push(function () { googletag.defineSlot('/423694368/test_Chart_728x90_3', [728, 90], 'div-gpt-ad-1437711389692-0').addService(googletag.pubads()); googletag.defineSlot('/423694368/test_Chart_300x600', [300, 600], 'div-gpt-ad-1437711389692-1').addService(googletag.pubads()); googletag.define...
import postcss from 'postcss' import pcimport from 'postcss-import' import pcprops from 'postcss-custom-properties' import pcmedia from 'postcss-custom-media' import pccalc from 'postcss-calc' import pccolor from 'postcss-color-function' import pcprefix from 'autoprefixer' import {parallel} from 'async' import {debug,...
const PropertyRegistration = artifacts.require("PropertyRegistration"); const fs = require("fs"); module.exports = function (deployer) { deployer.deploy(PropertyRegistration).then(() => { let config = { localhost: { url: "http://localhost:7545", serverURL: "http:...
var path = require('path') module.exports = { // Webpack aliases aliases: { quasar: path.resolve(__dirname, '../node_modules/quasar-framework/'), src: path.resolve(__dirname, '../src'), assets: path.resolve(__dirname, '../src/assets'), components: path.resolve(__dirname, '../src/components') }, ...
import {useDeps} from 'react-simple-di'; import { composeAll, composeWithTracker } from 'mantra-core'; // export const singleComposer = ({context, _id, clearErrors}, onData) => { export const singleComposer = ({context}, onData) => { const {LocalState, App, Tracker} = context(); const error = LocalState.get('_col...
// ************************************************************************** // * * // * This program is free software: you can redistribute it and/or modify * // * it under the terms of the GNU General Public License as published by...
'use strict'; !function($) { /** * Tabs module. * @module foundation.tabs * @requires foundation.util.keyboard * @requires foundation.util.timerAndImageLoader if tabs contain images */ class Tabs { /** * Creates a new instance of tabs. * @class * @fires Tabs#init * @param {jQuery} element - jQuery...
import {createStore as reduxCreateStore} from 'redux'; import {applyMiddleware as reduxApplyMiddleware} from 'redux'; import {default as reduxPromiseMiddleware} from 'redux-promise'; // This is the "root" reducer that combines all our reducers // into a single reducer. import myRootReducer from './reducers'; // reduc...
import React from 'react' import { StyleSheet, Text, View } from 'react-native' export default function Title({ children }) { return ( <View style={styles.header}> <Text style={styles.title}>{children}</Text> </View> ) } const styles = StyleSheet.create({ header: { backgroundColor: 'rgb(59, 10...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
'use strict' var assert = require('assert') describe('#type', function () { var typeCtor = require('../../dist/annotation/annotations/type').default var type = typeCtor({}) it('should return the trimmed string', function () { assert.equal(type.parse(' '), '') assert.equal(type.parse(' '), '') a...
var markdown = require("./markdown"); var Articles={}; module.exports.ArticleService = function($rootScope) { this.getArticle = function(id) { var article = Articles[id]; if (typeof(article) == 'undefined') { var content = 'new page'; article = {id:id, content:content, html:this.md2html(content...
/** * Ratio.js, provides a Ratio(Fraction) object for Javascript. * Created by Larry Battle, https://github.com/LarryBattle * license MIT, http://www.opensource.org/licenses/mit-license * Project Page: https://github.com/LarryBattle/Ratio.js * * @module Ratio **/ var Ratio = (function() { "use strict"; /...
import { fetch } from '@/utils/api' export function list (params) { return fetch('/user/list', params, 'GET') } export function logout () { return fetch('/user/logout') } export function addRole (params) { return fetch('/user/addRole', params) } export function getUserInfo () { return fetch('/user/getUserIn...
import 'dotenv/config'; import { expect } from 'chai'; import APIError from '../../src/errors/APIError'; import WorldOfTanks from '../../src/clients/WorldOfTanks'; describe('APIError', function () { describe('#constructor()', function () { it('correctly constructs itself', function () { const options = { ...
import G6 from '@antv/g6'; fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/algorithm-category.json') .then(res => res.json()) .then(data => { const width = document.getElementById('container').scrollWidth; const height = document.getElementById('container').scrollHeight || 500; const graph ...
module.exports = function (server) { // One-Page Application server.use("/*.html", function () { return server.end("index.html"); }); };
// Compiled by ClojureScript 0.0-2322 goog.provide('clojure.browser.net'); goog.require('cljs.core'); goog.require('goog.Uri'); goog.require('goog.net.xpc.CrossPageChannel'); goog.require('goog.net.xpc.CfgFields'); goog.require('goog.net.EventType'); goog.require('goog.net.XhrIo'); goog.require('goog.json'); goog.requi...
import { firebaseDb } from '../firebase'; import { loadState, saveState } from '../localStorage'; import { startLoading, startAdding, endAdding, endLoading, startEditing, endEditing } from '../loading/actions'; import { ADD_RECO_ERROR, LOAD_RECOS_SUCCESS, UNLOAD_RECOS_SUCCESS } from './action-types'; export con...
/** * @license AngularJS v1.0.4 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) { 'use strict'; //////////////////////////////////// /** * @ngdoc function * @name angular.lowercase * @function * * @description Converts the specified string to lowerca...
'use strict'; /** * Read and write 1Password 4 Cloud Keychain files. Based on the documentation * at http://learn.agilebits.com/1Password4/Security/keychain-design.html * and https://github.com/Roguelazer/onepasswordpy */ // Dependencies var fs = require('fs'); var _ = require('underscore'); var EventEmitter = re...
angular.module('pgcomp.controllers', []) //////////////////////////////////////////////////////////////////////////////// .controller('MapListCtrl', ['$scope', '$http', function ($scope, $http) { $http.get('maps/index.json').success(function (data) { $scope.maps = data; }); } ]) //...
import utilsTest from './utils' utilsTest()
describe("Restful module", function(){ beforeEach(module("ngRestful")); describe("Restful methods", function(){ it("should create GET request $http object", inject(function($restful){ var request = $restful.$createRequest({}, "GET", "www.example.com", {}); expect(request).to.not.include.keys("transformReque...
/* Added for scripts related to Guideline page */ // method to move listitems from one list to another // from Rule/Ruleset List to Guideline list function MoveListItems(sourceList,destinationList) { var sourceObj,destObj,tempObj; var i,j,k; sourceObj=document.getElementById(sourceList); destObj=doc...
import {CogIcon} from '@sanity/icons' const arr = (n) => Array.from(Array(n).keys()) const groups = () => arr(10).map((n, i) => ({ name: `group${i + 1}`, title: `Group ${i + 1}`, isDefault: i === 8, icon: CogIcon, })) const fields = () => arr(10).map((f, i) => ({name: `field${i + 1}`, type: 'st...
/* eslint no-console: ["error", { allow: ["warn", "error", "log"] }] */ import { expect } from 'chai'; import { consola } from './utils'; describe('Utils', () => { describe('consola', () => { it('should be an object', () => { expect(consola).to.be.an('object'); }); it('should be same as console',...
var Fifo = require('../algorithms/Fifo'); var RoundRobin = require('../algorithms/RoundRobin'); var SJF = require('../algorithms/SJF'); module.exports = { getAlgorithms: function(){ return [ { description: 'Fifo', algorithm: Fifo }, { description: 'Round Robin', algorithm: RoundRobin }, { description:...
var fs = require('fs'); module.exports = function (app) { app.config([ 'formioComponentsProvider', function (formioComponentsProvider) { formioComponentsProvider.register('file', { title: 'File', template: 'formio/components/file.html', group: 'advanced', settings: { ...
var template = `<div id="error_explanation"> <h2 ng-if="header">{{header}}</h2> <ul> <li ng-repeat="message in messages"> {{message}} </li> </ul> </div> `; export default template;
function getAbstractConcepts(text) { text = text.length > 0 ? text : ' '; extractConceptMentions({ text: text }) .then(function(results) { var unique_concept_array = []; for (var i = 0; i < results.annotations.length; i++) { if (check_duplicate_concept(unique_concep...
// TODO: Find a better way to load different configs in different env var dbConfig; try { // Look for dev conf for local development dbConfig = require('./config/db.dev.conf.js'); } catch(e) { try { // production conf? dbConfig = require('./config/db.conf.js'); } catch(e) { ...
var Bombermon = Bombermon || {}; Bombermon.Bomb = function (game_state, name, position, properties) { "use strict"; Bombermon.Prefab.call(this, game_state, name, position, properties); this.anchor.setTo(0.5); this.bomb_radius = +properties.bomb_radius; this.game_state.game.physics.ar...
var http = require('http'), assert = require('assert'), child_process = require('child_process'), args = require('minimist')(process.argv.slice(2)), blackList = /[`;&|\\'"!$]/, processPath; if (args.h || args.help) { console.info('process_healthcheck is a lightweight healthcheck endpoint for a service runn...
'use strict'; angular.module('meanRecipieApp').directive('angulard3LineChart', function () { return { restrict: 'E', scope: { myjson : '@jsonValue', linechartId: '@linechartId' }, // template : '<div id="d3bar" json-Value="{{myjson}}"></div>', replace:true, link : function(scope, elem, attr) { ...
/** * touch.js * * Touch module of forcify.js * created by @huxpro */ export default class Touch{ constructor(Forcify){ this.init(Forcify); } init(Forcify){ let fn = Forcify.prototype; fn.handleTouch = function(_instance, nativeEvent){ let type = nativeEvent.type...
import { createElement, render } from 'preact'; import { setupScratch, teardown } from '../../../test/_util/helpers'; import { useRef } from 'preact/hooks'; /** @jsx createElement */ describe('useRef', () => { /** @type {HTMLDivElement} */ let scratch; beforeEach(() => { scratch = setupScratch(); }); afterEa...
'use strict'; module.exports = focusMe; focusMe.$inject = ['$timeout']; function focusMe($timeout) { return { restrict: 'A', link: function (scope, element, attrs) { if (attrs.focusMe !== undefined) { scope.$on(attrs.focusMe, focus); } $timeout(focus); ...
"use strict" import assert from "power-assert" import Queue from "../src/queue" import QueueConsumer from "../src/queue-consumer" describe("QueueConsumer", ()=>{ it("start after push", ()=>{ let q = new Queue() let consumer = new QueueConsumer(q) q.push(1) q.push(1) q.push(1) let count = 0...
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ const wsRgxp = /^\s+|[\r\n]+/mg; /** * String tag (for ES6 string templates) to truncate starting white spaces and eol-s * * @param {!Ar...
/** * @author Ed Spencer * @aside guide proxies * * The JsonP proxy is useful when you need to load data from a domain other than the one your application is running on. If * your application is running on http://domainA.com it cannot use {@link Ext.data.proxy.Ajax Ajax} to load its data * from http://domainB.com...
version https://git-lfs.github.com/spec/v1 oid sha256:8b7378094709b79aab01c335d8a15bb59013a4065cd777743bae5386d0e2fd0f size 9848
import moment from "moment" import schema from "schema" import { runQuery } from "test/utils" describe("PartnerShow type", () => { const PartnerShow = schema.__get__("PartnerShow") let total = null let gravity = null let showData = null beforeEach(() => { gravity = sinon.stub() total = sinon.stub() ...
/* Amber package loading usage example: amber.load({ files: ['MyCategory1.js', 'MyCategory2.js'], ready: function() {smalltalk.Browser._open()} }) */ amber = (function() { var that = {}; var scripts = document.getElementsByTagName("script"); var src = scripts[ scripts.length - 1 ].src; var home...
//~ name b239 alert(b239); //~ component b240.js
import repeatString from 'repeat-string'; import padStart from 'pad-start'; function printLine(line, position, maxNumLength, settings) { const num = String(position); const formattedNum = padStart(num, maxNumLength, ' '); const tabReplacement = repeatString(' ', settings.tabSize); return formattedNum + ' | ' + li...
// Copyright (c) 2011 Firebase.co and Contributors - http://www.firebase.co // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights...
import React, { Component, PropTypes } from 'react'; import g11n from 'utils/g11n'; export default class MsgBox extends Component { render() { const state = this.props.state; return ( <div className="msgbox"> <span className="msgbox-title">{ g11n.t('msg')[state].title }</span> <span cla...
const assert = require('assert'); const request = require('supertest'); const TestUtils = require('../utils'); async function testSessionStore(sessionStore, additionalOpts = {}) { const utils = new TestUtils({ authProxyEnabled: true, authProxyAutoSignUp: true, authProxyDefaultRole: 'admin', authProxy...
import {inject} from 'aurelia-framework'; import {AuthService} from '../services/authService'; @inject(AuthService) export class Signup{ constructor(AuthService){ this.authService = AuthService; this.heading = 'Sign Up'; this.email=''; this.password=''; this.displayName=''; } signup(){ return thi...
let componentMapping = { 'dropdown': require('./dropdown'), 'overlay': require('./overlay'), 'back-to-top': require('./back-top-top'), 'notification': require('./notification'), 'chapter-toggle': require('./chapter-toggle'), 'expand-toggle': require('./expand-toggle'), 'entity-selector-popu...
(function (module) { var proxy = function ($http) { var request = function (url, method, headers, data) { if (method === undefined || method === null) method = "GET"; if (headers == undefined || headers === null) return $http({ m...
/** * TeleScripter - a jQuery Plugin * @version 0.3.1 * @date 2013-12-15 * @author zipang * @url http://github.com/zipang/telescripter * @licence MIT */ (function(w, $) { var DEFAULTS = { autostart: true, autoloop: true, cursor: true, prompt: "> ", pageDelay: 2500, // time between pages display li...
const { runNpmTask } = require("./utils"); const [task] = process.argv.slice(2); runNpmTask("mobile", task); runNpmTask("web", task);
/** * Controller for the second slide (Projects) */ angular.module('mySite').controller('secondSlideController', function ($scope, $log) { $scope.catchClick = function ($event) { $event.preventDefault(); console.log("clicked"); }; $scope.animation = function () { } });
#! /usr/bin/env node var argv = process.argv var spawn = require('child_process').spawn function orm() { var orm = spawn(process.cwd() + "/node_modules/.bin/sequelize", argv.slice(3)) orm.stdout.on('data', function(data) { console.log(String(data)); }) orm.stderr.on('data', function (data) { consol...
import Ember from 'ember'; export default Ember.Route.extend({ renderTemplate() { var controllerName = this.get("session.isAdminApp") ? "offers" : "application"; this.render(); // default template this.render('appMenuList', { into: 'terms_and_conditions', outlet: 'appMenuList', control...
Questions = new Mongo.Collection("questions"); if (Meteor.isClient) { Template.body.helpers({ votes: function(){ return Questions.find({}, {sort: {createdAt: -1}}); } }); Template.body.events({ "submit .new-vote": function (event){ var question = event.targe...
'use strict'; const gulp = require('gulp'); const sass = require('gulp-sass'); const sourcemaps = require('gulp-sourcemaps'); const rename = require('gulp-rename'); const jsmin = require('gulp-jsmin'); gulp.task('min-js', function () { return gulp.src('./src/static/src/js/main.js') .pipe(jsmin()) .pi...
// @flow const someMessage = "Yep, here we are"; const someNum = 67; export class FlippourError { createError(err: string) { return { type: someNum, someMessage: someMessage, error: err }; } isFlippourError(something: any) { if ( something.type !== "undefined" && something.s...
#! /usr/bin/env node "use strict"; // IMPORTS // --------------------------------- var commands = require("./lib/commands"); var chalk = require("chalk"); require("shelljs/global") // COMMANDS // --------------------------------- var args = process.argv.slice(2); switch (args[0]) { case undefined: comma...
'use strict'; var Path = require('path'); var assert = require('assert'); var _ = require('lodash'); var util = require('../util'); module.exports = function () { var files = util.listGitHubFiles('Azure', 'azure-rest-api-specs', 'master', 'specification/**/*.json'); files = _.filter(files, x => ((x.indexOf('exa...
/*global describe, it */ 'use strict'; var assert = require('assert'), fs = require('fs'), closest = require('../lib/closest'); describe('closest', function() { it('should provide an API', function() { assert.equal(typeof closest, 'object'); assert.equal(typeof closest.parseClosest, 'function'); }); it('sho...
'use strict'; const assert = require('assert'); const cp = require('child_process'); const path = require('path'); const { runner: { Runner }, } = require('../..'); const fixturesDir = path.join(__dirname, '..', 'fixtures'); const runner = new Runner(); runner.removeReporter(); const st1 = cp.fork(path.join(fixtu...
export const gallery = { url: String, author: { name: String, id: String }, name: { type: String, unique: true }, cover: String, description: String, photos: [], createDate: { type: Date, default: Date.now }, disable: { type: Boolean, default: false } };
var InGameMenuLayer = cc.LayerColor.extend({ _debug:cc.COCOS2D_DEBUG, init:function() { this._super(new cc.Color4B(0, 0, 0, 255)); var director = cc.Director.getInstance(); var wSizeWidth = director.getWinSize().width; var wSizeHeight = director.getWinSize().height; ...
var constants = require('./lib/constants'); var login = require('./lib/login'); var Session = require('./lib/session'); var request = require('./lib/request'); var Tunnel = require('./lib/tunnel'); var exports = module.exports = { login: login.login, setLoginUrl: login.setLoginUrl, LoginError: login.LoginE...
/** * Created by tal on 3/13/15. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var schema = new Schema({ _id: {type:Number, unique:true, required:true}, center_id: { type: Number, ref: 'Center'}, sundayActive: { type: Boolean, default: false }, mondayActive: { type: Boolean, ...
/** * Database Query module that handles all API queries to the database. imports * helper functions for each database and then exports a promise for each * required API route. */ 'use strict'; const MongoClient = require('mongodb').MongoClient; /* import and compose DB query modules */ const statisticsDB = requ...
/** * Simplified Chinese translation for bootstrap-datepicker * Yuan Cheung <advanimal@gmail.com> */ ;(function($){ $.fn.datepicker.dates['zh-CN'] = { days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"], daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"], daysMin: ["日", "一", "二", ...
define([ 'require', '../inheritance', '../component', '../event', '../view', '../text', { Calendar:'calendar', Selectors:'dropdown' }, '!datepicker.html' ],function(require,inheritance,component,event,view,text,controls){ "use strict"; var scope = { Controls:controls }; var Class ...
'use strict'; /* Controllers */ angular.module('F1FeederApp.controllers', []). /* Drivers controller */ controller('driversController', function($scope, ergastAPIservice) { $scope.nameFilter = null; $scope.driversList = []; $scope.searchFilter = function (driver) { var re = new RegExp($scope....
import './polyfills'; import authWidget from '../auth-widget.js'; /** * Manually export to global rather than using webpack in order to handle * backward-compatibility. * * v0.1/v1.0: exports are under window.Kloudless, which may collide to other * UI tools. (ex: scheduler, file explorer) * * v1.1: expose to wi...
var fort = require('fort'); module.exports = function (edges) { var graph = edges.reduce(function (acc, edge) { var a = edge[0], b = edge[1]; if (!acc[a]) acc[a] = []; if (!acc[b]) acc[b] = []; acc[a].push(b); acc[b].push(a); return acc; }, {});...
export const canvas = document.getElementById('canvas'); export let canvasXCenter = canvas.width / 2; export let canvasYCenter = canvas.height / 2; export function setCanvasSize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; canvasXCenter = canvas.width / 2; canvasYCenter = canvas.h...
module.exports = function(grunt) { // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), replace: { version: { src: ['./README.md','./index.html','./app/deeplio/Deeplio.php'], overwrite: true, replacements: [ { from: /©\s[0-9]{4}/g, to: '© <%= grunt....
'use strict'; angular.module('AngularFlask', ['angularFlaskServices', 'angularDirectives', 'ngRoute', 'ui.bootstrap', 'angular-carousel', 'ngTouch', 'ngAnimate', 'angularModalService', 'ngFileUpload']) .run(function($window) { console.log('app.js - run init') if(!$window.sessionStorage.logged_in) { $window.ses...
/** * Grid for displaying Staff details */ Ext.define('CarTracker.view.car.List', { extend: 'Ext.grid.Panel', alias: 'widget.car.list', requires: [ 'Ext.grid.column.Boolean', 'Ext.grid.column.Date', 'Ext.grid.column.Number' ], title: 'Manage Inventory', iconCls: 'icon_t...
(function() { "use strict"; angular.module("myApp") .factory("Challenges", Challenges); Challenges.$inject = [ "$http", "SERVER" ]; function Challenges($http, SERVER) { var challenges = { createChallenge: createChallenge, cancelChallenge: cancelChallenge, getCompletedChallenges...
const connection = require('../connection.js'); const passport = require('passport'); const LocalStrategy = require('passport-local').Strategy; passport.serializeUser(function(user, done) { console.log(user); done(null, user.userId); }); passport.deserializeUser(function(id, done) { connection.query("SE...
'use babel' export const compiler = false export const minifier = false export function process(contents) { const chunks = contents.split(/\r\n|\n/) if (chunks[chunks.length - 1] !== '') { chunks.push('') } return { contents: chunks.join('\n'), sourceMap: null } }
//>>built require({cache:{"url:dojox/grid/resources/View.html":'\x3cdiv class\x3d"dojoxGridView" role\x3d"presentation"\x3e\n\t\x3cdiv class\x3d"dojoxGridHeader" dojoAttachPoint\x3d"headerNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"headerNodeContainer" style\x3d"width:9000em" role\x3d"presentation...
import { PROJECT_REMOVE, PROJECT_INSERT, PROJECT_UPDATE, actions, default as projectsReducer } from 'routes/Projects/modules/projects' import { factory } from 'routes/Projects/modules/factory' describe('(Redux Module) Projects', () => { it('Should export a constant PROJECT_DELETE.', () => { expect(P...
(function() { 'use strict'; angular .module('footballStats', ['ui.bootstrap', 'ngAnimate', 'ngCookies', 'ngTouch', 'ngSanitize', 'ngMessages', 'ngAria', 'restangular', 'ngRoute', 'toastr']); })();