code stringlengths 2 1.05M |
|---|
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [
{
files: ['index.d.ts', 'tests.ts'],
rules: {
'@typescript-eslint/no-unused-... |
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 index = require('./routes/index');
var app = express();
// view engine setup
// app.set('view... |
var server = angular.module('server', [])
server.factory('productsInterface', ['$http', function($http){
productsInterface = {};
var timeoutLength = 10000;
var baseUrl = 'http://web.manthanhd.com:3000/product',
url,
method,
params = {};
productsInterface.getProduct = function(){
url = baseUrl + '/:id';... |
'use strict';
/**
* This module defines a singleton that handles the communication between the dat.GUI controller
* and the hex-grid parameters.
*
* @module parameters
*/
(function () {
var parameters = {},
config = {},
originalHgConfigs = {};
config.datGuiWidth = 300;
config.folders = [
... |
'use strict';
const async = require('async');
const intercept = require('./intercept');
const util = require('../utils');
const value = require('./value');
const _ = require('lodash');
/**
* Process an expression
* @param {Object} service - the active service
* @param {String} field - field name
* @param {*} ... |
/**
* bearerAuth Policy
*
* Policy for authorizing API requests. The request is authenticated if the
* it contains the accessToken in header, body or as a query param.
* Unlike other strategies bearer doesn't require a session.
* Add this policy (in config/policies.js) to controller actions which are not
* acces... |
class ContextMenuConstants {
constructor() {
this.COPY_TEXT = "copyText";
}
}
export default new ContextMenuConstants();
|
/*
---
script: Keyboard.js
description: Enhances Keyboard by adding the ability to name and describe keyboard shortcuts, and the ability to grab shortcuts by name and bind the shortcut to different keys.
license: MIT-style license
authors:
- Perrin Westrich
requires:
- core:1.2.4/Function
- /Keyboard... |
import Confidence from 'confidence'
import path from 'path'
var criteria = {
env: process.env.NODE_ENV
};
var config = {
$meta: {
name: 'React Redux Example Development'
},
pkg: require('../../package.json'),
connections: [{
labels: ['ui'],
host: '0.0.0.0',
port: 3000
},{
labels: ... |
var Calculator = (function() {
// Private stuff up here
var calculatorAddValue = 2 + 2;
var calculatorSubtractValue = 5 - 2;
var calculatorMultiplyValue = 3 * 3;
var calculatorDivideValue = 3 / 3;
// Public methods here
return {
addValueAtoValueB: function(result) {
var n... |
'use strict';
angular.module('badeseenApp').directive('lakeRating', ['$window','RatingModal', 'LakeUtils',function ($window,RatingModal, LakeUtils) {
function getRating(rating){
var stars = 0;
var icon = 'fa-question';
var buttonclass = 'button-calm';
switch(rating.rating){
... |
import styled from 'styled-components';
const Column5 = styled.div`
display: flex;
width: 80%;
`;
export default Column5;
|
// Constants
const ACTION = 'ACTION'
const ACTION_HANDLERS = {
[ACTION]: handleAction
}
// Action Creators
export function myAction (payload) {
return {
type: ACTION,
payload
}
}
function handleAction (state, action) {
}
// Reducer
export const initialState = {}
export default function (state = initia... |
/*! jQuery UI - v1.10.4 - 2014-06-15
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.bg={closeText:"затвори",prevText:"<назад",nextText:"напред>",nextBigText:">>",currentText:"днес",monthNames:["Януари","Ф... |
"use strict";
var XboxController = require('xbox-controller'),
controller = new XboxController();
controller.on('a:press', function (key) {
console.log('a press');
});
controller.on('b:release', function (key) {
console.log('b release');
});
controller.on('righttrigger', function (position) {
console.log(... |
import Sticky from 'semantic-ui-ember/components/ui-sticky';
export default Sticky;
|
var assert = require('assert'),
fs = require('fs'),
pdfinfo = require('../lib/pdfinfo.js');
describe('pdfinfo', function(){
describe('add_options', function(){
it('should add options', function(){
var pinfo = new pdfinfo(__dirname + '/pdfs/invalidfile.pdf');
pinfo.add_options(['--space-as-off... |
// Defines the ExplodeBox type.
var ExplodeBox = function(x, y, config) {
this.x = x;
this.y = y;
this.width = config.box.explode.size.width;
this.height = config.box.explode.size.height;
this.colour = config.box.explode.colour;
this.currentColour= config.box.explo... |
import Icon from '../../components/Icon.vue'
Icon.register({
'regular/smile-wink': {
width: 496,
height: 512,
paths: [
{
d: 'M248 8c137 0 248 111 248 248s-111 248-248 248-248-111-248-248 111-248 248-248zM248 456c110.3 0 200-89.7 200-200s-89.7-200-200-200-200 89.7-200 200 89.7 200 200 200zM3... |
var myutil = require('../lib/myutil');
var LOG = myutil.LOG;
var ERROR = myutil.ERROR;
var op = require('./op');
var Socket = require('../lib/socket');
var connSocket = null;
var state = 0;
var account = "2234";
var charname = "abc";
function succ(session)
{
var inst = n... |
/* eslint-disable import/no-unresolved */
import { expect, assert } from 'chai';
import { describe, it } from 'mocha';
import BirdknifeText from '../libs/text';
import DummyStatus from './DummyStatus';
describe('BirdknifeText', () => {
describe('#isCommand', () => {
it('recognizes commands', () => {
... |
//"use strict";
//
function defaults (arg1 = 1, arg2, {prop1= 'p1', prop2} = {}, arg4 = 'sono null'){
console.log("arg1 ", arg1);
console.log("arg2 ",arg2);
console.log("prop1 ",prop1);
console.log("prop1 ",prop2);
console.log("arg4 ",arg4);
}
defaults(1, 2, {prop1: 'p1', prop2 :'p2'}, null);
defaults();
|
'use strict';
var express = require('express');
var path = require('path');
var app = express();
var port = process.env.PORT || 3000;
app.use(express.static('./src'));
//For html5mode support
app.all('/*', function(req, res) {
res.sendFile('index.html', { root: path.join(__dirname, './src') });
});
app.listen(por... |
var html = require('choo/html')
var choo = require('choo')
var xhr = require('xhr')
var app = choo()
app.router([
['/done.html', doneView],
['/', mainView]
])
document.body.appendChild(app.start())
function mainView () {
var buttonClass = 'f6 f5-ns fw6 dib ba b--black-20 bg-blue white ph3 ph4-ns pv2 pv3-ns br2 ... |
import test from 'ava';
import { assert } from 'chai';
import service from '../src/multi-service';
test('should throw an error of nonexistent app', () => {
assert.throws(() => {
service({ collectionName: 'test', schema: { } });
});
});
test('should throw an error of nonexistent collectionName', () => {
asse... |
var Transmitter = require('./transmitter');
var Receiver = require('./receiver');
export default class AFSK {
constructor () {
this.defaultSignature = [33, 35, 31, 37];
}
transmit(bytes, signature = null) {
var transmitter = new Transmitter(signature || this.defaultSignature);
transmitter.transmit(... |
/**
* Created by Qiaodan on 2017/5/25.
*/
//懒加载以及异步加载
var jfLazyLoading = {
//图片懒加载
lazyLoadInit: function (details) {
var _this = this;
if (!details) {//如果details未输入,则防止报错
details = {};
}
_this.thisImgEle = details.thisImgEle || 'loading_img';//显示的图片,class选择器... |
var async = require('async')
, util = require('util')
, AirAir = require('./index')
;
AirAir.discover(function(sensor) {
console.log('found ' + sensor.uuid);
sensor.on('disconnect', function() {
console.log('disconnected!');
process.exit(0);
});
sensor.on('sensorDataChange', function(err, re... |
var
path = require("path");
var
_ = require("lodash");
var
webpackConfig = require("./webpack.config");
module.exports = _.merge(webpackConfig, {
cache: true,
devtool: "sourcemap",
debug: true,
output: {
sourceMapFilename: "[file].map",
hotUpdateMainFilename: "updates/[hash]/update.json",
... |
var Request = require('request');
var FeedParser = require('feedparser');
var fs = require('fs');
var http = require('http');
var colors = require('colors');
var sprintf = require('sprintf-js').sprintf;
// local configuration
var config = require('./podcasts_fetcher.json');
function run(RSSFeed) {
var request = new ... |
const concat = require('concat-stream')
const h = require('virtual-dom/h')
const test = require('tape')
const vdom = require('./')
test('should assert input types', function (t) {
t.plan(1)
t.throws(vdom, /object/)
})
test('should render a vdom tree to an html stream', function (t) {
t.plan(1)
vdom(h('div.foo... |
import fs from 'fs';
import tracker from './tracker';
import semver from 'semver';
import path from 'path';
import knexPackage from 'knex/package.json';
import {
MockSymbol,
} from './util/transformer';
const platforms = [
'knex',
];
const knexVersion = knexPackage.version;
class MockKnex {
adapter = null;
... |
'use strict';
angular.module('copayApp.controllers').controller('createController',
function($scope, $rootScope, $timeout, $log, lodash, $state, $ionicScrollDelegate, $ionicHistory, profileService, configService, gettextCatalog, ledger, trezor, intelTEE, derivationPathHelper, ongoingProcess, walletService, storageSe... |
import { generateRoutes } from '@utils/generate-routes'
describe('Generate routes', () => {
it('has all dates', () => {
const routes = generateRoutes()
expect(routes.length).toBe(366)
})
})
|
module.exports = function (fn) {
return function () {
return fn.call(this);
}
};
|
import { Point, ObservablePoint, Rectangle } from '../math';
import { sign, TextureCache } from '../utils';
import { BLEND_MODES } from '../const';
import Texture from '../textures/Texture';
import Container from '../display/Container';
const tempPoint = new Point();
/**
* The Sprite object is the base for all textu... |
define([],function(){return{params:void 0,insensitiveParams:void 0,init:function(){var a=this;window.onpopstate=function(){a.populateParams()},a.populateParams()},populateParams:function(){var a,b=/\+/g,c=/([^&=]+)=?([^&]*)/g,d=function(a){return decodeURIComponent(a.replace(b," "))},e=window.location.search.substring(... |
module.exports = function(grunt) {
var options = {
port: 8080
};
grunt.initConfig({
options: options,
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
port: options.port,
... |
Sim.Vision = function() {
};
Sim.Vision.prototype.getVisibleBalls = function(polygon, x, y, orientation) {
var globalPolygon = polygon.rotate(orientation).translate(x, y),
pos = {x: x, y: y},
balls = [],
ball,
distance,
angle,
i;
for (i = 0; i < sim.game.balls.length; i++) {
ball = sim.game.balls[i... |
/**
* Copyright (c), 2013-2014 IMD - International Institute for Management Development, Switzerland.
*
* See the file license.txt for copying permission.
*/
define([
], function () {
'use strict';
var QUINK_ROOT = 'quink',
RES_DIR = QUINK_ROOT + '/resources',
PLUGIN_DIR = QUINK_ROOT + '/p... |
/*
* aem-sling-contrib
* https://github.com/dherges/aem-sling-contrib
*
* Copyright (c) 2016 David Herges
* Licensed under the MIT license.
*/
define([
"../core",
"./var/rsingleTag",
"../manipulation" // buildFragment
], function( jQuery, rsingleTag ) {
// data: string of html
// context (optional): If speci... |
/*
Loads the correct configuration for the development and production builds
of the client and server, based on the environment variable NODE_ENV,
set in the webpack configuration file
*/
if (process.env.NODE_ENV === 'development') {
module.exports = require('./config.development');
} else {
module.exports ... |
import { GET_GROUPS } from '../actions/types';
const initialState = [];
/**
* updates the groups property of the store
* @param {Object} state - current state
* @param {Object} action - action type and action payload
*
* @returns {state} - returns a new state.
*/
export default (state = initialState, action = {... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var fs = require('fs');
var utility = require('../../../index').Utility;
router.get('/', function(req, res, next) {
if(req.isAuthenticated()){
res.render('index', {
title: 'idp - management cons... |
const superagent = require('superagent');
const logger = require('../../winston');
module.exports = {
publishWebhook
};
function publishWebhook() {
return function(context) {
// Get Webhooks and publish the events
const resources = ['spaces', 'questions', 'answers'];
const events = ['create', 'patch',... |
require('dotenv').config()
const models = require('../models')
const User = models.User
const Message = models.Message
const crypto = require('crypto');
const BASE_URL = process.env.BASE_URL || 'http://localhost:3000/api/forgot_password'
const helper = require('sendgrid').mail
var sg = require('sendgrid')(process.en... |
import Ember from 'ember';
import layout from './template';
import Registerable from '../../mixins/registerable';
import KeyBindings from '../../mixins/key-bindings';
import ControlState from '../../mixins/control-state';
const { computed } = Ember;
const { oneWay } = computed;
export default Ember.Component.extend(C... |
'use strict';
/* jshint -W030 */
/* jshint -W110 */
var chai = require('chai')
, expect = chai.expect
, Utils = require(__dirname + '/../../lib/utils')
, Support = require(__dirname + '/support');
describe(Support.getTestDialectTeaser('Utils'), function() {
describe('formatReferences', function () {
([
... |
export default function routing(RouterHelper) {
const states = [{
state: 'modules',
config: {
abstract: true,
parent: 'app',
views: {
'sidenav': {
component: 'sidenavLayoutAppComponent'
},
'': {
... |
'use strict';
// Load modules
const Hoek = require('hoek');
const Boom = require('boom');
// Declare internals
const internals = {};
exports = module.exports = internals.Store = function (document) {
this.load(document || {});
};
internals.Store.prototype.load = function (document) {
const err = inte... |
/*
* shell.h.js
* Contains all the common vars/defintion requried across the shell app.
*
*/
var shell = new Object();
/* Define a new module/namespace for each object to avoid conflicts **/
shell.module = function (ns){
var parts = ns.split(".");
var root = window;
for(var i=0; i<parts.length; i++){
... |
/**
* @file: 1.3
* @author: gejiawen
* @date: 15/10/22 12:42
* @description: 1.3
*/
var async = require('async');
var t = require('../../t');
var log = t.log;
/**
* 如果想对同一个集合中的所有元素都执行同一个异步操作,可以利用each函数。
*
* async提供了三种方式:
* 1. 集合中所有元素并行执行
* 2. 一个一个顺序执行
* 3. 分批执行,同一批内并行,批与批之间按顺序
*
* 如果中途出错,则错误将上传给最终的callba... |
(function() {
'use strict';
document.addEventListener('DOMContentLoaded', function() {
// Set key and token on Trello object
Trello.setKey(localStorage.trellifyApiKey);
Trello.authorize({
interactive: false,
success: authorizedState,
});
// Trellify the tabs
document.getEleme... |
'use strict';
var React = require('react');
var Info = require('./info.js');
var Button = require('./button.js');
var messages = require('../messages.js').aboutMessages;
module.exports = React.createClass({
render: function() {
return(
<Info messages={messages}>
<Button url={'https://github.com/m... |
var searchData=
[
['tools_2ehpp',['tools.hpp',['../tools_8hpp.html',1,'']]],
['typedefs_2ehpp',['typedefs.hpp',['../typedefs_8hpp.html',1,'']]]
];
|
var express = require('express');
var router = express.Router();
var Move = require('../models/move');
var utilities = require('../services/utilities');
var validateMovement = function(newMovement){
return Move.findOne({
move: newMovement.kills.toLowerCase(),
kills: newMovement.move.toLowerCase()
... |
version https://git-lfs.github.com/spec/v1
oid sha256:f7094c82ffcdee90ff937f8d2db5bf965146f57866f44f0af99604c7715032c8
size 22292
|
var
sys = require("sys"),
spawn = require("child_process").spawn,
events = require("events");
/**
* A pool of child processes.
* Emits `spawn` when a child is spawned.
*
* @param {String} toRun The program to spawn and run.
* Defaults to `process.argv[0]`.
* @param {Array} args Arguments to `toRun`. Defau... |
// console.log('Loading FileField...')
Spontaneous.Field.File = (function($, S) {
var dom = S.Dom;
var FileField = new JS.Class(Spontaneous.Field.String, {
selected_files: false,
preview: function() {
Spontaneous.UploadManager.register(this);
var self = this
, value = this.get('value')
, filename = t... |
'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
// Not using the boilerplate 'home' state. Just redirect to the newgame state as the default starting index.
$urlRouterProvider.when('/', '/newgame');
... |
/** @babel */
import { CompositeDisposable } from 'atom'
import ImportListView from './import-list-view'
import call from './proc'
export default {
config: {
pythonPaths: {
type: 'string',
default: '',
title: 'Python Executable Paths',
description:
'\
Paths to python executable, ... |
/*
jQuery Coda-Slider v2.0 - http://www.ndoherty.biz/coda-slider
Copyright (c) 2009 Niall Doherty
This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.
*/
$(function(){
// Remove the coda-slider-no-js class from the body
$("body").removeClass("coda-slider-no-js");
... |
import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from '../../helpers/start-app';
import destroyApp from '../../helpers/destroy-app';
import config from '../../../config/environment';
let app;
module('Unit | Service | log', {
beforeEach: function () {
app = startApp();
},
afte... |
var EventEmitter = require('events').EventEmitter
var inherits = require('util').inherits
var words = require('./words')
inherits(Document, EventEmitter)
module.exports = Document
function Document() {
this.row = this.column = this.preferred = 0
this.lines = ['\n']
this.marks = null
}
//compare marked position... |
#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
'use strict';
// Represents a GUI option with 4 selection
function toggleMode(oldMode) {
if(oldMode === 'bar-chart') {
return 'total-view';
} else if(oldMode === 'total-view') {
return 'percentage-view';
} else if(oldMode === 'per... |
import TimeField from 'ember-time-field/components/time-field';
export default TimeField; |
import EMPTY from '../utils/empty';
import acopy from '../utils/acopy';
export function RingBuffer(head, tail, length, array) {
this.head = head;
this.tail = tail;
this.length = length;
this.array = array;
}
RingBuffer.prototype = {
pop: function () {
var array = this.array,
tail = this.ta... |
const { expect } = require('chai');
const { init } = require('../../src');
describe('init()', () => {
it('requires swfClient', () => {
expect(() => init({})).to.throw('swfClient option is required');
});
});
|
/**
* mock.js 提供应用截获ajax请求,为脱离后台测试使用
* 模拟查询更改内存中mockData,并返回数据
*/
import { fetch } from 'mk-utils'
const mockData = fetch.mockData
function initMockData() {
if (!mockData.users) {
mockData.users = [{
id: 1,
mobile: 13334445556,
password: '1'
}]
}
}
fetc... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var EventStore = (function () {
function EventStore() {
this._events = [];
this._onEventStoredEvents = [];
}
EventStore.prototype.storeEvent = function (event) {
this._events.push(event);
this._onEve... |
/* jshint globalstrict: true, curly: false */
'use strict';
var iter = window.iter;
describe("join", function() {
it("given empty sequence returns empty string", function() {
var result = iter([]).join('xxx');
expect(result).toBe('');
});
it("given non empty sequence joins elements using... |
import React from 'react'
import PropTypes from 'prop-types'
const defaultStyles = {
position: 'relative',
padding: '0.5em'
}
export const Text = ({ text, style }) => !text ? null : (
<div style={{ ...defaultStyles, ...style }}>{ text }</div>
)
Text.propTypes = {
text: PropTypes.string,
style: PropTypes.ob... |
var bull, cow, count, win, chance, placeno;
var word;
var used = new Array();
function guess(txt) {
var result = document.getElementById("indicate" + (count-1));
var gword = txt.value.toLowerCase();
bull = 0;
cow = 0;
var i,j,k;
var next = count + 1;
var appendText = '<tr i... |
/**
* license inazumatv.com
* author (at)taikiken / htp://inazumatv.com
* date 2014/02/06 - 13:17
*
* Copyright (c) 2011-2014 inazumatv.com, inc.
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
*
*
*
* This notice shall be included in all copies o... |
/* global Metro */
(function(Metro, $) {
'use strict';
var Utils = Metro.utils;
var cookieDisclaimerDefaults = {
name: 'cookies_accepted',
template: null,
templateSource: null,
acceptButton: '.cookie-accept-button',
cancelButton: '.cookie-cancel-button',
messa... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Customer = mongoose.model('Customer'),
User = mongoose.model('User'),
Site = mongoose.model('Site'),
Channel = mongoose.model('Channel'),
ChannelController = require('./channel'),
UserController = require('./user'),
util = ... |
'use strict';
/*!
* Copyright (c) 2014 Stefan Aichholzer <theaichholzer@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation... |
'use strict';
(function() {
var profileId = document.querySelector('#profile-id') || null;
var profileUsername = document.querySelector('#profile-username') || null;
var profileRepos = document.querySelector('#profile-repos') || null;
var displayName = document.querySelector('#display-name') || null;
... |
'use strict';
/*global SVG */
SVG.Longhole = SVG.invent({
create: 'g',
inherit: SVG.G,
extend: {
build: function(bits) {
var longholesPartsTC = this.doc().use('TC_Loading_Longholes_Parts', 'images/master.svg');
this.longholesTCLegs1 = this.doc().use('TC_Loading_Longholes_Legs_1', 'images/master.s... |
export { default } from 'ember-buffered-proxy-component/components/buffered-proxy';
|
import { validator, buildValidations } from 'ember-cp-validations';
export default buildValidations({
name: validator('presence', true),
email: [
validator('format', { type: 'email' })
],
category: validator('presence', true)
});
|
'use strict';
angular.module('pets').directive('qr',[ '$http',
function($http) {
return {
templateUrl: '/modules/pets/views/qr.client.view.html',
restrict: 'E',
replace: true,
scope: {
pet: '='
},
link: function postLink(scope, element, attr) {
element.bind('click', function() {
... |
(function() {
$(function() {
var offlineMode, time;
time = function() {
var d, utc;
d = new Date();
utc = d.getTime() + (d.getTimezoneOffset() * 60000);
return new Date(utc + (3600000 * 6));
};
offlineMode = function() {
var el;
el = document.getElementById("widlib"... |
'use strict';
/* Controllers */
(function(module) {
module.controller('AboutCtrl', ['$timeout', '$scope', function($timeout, $scope) {
}]);
})(window.CtrlModule); |
export default function sleep (ms = 10) {
return new Promise((resolve, reject) => setTimeout(resolve, ms))
}
|
(function(){
'use strict';
angular
.module('events.auth')
.config(FacebookConfig);
FacebookConfig.$inject = ['FacebookProvider'];
function FacebookConfig (FacebookProvider) {
FacebookProvider.setSdkVersion('v2.3');
FacebookProvider.init('590352944439692');
}
})();
|
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "cs",
likelySubtags: {
cs: "cs-Latn-CZ"
},
identity: {
language: "cs"
},
territory: "CZ",
numbers: {
currencies: {
ADP: {
displayName: "andorrská peseta",
... |
if (typeof Object.assign !== 'function') {
(() => {
Object.assign = function assign(target) {
if (target === undefined || target === null) {
throw new TypeError('Cannot convert undefined or null to object');
}
const output = Object(target);
for (let index = 1; index < arguments.le... |
export const u1F494 = {"viewBox":"0 0 2600 2760.837","children":[{"name":"path","attribs":{"d":"M1308 1837q-2 55-2 111l1 27v88q0 44-6 66.5t-15 22.5q-11 0-37.5-25.5T1213 2094l-73-55q-57-43-118.5-78T897 1893l-127-64q-277-141-392.5-311T262 1138q0-202 123-336t325-134q103 0 177 32t125.5 56 92.5 77l36 49q10 11 22.5 28t12.5 3... |
"use strict";
var moment = require("../../");
var helpers = require("../helpers/helpers");
exports.utc = {
utc : function (test) {
moment.tz.add([
"TestUTC/Pacific|PST|80|0|",
"TestUTC/Eastern|EST|50|0|"
]);
var m = moment("2014-07-10 12:00:00+00:00"),
localFormat = m.format(),
localOffset = helpe... |
/**
*
* LocaleToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = <option>--</option>;
// If we have items, render them
if (props.values) {
content = props.values.map(val... |
import { Router as router } from 'express';
import passport from 'passport';
import csrf from 'csurf';
import userCtrl from './controllers/userCtrl';
import taskCtrl from './controllers/taskCtrl';
import auth from './middleware/auth';
const runningOnOpenshift = process.env.OPENSHIFT_EXAMPLE || false;
const routes = ro... |
import fs from 'fs';
import gulp from 'gulp';
import onlyScripts from './util/scriptFilter';
const tasks = fs.readdirSync('./gulp/tasks/').filter(onlyScripts);
// Ensure process ends after all Gulp tasks are finished
gulp.on('stop', function () {
if ( !global.isWatching ) {
process.nextTick(func... |
import React from 'react';
import PropTypes from 'prop-types';
import {TapAnimationContent} from '../TapAnimation/TapAnimation';
export class MZButton extends React.Component {
render() {
let className = 'mz-button ' + this.props.className;
return <button onClick={this.props.onClick} className={cla... |
// https://github.com/jacwright/date.format
define('date.format', function() {
Date.shortMonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
Date.longMonths = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November',... |
const Context = require('../semantic/context.js');
class Program {
constructor(block) {
this.block = block;
}
toString() {
return `(Program ${this.block.toString()})`;
}
analyze(context = Context.INITIAL) {
return this.block.analyze(context);
}
}
module.exports = Program;
|
var gulp = require("gulp");
var uglify = require("gulp-uglify");
var concat = require("gulp-concat");
var lint = require("gulp-eslint");
var rename = require("gulp-rename");
var config = require("../config");
gulp.task("scripts", ["scripts:lint", "scripts:build"]);
gulp.task("scripts:lint", function() {
return g... |
import { factory } from '../../utils/factory';
var name = 'parser';
var dependencies = ['typed', 'Parser'];
export var createParser =
/* #__PURE__ */
factory(name, dependencies, function (_ref) {
var typed = _ref.typed,
Parser = _ref.Parser;
/**
* Create a parser. The function creates a new `math.Parser` ... |
var updateRegion = {
region: function() {
// resets
$('region_label').hide();
$('region_select').hide();
// performs update of region
var country = this.getValue();
var label = RegionUpdaterCountries.get(this.getValue());
if (label) {
label = label.get("label");
if (label=="null") {
label=""... |
getTimelineData = function() {
var dxs = Session.get("patientDiagnoses");
var timelineData = [];
var pt = Session.get("patient");
if (!pt || !getPatientDob()) return;
var dobMs = getPatientDob().getTime();
var twoMosAgoMs = new Date().getTime() - 5.25949e9;
var earliestTime = dobMs;
if (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.