code
stringlengths
2
1.05M
/* eslint no-undef: "off" */ import delay from 'api/__mocks__/delay'; import breadcrumbs from 'api/__fakeData__/breadcrumbs'; class BreadcrumbsApi { static getForumBreadcrumbs(forumId) { let result; if (!forumId) { result = []; } else if(parseInt(forumId)<10){ result = [ breadcru...
import resource from 'resource-router-middleware'; import readError from '../lib/read-error'; import Block from '../models/block'; import { knownPublicKeys, knownAddresses } from '../lib/knowns'; const addressRegex = /^[0-9]{15,21}[L]$/; export default () => resource({ id : 'block', /** GET / - List all ent...
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var Core = new Module('core'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ Core.register(function(app, auth, database) { //We enable routing. By default the Package...
var path = require("path"); var webpack = require("webpack"); var rootSourcePath = __dirname; var rootAssetsPath = __dirname; module.exports = { context: rootSourcePath, resolve: { root: [path.join(__dirname, "bower_components")] }, entry: { index: [ rootSourcePath + '/js/app.jsx' ] }, o...
/** Import general dependencies here so webpack will kindly bundle them for us */ import '../styles/common.scss';
angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.bootstrap']); angular.module('ui.bootstrap.demo').controller('TypeaheadCtrl', function($scope, $http) { $scope.selected = undefined; // Any function returning a promise object can be used to load values asynchronously $scope.getLocation = function(val)...
import React, { Component } from 'react' import Header from '../components/Header' import Footer from '../components/Footer' /** * 页面公共部分组件(头部和底部) */ class App extends Component { render() { return [ <Header key="header" />, <div className="main-box" key="main">{this.props.children}</div>, <...
var seneca = require('seneca')(); var config = require('./seneca.config.js'); seneca .use('redis-queue-transport') .add('role:test,cmd:echo', function (args, done) { var serverMessage = "Echo from server: " + args.clientMessage; var serverTimestamp = Date.now(); console.log('Processing messag...
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.services' is found in services.js // 'start...
var app = require('app'); var BrowserWindow = require('browser-window'); require('crash-reporter').start(); var win; app.on('window-all-closed', function () { console.log('window-all-closed!'); if (process.platform != 'darwin') { app.quit(); } }); app.on('ready', function () { win = new Browse...
var facebookComments = angular.module('facebookComments', []); facebookComments.directive('dynFbCommentBox', function () { function createHTML(href, numposts, progwidth) { return '<div class="fb-comments" ' + 'data-href="' + href + '" ' + 'data-numposts="' + nu...
window.semantic = { handler: {} }; semantic.ready = function () { var menu = {}; menu = { mouseenter: function () { $(this).stop().animate({ width: '155px' }, 300, function () { $(this).find('.text').show(); }); }, mouseleave: function (event) { $(this).find('.text').hide(); $(this).stop...
import React from 'react'; import { Col, Icon, Row } from 'apparena-patterns-react'; import styles from './styles.module.scss'; export default class IconsExample extends React.Component { constructor(props) { super(props); this.state = { data: [], }; } componentDidMount() { // Get the icon...
<div> {/* <!-- title -->*/} <h1 className={css.title}> Excel Merge Tool </h1> {/* <!-- dropZone -->*/} <Dropzone className={css.dropzone} onDrop={this.onDrop}> { files.map((file, index) => <img key={index} src={file.preview} width={200} />)} {/* <!-...
import React, {Component} from 'react'; import { Dimensions, Responder, View } from 'react-native'; import Svg,{ Defs, G, LinearGradient, Path, Stop, Text } from 'react-native-svg'; import {Spring,EasingFunctions} from '../timing-functions'; import {polarToCartesian, computeChartSum, Tween...
this.NesDb = this.NesDb || {}; NesDb[ '44FC14813924B380F94367818FE8DCA96DB9EE4B' ] = { "$": { "name": "Adventures of Rocky and Bullwinkle and Friends, The", "class": "Licensed", "catalog": "NES-RF-USA", "publisher": "THQ", "developer": "Radical Entertainment", "region": "USA", "players": "1", "date": ...
import Toolbar from './toolbar'; export { Toolbar as Toolbar }; export default Toolbar;
const {resultSet, println, target} = require("rec"); const format = java.lang.String.format; const handle = net.kimleo.dblite.DB.connect("jdbc:postgresql://localhost/test", "postgres", "").handle(); resultSet(handle.query("select * from simple_sql_test")) .to(target(function ({id, name}) { println(format...
var glob = require('glob'); var path = require('path'); var fs = require('fs'); var resolve = require('resolve').sync; var findRoot = require('./find-root'); var extractImports = require('./extract-imports'); module.exports = function (filePath, callback) { var root = findRoot(filePath); if (!root) { callback(...
import { createValidator } from 'utils/validatorCompiler'; const constraints = { email: { presence: true, email: true, }, password: { presence: true, } }; export default createValidator(constraints);
game.PlayerBaseEntity = me.Entity.extend({ init: function(x, y, settings) { this._super(me.Entity, 'init', [x, y, { image: "tower", width: 100, height: 100, spritewidth: "100", spriteheight: "100", getShape: func...
/** * Get the Microsoft Stream id. * @param {string} urlString - the url from which you want to extract the id * @returns {string|undefined} */ export default function microsoftStream(urlString) { const regex = (urlString.includes('embed')) ? /https:\/\/web\.microsoftstream\.com\/embed\/video\/([a-zA-Z\d-]*)\/?/...
import React from 'react' import {createDevTools} from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> </Dock...
import Promise from 'bluebird' import { merge } from 'ramda' import runTest from '../../test/runTest' test('client.user.create', () => runTest({ connect: { api_key: 'foobar', }, subject: client => client.user.create({ email: 'foo@bar.com', password: 'ilovememes', invite_token: 'M...
window.c.root.Team = (function(m, c) { return { view: function() { return m('#static-team-app', [ m.component(c.TeamTotal), m.component(c.TeamMembers) ]); } }; }(window.m, window.c));
// ==UserScript== // @name Java 7 Documentation Redirect // @namespace http://freecog.net/2007/ // @description Redirects to the Java SE 7 documenation from older pages. // @include http://docs.oracle.com/javase/* // ==/UserScript== var old_loc = loc = window.location.href; loc = loc.r...
import merge from 'lodash/merge'; import SharpDataList from '../src/components/DataList.vue'; import { shallowMount } from '@vue/test-utils'; describe('DataList', ()=>{ function createWrapper({ ...options }={}) { return shallowMount(SharpDataList, { // language=Vue stubs: { ...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- /** @module azure-mobile-apps/express/tables/table @description This module provides functionality ...
var gulp = require('gulp'); var paths = require('../paths'); var sourcemaps = require('gulp-sourcemaps'); var concat = require('gulp-concat'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var browserify = require('browserify'); var watchify = require('watchify'); var babel = requir...
/** * Created by Pencroff on 13.12.2014. */ var path = require('path'), root = __dirname, testConfFolder = path.join(root, 'testConfigFiles'), mainConf = path.join(testConfFolder, 'main.conf.js'), configManager = require('../src/config-manager.js'); configManager.init(mainConf); // A test suite modu...
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. function transform(model, _attrs) { model.layout = model.layout || "Reference"; model.pagetype = "Reference"; if (!model.title) { model.title = model.name[0].valu...
import { Meteor } from '../../utility/meteor/packages'; import questions from '../../api/questions/collection'; import experts from '../../api/experts/collection'; if (Meteor.settings.private.seedDatabase) { // Questions if (questions.find().count() === 0) { // Car types questions.insert({ label: 's...
// SimpleChart JQuery Plugin // By Robert Haddad (SmokinPuppy) @ 2014 var graph; var c; var xPadding = 30; var yPadding = 30; var xfixer = 0.98; var yfixer = 0.98; var data = [{ values:[ {X:5,Y:50}, {X:10,Y:100} ], color:"red", title:"Red Color", action: "alert('Red Color');" },{ values:[ {X:1,Y:60}, {X:...
declare module "connect-history-api-fallback" { declare module.exports: Function; }
import {remap, norm, denorm} from './remap' import assert from 'assert' assert.equal(remap(0, 1, 0, 10, 0.5), 5) assert.equal(remap(-1, 1, -1, 0, 0), -0.5) assert.equal(remap(-100, 100, 10, 20, 123), 21.15) assert.equal(norm(50, 200, 100), 1/3) assert.equal(denorm(50, 200, -0.5), -25) assert.equal(denorm(0, 10, norm...
"use strict"; import React, { Component } from "react"; export default class Tabs extends Component { render() { return ( <div className="tab-group"> {this.props.children} </div> ); } }
App.Tile = function(properties) { p = properties || {}; App.Glyph.call(this, p); this.isWalkable = (p.isWalkable===undefined) ? false : p.isWalkable; this.isDiggable = (p.isDiggable===undefined) ? false : p.isDiggable; this.blocksLight = (p.blocksLight===undefined) ? true : p.blocksLight; }; App.Tile.e...
define([ "lib/mini" ],function( mini ){ var User = function(){ mini.User.apply( this, arguments ); }; User.prototype = Object.create( mini.User.prototype ,{ compareScore: { value: function( a, b ){ return a >= b; } }, /** * コレクションを付与 */ grantCollecti...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _templateObject = _taggedTemplateLiteral(['\n margin: 0;\n padding: 0;\n'], ['\n margin: 0;\n padding: 0;\n']); var _styledComponents = require('styled-components'); var _styledComponents2 = _interopRequireDefault(_styledComponen...
/** * The MIT License (MIT) * * Copyright (c) 2014 Mickael Jeanroy <mickael.jeanroy@gmail.com> * * 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 ...
var mongoose = require('mongoose'); var models = require('./schemas'); var fs = require('fs'), xml2js = require('xml2js'); var async = require('async'); var parser = new xml2js.Parser(); var ipnett = "10.0.2."; // Set your IP range nett. Same as found in nmap bash file. var iprange = "255"; // select the ran...
/** * built by Astrocoders * @flow */ // Modules import React from 'react' import styled from 'styled-components' import { Link } from 'react-router' import SvgDeleteIcon from 'material-ui/svg-icons/action/delete' import { grey100, grey200, grey400, grey500, grey700, grey800, } from 'material-ui/styles/...
import React from 'react'; import { GainLoss } from '../../gainloss/GainLoss' export function PositionSymbol(props) { const style = { flexGrow: '1' } return ( <div style={style}> <h2>{ props.position.symbol }</h2> <div>{ props.position.quantity } shares</div> <div>Day:</div> <Gai...
var R = require('../source/index.js'); var eq = require('./shared/eq.js'); var list = ['a', 'b', 'c', 'd', 'e', 'f']; describe('move', function() { it('moves an element from an index to another', function() { eq(R.move(0, 1, list), ['b', 'a', 'c', 'd', 'e', 'f']); eq(R.move(2, 1, list), ['a', 'c', 'b', 'd',...
/* Circuit script by lem()ntea. Please do not copy my code. */ //Block definations //Warning: edting this could make error(s). var SWITCH_ENABLED = 22 //Lapis lazuli block var SWITCH_DISABLED = 20 //Glass var WIRE_ENABLED = 41; //Gold block var WIRE_DISABLED = 42; //Iron block function useItem(x, y, z, b, i, s){ ...
var mirror = { 'top left': 'top right', 'top right': 'top left', 'bottom left': 'bottom right', 'bottom right': 'bottom left', 'left': 'right', 'right': 'left', 'top': 'bottom', 'bottom': 'top' } function isWindow (element) { return obj != null && obj === obj.window } function outerWidth (el) { va...
const Button = FocusComponents.common.button.action.component; const ButtonSample = React.createClass({ /** * Render the component. * @return {object} React node */ render() { return ( <div className='button-example'> <Button label='Bouton primaire' type='button'...
// addon/components/mixins/has_property.js import Ember from 'ember'; // A mixin that enriches a view that is attached to a model property. // // The property name by default is taken from the parentView unless explictly // defined in the `property` variable. // // This mixin also binds a property named `errors` ...
requirejs.config({ paths: { 'text': '../lib/require/text', 'durandal':'../lib/durandal/js', 'plugins' : '../lib/durandal/js/plugins', 'transitions' : '../lib/durandal/js/transitions', 'knockout': '../lib/knockout/knockout-3.1.0', 'bootstrap': '../lib/bootstrap/js/boo...
'use strict'; //Setting up route angular.module('manage-events').config(['$stateProvider', function($stateProvider) { // Manage events state routing $stateProvider. state('admin.manage-events', { abstract: true, url: '/manage-events', template: '<ui-view/>' }). state('admin.manage-events.list', { ...
// 7. Write a JavaScript program which iterates the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". for(var i = 1; i <= 100; i++) { var print = ""; if(i % 3...
'use strict'; var Mongoose = require('mongoose') , Schema = Mongoose.Schema , ObjectId = Mongoose.Types.ObjectId; var CaseSchema = new Schema({ clients: [ { type: ObjectId, ref: 'Client' } ] }); module.exports = Mongoose.model('Case', CaseSchema);
//team list controller app.controller("eventDCtrl", // Implementation the todoCtrl function($scope, Auth, $firebaseArray, $firebaseObject, $stateParams, $filter, Helper, ngDialog, $state) { console.log("event detail"); //initialize $scope.isManaging = false; $scope.userdata = "...
System.register(['angular2/core', "angular2/common", '../../services/stores/category-store', "../../services/actions/category-actions", "../../services/drinks-api-service", "../../services/actions/drink-query-actions"], function(exports_1) { var __decorate = (this && this.__decorate) || function (decorators, target...
/* dhtmlxScheduler v.4.1.0 Stardard This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited. (c) Dinamenta, UAB. */ scheduler._props = {}; scheduler.createUnitsView = functi...
export default { SORT_DESC: "desc", SORT_ASC: "asc", SIZE_PER_PAGE: 10, NEXT_PAGE: ">", LAST_PAGE: ">>", PRE_PAGE: "<", FIRST_PAGE: "<<", ROW_SELECT_BG_COLOR: "", ROW_SELECT_NONE: "none", ROW_SELECT_SINGLE: "radio", ROW_SELECT_MULTI: "checkbox", CELL_EDIT_NONE: "none", CELL_EDIT_CLICK: "click"...
import { combineReducers } from 'redux' import characterList from './characterList' export default combineReducers({ characterList })
'use strict'; const Async = require('async'); const Boom = require('boom'); const Config = require('../../config'); const Joi = require('joi'); const internals = {}; internals.applyRoutes = function (server, next) { const Account = server.plugins['hapi-mongo-models'].Account; //const Session = server.plugi...
'use strict'; /* Services */ // Demonstrate how to register services // In this case it is a simple value service. angular.module('myApp.services', []) .factory('FIREBASE_URL', function () { return 'https://waitandeat-senate.firebaseio.com/'; }) .factory('dataService', function($firebase, FIREBAS...
var Dungeon = { map: [], in_battle: 0, player_position: 0 }; Dungeon.mapGenerator = function () { this.map = []; this.player_position = 0; for (var i = 0; i < 100; i++) { if (rand(0, 5) != 0) { this.map[i] = {symbol: '_', unit: null}; } else { ...
import { createSelector } from 'reselect'; /** * Direct selector to the billsTab state domain */ const selectBillsTabDomain = (state) => state.get('billsTab'); /** * Other specific selectors */ const makeSelectLoading = () => createSelector( selectBillsTabDomain, (pageState) => pageState.get('loading') ); co...
const vm = require('vm'); const iconv = require('iconv-lite'); const GLOBAL_VARS = [ 'process', 'Buffer', 'clearImmediate', 'clearInterval', 'clearTimeout', 'setImmediate', 'setInterval', 'setTimeout', 'console', 'module', 'require', ]; /* eslint-disable no-console */ const TIMEOUT = 600; const R...
describe('wcUnique directive specs', function () { var scope, modelCtrl, modelValue, customerSvcMock, form, element, input, compiledForm, changeInputValueTo, passPromise; function setEmailId(value) { scope.customer.email = value; scope.$digest(); } beforeEach(function () { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const images = require("images"); class ImageOperation { constructor(path) { this.image = images(path); } getCutImage(cutParams) { return images(this.image, cutParams.x, cutParams.y, cutParams.width, cutParams.heigh...
function flat (obj, prefix, flatten) { if (typeof obj === 'string') { return flatten.concat(prefix + obj) } if (Array.isArray(obj)) { return flatten.concat([[prefix + obj[0], obj.slice(1)]]) } if (typeof obj === 'object' && obj.prefix && Array.isArray(obj.names)) { return obj.names.reduce(functi...
var gulp = require('gulp'); var jshint = require('gulp-jshint'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); var uglify = require('gulp-uglify'); var srcPath = 'src/ng-sort-set.js'; gulp.task('lint', function () { return gulp.src(srcPath) .pipe(jshint()) .pipe...
/** * @file Magic 全部法术类 * @author liuxuanzy(liuxuanzy@qq.com) */ 'use strict'; const MAGIC_LIST_CONFIG = require('./config'); /** * 法术基类 * * @class MagicBase */ class MagicBase { /** * 构造函数 * * @param {Object} options 配置信息 */ constructor(options) { /** * 法术的名字 ...
// Joe Presbrey <presbrey@mit.edu> // 2007-07-15 // 2010-08-08 TimBL folded in Kenny's WEBDAV // 2010-12-07 TimBL addred local file write code $rdf.sparqlUpdate = function() { var anonymize = function (obj) { return (obj.toNT().substr(0,2) == "_:") ? "?" + obj.toNT().substr(2) : obj.toNT(...
var async = require('async'); var _ = require('underscore'); var cache = require('./cache.js'); var user = require('./user.js'); var beer = require('./beer.js'); var aUtils = require('./analyseUtils'); exports.getUserCheckins = function(token, username, cb){ user.info(token, username, function(err, userInfo){ if...
import React from 'react' import Base from '../_helpers/BaseComponent' import classnames from 'classnames' export default class Login extends Base { constructor() { super() } render() { let usernameClasses = classnames({ 'h5': true, 'form-input': true, ...
/** @constructor */ ScalaJS.c.scala_util_hashing_ByteswapHashing$Chained = (function() { ScalaJS.c.java_lang_Object.call(this); this.h$1 = null }); ScalaJS.c.scala_util_hashing_ByteswapHashing$Chained.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_util_hashing_ByteswapHashing$Chained.protot...
var foo = { "firstName": "John", "lastName": "Smith", "isAlive": true, "age": 25, "height_cm": 167.64, "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", }, "phoneNumbers": [ { "type": "home", "number": "212 555-1234" }, { "typ...
import React from 'react'; import ReactDOM from 'react-dom'; import {BasePane, Pane} from '../../../src/react/panes'; describe('BasePane', () => { const renderComponent = props => ReactDOM.render(<BasePane {...props}>Pane content here</BasePane>, root); it('renders a pane and container', () => { renderCompone...
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * 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...
'use strict'; angular.module('controllers.client', []) .controller('ClientsListCtrl', ['$scope', '$modal', '$stateParams', 'Client', function ($scope, $modal, $stateParams, Client) { $scope.totalPages = 0; $scope.clientsCount = 0; $scope.headers = [ { title: 'ClientID', ...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); var id2name = require('./axis_ids').id2name; var scaleZoom = require('./scale_zo...
paper_ln = []; paper_ln["modify_it"] = "Modifica card"; paper_ln["delete_it"] = "Elimina card"; paper_ln["open_it"] = "Apri anteprima"; paper_ln["modify_en"] = "Modify card"; paper_ln["delete_en"] = "Delete card"; paper_ln["open_en"] = "Open preview"; paper_ln["modify_fr"] = "Modifier"; paper_ln["delete_fr"] = "...
'use strict' const ChatServiceError = require('./ChatServiceError') const Promise = require('bluebird') const _ = require('lodash') const { asyncLimit, mixin, run } = require('./utils') class RoomPermissions { constructor (roomName, roomState, emitFailure) { this.roomName = roomName this.roomState = roomSta...
/** * 创建一个 EpicEditor * * @param {Element} textarea * @return {EpicEditor} */ function createEpicEditor (textarea) { var $node = $(textarea); var id = $node.attr('id'); var h = $node.height(); var l = $node.parents('.reply2_form').find('#editor_'+id).length; if (l == 0) { $node.before('<div id="edito...
/*global window: false, $:false, document:false, jQuery:false, XDomainRequest:false*/ /*! * gender.js v0.5 * Copyright 2014 gender-api.com * https://github.com/markus-perl/gender-api/blob/master/LICENSE * * */ (function ($) { var GenderApi = function (element, config) { var TYPE_NAME = 'name'; ...
import Sqlite3Adapter from '../../Sqlite3Adapter'; import Mysql2Adapter from '../../Mysql2Adapter'; function createTable(td) { td.primaryKey('id'); td.string('name', { default: 'Untitled' }); td.string('email'); td.integer('age', { default: 0 }); td.text('bio'); td.boolean('active', { default: true }); t...
var should = require('chai').should(); describe('Grasshopper core - content', function(){ 'use strict'; var async = require('async'), path = require('path'), _ = require('lodash'), grasshopper = require('../../lib/grasshopper').init(require('../fixtures/config')), tokens = {}, ...
import React from 'react' import { Tweet } from 'react-twitter-widgets' import ContentLoader from './Preloader' import './styles/tweets.css' export default ({tweets, fetching}) => { if (tweets.length > 0) { const embededTweets = tweets.map((tweet) => { let id = tweet.id return ( <div key={id}...
// 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 {resolve, reject} from 'redux-simple-promise'; import {push} from 'react-router-redux' import cookie from 'react-cookie'; const LOGIN = 'auth/LOGIN'; const LOGOUT = 'auth/LOGOUT'; const SIGNUP = 'auth/SIGNUP'; const LOAD_USER = 'auth/LOAD_USER'; export default function reducer(state = {}, action = {}) { swit...
/// <reference path="..\..\Typings\google.maps.d.ts" /> /// <reference path="Interfaces.d.ts" /> define(["require", "exports", "Scripts/NE/Model"], function(require, exports, VM) { var G = google.maps; function bindDom(me, el, event, method) { G.event.addDomListener(el, event, function (ev) { ...
import Crafty from 'craftyjs'; Crafty.c('Control', { started: false, init: function () { this.requires('Mouse'); this.enableCapture(); }, enableCapture: function () { Crafty.addEvent(this, Crafty.stage.elem, 'mousedown', this.attachMoveHandler); Crafty.addEvent(this, Crafty.stage.elem, 'mouseup', this.deta...
module.exports = function (acetate) { acetate.helper('helper', function (context, text) { return context.title + '\n' + text + '\nhelper'; }); acetate.block('content', function (context, text) { return context.title + '\n' + text + '\nblock'; }); acetate.filter('filter', function (value) { retur...
describe('Tywin Lannister (LoCR)', function() { integration(function() { beforeEach(function() { const deck1 = this.buildDeck('lannister', [ 'Sneak Attack', 'Tywin Lannister (LoCR)', 'Cersei Lannister (Core)', 'Hedge Knight' ]); const deck2...
"use strict"; var core = require("flax/core"); class Server extends events.EventEmitter { constructor() { super(); this.domainRoutes = {}; this.globalRoutes = {matchRoutes: {}, exactRoutes: {}}; this.addExactRoute({ route: '/showRoutes', fn : function(req, res) { res.textOut('<pre>' + JSON.stringif...
angular.module('myapp', [ 'templates-app', 'templates-common', 'ui.router' ]).run(function () { }); angular.element(document).ready(function() { angular.bootstrap(document, ['myapp']); });
/* jshint node: true */ 'use strict'; module.exports = { name: 'ember-sanctify' };
define(function (require, exports, module) { 'use strict'; var TR = require('gui/GuiTR'); var GuiCamera = function (guiParent, ctrlGui) { this._main = ctrlGui._main; // main application this._menu = null; // ui menu this._camera = this._main.getCamera(); // the camera this._cameraTimer = -1; //...
'use strict'; // Service for running code in the context of the application being debugged angular.module('ngDependencyGraph') .factory('appContext', function(chromeExtension, Const) { // Public API // ========== return { refresh: function(cb) { chromeExtension.eval(function(window) { ...
import angular from 'rollup-plugin-angular'; import commonjs from 'rollup-plugin-commonjs'; import nodeResolve from 'rollup-plugin-node-resolve'; import typescript from 'rollup-plugin-typescript'; import uglify from 'rollup-plugin-uglify'; import { minify } from 'uglify-es'; // rollup-plugin-angular addons import sas...
'use strict'; angular.module('myApp.CleanCut', ['ngRoute']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/', { templateUrl: 'views/split-costs/main.html', controller: 'CleanCutCtrl' }); }]) .controller('CleanCutCtrl', ['$scope', funct...
module.exports = {"PortLligatSans":{"normal":"PortLligatSans-Regular.ttf","bold":"PortLligatSans-Regular.ttf","italics":"PortLligatSans-Regular.ttf","bolditalics":"PortLligatSans-Regular.ttf"}};
describe("GUI base class", function() { var SubClass; beforeEach(function() { SubClass = GUI.extend(Function.empty); }); describe("Method render", function() { var spy1 = new Spy(); SubClass.prototype.render_ = spy1.spy; it("should call subclass render_ method", function() { var sub = new SubClass(); ...
var path_1 = require('path'); var workflow_config_1 = require('../workflow.config'); module.exports = function tslint(gulp, plugins) { return function () { return gulp.src([ path_1.join(workflow_config_1.PATH.src.all, '**/*.ts'), path_1.join(workflow_config_1.PATH.src.all, '../gulpfi...
// - -------------------------------------------------------------------- - // 'use strict'; module.exports = function (grunt) { grunt.initConfig({ jscs: { src: './lib/components/**/*.jsx', options: { config: '.jscsrc', esnext: true, fix: true } }, babel: { ...