code
stringlengths
2
1.05M
ECS.System("batter", { order: 2, init: function(state) { }, update: function(state, dt) { var entities = ECS.Entities.get( ECS.Components.Bat, ECS.Components.Transform, ECS.Components.Direction); while(e = entities.next()) ...
'use strict'; var config = require('../config.json'); var gulp = require('gulp'); var env = require('gulp-environments'); var dev = env.development; var prod = env.production; var errorAlert = require('../libs/errorAlert'); var logAlert = require('../libs/logAlert'); var plumber = require('gulp-plumber'); var gutil = ...
/* * http://love.hackerzhou.me */ // variables var $win = $(window); var clientWidth = $win.width(); var clientHeight = $win.height(); $(window).resize(function() { var newWidth = $win.width(); var newHeight = $win.height(); if (newWidth != clientWidth && newHeight != clientHeight) { ...
//pizza.js var hapi = require("hapi"), server = new hapi.Server(), orders = require("./orders"); server.connection({ port: 8000 }); server.start(); server.views({ path: "templates", engines: { html: require("handlebars") }, isCached: false }); server.route({ method: "GET", path: "/{name?}", handler: funct...
'use strict'; module.exports = function(sequelize, DataTypes) { var Probe = sequelize.define('Probe', { channel: { type: DataTypes.INTEGER, primaryKey: true}, createdAt: DataTypes.DATE, updatedAt: DataTypes.DATE }, { classMethods: { associate: function(models) { Probe.hasMan...
var proto = require('proto') var testUtils = require('testUtils') var Gem = require("../Gem.browser") var domUtils = require('domUtils') var syn = require("fsyn") var Style = Gem.Style var Text = Gem.Text var Button = Gem.Button var CheckBox = Gem.CheckBox var Block = Gem.Block var Svg = Gem.Svg var defaultBackgroun...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
module.exports = { mqttServer: 'mqtt://k33g-orgs-macbook-pro.local:1883' }
/* Created by Lumpychen on 16/5/23.*/ const verify = (state = ['empty','empty'], action) => { switch (action.type) { case 'VERIFY_STATE': if (action.stk&&action.rf) return [action.stk,action.rf]; else if (action.stk) return [action.stk,state[1]] ...
/** * Created by cmiles on 9/21/2017. */ var express = require('express'); var router = express.Router(); router.get('/', function (req, res, next) { res.setHeader('Content-Type', 'application/json'); res.send(JSON.stringify(oui_data)); }); module.exports = router;
// export class Point { // constructor(x,y){ // public x=x; // public y=y; // } // } "use strict";
const assert = require('assert'); const parseurl = require('parseurl'); const util = require('./util'); const PATHNAME = '/whistle'; const { WHISTLE_POLICY_HEADER, DEFAULT_NAME, WHISTLE_RULES_HEADER, WHISTLE_VALUES_HEADER, } = util; const getPathname = (pathname) => { if (typeof pathname !== 'string' || !pa...
// ========================================= ========================================= ========================================= //*************** -------------- ___________ EFFET HIGHLIGHT POUR HOVER // ========================================= ========================================= =============================...
;(function(){ var tpl_edit = QNML.TPL.CODE_EDIT; var tpl_view = QNML.TPL.CODE_VIEW; qnml.addLanguage({ nodeName:"qnml:code", parse:function(match,attr,text,option){ var language = /language=[\"\']?(\w*)[\"\']?/i.exec(attr)[1]; var languageText = language,oRet; //向前兼容 if(oRet = /text=[\"\']?(\w*)[\"\...
import Future from './future'; import {isFuture, isNever, never, of, reject} from './core'; import * as dispatchers from './dispatchers'; import {after, rejectAfter} from './after'; import {attempt} from './attempt'; import {cache} from './cache'; import {chainRec} from './chain-rec'; import {encase} from './encase';...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS205: Consider reworking code to avoid use of IIFEs * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const sinon = require("sinon") const rewire = require("rewire") con...
/* */ 'use strict'; Object.defineProperty(exports, "__esModule", {value: true}); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi...
module.exports = function findStopPosition(index, arraySize) { if (index === 0) { return 'first-' } else if (index === arraySize - 1) { return 'last-' } else { return '' } };
"use strict"; /** * @internalapi * @module vanilla */ /** */ var predicates_1 = require("../common/predicates"); /** A `LocationConfig` that delegates to the browser's `location` object */ var BrowserLocationConfig = (function () { function BrowserLocationConfig(router, _isHtml5) { if (_isHtml5 === void ...
import { equals } from 'dummy/helpers/equals'; import { module, test } from 'qunit'; module('Unit | Helper | equals', function() { test('it returns true if two primitives are equal', function(assert) { let result = equals([42, 42]); assert.ok(result); }); test('it returns true if both values are null/un...
export default /* glsl */` #ifdef MAPCOLOR uniform vec3 material_specular; #endif #ifdef MAPTEXTURE uniform sampler2D texture_specularMap; #endif void getSpecularity() { dSpecularity = vec3(1.0); #ifdef MAPCOLOR dSpecularity *= material_specular; #endif #ifdef MAPTEXTURE dSpecularity *= text...
/** * Created by Manhhailua on 11/30/16. */ import Entity from './Entity'; import { term, adsStorage, util } from '../vendor'; class Banner extends Entity { constructor(banner) { super(banner); this.id = `banner-${banner.id}`; this.isRelative = banner.isRelative; this.keyword = banner.keyword; ...
const mongoose = require('mongoose'); const archiveSchema = new mongoose.Schema({ email: String, codmateria: Number, materia: String, codigo: String, semestre: String, paralelo: String, docente: String, item01: String, item02: String, item03: String, item04: String, item05: String, item06: S...
module.exports = require("./lib/pn532-spi.min")
function isitArrays(a, b) { var isit = false; for(var i = 0; i < a.length; i++) { if($.inArray(a[i], b) != -1) { isit = true; } } return isit; } function focusField(obj) { obj.addClass("unFocus"); obj.focus(function() { $(this).toggleClass("unFocus").toggleClass("Focus"); if (this.value == ...
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var EditorModeComment = React.createClass({ displayName: 'EditorModeComment', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: "M21.99 4c0-1.1-.8...
/** * get-tweets.js * http://github.com/kevindeleon/get-tweets * * Copyright 2013, Kevin deLeon * Licensed under the MIT license. * http://github.com/kevindeleon/get-tweets/blob/master/LICENSE * * Much of this logic was derrived from blogger.js from Twitter and converted to jQuery * The releative_time function...
import React from 'react'; import {SelectButton} from './SelectButton'; import {ConditionalSelectButton} from './ConditionalSelectButton'; import {ApiButton} from './ApiButton'; import {DownloadButton} from './DownloadButton'; import {SliderInput} from './SliderInput'; import {DynamicSearchInput} from './DynamicSearchI...
/** * @file WebGLMath Mat4Array class * @copyright Laszlo Szecsi 2017 */ /** * @class Mat4Array * @classdesc Array of four by four matrices of 32-bit floats. May reflect an ESSL array-of-mat4s uniform variable. * <BR> Individual [Mat4]{@link Mat4} elements are available through the index operator []. * @param {...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Response} from './ReactFlightClientHostConfigStream'; import { resolveModule, resolveModel, resolv...
const Storage = require('./storage'); let storage; /** * Handle every persistence-related task * The interface Datastore expects to be implemented is * * Persistence.loadDatabase(callback) and callback has signature err * * Persistence.persistNewState(newDocs, callback) where newDocs is an array of documents and c...
/* --- name: SubtleLocationProxy description: | SubtleLocationProxy will proxy the location of one frame to the hash of another and vice-versa. It's handy for sites that simply wrap a fancy UI around simple HTML pages. authors: Thomas Aylott <oblivious@subtlegradient.com> copyright: © 2010 Thomas Aylott license: M...
import module from "other"; if(typeof window !== "undefined" && window.assert) { assert.ok(module, "got basics/module"); assert.equal(module, "bar", "module name is right"); done(); } else { console.log("basics loaded", module); }
import React from 'react'; import PropTypes from 'prop-types'; import getAttrs from '../util/getAttrs'; export default function Callout(props) { return ( <table {...getAttrs(props, ['children'], 'callout')}> <tr> <th className="callout-inner">{props.children}</th> <th className="expander"/>...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z" /></g> , 'Devices');
var KEY = { UP: 38, DOWN: 40, W: 87, S: 83 } function listeningPaddles() { $(document).keydown(function(e){ switch(e.which){ case KEY.UP: // get the current paddle B's top value in Int type var top = parseInt($("#paddleB").css("top")); // move...
// Use this library to handle this libraries' errors const selfErrors = require('./self'); // Repeat a character N times const char = (ch = ' ', n = 0) => Array(n + 1).join(ch); // Make a line of length >= width with filling spaces // It cannot cut it because we risk breaking links or others const line = (msg = '', w...
/** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ ; (function () { /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, hr: /^( *[-*_...
define ( [ 'kbwidget', 'bootstrap', 'jquery', 'kbwidget', 'kbaseAuthenticatedWidget' ], function( KBWidget, bootstrap, $, KBWidget, kbaseAuthenticatedWidget ) { return KBWidget({ name: "KBaseGWASPopKinshipTable", parent : kbaseAuthenticatedWidget, version: "1.0.0", ...
'use strict'; describe('Controller: AboutCtrl', function () { // load the controller's module beforeEach(module('chipsApp')); var AboutCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AboutCtrl = $contr...
const webpack = require('webpack'); const WebpackDevServer = require('webpack-dev-server'); const config = require('./webpack.local.config'); /* eslint-disable no-console */ new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, inline: true, historyApiFallback: true, }).liste...
'use strict'; (function() { var planner = angular.module('cashewApp.Planner', ['ngRoute']); planner.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/plan', { templateUrl: 'views/Planner/Planner.html', controller: 'Planner', controllerAs: 'planner' }); }]); ...
global.gulp = require('gulp'); global.gutil = require('gulp-util'); global.fs = require('fs'); global.argv = require('minimist')(process.argv.slice(2)); global.karma = require('karma').server; global.path = require('path'); global.rename ...
var app = app || {}; //var Codemirror = require('../../node_modules/react-codemirror/dist/react-codemirror.min.js') (function() { app.APP_TEST = 1; app.STANDARD_TEST = 2; app.SERVER_TEST = 3; var TestButton = app.TestButton; var CodeEditor = app.CodeEditor; var UrlEditor = app.UrlEditor; ...
const uuid = require('uuid') const sessionData = require('./session.data') const config = require('../../config/auth') const token = require('../../helper/token') /** * @param {number} expiresIn Session ttl in ms * @return {number} Session expiration timestamp */ function getExpiresAt (expiresIn) { const nowU...
define(["require", "exports", "./puzzle", "./main"], function (require, exports, puzzle_1, main_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var FullRebuildGameUI = (function () { function FullRebuildGameUI(afterDone) { this.afterDone = afterDone; ...
const { default: uninstall } = require('../uninstall') const { expect } = require('chai') describe('uninstall', () => { it('removes plugin/preset from .babelrc', () => { const plugins = ['transform-class-properties'] const babelRC = { plugins, presets: [], } uninstall({ babelRC, ...
export const startTimer = () => { return { type: 'START_TIMER', startTime: new Date().getTime() }; }; export const updateTimer = () => { return { type: 'UPDATE_TIMER', time: new Date().getTime() }; }; export const pauseTimer = () => { return { type: 'PAUSE_TIMER' }; }; export const re...
function itemGenerator(dataArr) { const template = Handlebars.templates.li; let result = dataArr; if (!Array.isArray(dataArr)) { result = [dataArr]; } const rendered = template({ listItems: result }); return rendered.trim(); } export default itemGenerator;
var cFiles = []; var hFiles = []; function main(){ // Check if all submission conditions are satisfied $('form').submit(function(event){ if(checkClassInfo() && checkFiles()){ loading(); return; } event.preventDefault(); }); $('#add-code-file').on('click',...
SystematicCyclicCode = function (infoLen, codeLen, genePoly, genePolyDigree) { //Properties this.infoLen = infoLen; this.codeLen = codeLen; this.genePolyDigree = genePolyDigree; this.recoveryLen = Math.floor(genePolyDigree / 2); this.genePoly = genePoly; this.surplusPoly = 0b0; this.sy...
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/solutionsdash', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.m...
app.service('RegisterService', function (SortingService) { var registers = []; var defaultN = 50; //default register length, when not provided in constructor args this.getState = function(key, regNumber){ var registerNumber = regNumber || 0; //set regNumber to 0 if not provided return registers[registerNumb...
(function () { 'use strict'; var Hospital = require('../models/hospital'); var HospitalController = function () { }; // Return all hospitals HospitalController.prototype.getHospitals = function (req, res) { Hospital.find().exec(function (err, hospitals) { if (err) { ...
var values = [1,2,3,4,5] var reduceFunc = function(prev, curr, index, array){ return prev + curr; }; var sum = "Reduce: " + values.reduce(reduceFunc); console.log(sum); var sumRight = "Reduce right: " + values.reduceRight(reduceFunc); console.log(sumRight);
"use strict"; const Board = require('../Board'); const movement = require('../services/Movement'); const specialMovement = require('../services/SpecialMovement') const squaresControl = require('../services/squareControl') const seneca = require('seneca')({ log: 'silent' }) .use(movement) .use(spe...
class Just { constructor(value) { this.value = value; } isJust() { return true; } isNothing() { return false; } getOr(orElse) { // eslint-disable-line no-unused-vars return this.value; } then(func) { return func(this.value); } recover(func) { // eslint-disable-line no-unus...
export const sort = sortBy => { switch (sortBy) { case 'Latest': return { createdAt: -1 } case 'Most Popular': return { favoritesCount: -1, downloadCount: -1, createdAt: -1 } case 'Least Tags': return { tagsCount: 1, createdAt: -1 } default: return { createdAt: -1 } } } export const CONVERT_TO_SC...
const { series, crossEnv, concurrent, rimraf } = require('nps-utils'); module.exports = { scripts: { default: 'nps webpack', test: { default: 'nps test.jest', jest: { default: series( rimraf('test/coverage-jest'), crossEnv('BABEL_TARGET=node jest') ), ...
var config = require('../config') var webpack = require('webpack') var merge = require('webpack-merge') var utils = require('./utils') var baseWebpackConfig = require('./webpack.base.conf') var ExtractTextPlugin = require('extract-text-webpack-plugin') var HtmlWebpackPlugin = require('html-webpack-plugin') var WebpackV...
var cordova = require('cordova'), UrbanAirshipWindows = require('./UrbanAirshipWindows'); function listenAndDispatch() { if(RuntimeComponentTest.Class1) { try { RuntimeComponentTest.Class1.addEventListener('registrationstatechanged', function(e) { console.info('UrbanAirshipWindows will dispatch Event: ', e)...
describe("About Expects", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should expect true", function() { expect(true).toBeTruthy(); //This should be true }); //To understand reality, we must compare our expectations against reality. it("should expect equalit...
var settings = require(process.env.settingsFile || '../settings'); var util = require('util'); var _ = require('underscore'); var db = require('../lib/db'); var coinRPC = require('../lib/coinRPC'); module.exports.settings = function(req, res, next){ res.locals.settings = settings; res.locals.payoutRange = {min: set...
app.controller('WorldCtrl', ['$scope', '$location','World', function($scope, $location, World){ }]);
'use strict'; angular.module('myApp.calendar', []) .controller('CalendarCtrl', ["$scope",function($scope) { }]) .directive("dateRangePicker", ["$rootScope",function($rootScope) { return { restrict: "A", link: function(scope, elem, attrs) { $(elem).daterangepicker(); $(ele...
var path = require('path') var pify = require('pify') var webpack = pify(require('webpack')) export default function (input, output) { return webpack({ entry: [input], output: { path: path.dirname(output), filename: path.basename(output), libraryTarget: 'commonjs2' }, target: 'node'...
/** * jquery.dp-pdf.js v0.1.0 * Copyright (c) 2015, dolphilia. * Licensed under the MIT License. * http://dolphilia.html.xdomain.jp/ */ /* import https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js" https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.138/jspdf.min.js" */ //画像をPDF化 (function( $ ) { $.f...
import { appActionTypes as actionTypes } from './app-action-types'; export const getLoggedInUser = (username) => ({ type: actionTypes.GET_LOGGED_IN_USER, username: username }); export const setLoggedInUser = (user) => ({ type: actionTypes.SET_LOGGED_IN_USER, user: user }); export const logout = (history) => ({ type: ...
/*! * * JSource Javascript * * The MIT License (MIT) * * Copyright (c) 2014 Brandon Lee Kitajchuk * * 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...
var GameOfLife = GameOfLife || {}; GameOfLife.Play = function () {}; GameOfLife.Play.prototype = { create: function() { this.game.stage.backgroundColor = "#00000"; this.cellsToLive = []; this.cellsToDead = []; // Create cell group this.cellGroup = this.game.add.group(); this.generateWorld...
var fs = null , path = require('path') , jsonFile = require('jsonfile') , fse = {}; try { // optional dependency fs = require("graceful-fs") } catch (er) { fs = require("fs") } Object.keys(fs).forEach(function(key) { var func = fs[key]; if (typeof func == 'function') fse[key] = func; }); fs = fse...
/* global process */ var ARGV = process.argv; var DEBUG = +ARGV[2] >= 2; var FILTER = ARGV[3] && ARGV[3].toLowerCase(); // console.log(ARGV); var doTA = require('../dist/doTA' + (DEBUG ? '' : '.min')); var templates = require('../fixtures/custom'); var timer = require('./timer'); timer(1); for (var k in templates) { ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+relay * @flow strict-local * @format */ // flowlint ambiguous-object-type:error 'use strict'; const invarian...
/** Schema des donnees de combat du gladiateur */ Schema.Domains = new SimpleSchema({ 'name': { type: String, label: "Domaine", index: true, unique: true, min: 3, max: 30 }, 'desc': { type: String, label: "Description", min: 1, ...
(function(d){"function"===typeof $define?$define(["Nex.jqueryui.Core"],function(){d(jQuery)}):d(jQuery)})(function(d){d.widget("ui.tooltip",{version:"1.11.3",options:{content:function(){var a=d(this).attr("title")||"";return d("<a>").text(a).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:...
import { NodeComponent, FontAwesomeIcon as Icon } from 'substance' /* Edit affiliations for a publication in this MetadataSection */ export default class AffiliationsComponent extends NodeComponent { render($$) { const affGroup = this.props.node const TextPropertyEditor = this.getComponent('text-property-...
'use strict'; import forOwn from 'lodash/object/forOwn'; import assign from 'lodash/object/assign'; import functions from 'lodash/function'; import bind from './bind/bind'; import tap from './tap'; import bindAll from './bind/bindAll'; import { createDecorator, createInstanceDecorator } from './decoratorFactory'; imp...
/* global Laravel,moment,$w,$body */ (function($){ 'use strict'; if (Laravel.locale === 'hu') moment.locale('hu'); // document.createElement shortcut window.mk = function(){ return document.createElement.apply(document,arguments) }; // $(document.createElement) shortcut $.mk = (name, id) => { let $el = $(d...
// Regular expression that matches all symbols in the Avestan block as per Unicode v8.0.0: /\uD802[\uDF00-\uDF3F]/;
/** Class represents a view */ import { Component } from './component'; class LinearGradient extends Component { tag(instance) { let tag = instance || document.createElement('div'); tag.style.background = `linear-gradient(0deg, ${this.props.colors[0]}, ${ this.props.colors[1] })`; return tag; ...
app.service('loginService', function ($q) { Parse.Object.extend({ className: "User", attrs: ['profileImg'] }); return { login: function () { var dfd = $q.defer(); if (this.isLoggedIn()) { dfd.resolve(true); return dfd.promise...
/*global defineSuite*/ defineSuite([ 'Core/IntersectionTests', 'Core/Cartesian3', 'Core/Ellipsoid', 'Core/Math', 'Core/Plane', 'Core/Ray' ], function( IntersectionTests, Cartesian3, Ellipsoid, CesiumMath, Plane, Ray) { ...
import { expect } from 'chai' import { clean, runMocha } from '../helper' describe('Issue', () => { beforeEach(clean) it('should add issue to test cases', () => { return runMocha(['issue']).then(results => { expect(results).to.have.lengthOf(1) const result = results[0] ...
import HttpTransport from 'lokka-transport-http'; import {parse} from 'url'; import basicAuthHeader from 'basic-auth-header'; export default class HttpAuthTransport { constructor(endpoint, options = {}) { if (!endpoint) { throw new Error('endpoint is required!'); } options.headers = options.header...
'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { serverViews: ['app/views/**/*.*'], serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'], clientViews: ['public/modules/**/views/**/*.html'], clientJS: ['public/js/*.js', 'public/modules/**/*.js'], ...
var fs = require('fs'), glob = require('glob'), base = './', appName = 'shell', sourcePath = '/src', __DEV__ = false, routeStream = fs.createWriteStream(base + appName + sourcePath + '/routes.js'), modulesStream = fs.createWriteStream(base + appName + '/modules.json'), modules = [], ...
o2.slides = { currentSlideNum : o2.urlMod.getHash().replace(/page/, '') || 1, slides : new Array(), fontSizes : new Array(), numUnavailablePixelsAtTheTop : 60, numUnavailablePixelsAtTheBottom : 60, init : function(e) { o2.slides.makeSlides(); o2.addEvent( window, "click", o2...
import Component from '@ember/component'; import { get } from '@ember/object'; import { inject as service } from '@ember/service'; import { isEmpty } from '@ember/utils'; import layout from '../templates/components/do-feedback'; import hasOnlyEmberView from '../utils/has-only-ember-view'; import setDataTestSelector fro...
const DifficultyFilterToggleList = require('../presentational/difficulty-filter-toggle-list') const { connect } = require('react-redux') const { toggleDifficultyFilter } = require('../../store/actions/filters') function mapDispatchToProps (dispatch) { return { onDifficultyFilterUpdate (difficulty) { dispat...
'use strict'; var paramOwner = { name : 'owner', required : true, type : 'string', location : 'uri', description : 'The owner of the repo.' }; var paramRepo = { name : 'repo', required : true, type : 'string', location : 'uri', descriptio...
//Autogenerated by ../../build_app.js import clinical_impression_investigations_component from 'ember-fhir-adapter/serializers/clinical-impression-investigations-component'; export default clinical_impression_investigations_component;
define([ "esri/units", "dojo/_base/array" ], function(Units, array) { var util = {}; var HOURS = "Hours"; var MINUTES = "Minutes"; var SECONDS = "Seconds"; // Tests the units to be time units. util.testTimeUnits = function (units) { return units === HOURS || units === SECONDS || units === MINUTES;...
const TRAILING_WHITESPACE = /[ \u0020\t\n]*$/; // This escapes some markdown but there's a few cases that are TODO - // - List items // - Back tics (see https://github.com/Rosey/markdown-draft-js/issues/52#issuecomment-388458017) // - Complex markdown, like links or images. Not sure it's even worth it, because if you...
// import dependencies import template from './tags.html' // export component object export default { template: template, replace: true, computed: { labelVariant() { return !this.variant || this.variant === `default` ? `tag-default` : `tag-${this.variant}` }, labelType() { return !this.ty...
// = test_with_crlf.js = // ** {{{ Test with CRLF }}} ** // // Edit the file preserving the end line terminator: CRLF. // [[#test_with_cr.js| see cr]] // [[#test_with_lf.js| see lf]] // // The used structure for each block is: // {{{ // <div class="documentation"> (...) </div> // <pre class="code prettypri...
var express = require('express'); var app = express(); var path = require('path'); var engines = require('consolidate'); app.set('views', __dirname + '/views'); app.use(express.static(path.join(__dirname, '/public'))); app.engine('html', engines.jade); app.set('view engine', 'html'); app.get('/', function(req, res...
var expect = require('chai').expect , support = require('./support') , async = require('async') , client = support.client; describe('Response', function() { beforeEach(function(done) { support.startServer(this, done); }); afterEach(function(done) { support.stopServer(this, done); }); describ...
import React, { Component } from 'react' // import local css as s. import s from './styles.css' // import global css as gs import gs from './../../styles/grid.css' class Article extends Component { render() { return ( <div className={gs.container}> <div className={gs.line}> <div classNam...
/** * @name stripTags * @kind function * * @description * strip html tags from string */ function stripTags(input) { return isString(input) ? input.replace(/<\S[^><]*>/g, '') : input; }
var path = require('path'); describe("Static Array", function() { var data = ''; beforeEach(function(done) { neutrino.run(path.resolve('./examples/staticarray/test.neu'), function(result) { data = result; done(); }); }); it("should parse a static array", function(done) { data = data.s...