code
stringlengths
2
1.05M
/* globals $, _ */ var Plumage = require('PlumageRoot'); var ModalDialog = require('view/ModalDialog'); var MessageView = require('view/MessageView'); module.exports = Plumage.view.ConfirmationDialog = ModalDialog.extend({ template: require('view/templates/ConfirmationDialog.html'), headerTemplate: 'Confirmation...
import React from 'react'; import styled from 'styled-components'; import {Link, HomeButton} from 'components'; import ReactPaginate from 'react-paginate'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; import IconButton from 'material-ui/Icon...
function supportstorage() { if (typeof window.localStorage=='object') return true; else return false; } function handleSaveLayout() { var e = $(".demo").html(); if (!stopsave && e != window.demoHtml) { stopsave++; window.demoHtml = e; saveLayout(); stopsave--; } } var layouthistory; function save...
import React from 'react'; import ToolbarInput from './ToolbarInput'; class ToolbarContent extends React.Component { render() { const onContentChange = this.props.onContentChange; const content = this.props.content; const schema = this.props.schema; const inputData = { name: content.id, type: schema.inp...
const gulp = require('gulp'), runSequence = require('run-sequence'); gulp.task('build', function (callback) { runSequence(['clean'], ['assets:resources', 'vendor:resources'], callback); });
import React from 'react'; const Toast = ({ visible, children }) => { return visible ? <div className='toast'>{children}</div> : null; }; export default Toast;
/** * Test bib/lego.js * */ var expect = require("chai").expect; var Lego = require("../lib/lego"); var Brick = Lego.Brick; var path = require("path"); /** * Test Lego.prototype.start * */ describe("Lego.start", function () { var lego = new Lego(); it("should return this", function () { expect(lego...
;(function(){ // CommonJS require() function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '"'); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path)); } ...
export default { lang: 'id', label: { clear: 'Bersihkan', ok: 'OK', cancel: 'Batal', close: 'Tutup', set: 'Set', select: 'Pilih', reset: 'Reset', remove: 'Copot', update: 'Perbarui', create: 'Buat', search: 'Cari', filter: 'Saring', refresh: 'Segarkan' }, date...
'use strict'; describe('Directive: sifuSelector', function () { beforeEach(module('trellonextApp')); var element; it('should make hidden element visible', inject(function ($rootScope, $compile) { element = angular.element('<sifu-selector></sifu-selector>'); element = $compile(element)($rootScope); ...
module.exports.discount = function(amount, rates){ amount = amount ? amount : 0; rates = rates ? rates : {}; var discount = 0; var tresholds = Object.keys(rates); for(var i = 0; i < tresholds.length; i++){ var key = tresholds[i]; var treshold = parseInt(key); var discountPercentage = rates[key]; if(amount...
/** * @providesModule ADBannerView * @flow */ import React, { Component, } from 'react'; import { requireNativeComponent, NativeAppEventEmitter, StyleSheet, Dimensions, } from 'react-native'; /* See: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/iAd_Guide/BannerAdvertise...
/** * Copy Bitmaps * @description Move all Bitmap Images (from bitmapSingle-assets) to the .dist Folder */ import kc from '../../config.json' import gulp from 'gulp' import copyImages from '../lib/copyImages' const copyBitmapsTask = () => { // Call the Function copyImages(kc.src.images.bitmaps,kc.dist.bitmaps) ...
export { heroItemReducer } from './HeroItemReducer'; export { heroListReducer } from './HeroListReducer'; export { heroTeamItemReducer } from './HeroTeamItemReducer'; export { heroTeamListReducer } from './HeroTeamListReducer';
var dashboard = require('./dashboard.js'); var wadi = require('./wadi.js'); gHomeScreenStats = {}; // go find all the activity for wadi repo's dashboard.initializeBlessedDashboard(); wadi.setDashboard(dashboard); function trackWADIRepositories() { allEvents = {}; wadi.addEventsFromRepo('mozilla', 'oghliner'); ...
// libs import React from 'react'; // other import styles from './index.less'; export default function NotFound() { return ( <div className={styles.container}> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
a((b, c) => {})
'use strict'; angular.module('iid', [ 'iid.mainCtrl' ]); angular.module('iid.mainCtrl', []).controller('mainCtrl', mainCtrl); mainCtrl.$inject = ["$scope"]; function mainCtrl ( $scope ) { function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } f...
/** * timer.js - a component to handle timers. * * @author Alexandre Thebaldi <ahlechandre@gmail.com> * @requires componentize */ (function () { 'use strict'; /** * * @class */ function AvaTimer(element) { this.element = element; // Initializes the instance. this.in...
const express = require('express'); server.listen(app.get('port'), () => { console.log('Express server listening on port %d in %s mode', app.get('port'), app.get('env')); }); module.exports = app;
$(document).ready(function () { $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay,listMonth' }, themeSystem: 'jquery-ui', defaultView: 'agendaWeek', nowIndicator: true, ...
/** * Copyright 2015 Michael Kurze * Released under the MIT license. */ /*global module,__dirname,__filename */ module.exports = function( grunt ) { 'use strict'; var path = require( 'path' ); var portIncrement = 1; var serverPort = 8000 + portIncrement; var testPort = 9000 + portIncrement; var l...
import test from 'ava'; import plugin from './'; import { transform } from 'babel-core'; test('should wrap code with iife', t => { var fixture = 'window.a = 1;'; var expected = ';\n\n(function () {\n "use strict";\n\n window.a = 1;\n})();'; t.is(transform(fixture, { plugins: [plugin] }).code, expected); }...
/** * On load gets time to refresh feeds from server and sets it as countdown val. * Then runs countdown method. * * @author Daniel Kec <daniel at kecovi.cz> * @since Dec 9, 2014 */ window.onload = new function () { resetCountdown(); countdown(); }; /** * Get timout from the timer rest api and sets it ...
(function ($) { var files = [];//文件组 //Id,Url,回调函数,是否是单个文件,文件数量,文件大小,按钮文本, $.lotuploader = function (lotdata) { window.console.log('LoTUploader V1.0.2 By dunitian QQ:1054186320 WebSite:dnt.dkill.net'); $(document).ready(function () { var lotDocId = lotdata.lotDocId, serverUrl = ...
import React from 'react' import { Link } from 'react-router' import moment from 'moment' import _ from 'underscore' import Title from '../title' import Tooltip from '../tooltip' import { connect } from 'react-redux' import { instance as user } from '../../lib/user' import actions from '../../actions/forecast' import u...
'use strict'; (function(){ angular.module('Humanity') .controller('CreateUsersController', CreateUsersController) var moduleName = "Users"; var statusApi = [ { "id" : 0, "name" : "Inactive" }, { "id" : 1, "name" : "Active" } ]; var socialStratumApi = [ { "id" : 1, ...
// Greek 'use strict'; var el = function() {} el.code = 'el'; el.data = { HELP_2a_Title : 'Πώς αποθηκεύω/παίρνω αντίγραφο ασφαλείας του πορτοφολιού μου; ', /* New Generics */ x_CancelReplaceTx : 'Ακύρωση ή αντικατάσταση συναλλαγής', x_CancelTx : 'Ακύρωση συναλλαγής', x_Passwor...
/** * Created by jfpalngipang on 2/6/15. */ var exports = module.exports = {}; Date.prototype.today = function () { return ((this.getDate() < 10)?"0":"") + this.getDate() +"/"+(((this.getMonth()+1) < 10)?"0":"") + (this.getMonth()+1) +"/"+ this.getFullYear(); } var newDate = new Date(); console.log(newDat...
var account_app = account_app || {}; (function(){ var Action_btn = account_app.Action_btn = React.createClass({displayName: "Action_btn", handleClick:function(){ this.props.perform_action(); }, render:function(){ return (React.createElement("button", {className: "btn...
var test = require('tape'); var chalk = require('chalk'); var red = chalk.red, green = chalk.green, cyan = chalk.cyan; var cp = require('child_process'); // var fs = require('fs'); // fs.chmodSync('./index.js', 777); test(cyan('Directly Execute bin/ps-tree.js'), function (t) { var first = cp.exec("node -v", functi...
app.service('DataSets', function($http, $cookieStore, $state) { var DataSets = {}; DataSets.getDataSets = function() { return [ { id: '0', title: 'Data Set 1', batch: [ { title: 'Pressure', ...
import React from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends React.Component { constructor (props) { super(props) this.handleSearchTermChange = this.handleSearchTermChange.bind(this) } handleSearc...
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ // Register a plugin named "camera". CKEDITOR.plugins.add( 'camera', { lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,f...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val...
var util = require('util') var fritzboxtools = require('../lib/fritzboxtools'); var express = require('express'); var argv = require('yargs') .usage('Usage: $0 --fboxuri [string] --user [string] --pass [string]') .demand(['user', 'pass']) .default('fboxuri', 'fritz.box') .default('state', 1) ...
'use strict'; // Dependencies var request = require('request'), when = require('when'); // Akamai Request // -------------- // This function will execute a web request and return a promise. function AkamaiRequest (requestOptions) { // Create said promise return when.promise(function (resolve, reject) { // ...
module.exports = {"cwTeXMing":{"zhonly":"cwTeXMing-zhonly.ttf"}};
/*global module, require*/ module.exports = function(grunt) { grunt.removeLogging = !grunt.option('debugTest'); console.log('remove logging',grunt.removeLogging); // paths for our tasks to use. var removeLogging = grunt.removeLogging; grunt.uri = './'; grunt.uriStatic = grunt.uri + 'web/'; grunt.uriDist = gru...
/* global Phaser */ /** * Phaser Touch Control Plugin * It adds a movement control for mobile and tablets devices The MIT License (MIT) Copyright (c) 2014 Eugenio Fage Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
import fs from 'fs'; import path from 'path'; import mkdirp from 'mkdirp'; import assign from 'object-assign'; import configs from '../../../configs/project/server'; import Errors from '../../common/constants/Errors'; import handleError, { handleDbError } from '../decorators/handleError'; import User from '../models/Us...
Template.crates.helpers({ moreResults: function() { var ctrl = Iron.controller(); return ctrl.state.get('limit') < ctrl.count(); } }); Template.crates.events({ 'click #showMoreResults': function(event) { event.preventDefault(); var ctrl = Iron.controller(); ctrl.state.set('limit', ctrl.state....
import React, { Component, PropTypes } from 'react' import Table from '../../../components/table/Table' import { staticID } from '../../../utils/unique' import TableConfig from './advisorHeader' import TableConfigProj from './advisorProjHeader' import TableConfigComp from './advisorCompHeader' import { connect } from ...
import * as Router from './router' Router.start()
// Karma configuration // Generated on Thu Aug 06 2015 09:43:45 GMT+0200 (W. Europe Daylight Time) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs....
// JavaScript Expression Parser (JSEP) 0.3.0 // JSEP may be freely distributed under the MIT License // http://jsep.from.so/ /*global module: true, exports: true, console: true */ define(function() { 'use strict'; // Node Types // ---------- // This is the full set of types that any JSEP node can be....
import React, { Suspense, useState } from 'react' import '@babylonjs/inspector' import { Engine, Scene, TaskType, useAssetManager } from '../../../dist/react-babylonjs' import { Color4, Vector3, Color3 } from '@babylonjs/core/Maths/math' import '../../style.css' const textureAssets = [ { taskType: TaskType.Texture, ...
(function () { 'use strict'; var app = angular.module('app', ['grid']); app.controller('appCtrl', appCtrl); function appCtrl() { var self = this; self.showView = true; self.showEdit = false; self.attributes = [ { id: 1, va...
const path = require('path'); const webpack = require('webpack'); // eslint-disable-line import/no-extraneous-dependencies const MiniCssExtractPlugin = require('mini-css-extract-plugin'); // eslint-disable-line import/no-extraneous-dependencies const dev = process.env.NODE_ENV !== 'production'; module.exports = { m...
invocaciones_arcanos_set.push(new Invocacion(INVOCACION_EL_LOCO, 0, [INVOCACION_EL_LOCO_INVERT], INVOCACIONES_ARCANOS)); invocaciones_arcanos_set.push(new Invocacion(INVOCACION_EL_HIEROFANTE, 1, [INVOCACION_EL_HIEROFANTE_INVERT], INVOCACIONES_ARCANOS)); invocaciones_arcanos_set.push(new Invocacion(INVOCACION_LA_SUMA_SA...
define(function(require, exports, module) { var bg = chrome.extension.getBackgroundPage(); var Clients = bg.gegedaa.Clients; var Users = bg.gegedaa.Users; var Backbone = require('backbone'); var _ = require('_'); var data = {}; var checkTimer, checkCount = 0; var checkQueue = []; ...
//@flow import { connect } from 'react-redux'; import { AddAComment } from './AddAComment'; import type { AddACommentProps } from './AddAComment'; import type { AddACommentState } from './AddACommentState'; import type { ComponentId } from 'models'; import { updateComponentTextValue } from 'actions'; import TicketDetai...
(function() { var app = angular.module('notely', [ 'ui.router', 'notely.notes', 'notely.notes.service', 'notely.login' ]); function config($urlRouterProvider) { $urlRouterProvider.otherwise('/notes/'); } config['$inject'] = ['$urlRouterProvider']; app.config(config); })();
"use strict"; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange') const { ExchangeError, NotSupported } = require ('./base/errors') // --------------------------------------------------------------------------- module.exports = class bithumb ...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Server = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="n...
import Ember from 'ember'; import layout from 'ember-bootstrap/templates/components/bs-modal/body'; /** Modal body element used within [Components.Modal](Components.Modal.html) components. See there for examples. @class ModalBody @namespace Components @extends Ember.Component @public */ export default Ember.Co...
import gazel from "gazel"; import chai from "chai"; import _ from "lodash"; const assert = chai.assert; describe('Multi', function() { 'use strict'; var results; before(function(done) { var client = gazel.createClient(); client.multi() .set('Fee', 1) .set('Fi', 2) .set('Fo', 3) ...
// Aurora Menu v1.0 // Design and conception by Aurora Studio http://www.aurora-studio.co.uk // Plugin development by Invent Partners http://www.inventpartners.com // Copyright Invent Partners & Aurora Studio 2009 var auroraMenuSpeed = 150; $(document).ready(function(){ $.cookie('testcookie' , 'expanded') ...
/* parser generated by jison 0.6.1-214 */ /* * Returns a Parser object of the following structure: * * Parser: { * yy: {} The so-called "shared state" or rather the *source* of it; * the real "shared state" `yy` passed around to * the rule actions, etc. is a derivative/copy o...
define({ "root" : { OK : 'OK', CANCEL : 'Cancel', CONFIRM : 'OK' }, "fr" : true, "br" : true, "de" : true, "es" : true, "it" : true, "nl" : true, "ru" : true });
/* */ "format amd"; //! moment.js locale configuration //! locale : Northern Sami [se] //! authors : Bård Rolstad Henriksen : https://github.com/karamell ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment'...
$(document).ready(function() { /***************** Waypoints ******************/ $('.wp1').waypoint(function() { $('.wp1').addClass('animated fadeInLeft'); }, { offset: '75%' }); $('.wp2').waypoint(function() { $('.wp2').addClass('animated fadeInDown'); }, { offset: '75%' }); $('.wp3').waypoint(functio...
/* 空内容Modal */ import React from 'react'; import { View, Text, StyleSheet, Modal, } from 'react-native'; import { width, height } from '../utils/DimensionUtil'; const BasicDialog = ({ visible, children, dialogWidth = width * 0.8, dialogHeight = height * 0.28 }) => ( <Modal visible={visible} trans...
import $ from 'jquery'; import jQuery from 'jquery'; (function($) { $.fn.sectionsnap = function( options ) { var settings = $.extend({ 'delay': 100 // time dilay (ms) , 'selector': ".section" // selector , 'reference': .9 // % of window height from which we start , 'animationTime': 400 // animation time...
export * from './add-data-to-firebase'; export * from './create-stub-store'; export * from './create-test-component'; export * from './create-mock-store';
import React from 'react'; import Button from './Button'; import Util from './utils'; class ButtonSet extends React.Component { constructor(props) { super(props); this.buttonClick = this.buttonClick.bind(this); } buttonClick(value, type) { if (type === 'number') { if (!Util.curInput) { ...
/* The MIT License (MIT) Copyright (c) 2015 Chris Dickson 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 to use, copy, modify, ...
var hasher = require('../index'), should = require('should'), ldj = require('ldjson-stream'), fs = require('fs'), through2 = require('through2'), async = require('async'), geojsonsFile = 'test/geojsons.ldj'; require('joe').describe('geohash-poly', function (describe, it) { describe('standard', function ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }), 'ArrowUpward');
$( document ).ready(function() { var SERVER_URL = "http://hackabooth.jovanoski.net:8080"; var currentPhotoUris = []; var row = $('.row'); var generatePhotoHtml = function(photoUrl){ var photoUrl = SERVER_URL + photoUrl; var gridPhotoUrl = photoUrl + '&grid=1'; var photoHTML = [ ...
"use strict"; import React, {Component} from "react"; import { StyleSheet, ScrollView, View, Text } from "react-native" ; import theme from "@store/theme"; const Comment = require("./comment"); /** * Discussions Area consisting of comments */ class DiscussionPage extends Component { construct...
import { SECTIONS } from './constants'; const { PropTypes } = window.WarpJS.ReactUtils; export const SELECTION = PropTypes.shape({ relnId: PropTypes.number, entityId: PropTypes.number, firstLevelId: PropTypes.number, secondLevelId: PropTypes.number }); export const SUB_ITEM = PropTypes.shape({ id...
'use strict'; // Based loosely around work by Witold Szczerba - https://github.com/witoldsz/angular-http-auth angular.module('phi.auth.security.service', [ 'phi.auth.security.retryQueue', // Keeps track of failed requests that need to be retried once the user logs in 'phi.auth.login', // Contains the lo...
/*! * js-file-browser * Copyright(c) 2011 Biotechnology Computing Facility, University of Arizona. See included LICENSE.txt file. * * With components from: Ext JS Library 3.3.1 * Copyright(c) 2006-2010 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ /*! * Ext JS Library 3.3.1 * Copyrigh...
import React from 'react' export const Applications = () => ( <div > <h1>Applications</h1> </div> ) export default Applications
var a = 'b';
'use strict'; var fs = require('fs'); var path = require('path'); var exec = require('exec'); var GoogleSpreadsheet = require('google-spreadsheet'); function gid_to_wid(gid) { var xorval = gid > 31578 ? 474 : 31578; var letter = gid > 31578 ? 'o' : ''; return letter + parseInt((gid ^ xorval)).toString(36); } m...
version https://git-lfs.github.com/spec/v1 oid sha256:4321b4e6882715e05271cc989b265c7e0d43de66cdd18fe86d15f9b3910dbd6a size 77470
angular.module('AnimalsListAdminService', []) .service('AnimalsListAdminService', ['$http', '$q', function($http, $q) { this.getAnimals = function(page, limit) { var def = $q.defer(); $http.get("/webapi/user/home/animals/" + page + "/" + limit) .success(func...
export { default } from './track-card';
'use strict'; var each = require('../../each'); function addAutocomplete(tags, callback) { var client = this._; var args = ['autocomplete']; each(tags, function (tag) { tag = tag.trim(); for (var key = 1 ; key < tag.length ; ++key) { args.push(0, tag.slice(0, key)); } args.push(0, tag + '\n'); }); arg...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
var express = require('express'); var port = process.env.PORT || 3000; var app = express(); app.use(express.static(__dirname + '/dist')); app.listen(port);
// All symbols in the Letterlike Symbols block as per Unicode v6.3.0: [ '\u2100', '\u2101', '\u2102', '\u2103', '\u2104', '\u2105', '\u2106', '\u2107', '\u2108', '\u2109', '\u210A', '\u210B', '\u210C', '\u210D', '\u210E', '\u210F', '\u2110', '\u2111', '\u2112', '\u2113', '\u2114', '\u2115', '\u21...
module.exports = { "env": { "mocha" : true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], "quotes":...
'use strict'; // Setting up route angular.module('core').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { // Redirect to home view when route not found $urlRouterProvider.otherwise('/'); // Home state routing $stateProvider .state('home', { url: '/', ...
import { combineReducers } from 'redux'; import baseAmount from './baseAmount'; import baseCurrency from './baseCurrency'; const reducer = combineReducers({ baseAmount, baseCurrency }); export default reducer;
var express = require("express"); var SparqlClient = require("sparql-client"); var util = require("util"); var qtmp = require("../models/sparqls.js"); var router = express.Router(); router.get("/", function(req, res) { // var endpoint = "http://localhost:3030/tdb/query"; // var query = "PREFIX ab: <http://learnings...
'use strict' var cdt2d = require('cdt2d') var boundary = require('simplicial-complex-boundary') module.exports = pslgToPolygon function pslgToPolygon(points, edges) { //Get cells var cells = cdt2d(points, edges, { delaunay: false, exterior: false }) //Extract boundary var bnd = boundary(cells) ...
export { default } from 'ui-base-theme/components/base--ui-popup--tooltip';
import PropTypes from 'prop-types'; import React from 'react'; import Slugify from 'slugify'; /** * The ImageContentLandscape component */ const ImageContentLandscape = ( page ) => { const imageSrc = page.image.startsWith('http') ? `${ page.image }` : `/assets/img/${ page.image }`; const HeadingTag = `h${ page.le...
Meteor.Router.add({ '/': 'home', '/about': 'about', '/displays': 'feed', '/admin': function () { if (Meteor.user() && Meteor.user().admin) return "adminPanel"; return 'home'; }, '*': 'home' });
'use strict'; var bus= require('./../index.js') var requests= process.argv[2] || 10 var responses= 0 var client= bus.connect({port:8181}) setInterval(function(){ console.log(responses) responses= 0 }, 1000) function onResponse(res){ ++responses client.request(res, onResponse) } for(var i= 0; requests>i; i++) ...
/* global Phaser */ import 'phaser'; import {Util} from './util/Util.js'; // maybe instead of zooming in we could try setting the scale of everything to be bigger. not sure if this would bypass the zoom issue or not const BACKGROUND_LAYER = -10; const DOOR_LAYER = -5; const PLAYER_LAYER = 0; const FOREGROUND_LAYER = 5...
describe('Print', function () { 'use strict'; var ctx = {}; beforeEach(function(done) { requirejs(['jquery', 'Print'], function ($, Print) { ctx.$html = $(window.__html__['spec/js/fixtures/Print.html']).appendTo('body'); ctx.$component = ctx.$html.find('[data-dough-component="Print"]'); ctx...
var SimpleUI = function(options) { for (var key in options) { this[key] = options[key]; } }; (function(exports) { var proto = { constructor: SimpleUI, x: 0, y: 0, width: 120, height: 70, alpha: 1, img: null, sx: null, sy: nu...
const should = require("should"); const occ = require("../lib/occ"); describe("testing Edges ",function(){ describe("constructing an empty Edge",function(){ let edge; before(function(){ edge = new occ.Edge() should.exist(edge); }); it("should be valid", func...
define(function(require){ require("angular"); return angular.module('cw.service.money', []) .factory('$money', ['$http','$q',function($http, $q) { return { get : function(config) { return $http.post('/api/money', config).then(function(data){ var list = data.data.data; for(var i in list){ i...
var MongoClient = require('mongodb').MongoClient; var fs = require('fs'); //fs.unlinkSync('users.txt'); var url = 'mongodb://localhost/kazanparks'; var parks = [ {'name': 'парк горького', 'park_id': ['223155787'], 'collection_id': '223155787'}, {'name': 'черное озеро', 'park_id': ['6948195'], 'collection_id': '6948...
// // This is a stub file for the 'Hello World' exercise. It's been provided as a // convenience to get you started writing code faster. // Make sure to look at hello-world.spec.js--that should give you some hints about what is // expected here. var HelloWorld = function() {}; HelloWorld.prototype.hello = function(in...