code
stringlengths
2
1.05M
App.addChild('MixPanel', { el: 'body', activate: function(){ this.VISIT_MIN_TIME = 10000; this.user = null; this.controller = this.$el.data('controller'); this.action = this.$el.data('action'); this.user = this.$el.data('user'); if(window.mixpanel){ this.detectLogin(); this.star...
/** * The MIT License (MIT) * * Copyright (c) 2015 Sébastien CAPARROS (GlitchyVerse) * * 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 limitati...
// import LineSeries from '../line-series'; xdescribe('LineSeries', () => { });
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'eventsource-polyfill', // necessary for hot reloading with IE 'webpack-hot-middleware/client', './examples/js/app' ], output: { path: path.join(__dirname, 'build')...
var ROUTES_INDEX = {"name":"<root>","kind":"module","className":"AppModule","children":[{"name":"routes","filename":"src/app/routing.module.ts","module":"RoutingModule","children":[{"path":"","redirectTo":"main-board","pathMatch":"full"},{"path":"","component":"AppComponent"},{"path":"main-board","component":"BoardComp...
version https://git-lfs.github.com/spec/v1 oid sha256:baf210740a956fe0d42748a238afec96d1bbcf94cd5ffbda12f3103eb0f20615 size 1898
// requestAnimationFrame polyfill // Thanks Paul Irish (www.paulirish.com/2011/requestanimationframe-for-smart-animating/) window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(); /* // NOT...
'use strict'; import React from 'react'; import App from './app'; React.render( <App/>, document.getElementById('root') );
// Copyright 2016-2022, University of Colorado Boulder /** * a Scenery Node that represents the sun, clouds, and a slider to control the level of cloudiness in the view * * @author John Blanco * @author Andrew Adare */ import NumberProperty from '../../../../axon/js/NumberProperty.js'; import Property from '../....
'use strict'; angular.module('spedycjacentralaApp') .controller('RegisterController', function ($scope, $translate, $timeout, Auth) { $scope.success = null; $scope.error = null; $scope.doNotMatch = null; $scope.errorUserExists = null; $scope.registerAccount = {}; $ti...
/* jQuery.Feyn.js, version 1.0.1, MIT License * plugin for drawing Feynman diagrams with SVG * * https://github.com/photino/jquery-feyn * * author: Zan Pan <panzan89@gmail.com> * date: 2014-2-28 * * usage: $(container).feyn(options); */ ;(function($) { 'use strict'; // add method to jQuery prototype $.fn.feyn...
window.onload = function() { // 绘制棋盘 boardRendering(); cvs.onclick = function(e) { if (gameOver) return; var i = Math.floor(e.offsetX / 30); var j = Math.floor(e.offsetY / 30); if (board[i][j] === 0) { moves.push({ x: i, y: j, ...
import template from './user-auth.html'; export default { template, bindings: { success: '&' }, controller }; function controller() { this.action = 'signin'; }
let mySet = new Set(); mySet.add(1); mySet.add(5); mySet.add('some text'); let o = {a: 1, b: 2}; mySet.add(o); mySet.has(1); // true mySet.has(3); // false, 3 has not been added to the set mySet.has(5); // true mySet.has(Math.sqrt(25)); // true mySet.has('Some Text'.toLowerCase()); // true mySet.has(o);...
function parseInterval(value) { var result = new Date(1,1,1); result.setMilliseconds(value*1000); return result; }
var request = require('request'); var util = require('../util'); var _ = require('underscore'); // load all the required json files var config = require('../config.json'); var mapping = require('./mapping.json'); var meta = require('./river.json'); // set up the local config vars var index = util.dbUrl(co...
// @flow export { default } from './SubCardSelectSearchField';
// All symbols in the Variation Selectors block as per Unicode v3.2.0: [ '\uFE00', '\uFE01', '\uFE02', '\uFE03', '\uFE04', '\uFE05', '\uFE06', '\uFE07', '\uFE08', '\uFE09', '\uFE0A', '\uFE0B', '\uFE0C', '\uFE0D', '\uFE0E', '\uFE0F' ];
export const signIn = (body) => ({ path: '/auth/sign-in', method: 'POST', body: body })
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: String.prototype.match (regexp) es5id: 15.5.4.10_A1_T10 description: Call match (regexp) function with object argument ---*/ var __obj = {toString:function(){return "\u0041B"...
'use strict'; /* Controllers */ angular.module( 'sfAdmin.controllers', [ 'sf.services', 'palaso.ui.listview', 'palaso.ui.typeahead', 'ui.bootstrap' ] ) .controller('UserCtrl', ['$scope', 'userService', function UserCtrl($scope, userService) { $scope.vars = { selectedIndex: -1, editButtonName: "", editButton...
import registerPromiseWorker from 'promise-worker/register'; import markdownProcessor from './markdownProcessor'; import xssFilter from './xssFilter'; /** * Process a given markdown string and update the HTML string * @param {string} markdown - can be mixed with html and css */ /* export default function work...
class Textbox { constructor(selector, regex) { this._elements = $(selector); this.value = $(this._elements[0]).val(); this.invalidSymbols = regex; this.elements.on('input', (event) => { let text = $(event.target).val(); this.value = text; }); } ...
const round = require('./round'); const { mean, median, stddev } = require('./stats'); const arr = [ 40.73, 80.2, 59.54, 54.91, 93.57, 35.69, 99.44, 98.14, 89.3, 21.7, 54.26, 64.02, 18.05, 0.18, 14.79, 60.44, 47.63, 52.33, 75.62, 65.03, ]; describe('Stats', () => { describe('...
"use strict"; function PauseButton(spriteSheet, layer, id) { powerupjs.Button.call(this, spriteSheet, layer, id); this.isPaused = false; this.position = new powerupjs.Vector2(30, 30); } PauseButton.prototype = Object.create(powerupjs.Button.prototype); PauseButton.prototype.handleInput = function(delta) { powerup...
function TemplateBuilder(){ } TemplateBuilder.BUILD_MODE = { NORMAL : 1, IMAGE_MAP : 2, BITLY : 3, IMAGE_MAP_WITH_BITLY : 4 } TemplateBuilder.create = function(FileSystem, JSDOM, name, htmlToolKit, templateFile, outputDirectory, buildMode){ name = name.replace(/\s/g, ""); //var output = "<span>test3</span>"; v...
import {mount} from 'enzyme'; import {expect} from 'chai'; import React from 'react'; import ReactDOM from 'react-dom'; import Alert from '../SAlert'; import sAlertStore from '../s-alert-parts/s-alert-store'; import SAlertContent from '../SAlertContent'; import SAlertContentTmpl from '../SAlertContentTmpl'; import get...
var TypeValidator = require('../Classes/TypeValidator'); var isNumeric = function(data, options){ options = (options == null) ? {'type' : 'numeric'} : options; options['type'] = 'numeric'; var _validator = new TypeValidator(options); _validator.validate(data); return _validator.isValid() ? true ...
var webpack = require('webpack') var DevServer = require('webpack-dev-server') var base = require('./webpack.base.conf.js') var webConfig = base('vue', true) var weexConfig = base('weex', true) var port = process.env.DEMO_PORT | 3456 webConfig.entry = { app: [ './demo/src/render.js', './demo/src/app.js', ...
// [], target module.exports = [{ input: [[[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]], output: 16, }, // { // input: [[1,-5]], // output: -4, // }, // { // input: [[100,200,50,0],150], // output: [0,2], // }, ]
// @ts-check const path = require('path') const { promises: fs } = require('fs') const terminate = require('terminate') const { app } = require('electron') const logger = require('../logger') /** * Check for existing orphaned processes and terminate them. Writes the current * pid to file so that this process can b...
const functions = require('firebase-functions'); const admin = require('firebase-admin'); // // Create and Deploy Your First Cloud Functions // // https://firebase.google.com/docs/functions/write-firebase-functions // // exports.helloWorld = functions.https.onRequest((request, response) => { // response.send("Hello f...
import { mount } from '@vue/test-utils' import { waitNT, waitRAF } from '../../../tests/utils' import { BDropdown } from './dropdown' import { BDropdownItem } from './dropdown-item' describe('dropdown', () => { const originalCreateRange = document.createRange const origGetBCR = Element.prototype.getBoundingClientR...
var LEFT, MIDDLE, RIGHT, timeStamp; LEFT = 0; MIDDLE = 1; RIGHT = 2; timeStamp = 0; var newDiv; function remove() { document.body.removeChild(newDiv); } function draw(e, clickType) { console.log(clickType); console.log(e); newDiv = document.createElement("div"); newDiv.setAttribute("style", "position: absol...
import * as storybook from '@kadira/storybook'; import { setOptions } from '@kadira/storybook-addon-options'; import infoAddon from '@kadira/react-storybook-addon-info'; storybook.setAddon(infoAddon); setOptions({ name: 'React Theming', url: 'https://github.com/sm-react/react-theming', goFullScreen: false...
module.exports = function(RED) { "use strict"; var http = require("follow-redirects").http; var https = require("follow-redirects").https; var urllib = require("url"); var mustache = require("mustache"); var querystring = require("querystring"); var cookie = require("cookie"); var hashSu...
// Constant overrides //app.run(function ($rootScope) { // $rootScope.title = "Configuration Management"; //});
angular.module('myApp', ['ui.router', 'ui.bootstrap', 'smoothScroll', 'ngStorage', 'ngSanitize', 'myApp.controllers', 'myApp.directives', 'myApp.filters']) .run( [ '$rootScope', '$state', '$stateParams', function ($rootScope, $state, $stateParams) { // It's very handy to add references to $stat...
var reddit = require('../index.js'); reddit.prototype.me = function(callback) { var self = this; this._apiRequest("me", {"version": 1}, function(err, response, body) { self._rawJSON(err, body, callback); }); }; reddit.prototype.getPrefs = function(prefs, callback) { if(typeof prefs == 'function') { callback =...
function getData(q, $rootScope) { var d = q.defer(); setTimeout(function() { $rootScope.$apply(function() { d.resolve(data); }); }, 2000); return d.promise; } var data = [ { "count": 4, "img": "http://placekitten.com/500/500", "desc": "Id consequat non ut Lorem et est s...
function pr_dca(url, auth, auth_cb, timeout, async_job_check_time_ms, service_version) { var self = this; this.url = url; var _url = url; this.timeout = timeout; var _timeout = timeout; this.async_job_check_time_ms = async_job_check_time_ms; if (!this.async_job_check_tim...
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */ var JiraApi = require('jira-client'); function responder (jira, config) { return function (match, callback) { var issueId = match[2]; var link = config.protocol + '://' + config.host + ':' + config.port + '/browse/' + issueId; var slackLink = '<' + ...
import React, { Component } from 'react'; export default class extends Component { constructor(props) { super(props); this.renderFileList = this.renderFileList.bind(this); } componentDidMount() { //console.log(this.props); } renderFileList() { let { data } = t...
define(['ko', 'text!app/components/flanders-keg-body/template.html'], function (ko, htmlString) { function FlandersKegBody(model) { var self = this; }; return { viewModel: FlandersKegBody, template: htmlString }; });
const path = require('path'); const webpack = require('webpack'); const WebpackBar = require('webpackbar'); const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const HTMLWebpackPlugin = require('html-webpack-plugin'); const TerserPlugi...
import PIXI from 'pixi.js'; import Hexagon from './hexagon.js'; import GroundLayer from './layer/groundLayer.js'; import UnitLayer from './layer/unitLayer.js'; let hexagon = new Hexagon(80); /** * Represents a tile in the game. */ export default class Tile { constructor(x, y, entities) { this.x = x; this....
/* */ module.exports = function(hljs) { var LITERALS = {literal: 'true false null'}; var TYPES = [ hljs.QUOTE_STRING_MODE, hljs.C_NUMBER_MODE ]; var VALUE_CONTAINER = { end: ',', endsWithParent: true, excludeEnd: true, contains: TYPES, keywords: LITERALS }; var OBJECT = { begin: '{'...
import test from 'ava'; import challenge from '.'; // https://www.reddit.com/4msu2x/ test('Challenge #270 [Easy] Transpose the input text', t => { // Some // text. const input = [['S', 'o', 'm', 'e', ' '], ['t', 'e', 'x', 't', '.']]; const output = [['S', 't'], ['o', 'e'], ['m', 'x'], ['e', 't'], [' ', '.']];...
import { getModule } from '../../store/index.js'; import { getOutline, renderOutline } from './renderSegmentationOutline.js'; import external from '../../externalModules.js'; import * as drawing from '../../drawing/index.js'; const { state } = getModule('segmentation'); jest.mock('../../drawing/index.js', () => ({ ...
describe('dsds', function () { it('asdsa', function () { expect(10).toEqual(123); }); });
const settings = {}; export default settings;
const Discord = require('discord.js'); exports.run = (client, message, args) => { let reason = args.slice(1).join(' '); let user = message.mentions.users.first(); let modlog = client.channels.find('name', 'delet-this'); let muteRole = client.guilds.get(message.guild.id).roles.find('name', 'MUTED'); ...
'use strict'; module.exports = { default: { options: { syntax: 'scss', failOnError: false }, src: [ 'source/**/*.scss' ] } };
version https://git-lfs.github.com/spec/v1 oid sha256:804e6cd63076c116c7b20658b9f678161264c776a86abc12a984011681b0abcc size 1518
var _ = require('lodash'); var fs = require('fs-extra'); var path = require('path'); var pathsHelper = require('../helpers/paths.helper'); exports.ADDABLE_NODES = ['Component', 'Layout', 'Page']; exports.SCSS_PLACEHOLDER_DELIMITERS = [ '/* insert new ', ' */' ]; exports.JS_COMPONENT_STRING = 'addcomponenttothis'...
(function() { 'use strict'; var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes.js'); var app = express(); // view engine setup app....
import fetch from 'dva/fetch'; const parseJSON = (response) => { return response.json(); } const checkStatus = (response) => { if (response.status >= 200 && response.status < 300) { return response; } const error = new Error(response.statusText); error.response = response; throw error; } /** * Requ...
(function (exports, $) { const Module = exports.Helpers.API || {} // Internal cache let internalCache = {} let formControls // Default config const settings = { // This is the ajax config object ajax: { url: '/establishments.json', type: 'GET', dataType: 'json' }, // Th...
import React from 'react'; import renderer from 'react-test-renderer'; import Enzyme, { mount } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import RatingMenu from '../RatingMenu'; Enzyme.configure({ adapter: new Adapter() }); describe('RatingMenu', () => { it('supports passing max/min v...
var Backbone = require('backbone'), Calendario = require('../models/calendario'); module.exports = Backbone.Collection.extend({ url: '/api/pistas/', model: Calendario, fecha: "", getFecha: function(){ return this.fecha; }, setFecha: function(newFecha){ this.fecha = newFecha; } });
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
version https://git-lfs.github.com/spec/v1 oid sha256:a97a6fcdd4778db5080eab0aa923f0d19da2b4b6815eec4c2e4cadce2fab6a95 size 2589527
function formatScheduleURL(options){ var base = "https://citadelcollege.zportal.nl/api/v3/" var start = new Date() // Sunday before, 12am (start of sunday) start.setDate( start.getDate() + (7*options.offset) - start.getDay() ) start.setHours( 0,0,0,0 ) var end = new Date( start.getTime() ) end.setDate( end....
/** * Visitor Model for schema validation * @type {Object} */ module.exports = { "properties": { "city": { "type": "string" }, "country_code": { "type": "string" }, "country_name": { "type": "string" }, "latitude": { ...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
var SecretHandshake = require('./secret_handshake'); describe("Secret Handshake", function() { it("1 is a wink", function() { var handshake = new SecretHandshake(1); expect(handshake.commands()).toEqual(["wink"]); }); xit("10 is a double blink", function() { var handshake = new SecretHandshake(2); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var iosFastforwardOutline = exports.iosFastforwardOutline = { "viewBox": "0 0 512 512", "children": [{ "name": "path", "attribs": { "d": "M48,155l183.5,101L48,356.9V155 M272,155.8L448,256L272,356.4v-95.6v-27.1V156 M256,128v123.2L32,128v256l...
const {ul, li, i, button} = require('dom-gen') const {on, component} = $.cc /** * TaskSection component. */ class TaskSection { /** * @param {jQuery} elem */ constructor (elem) { this.tasks = elem.data('tasks') this.elem = elem } appendTaskList (elem) { return ul(this.tasks.map(task => li...
import State, {makeInvalidMessage, isValidDataTypes} from '../../core/State'; import Data, {DataTypes} from '../../core/Data'; export default class Equal extends State { constructor() { super( makeInvalidMessage("Equal", ["any", "any"]), DataTypes.boolean ); } isValid(childrenNode) { con...
import { combineReducers } from 'redux'; import dashboard from './dashboard'; export default combineReducers({ dashboard, });
var DebugHelper = require('./../../lib/debug-helper'); var should = require('should'); var FakeLogger = function(){ this.logStack = []; var self = this; this.log = function(message){ self.logStack.push(message); }; }; describe('log function', function(){ it('should correctly log simple messages', f...
/** * @module express-universal-query-validator/util * @description Utility functions needed for this module */ import url from 'url'; import { attempt, some, reject, isError } from 'lodash'; /** * Checks if a key=value param can not be * parsed by global `decodeURIComponent` * @param {string} query * @return...
import React from 'react' import { shallow, mount } from 'enzyme' import { expect, assert } from 'chai' import sinon from 'sinon' import Donation from '../../public/lib/components/Donation' import Button from '../../public/lib/components/Button' describe('Donation', () => { const fetchData = sinon.spy() it('shoul...
'use strict'; (function() { var self = this; var DeathAnimations = function() { self.deathSprites = []; self.headSprites = []; self.bloodEmitters = []; self.animationDuration = 5000; self.groundY = 650; self.bloodParticles = []; self.bloodTime = 8000; ...
var {Helper, Operator, Type} = require("@kaoscript/runtime"); module.exports = function() { let AnimalFlags = Helper.enum(Number, { None: 0, HasClaws: 1, CanFly: 2, EatsFish: 4, Endangered: 8 }); function foobar(abilities) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (...
/** * $list */ var $list = (function (module) { module.hasDuplication = function (list, checkDuplicateItem, comparator) { for (var i = 0; i < list.length; i++) { var item = list[i]; if (item != checkDuplicateItem) { if (comparator.compare(item, ...
/** * Constructs a segment <code>[(x_1, y_1), (x_2, y_2)]</code>. Use cases are as follows: * <ul> * <li><code>new Malakh.Segment()</code> (gives segment <code>[(0, 0), (0, 0)])</code></li> * <li><code>new Malakh.Segment({x1: x1, y1: y1, x2: x2, y2: y2})</code></li> * <li><code>new Malakh.Segment(x1, y...
/*jshint node:true*/ module.exports = { description: 'Generate default configuration for ember-cli-template-lint.', normalizeEntityName: function() { // this prevents an error when the entityName is // not specified (since that doesn't actually matter // to us } };
//Copyright 2012 Massachusetts Institute of Technology. All rights reserved. /** * @fileoverview Visual blocks editor for App Inventor * Initialize the blocks editor workspace. * * @author sharon@google.com (Sharon Perl) */ Blockly.BlocklyEditor = {}; Blockly.BlocklyEditor.startup = function(documentBody, form...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'liststyle', 'km', { armenian: 'លេខ​អារមេនី', bulletedTitle: 'លក្ខណៈ​សម្បត្តិ​បញ្ជី​ជា​ចំណុច', circle: 'រង្វង់​មូល', decimal: 'លេខ​ទសភាគ (...
define(function(require) { var Core = require('../src/validator'), $ = require('$'); describe('validator', function() { test('basic', function() { }); }); });
/** * Object with data-attributes (HTML5) with a special <markup> * * @namespace Lungo * @class Attributes * * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1 */ Lungo.Attributes = { count: { selector: '*', html: '<span c...
function clearLog () { var logArea = document.getElementById("logArea"); logArea.value = ""; } function addLog (txt) { var logArea = document.getElementById("logArea"); logArea.value = txt + "\n" + logArea.value; } function clearConsole () { var consoleArea = document.getElementById("consoleArea")...
var Transform = require('pipestream').Transform; var util = require('util'); var iconv = require('iconv-lite'); var LT_RE = /^\s*</; var JSON_RE = /^\s*[\[\{]/; function WhistleTransform(options) { Transform.call(this); options = options || {}; var value = parseInt((options.speed * 1000) / 8); if (value > 0) ...
const fs = require('fs'); module.exports = async (page, scenario) => { let cookies = []; const cookiePath = scenario.cookiePath; // READ COOKIES FROM FILE IF EXISTS if (fs.existsSync(cookiePath)) { cookies = JSON.parse(fs.readFileSync(cookiePath)); } // // MUNGE COOKIE DOMAIN // cookies = cookies.m...
'use strict'; var path = require('path'), chai = require('chai'); chai.use(require('sinon-chai')); chai.use(require('chai-as-promised')); module.exports = { expect: chai.expect };
(function() { var player; player = new Coke.Character(Coke.settings.grid * 7, Coke.settings.grid * 5, 2, 'down', 'images/player.png'); Coke.updateables.push(player); }).call(this);
var _ = require('lodash') var chargeServer = require('../lib/server') var config = require('../lib/config') var fs = require('fs') var Handlebars = require('handlebars') var Hapi = require('hapi') var path = require('path') var AMOUNT = _.random(50, 100) var CARD_CVC = '123' var CARD_EXP_MONTH = 12 var CARD_EXP_YEAR =...
var solution = a(1); alert(solution); // what is the solution? function a(foo) { if(foo > 20) return foo; return b(foo+2); } function b(foo) { return c(foo) + 1; } function c(foo) { return a(foo*2); }
export const battery4 = {"viewBox":"0 0 2304 1792","children":[{"name":"path","attribs":{"d":"M1920 512v768h-1664v-768h1664zM2048 1088h128v-384h-128v-288q0-14-9-23t-23-9h-1856q-14 0-23 9t-9 23v960q0 14 9 23t23 9h1856q14 0 23-9t9-23v-288zM2304 704v384q0 53-37.5 90.5t-90.5 37.5v160q0 66-47 113t-113 47h-1856q-66 0-113-47t...
import app from './app/reducer'; import auth from './auth/reducer'; import config from './config/reducer'; import device from './device/reducer'; import intl from './intl/reducer'; import todos from './todos/reducer'; import ui from './ui/reducer'; import users from './users/reducer'; import messages from './messages/...
/** * @ignore * dom-attr * @author yiminghe@gmail.com, lifesinger@gmail.com */ KISSY.add('dom/base/attr', function (S, DOM, undefined) { var doc = S.Env.host.document, NodeType = DOM.NodeType, docElement = doc && doc.documentElement, EMPTY = '', nodeName = DOM.nodeName, ...
module.exports = { mockery: { Wrapper: require('./src/mockery/Wrapper.js'), Schema: require('./src/mockery/Schema.js') }, Table: require('./src/Table.js'), table: require('./src/table/index.js'), object: require('./src/object/index.js'), Collection: require('./src/Collection.js') };
var routes = { };
// Copyright 2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this li...
/** * Created by Jamie on 17/03/2017. */ var express = require('express'); var pug = require('pug'); var app = express(); // Set the default template engine app.set('view engine', 'pug'); app.use('/static', express.static('public')); function setupRoutes() { // Setup routes var index = require('./routes/...
import React from 'react'; const ESCAPE_KEY = 27; const ENTER_KEY = 13; class TodoList extends React.Component { handleKeyDown(event) { if (event.which !== ENTER_KEY) { return; } event.preventDefault(); let value = this.refs.task.getDOMNode().value.trim(); if...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z" /></g> , 'SubdirectoryArrowRight');
'use strict'; angular.module('ideaBox.version.interpolate-filter', []) .filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); }; }]);
import React from 'react'; import { getDOMNode } from '@test/testUtils'; import TagGroup from '../TagGroup'; describe('TagGroup', () => { it('Should output a TagGroup', () => { const instance = getDOMNode(<TagGroup />); assert.equal(instance.className, 'rs-tag-group'); }); it('Should have a custom clas...