code
stringlengths
2
1.05M
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require("babel-runtime/helpers/extends"); var _extends3 = _interopRequireDefault(_extends2); var _assign = require("babel-runtime/core-js/object/assign"); var _assign2 = _interopRequireDefault(_assign); exports.pool = p...
let str = "test"; let reverseStr = (str) => { let len = str.length; if (len < 2) { return str } else { return reverseStr(str.substring(1)) + str.charAt(0) } } let reverseStr2 = Array.prototype.map.call(this, function(x) { return x; }).reverse().join(''); let reverseStr3 = str.spl...
'use strict'; (function() { // Escritorio Controller Spec describe('Escritorio Controller Tests', function() { // Initialize global variables var EscritorioController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and ...
describe("selectorTypeMatcher", function() { it("should return the 'id' type for an id selector", function() { var type = selectorTypeMatcher('#pagetitle'); expect(type).toEqual("id"); }); it("should return the 'class' type for a class selector", function() { var type = selectorTypeMatcher('.image');...
let AuthenticationService = require("../business/authentication-service"); /** * Handles sign requests * */ function signIn(req, res, next) { let authenticationService = new AuthenticationService(req.log); let user = req.body.user; let password = req.body.password; authenticationService.authentic...
import * as Utils from './utils.js'; import './customMarkers.component.js'; import './details.component.js'; import './filters.component.js'; import './layout.component.js'; import './list.component.js'; import './login.component.js'; import './map.component.js'; import './settings.component.js'; // react reducer goes...
HOST = null; // localhost PORT = 80; // when the daemon started var starttime = (new Date()).getTime(); var mem = process.memoryUsage(); // every 10 seconds poll for the memory. setInterval(function () { mem = process.memoryUsage(); }, 10*1000); var fu = require("./fu"), ch = require("./Channel"), sys = r...
/* jshint indent: 1 */ module.exports = function (sequelize, DataTypes) { const PlaceCategory = sequelize.define('place_categories', { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: undefined, primaryKey: true }, identifier: { type: DataTypes.STRING, al...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; export default function(ComposedComponent) { class WithViewer extends Component { static propTypes = { viewer : PropTypes.shape({ name_first : PropTypes.string, name_last : ...
define(["./core","sizzle"],function(e,t){e.find=t;e.expr=t.selectors;e.expr[":"]=e.expr.pseudos;e.unique=t.uniqueSort;e.text=t.getText;e.isXMLDoc=t.isXML;e.contains=t.contains});
import fs from 'fs' import Yadda from 'yadda' import libraryCreator from './libraryCreator' const parser = new Yadda.parsers.FeatureParser() export default function(featureFile, scenarioTitle) { const text = fs.readFileSync(featureFile, 'utf8') const feature = parser.parse(text) const scenario = feature....
jQuery.noConflict(); jQuery(document).ready(function($){ function ACFTableField() { var t = this; t.param = {}; // DIFFERENT IN ACF VERSION 4 and 5 { t.param.classes = { btn_small: 'acf-icon small', // "acf-icon-plus" becomes "-plus" since ACF Pro Version 5.3.2 btn_add_row: 'acf-icon-plus -...
/*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=2c98d194e4e9aad3e082) * Config saved to config.json and https:...
version https://git-lfs.github.com/spec/v1 oid sha256:a4b9d15a6d290c4523905ad3bbd1f0f609bd4ca5144cd2f5ecc280c852098961 size 2358
version https://git-lfs.github.com/spec/v1 oid sha256:8c63805dd095e056a1c34aa710df704ae53fc28d2ab503bbed681c262aef31ed size 3581
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var Convert = require('ansi-to-html'); var _ = require('lodash'); var React = require('react...
/* * This file is part of the Sulu CMS. * * (c) MASSIVE ART WebServices GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * @class item-table@sulusalescore * @constructor * * @param {Object} [options] Configuration object * @param {A...
var searchData= [ ['archeopdo',['ArcheoPDO',['../classArcheoPDO.html',1,'']]] ];
Meteor.methods({ clearServerData: function() { logger.log("dev : clear all db's data"); Slideshow.remove({}); Slides.remove({}); Elements.remove({}); Locks.remove({}); slideshowPublished = {}; }, clearDynamiqueServerData: function() { ...
 // String prototypes if (typeof String.prototype.contains != 'function') { String.prototype.contains = function (str) { return Boolean(~this.indexOf(str)); }; } if (typeof String.prototype.endsWith != 'function') { String.prototype.endsWith = function (str) { retur...
module.exports = [ '/static/images/users/avatar-01.svg', '/static/images/users/avatar-02.svg', '/static/images/users/avatar-03.svg', '/static/images/users/avatar-04.svg' ];
const xspacing = 16; // Distance between each horizontal location let theta = 0.0; // Start angle at 0 const amplitude = 10.0; // Height of wave const period = 20.0; // How many pixels before the wave repeats let w; // Width of entire wave let dx; // Value for incrementing x let y...
// Packages const chalk = require('chalk'); const DNS_VERIFICATION_ERROR = `Please make sure that your nameservers point to ${chalk.underline('zeit.world')}. > Examples: (full list at ${chalk.underline('https://zeit.world')}) > ${chalk.gray('-')} ${chalk.underline('california.zeit.world')} ${chalk.dim('173.255.215....
class Color { /* * Helper functions */ static executeTransform(transform, color) { const transformFunctions = { 'redShift': Color.redShift, 'blueShift': Color.blueShift, 'greenShift': Color.greenShift, 'invert': Color.invert }; ...
var fs = require('fs'); var html = fs.readFileSync(__dirname + '/tpl/page.html').toString('utf8'); module.exports = function(req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end(html + '\n'); }
'use strict'; var config = require('config'), Container = require('lazy-dependable').Container, inherits = require('util').inherits, Q = require('q'); require('./json.js'); function Meanio() { Container.call(this); if (this.active) return; Meanio.Singleton = this; this.version = require('../package')....
module.exports = function NgModelTestPage() { var textBox = null; var modelValue = null; function setText(textElement, text) { // .clear().sendKeys() will POST value="" and POST value=text // a workaround to this is Ctrl+A + text (will overwrite it), but // OSX does not support the COMMAND key...
import {default as Config} from '../config' const config = new Config({key: 'hideFlows'}) export default { config: { list: [ 'marketing', 'management' ] }, getName: function () { return this.length && $(this).attr("href").split("/")[4]; }, documentLoaded: function () { if (!(config.value.list || [])....
angular.module('hextechhuntClientApp') .service('HextechHuntService', function($http, $q, ProxyHostResolverService) { var baseProxyUrl = ProxyHostResolverService.getBaseProxyUrl(); // Get the URL for the proxy server // Array of available regions var availableRegions = [ {id: 'NA', name: 'NA'}, ...
var express = require('express'); var router = express.Router(); var SparqlClient = require('sparql-client'); var async = require('async'); var commons = require('./helpers/commons').commons; var helperCommons = new commons(); var fs = require("fs") router.get('/:uri', function(req, res, next){ var endpoint = req.db...
function drawCategories(whichFocus) { var Links = new Array(); Links[0] = "About Me"; Links[1] = "Research"; Links[2] = "Publications"; Links[3] = "Teaching"; Links[4] = "Gallery"; Links[5] = "Contact"; Links[6] = "Download CV"; var LinkAddresses = new Array(); LinkAddresses[0...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = express(); // view engine setup app.set('views...
QUnit.test('take not everything', assert=>{ var it = Iterator.of(1,3,2,3,5,21,54,12) var a = it.take(3).toArray() assert.equal(a[0],1) assert.equal(a[1],3) assert.equal(a[2],2) assert.equal(a.length,3) }) QUnit.test('take more than everything', assert=>{ var it = Iterator.of(1,3,2,3) va...
class LivechatDynamicListMapping extends RocketChat.models._Base { constructor() { super('livechat_Chatbot_DynamicListMapping'); } // FIND findByIntentEntity(intent, entity) { const query = { intent: intent, entity: entity }; return this.findOne(query); } } RocketChat....
'use strict'; let assert = require('chai').assert; let Bluebird = require('bluebird'); let amorphic = require('../../index.js'); let axios = require('axios'); let fs = require('fs'); let path = require('path'); describe('Run amorphic as a deamon', function() { this.timeout(5000); before(function(done) { ...
$(document).ready(function() { var win = Ti.UI.currentWindow; var login = ''; var password = ''; app.Login = function() { var self = this; self.login = ko.observable(login); self.password = ko.observable(password); self.loading = ko.observable(false); self.authorize = function() { s...
// NY Times $(function() { $.ajax( "http://api.nytimes.com/svc/topstories/v1/home.json?api-key=a54637a5d4a3416bdf7326d3d7d5fc44:17:72024629", { format: "json", method: "GET" }) .done(function( data ) { $.each(data.results, function(i, result){ $(".nytimes").append("<li><a href='" + result.url + ...
(function(angular) { 'use strict'; function PillsLoadTempDialogController($mdDialog, meta) { this.dialog = $mdDialog; this.meta = meta; this.getNumOfModifiedKeys = () => { return meta && meta.data && meta.data.flatten ? meta.data.flatten.filter(e => e.touched).length : 0; } } module.ex...
/* eslint-env jasmine */ 'use strict'; describe('exp', function () { it('should work on scalars', function () { expect(nj.exp(0).tolist()) .to.eql([1]); }); it('should work on vectors', function () { var x = nj.arange(3); expect(nj.exp(x).tolist()) .to.eql([1, Math.exp(1), Math.exp(2)]); ...
import React from "react"; import { connect } from "react-redux"; import mapDispatchToProps from "../maps/mapDispatchToProps.js"; import ResultsNav from "../components/ResultsNav.jsx"; const ResultsNavContainer = connect(function(state) { let response = state.get("appReducer").get("response"); return { appCo...
version https://git-lfs.github.com/spec/v1 oid sha256:c592546f424adc162b711289489fb0345fdbd3ea9789704470d293d928afb43d size 58626
version https://git-lfs.github.com/spec/v1 oid sha256:0675dec7f7fcd6939770420677e0f2a01ae6668c8ba786e5d15da6a7342bbd07 size 96
var Test = require('app/db/models/test'); module.exports = Test; Test.upsert = function (data) { if (data.id) { return Test.findById(data.id).then(function (test) { return test.update(data); }); } else { return Test.create(data); } }; Test.findByIdAndCourse = function (id, course) { return Test.findOne...
/** * Created by kikimans on 2015-05-20. */ var fs = require('fs'); fs.watchFile('./eample.txt',{ presistent:true, interval : 0 }, function(curr, prev){ console.log(curr); console.log(' 현재 파일의 수정 시간 : ' + curr.mtime); console.log(' 이전 파일의 수정 시간 : ' + prev.mtime); })
require('dotenv').config(); process.env = { AZURE_STORAGE_CONTAINER_NAME: 'userupload', ...process.env }; // Checks for required environment variables. [ 'AZURE_STORAGE_ACCOUNT_KEY', 'AZURE_STORAGE_ACCOUNT_NAME', 'AZURE_STORAGE_CONTAINER_NAME', 'MICROSOFT_APP_ID', 'MICROSOFT_APP_PASSWORD' ].forEach(name...
"use strict"; class MetadataUtils { static getRelatedOneToManyConfig(manyToOnePropertyName, entityMetadata) { for (let oneToManyProperty in entityMetadata.oneToManyMap) { let oneToManyConfig = entityMetadata.oneToManyMap[oneToManyProperty]; if (oneToManyConfig.mappedBy === manyToOneP...
// Generated on 2015-07-24 using generator-jekyllrb 1.4.1 'use strict'; // Directory reference: // css: css // sass: _scss // javascript: js // coffeescript: _src // images: img // fonts: fonts module.exports = function (grunt) { // Show elapsed time after tasks run require('time-grunt')(grunt); // ...
/** * @param {number} num * @return {boolean} */ var isPowerOfFour = function(num) { return (num > 0) && ((num & (num - 1)) === 0) && ((num & 0x55555555) === num); }; var assert = require('assert'); assert(isPowerOfFour(4)); assert(isPowerOfFour(16)); assert(isPowerOfFour(0) === false); assert(isPowerOfFour(-4...
"use strict";function homeFn(o){this.name="HOME",this.products=o.data.product}angular.module("app").controller("homeController",["product",homeFn]);
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp", "hu", { title: "Kisegítő utasítások", contents: "Súgó tartalmak. A párbeszédablak bezárásához nyomjon ESC-et.", ...
const sl = require('..'); const list = [ { id: 1, name: 'Adam', age: 800, gender: 'man' }, { id: 2, name: 'Eve', age: 600, gender: 'woman' }, { id: 3, name: 'Abel', age: 500, gender: 'man' }, { id: 4, name: 'Caine', age: 400, gender: 'man' } ]; const list2 = [ { id: 1, name: 'Adam', ag...
'use strict'; import angular from 'angular'; import ngRouter from 'angular-route'; import boardRouter from './boardRouter'; import boardService from './services/boardService'; import linkFilter from './filters/linkFilter'; import nameFilter from './filters/nameFilter'; import BoardCtrl from './controllers/BoardCt...
function onLoad() { var hasRole = g_user.hasRoleExactly('itil_admin'); if (!hasRole) { g_form.setDisplay('u_start_date', true); } else { g_form.setDisplay('u_start_date', false); } }
'use strict' require('extensions') var GET = require('get-then') var wgs = require('./data/decision-makers.json') var readmeParsers = { 'Technical Steering Committee': (readme) => /### Current Members[^#]+##/i.exec(readme)[0], 'Core Technical Committee': (readme) => /### CTC \(Core Technical Committee\)[^#]+##/i....
/// <binding ProjectOpened='watch' /> "use strict"; var gulp = require("gulp"), runSequence = require("run-sequence"), sass = require('gulp-sass'), notify = require("gulp-notify"), rimraf = require('rimraf'), uglify = require('gulp-uglify'), cssmin = require('gulp-cssmin'), rename = require...
'use strict' var props = require('./ctp') var cache = {} /** * Convert from [array notation](https://github.com/danigb/music.array.notation) * to [scientific pitch notation](https://en.wikipedia.org/wiki/Scientific_pitch_notation) * * Array length must be 1 or 3 (see array notation documentation) * * The return...
angular.module('ngAvatar',['angular-md5']) .controller('AppCtrl',['$scope','md5',function($scope,md5){ var vm = this; this.email = ''; $scope.$watch(function(){ return vm.email },function(){ vm.avatar = md5.createHash(vm.email || ''); }); }]);
import initialState from './initialState'; import { reducer as showCmdDialog } from './showCmdDialog'; import { reducer as hideCmdDialog } from './hideCmdDialog'; import { reducer as execCmd } from './execCmd'; const reducers = [ showCmdDialog, hideCmdDialog, execCmd, ]; export default function reducer(state = ...
/** * @author lth / https://github.com/lo-th/ */ THREE.MaterialUtils = { }
module.exports = config; function config($urlRouterProvider, $mdThemingProvider, $mdIconProvider) { $urlRouterProvider.otherwise('/'); const customPrimary = { '50': '#ffffff', // white background color for toolbar '500': '#72b0d7', // blue color of the label and choices in select '600': '#72b0d7', ...
'use strict'; var deap = require('deap'); var fs = require('fs'); var gutil = require('gulp-util'); var isObject = require('isobject'); var path = require('path'); var parser = require('tumblr-theme-parser'); var through = require('through2'); var PLUGIN_NAME = 'gulp-tumblr-theme-parser'; module.exports = function (...
import React from 'react'; import Quote from './Quote'; import DraftEditorBlock from 'draft-js/lib/DraftEditorBlock.react'; let BlockQuote = (props) => ( <Quote> <DraftEditorBlock {...props} /> </Quote> ); export default BlockQuote;
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import App from './containers/App'; import './assets/styles/main.scss'; const store = configureStore(); render( <Provider store={store}> <App /> </Provide...
var i = 47 var x = 0 try { var foo = sub() { print('i should be 47, i: %s' % i) x = i } foo() print('x should be 47, x: %s' % x) }
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Job = mongoose.model('Job'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, user, j...
//generators function emptyGenerator(x,y,z, res) { return false; } function cubeGenerator(x,y,z, res) { return true; } function sphereGenerator(x,y,z, res) { //spherical implicit surface x2+y2+z2=1 var dim = res; var x = dim/2-x; var y = dim/2-y; var z = dim/2-z; return x*x+y*y+z*z <= dim/2*dim/2 ?...
// Karma configuration // Generated on Thu Dec 11 2014 12:06:38 GMT+0000 (GMT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
var LoLAPI = require('./obj/testCache.js'); var test = require('tape'); var Promise = require('bluebird'); test('Match List', function(t) { Promise.all([ LoLAPI.request.getMatchList({ summonerId: '21505497', realm: 'euw', beginIndex: 0, endIndex: 1, }) .then((res)=> { t.equ...
/** A controller that you need to use when displaying an Flame.TableView. You need to define _headers property and call pushDataBatch to render data (can be called several times to render data in batches). The headers should be Flame.TableHeader objects. There are two refined subclasses of this controller, D...
var redis = require('redis'), Config = require('getconfig'); var redisConfig = Config.redis var client = redis.createClient(redisConfig.port, redisConfig.host); client.on("error", function(err) { console.log("error in redis connection", err); }); client.on("ready", function() { console.log("redis is ready!"); ...
/* * MIT License * * Copyright (c) 2016 yanbo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
import Repo_base from './repo_base'; const table_name = 'user'; export default class extends Repo_base { constructor() { super(table_name); } *update_token(user_id, token) { return yield* super.update_entity(user_id, {token: token}); } }
'use strict'; var usersDomain = require('./users-domain'), incidencesDomain = require('./incidences-domain'), schoolDomain = require('./schools-domain'), Q = require('q'); var RESULT_SUCCESS = "SUCCESS"; var RESULT_WARNING = "WARNING"; var RESULT_ERROR = "ERROR"; var _mailSender; var subjectInterpreter = requi...
export function deepEqual(a, b) { if (a === b) { return true; } if (a == null || typeof(a) != "object" || b == null || typeof(b) != "object") { return false; } var propertiesInA = 0, propertiesInB = 0; for (let property in a) { propertiesInA += 1; } for (let property in b) { proper...
Messages = new Meteor.Collection('messages'); Messages.allow({ insert: function (userId, doc) { return false; }, update: function (userId, doc, fields, modifier) { return true; }, remove: function (userId, doc) { return true; } }); if (Meteor.isServer) { Messages...
'use strict'; const Joi = require('joi'); const Async = require('async'); const ObjectAssign = require('object-assign'); const BaseModel = require('hapi-mongo-models').BaseModel; const AdminGroup = require('./admin-group'); const Admin = BaseModel.extend({ constructor: function (attrs) { ObjectAssign(th...
version https://git-lfs.github.com/spec/v1 oid sha256:2c57d47e32b975c1f97d89e527fa91a8d09e20a72ba17103a60baf05f4e0cd2d size 597
/** * Created by forest-sumo on 2017/03/06. */ APP.controller('AboutCtrl', ['$scope', function ($scope) { $scope.About = { activeTab: 'whoWeAre' }; $scope.About.toggleActiveTab = function (newTab) { $scope.About.activeTab = newTab; } }]);
(function() { 'use strict'; /** * This modules adds a cancel option to promises created by the {@link ng.$q} service. */ angular.module('cancelable-q', []) /** * @ngdoc service * @name cancelableQ * * @description * Adds a cancel method to promises created by the Angular's ng.$q service. * ...
/** * @file 程序运行时组件 * @author mengke01(kekee000@gmail.com) */ define( function (require) { var observable = require('common/observable'); function bindClick(components) { var me = this; document.body.addEventListener('click', function (e) { if (!me.l...
// ========================================================================== // Project: MySystem.Link // Copyright: ©2010 My Concord Consrtium, Inc. // ========================================================================== /*globals MySystem Forms SC*/ /** @class @extends MySystem.Diagrammable @version...
#!/usr/bin/env node var workshop = process.argv.length > 2 ? process.argv[2] : 'learnyounode' var challenge = process.argv.length > 3 ? process.argv[3] : '01' if (challenge.length < 2) challenge = '0' + challenge var username if (process.argv.length > 4) { username = process.argv[4] } else { username = require('.....
// @flow import type { DraftBlockType } from 'draft-js/lib/DraftBlockType'; import { BLOCK_TYPES, OLD_BLOCK_TYPES } from '../../constants'; const getBlockTypeForTag = ( tagName: string, lastList: ?string, element: ?HTMLElement ): DraftBlockType => { switch (tagName) { case 'h1': return BLOCK_TYPES....
// +---------------------------------------------------------------------- // | CmsWing [ 网站内容管理框架 ] // +---------------------------------------------------------------------- // | Copyright (c) 2015-2115 http://www.cmswing.com All rights reserved. // +-------------------------------------------------------------------...
var gonzales = require('gonzales-pe'); module.exports = { name: 'space-before-combinator', runBefore: 'block-indent', syntax: ['css', 'less', 'sass', 'scss'], accepts: { number: true, string: /^[ \t\n]*$/ }, /** * Processes tree node. * * @par...
define(['underscore', 'backbone'], function(_, Backbone) { var TodoModel = Backbone.Model.extend({ // Default attributes for the todo. defaults: { content: 'empty todo...', done: false }, // Ensure that each todo created has `content`. initialize: function() { if (!t...
var Webcall = function (settings) { var options = settings || {}; var key = options['key'] || null; var baseUrl = options['baseUrl'] || 'http://call.mobilon.ru/'; var prepareOrderUrl = function (opts) { var qs = ''; for (var prop in opts) { if (opts.hasOwnProperty(prop)) {...
'use strict'; angular.module('contacts').controller('ContactsController', ['$scope', '$stateParams', '$location', 'Contacts', function($scope, $stateParams, $location, Contacts) { $scope.langs = [{'code': 'en', 'name': 'English'},{'code': 'es', 'name': 'Spanish'}]; $scope.lang_model = $scope.langs[0]; $scop...
require('dotenv').config(); module.exports = { development: { username: process.env.DB_USER, password: process.env.DB_PASSWORD, database: 'postit-dev', host: '127.0.0.1', port: 5432, dialect: 'postgres' }, test: { username: process.env.DB_USER, password: process.env.DB_PASSWORD, ...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { ActivityIndicator, View, StyleSheet, TextInput, Platform, Text as NativeText, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import colors from '../config/colors'; import normalize from...
import * as utils from 'utils' export default ( room, adjudicatorsById, teamsById ) => { if (room.chair) { const chairConflict = utils.conflict.adjudicatorToRoom( room.chair, room, adjudicatorsById, teamsById ) if (chairConflict) return true } let panelConflict = false...
/************************************************************** * Copyright (c) Stéphane Bégaudeau * * This source code is licensed under the MIT license found in * the LICENSE file in the root directory of this source tree. ***************************************************************/ import React from 'react'...
import notFound from './notFound' import internalError from './internalError' export default { notFound, internalError }
{ "translatorID": "b7c665ba-173c-4dea-b28e-e866580002a2", "translatorType": 4, "label": "ZoteroBib", "creator": "Dan Stillman", "target": "^https://zbib\\.org/", "minVersion": "4.0", "maxVersion": null, "priority": 100, "inRepository": true, "browserSupport": "gcsibv", "lastUpdated": "2021-06-23 06:00:00" } ...
'use strict'; var fs = require('fs'), npm = require('npm'), path = require('path'), request = require('request'), shell = require('shelljs'); function getPackage(name, callback) { var options = { uri: 'https://network.mean.io/api/v0.1/packages/' + name, method: 'GET' }; request(optio...
'use strict'; var $ = window.jQuery = require('jquery'); var pageController = require('./modules/controllers/page'); var modalController = require('./modules/controllers/modals'); var ready = function () { pageController.init(); modalController.init(); }; $(document).ready(ready);
Pond.Game = function(game){ // define needed variables for Pond.Game this._player = null; this._PondGroup = null; Pond._families = []; }; Pond.Game.prototype = { create: function(){ // start the physics engine this.physics.startSystem(Phaser.Physics.ARCADE); // set the global gravity this.physics.arcade.g...
import { parse } from 'url' import config from './config' const escape = (s) => { return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') } const knowledgeImageUrlRegex = new RegExp(String.raw`${String.raw`\(((http[s]?:\/\/` + escape(parse(config.KNOWLEDGE.BASE_URL).host) + ...
import useStyles from 'isomorphic-style-loader/useStyles'; import React from 'react'; import { Button } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faHome, faBook } from '@fortawesome/free-solid-svg-icons'; import Link from '../Link'; import s from './Header.css'; ...
'use strict'; // Contracts controller angular.module('contracts').controller('ContractsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Contracts', function($scope, $stateParams, $location, Authentication, Contracts) { $scope.authentication = Authentication; this.contracts= Contracts.query(...