code
stringlengths
2
1.05M
/** * @fileoverview Translation for `requireSpacesInsideObjectBrackets` (JSCS) to ESLint * @author Breno Lima de Freitas <https://breno.io> * @copyright 2016 Breno Lima de Freitas. All rights reserved. * See LICENSE file in root directory for full license. */ 'use strict' //-------------------------------------------...
import axios from 'axios'; import { BASE_URL } from '../Constant/constant'; import promiseMiddleware from 'redux-promise'; export let FETCH_DATES = "FETCH_DATES"; export let FETCH_REPORT_BY_DATE = "FETCH_REPORT_BY_DATE"; export let FETCH_DRILLDOWN_REPORT = "FETCH_DRILLDOWN_REPORT"; export let FETCH_DRILLDOWN_RULES_REP...
import React, { Component } from 'react'; import { Card, CardTitle } from 'material-ui/Card'; import DocumentList from '../Documents/documentList'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; const Home = () => ( <div> <Card className="container"> <center><...
'use strict'; var gulp = require('gulp'); var config = require('../config'); gulp.task('watch', ['browserSync', 'server'], function() { // Scripts are automatically watched by Watchify inside Browserify task gulp.watch(config.styles.src, ['sass']); gulp.watch(config.scripts.src, [...
var _ = require('lodash'); module.exports = function(collection) { var result = { hot: [], warm: [] }; function check_temp(temp) { return temp > 19; } _.forEach(collection, function (town, name) { if (_.every(town, check_temp)) { result.hot.push(name);...
var util = require('util'); var crypto = require('crypto'); var PassThrough = require('stream').PassThrough; module.exports = Checksum; util.inherits(Checksum, PassThrough); function Checksum(options) { PassThrough.call(this, options); this.hash = crypto.createHash('sha1'); this.resume(); } Checksum.prototype...
'use strict'; var path = require('path') , test = require('tap').test , helper = require(path.join(__dirname, '..', '..', 'lib', 'agent_helper')) ; test("agent instrumentation of MongoDB when GridFS is used", function (t) { var context = this; helper.bootstrapMongoDB(function cb_bootstrapMongoDB(err, app) {...
import { Text as RNText } from 'react-native'; import withStyles from '../../withStyles'; const ListItemDetailText = withStyles('ListItemDetailText')(RNText); export default ListItemDetailText;
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'wadachi-fighter', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { EXTEND_PROTOTYPES: { Array: false, // BabylonJS‚Ì•´‘ˆ Function: true, String: true...
// 조건에 해당하지 않는 객체만 배열로 반환 clean.array.reject = function(array, check) { //REQUIRED: array //REQUIRED: check var result = []; clean.array.each(array, function(value) { // 조건에 안맞으면! if (check(value) === false) { result.push(value); } }); return result; };
var sc = require('..'); exports['sum an array'] = function (test) { var result = sc.reduce( function (result, value) { return result + value; }, 0, [1, 2, 3]); test.ok(result); test.equal(result, 6); } exports['sum an object with next'] ...
// Begin Source: src/manipulators/handletouchMover.js var cornerstoneTools = (function($, cornerstone, cornerstoneTools) { "use strict"; if (cornerstoneTools === undefined) { cornerstoneTools = {}; } function touchmoveHandle(touchEventData, handle, doneMovingCallback) { var elemen...
var octifyAabb = require('octify-aabb'); function Octant (box) { this.children = new Array(8); this.aabb = box; this.isLeaf = true; this.solid = false; this.width = Math.abs(box[0][0] - box[1][0]); // this.height = (box[0][1] - box[1][1])/2; // do we want to permit non-cubic octants? } Octant.prototype.su...
import Input from '../'; const {renderIntoDocument, Simulate} = TestUtils; import identity from 'lodash/identity'; describe('The input text', () => { describe('when called with no props', () => { let component; before( () => { const shallowRenderer = TestUtils.createRend...
#!/usr/bin/env node /** * Build this project. */ 'use strict' process.chdir(`${__dirname}/..`) const { runTasks } = require('ape-tasking') const coz = require('coz') runTasks('build', [ () => coz.render([ // '.*.bud', 'lib/.*.bud', 'test/.*.bud' ]) ], true)
var Informant = { init: function() { Informant.loadTemplates(); Informant.App = new Informant.AppController(); Backbone.history.start(); }, JST: {}, loadTemplates: function() { $('[type="text/js-template"]').each(function() { Informant.JST[$(this).data('template')] = _.template($(this).htm...
'use strict'; var fs = require('fs'); var methods = { walk: function (dir, validation_function, cb) { if (arguments.length === 2) { cb = validation_function; validation_function = null; } var results = []; fs.readdir(dir, function (err, list) { if (err) { return cb(err); } ...
var x = 0; if (x == 1) { alert("Test"); }
const gulp = require('gulp'); const connect = require('gulp-connect'); const clean = require('gulp-clean'); const less = require('gulp-less'); const lessAutoprefix = require('less-plugin-autoprefix'); const gulpStylelint = require('gulp-stylelint'); const cleanCSS = require('gulp-clean-css'); const sourcemaps = require...
var giTotalTestCount = 0; var giActiveModule = 0; var giModuleTests; var giStartTime; var giTest; var gbStop = false; var gtoTest; function fnTestStart(sTestInfo) { gaoTest[ giActiveModule ].iTests++; document.getElementById('test_info').innerHTML += (giActiveModule + 1) + '.' + (giModuleTests + 1) + '...
// Jared Rodgers // Main.js 'use strict'; /** * ***************************************************** * Section (#1): Classes * This section contains all the classes * Since classes aren't pushed to the top like functions * they must come first. * ***************************************************** */ /** ...
export { converter, isSupportedConversion, default, } from '@precision-nutrition/unit-utils/utils/unit-converter';
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.SplitApp. sap.ui.define(['jquery.sap.global', './SplitContainer', './library'], function(jQuery, SplitCont...
export default class DialogRow { static CLASS = '__prDialogRow'; static build(title) { const dialogRow = document.createElement('div'); dialogRow.className = DialogRow.CLASS; const titleDiv = document.createElement('div'); titleDiv.className = `${DialogRow.CLASS}_title`; titleDiv.appendChild(d...
import { helper } from '@ember/component/helper'; export function scale([value, lowLimit, highLimit] /*, hash*/) { let v = (100 * value) / (highLimit + 1000 - lowLimit); // the 0.001 gets around the annoying fact that {{with falsy}} // behaves like {{if falsy}} :( return v + 0.001; } export default helper(sc...
/* eslint-disable import/no-mutable-exports */ const { resourcesPath, type } = process; const ENVIRONMENT = process.env.NODE_ENV; let IS_DEVELOPMENT = false; let IS_PRODUCTION = false; let IS_TESTING = false; switch (ENVIRONMENT) { case 'development': IS_DEVELOPMENT = true; break; case 'testing': IS...
(function(){var inject_revmob;inject_revmob=function(timeout_length){var custom_launch_revmob,s;null==timeout_length&&(timeout_length=5500),window.REVMOB_CONFIG={id:"55676db32df0a0ad1c15a5cd",disable_auto_fullscreen:!1},s=document.createElement("script"),s.src="https://apiweb.revmob.com/assets/revmob.js",s.type="text/j...
module.exports = context => { context.cache.forever() return {plugins: ['cjs-factory']} }
import React from "react"; import { FaGithub, FaLinkedin, FaTwitter } from "react-icons/fa"; // https://gorangajic.github.io/react-icons/fa.html const SocialLinks = () => ( <ul className="social"> <li> <a href="https://twitter.com/BrentArata"> <FaTwitter /> </a> </li> <li> ...
var extend = require('../utils/extends.js'); var Widget = require('./widget.js'); var $ = require('../../core/libs/jquery-2.1.3.min.js'); var fu = require('../utils/file-utils.js'); var rk = require('rekuire'); var workspaceManager = rk('workspace-manager.js'); var configurationManager = rk('configuration-manager.js')...
//Write a boolean expression for finding if the bit #3 (counting from 0) of a given integer. //The bits are counted from right to left, starting from bit #0. //The result of the expression should be either 1 or 0. function Calculate() { var myNumber = document.getElementById('in').value, myResult; if (((my...
c3_chart_internal_fn.getYDomainMin = function (targets) { var $$ = this, config = $$.config, ids = $$.mapToIds(targets), ys = $$.getValuesAsIdKeyed(targets), j, k, baseId, idsInGroup, id, hasNegativeValue; if (config.data_groups.length > 0) { hasNegativeValue = $$.hasNegativeValueInTarge...
version https://git-lfs.github.com/spec/v1 oid sha256:ec4b00a0ee1a033150850e52150f0e8474ad57e4f210c090d3942a599a4cb39a size 3328
import localStorage from '../../localStorage'; import actions from '../../actionNames'; import utils from '../utils'; function getInitialState() { const draftId = utils.getFirebaseId(); return { playerSorts: localStorage.getSortPreferences(draftId) } } export default function(state = getInitialState(), acti...
/** * Created by Drapegnik on 21.03.17. */ import express from 'express'; import logger from 'morgan'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import expressSession from 'express-session'; import cors from 'cors'; import path from 'path'; import fs from 'fs'; import crypto fro...
/** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/ssr-apis/ */ // You can delete this file if you're not using it
function bubbleSort(array) { codeDisplayManager.setVariable("array", "[" + array.join(", ") + "]") codeDisplayManager.setVariable("length", array.length) var n = array.length; highlightCode([0]) updateVariable("n", n.toString()); highlightCode([1]) while (n > 0) { highlightCode([2]);...
// Lists 'use strict'; // Search `[-+*][\n ]`, returns next pos arter marker on success // or -1 on fail. function skipBulletListMarker(state, startLine) { var marker, pos, max; pos = state.bMarks[startLine] + state.tShift[startLine]; max = state.eMarks[startLine]; marker = state.src.charCodeAt(pos++); /...
var firebase = {} firebase.firebaseSetup = function(roomSession) { this.ref = new Firebase("https://haunted.firebaseio.com/"); this.room = this.ref.child(roomSession); this.chat = this.room.child("chat"); this.game = this.room.child("game"); this.pause = this.game.child("pause"); this.player1 = this.game.c...
import 'isomorphic-fetch'; import { ID_TOKEN, checkStatus, parseJSON, setIdToken, removeIdToken, decodeUserProfile } from '../utils/utils'; export const LOGIN_REQUEST = 'LOGIN_REQUEST'; export const LOGIN_SUCCESS = 'LOGIN_SUCCESS'; export const LOGIN_FAILURE = 'LOGIN_FAILURE'; ...
'use strict'; // Load modules var Utils = require('./utils'); // Declare internals var internals = { delimiter: '&', depth: 5, arrayLimit: 20, parameterLimit: 1000, strictNullHandling: false, plainObjects: false, allowPrototypes: false, allowDots: false }; internals.parseValues = ...
//Wrapped in an outer function to preserve global this (function (root) { var amdExports; define(['angular', 'jquery-ui'], function () { (function () { /* jQuery UI Sortable plugin wrapper @param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config */ angular.module('ui.sortable', []) ....
var __ = require('underscore'), Backbone = require('backbone'), is = require('is_js'), autolinker = require( 'autolinker' ); module.exports = Backbone.Model.extend({ defaults: { profile: { guid: "", vendor: false, name: "", categories: ["category 1", "category 2"], moder...
/* * Room Manager service * * runs proccesses to manage each room * */ var logger = new Logger('[Service Room]'); var ServiceRoom = function() { // init }; Object.defineProperty(ServiceRoom.prototype, 'processTable', { get: function() { this.memory.processTable = this.memory.processTable || {}; ...
import React, { Component, PropTypes } from 'react' import classNames from 'classnames' import { META, numberToWord, getElementType, } from '../../lib' export default class FormField extends Component { static propTypes = { /** An element type to render as (string or function). */ as: PropTypes.oneOfT...
import cx from 'classnames' import React, { PropTypes } from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp, } from '../../lib' import Card from './Card' function CardGroup(props) { const { className, children, doubling, items, itemsPerRow, sta...
import React from 'react'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import { makeStyles, useTheme, rgbToHex } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ root: { width: '100%', }, group: { marginTop: theme.spacing(3)...
window.addEventListener("load",initAll,false); var xhr = false; function initAll(){ document.getElementById("makeTextRequest").addEventListener("click",getNewFile,false); document.getElementById("makeXMLRequest").addEventListener("click",getNewFile,false); } //当加载页面时,会调用initAll()函数。在这里,我们设置两个click处理 //程序,当用户点击这两个链接是...
var script = document.createElement('script'); script.src = 'http://code.jquery.com/jquery-1.11.0.min.js'; script.onload = function() { sortBookmarks(); } document.body.appendChild(script); function sortBookmarks() { var bookmarks = $('a'); $('dl').remove(); bookmarks.sort(function(a, b) { var bookmarkOne...
#!/usr/bin/env node var path = require('path'); var adventure = require('workshopper-adventure/adventure'); // Create the adventure object var adv = adventure({ name: 'learnnodeserver', title: 'Learn To Program A Node Server', appDir: __dirname, languages: ['en'] }); // Create the problem objects and...
/* * SearchView * * Defines a view that allows a quick search of existing users (via filtering) * */ define( [ 'App', 'marionette', 'views/MemberInfoCollectionView','collections/MemberInfoCollection', 'handlebars', 'text!templates/search.html'], function( App, Marionette, MemberInfoCollectionView, Me...
$(function() { $(".password-form").submit(function() { var password = $("input[name='password']").val(); var confirmation = $("input[name='confirm']").val(); if (!passwordValid(password)) { showErrors(["Password must be at least 6 characters long"]); return false; } if (!passwordCo...
/** * Created by Rusak Oleg on 23.01.2016. */ (function () { 'use strict'; var ready = function ready(fn) { // Sanity check if (typeof fn !== 'function') return; // If document is already loaded, run method if (document.readyState === 'complete') { return fn(); ...
game.SpendGold = Object.extend({ init: function(x, y, settings) { this.now = new Date().getTime(); this.lastBuy = new Date().getTime(); this.paused = false; this.alwaysUpdate = true; this.updateWhenPaused = true; this.buying = false; }, update: function() { this.now = new Date().getTime(); if(me.in...
var express = require('express') var bodyParser = require('body-parser') var jsonfile = require('jsonfile') var parse_basic_auth = require('basic-auth') var config = require("./data/config") DATAFILE = "./data/data.json" var data = jsonfile.readFileSync(DATAFILE); var app = express(); app.use(express.static('static'...
(function() { var app, boot, loopback; loopback = require('loopback'); boot = require('loopback-boot'); app = module.exports = loopback(); app.start = function() { return app.listen(function() { app.emit('started'); console.log('Web server listening at: %s', app.get('url')); }); }; ...
/** * @param {string} s * @param {set<string>} wordDict * Note: wordDict is a Set object, see: * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set * @return {string[]} */ var wordBreak = function (s, wordDict) { const map = new Map(); const search = (s) => { ...
import {createStore, applyMiddleware, compose} from 'redux'; import createSagaMiddleware from 'redux-saga'; import {syncHistoryWithStore} from 'react-router-redux'; import {hashHistory} from 'react-router'; import thunk from 'redux-thunk'; import rootReducer from './redux/reducers'; import rootSaga from './sagas'; con...
version https://git-lfs.github.com/spec/v1 oid sha256:28a6ce2387ef263cd1c9b18aa919ac9f8a019fbe849d580b4106841e80c5aa9e size 21351
// flow-typed signature: e3833c7259bc64e06f82a5fefab6b344 // flow-typed version: <<STUB>>/lien_v^2.3.0/flow_v0.44.2 /** * This is an autogenerated libdef stub for: * * 'lien' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * communit...
var default_options = { negativerisk_maxprice: 97, negativerisk_refresh: 10, negativerisk_detailed: false, negativerisk_yesrisk: false, negativerisk_great: 5 }; function update_ui() { var maxprice = document.getElementById('maxprice'); var maxpriceDisp = document.getElementById('maxpriceDisplay'); var refresh ...
var fs = require('fs') var contents = fs.readFileSync(process.argv[2], 'utf8') var lines = contents.split('\n').length - 1 console.log(lines)
'use strict'; const Transform = require('stream').Transform; const util = require('util'); function document(options, specification, executeOnRead) { if (!(this instanceof document)) { var dfInstance = new document(options, specification, executeOnRead); dfInstance.dataSpecification = specificatio...
/** * @author Larry Burks * daily.js */ $(document).ready(function() { // global variables var houseId = 0; var chart = null; var today, setDay, chartDay; // setDay includes hour to highlight in day chart var validDateRanges = []; // for base data (0-1) and circuit data (2-3) var metaData = []; // defines dat...
"use strict"; const ViewUnlearnedAccident_1 = require('./ViewUnlearnedAccident'); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ViewUnlearnedAccident_1.default; //# sourceMappingURL=index.js.map
const path = require('path'); const webpack = require('webpack'); const host = 'localhost'; const port = 3000; module.exports = { devtool: 'eval-cheap-module-source-map', devServer: { host, port, https: true }, entry: { popup: path.join(__dirname, '/chrome/src/popup'), background: path.join(__dirname, '...
window.addEventListener("load",initAll,false); function initAll() { document.getElementById("theForm").addEventListener("submit",addNode,false); document.getElementById("deleteNode").addEventListener("click",delNode,false); } function addNode(evt) { var inText = document.getElementById("textArea").value; var newT...
//Language: Danish //Translator: ntoombs19 var filter_01 = "FA Filter Settings"; var filter_02 = "Instructions"; var filter_03 = "Created by"; var filter_04 = "Load Pages"; var filter_05 = "to"; var filter_06 = "Enable"; var filter_07 = "Hide All/None"; var filter_08 = "Scout Attack"; var filter_09 = "No losses"; var f...
function convertToSlug(Text) { return Text .toLowerCase() .replace(/[^\w ]+/g, '') .replace(/ +/g, '-') ; } function TicketModel(ticket) { this.id = ko.observable(ticket.id); this.text = ko.observable(ticket.text) } function WorkstreamStatusModel(wsName, status, tickets) { var self = this; self.wsName = ...
export const marginAutoAll = { marginTop: 'auto', marginLeft: 'auto', marginBottom: 'auto', marginRight: 'auto', } export const marginAutoY = { marginTop: 'auto', marginBottom: 'auto', } export const marginAutoX = { marginRight: 'auto', marginLeft: 'auto', } export const absoluteCenter = { position...
import Phaser from 'phaser'; import AI from './AI'; import Human from './Human'; export default class Player extends Human { constructor(game, x, y, asset, frame) { super(game, x, y, asset, frame); this.activeWeapon = null; this.activeWeapon = {}; this.anchor.setTo(0.5, 0.5); ...
var profilController = function (scope, $http, currentuser) { var vm = this; vm.newPhoto = ''; currentuser.$promise.then(function () { vm.profil = currentuser; if (currentuser._links.member) { vm.profil.members = currentuser.resource("member").query(); } }); var h...
// Promise接受一个函数作为参数,函数里有两个参数,分别为resolve, reject,两个函数由JS引擎提供 const promises = new Promise((resolve, reject) => { // 返回数据 resolve(value) // 返回错误 reject(err) }) // Promise.then 接收两个函数作为参数 Promise.then((value) => { }, (error) => { }) Promise.prototype.all = function(promises) { let len = pro...
var namespace_boxer = [ [ "Box", "class_boxer_1_1_box.html", "class_boxer_1_1_box" ], [ "Core", "class_boxer_1_1_core.html", "class_boxer_1_1_core" ], [ "Group", "class_boxer_1_1_group.html", "class_boxer_1_1_group" ], [ "LogisticSystem", "class_boxer_1_1_logistic_system.html", "class_boxer_1_1_logistic...
/* * This service definition has all methods related to any operation on sensors * Uses the UtilityServices * All $http methods return promises * Instead of an HTTP API, sensor data will be read from MQTT * Simulating the payload below * * For Mosquitto installation: https://www.element14.com/community/community...
angular.module('postTitleList', ['core.post']);
import React, { Component } from 'react' import ToggleDisplay from 'react-toggle-display' import SearchBar from './SearchBar' import VideoChecker from './VideoChecker' import VideoHistory from './VideoHistory' import YTSearch from './YTSearch' import styles from './PlayList.module.css' // import Waypoint from 'react-w...
var m = require("mithril"); var Comment = require('../models/comment'); var rendererStore = require('../rendererStore'); var actions = require('../state/actions/actions'); module.exports = SelectionPopup = { mode: undefined, lineHeight: undefined, oncreate: function({state, attrs, dom}) { window.addEventList...
'use strict'; // load da engine var engine = require('vvps-engine'), server = engine.server, restify = engine.restify; // turn da engine on engine.bootstrap({ name: 'test-api', version: '0.0.1' }, function () { // default route, return the index.html engine.server.get('/', restify.serveStatic...
// Regular expression that matches all symbols in the Miscellaneous Symbols block as per Unicode v5.1.0: /[\u2600-\u26FF]/;
import React from 'react'; // import PropTypes from 'prop-types'; import PortfolioItem from './PortfolioItem'; export default class PortfolioBox extends React.Component { constructor() { super(); this.state = { imageIndex: 0, portfolioState: {}, portfolioItems: [ { title: ...
import React, { Component } from 'react'; class About extends Component { constructor(props) { super(props); } render() { return ( <div className="col-md-6"> Office Finder is a web app for finding temp office space. </div> ); } } export default About;
'use strict'; const joinMarker = 'ihndeebvdbccfiehktkununjgklnedefjfgjllkdkdrrvbtuibkguhtvrtbbrrni'; const stringConcatRegex = new RegExp( '(\' ?(\\\+|\\\.)?' + joinMarker + '\')|(" ?(\\\+|\\\.)?' + joinMarker + '")' ); function joinLines(firstLine, secondLine) { let newLines = firstLine.trimRight() + joinMarker ...
const mediacapture = require("./lib/mediacapture"); const mediacapturemodal = require("./lib/mediacapturemodal"); exports.mediacapture = mediacapture; exports.mediacapturemodal = mediacapturemodal;
version https://git-lfs.github.com/spec/v1 oid sha256:3b927eff993b3be8f76e0a41462b799a533743830e10e066793fc356c6ee5daa size 17907
/* * Copyright (c) 2006-2007 Erin Catto http: * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commer...
import fetch from '@/api/mock/fetch' import { router, clearRoutes } from '@/api/mock/router' describe('[mock] fetch 모듈 테스트', () => { const mockPost = { _id: 1, subject: '제목', creator: { _id: 1, username: 'jeremy.kang', name: 'Jeremy Kang' }, createdAt: '2017-09-08T23:11:23', ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc5-master-55cc93f */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.menu */ angular.module('material.components.menu', [ 'material.core', 'material.component...
define(function (require) { 'use strict'; var Marionette = require('backbone.marionette'); // Enrich Marionette with the Modal Region require('marionette.modal'); var App = new Marionette.Application(); App.addRegions({ menu: '[data-region="menu"]', content: '[data-region="con...
export default () => <h1 id="other-page-title">Hello Other</h1>
'use strict'; var articles = require('../controllers/articles'); // Article authorization helpers var hasAuthorization = function(req, res, next) { if (!req.user.isAdmin && req.article.user.id !== req.user.id) { return res.send(401, 'User is not authorized'); } next(); }; module.exports = functio...
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Button, OverlayTrigger, Tooltip } from 'react-bootstrap'; import './LoadedValuesList.css'; const LoadedValuesListItem = ({ value, onDelete }) => ( <Row className="Loaded-item"> <Col xs={11} className="Loaded-text-col"> <Over...
angular.module('localStorage',[]) .factory("$store",function($parse){ /** * Global Vars */ var storage = (typeof window.localStorage === 'undefined') ? undefined : window.localStorage, supported = !(typeof storage == 'undefined' || typeof window.JSON == 'undefined'); var privateMethods = { /** ...
// Horizontal rule import { isSpace } from '../common/utils.js'; export default function hr(state, startLine, endLine, silent) { let marker, cnt, ch, token, originalPos, pos = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine]; // if it's indented more than 3 spaces, ...
import Microcosm from '../../../src/microcosm' describe('Microcosm::prepare', function() { it('partially applies Microcosm::push', function() { const repo = new Microcosm() const action = jest.fn() repo.prepare(action, 1, 2)(3) expect(action).toBeCalledWith(1, 2, 3) }) })
(function(win) { if (win.LoginRadiusV2) { LoginRadiusV2.prototype.loginScreen = function(container, options, cb) { options = options || {}; if(options.pagesshown){ if (options.pagesshown.length==0){ alert("there is nothing to display, check your options.pagesshown"); ...
'use strict'; module.exports = { checkstyle: require('./checkstyle'), clean: require('./clean'), lint: require('./lint'), mocha: require('./mocha') };
var searchData= [ ['g1',['G1',['../ExternalTrackingIfc_8h.html#a01fdbe4643233dbacdf58e54367d7289aaec6d2231567cdb9063f093d8effa224',1,'ExternalTrackingIfc.h']]], ['g2',['G2',['../ExternalTrackingIfc_8h.html#a01fdbe4643233dbacdf58e54367d7289aedce8067580fa0c4c235f8534f25a7b3',1,'ExternalTrackingIfc.h']]], ['galileo'...
'use strict' const db = require('APP/db') const User = db.model('users') const Order = db.model('orders') const {mustBeLoggedIn, forbidden, selfOnly, adminOnly} = require('./auth.filters') module.exports = require('express').Router() .get('/', // // The forbidden middleware will fail *all* requests to list use...
Meteor.publish('pokerCurrentStatus', function() { // Meteor._sleepForMs(3000); // Signup if not var pokerPlayer = Pokerplayers.findOne({ 'playerId': this.userId }); if (! pokerPlayer) { Pokerplayers.insert({ playerId: this.userId, credit: Meteor.settings.bispoker.hourlyCredit, createdAt: Bisia.Time.now...