code stringlengths 2 1.05M |
|---|
'use strict';
import expectThrow from '../installed_contracts/zeppelin-solidity/test//helpers/expectThrow';
var Mintable23Token = artifacts.require('../contracts/Tokens/Mintable23Token.sol');
contract('Mintable23Token', function(accounts) {
let token;
let MAIN_ACCOUNT = accounts[0];
const INITAL_SUPPLY =... |
!function(){"use strict";function e(){var e,a=navigator.userAgent,r=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(r[1]))return e=/\brv[ :]+(\d+)/g.exec(a)||[],{name:"ie",version:e[1]||""};if("Chrome"===r[1]){e=a.match(/\b(Edge)\/(\d+)/);var t=a.split("/").pop();if(t=t.sp... |
"use babel";
import { CompositeDisposable } from "atom";
import { dirname } from "path";
const linterName = "linter-joker";
let jokerExecutablePath;
let lintsOnChange;
export default {
activate() {
require("atom-package-deps").install("linter-joker");
this.subscriptions = new CompositeDisposable();
t... |
/* eslint react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }] */
import isDev from 'isdev';
import React from 'react';
import Helmet from 'react-helmet';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { renderToString } from 'react-dom/server';
import { RouterContext } from ... |
function HackerNews()
{
/**
* The service URLs. From api.ihackernews.com
*/
this.apiFrontPageURL = "http://api.ihackernews.com/page/";
this.apiAskHNUrl = "http://api.ihackernews.com/ask/";
this.newlySubmittedHNUrl = "http://api.ihackernews.com/new/";
this.apiUserUrl = "http://api.ihackernews.com/profile/";
... |
import Vue from 'vue'
const noopData = () => ({})
// window.onNuxtReady(() => console.log('Ready')) hook
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
if (process.browser) {
window._nuxtReadyCbs = []
window.onNuxtReady = function (cb) {
windo... |
MEMO.services.dataStorageSvc = (function () {
"use strict";
(function () {
// immediate ivoke functions come here.
})();
var _add = function (key, obj) {
var value = JSON.stringify(obj);
localStorage.setItem(key, value);
};
var _get = function (key) {
return JS... |
/**
* Comment Provider
* Provides functionality to send or receive danmaku
* @license MIT
* @author Jim Chen
**/
var CommentProvider = (function () {
function CommentProvider () {
this._started = false;
this._destroyed = false;
this._staticSources = {};
this._dynamicSources = {... |
module.exports = api => {
// register styleguide command
api.extendPackage({
scripts: {
styleguide: 'vue-cli-service styleguidist',
'styleguide:build': 'vue-cli-service styleguidist:build'
}
})
// add all the files from template
api.render('./template')
}
|
/**
* Created by Yang on 16/11/16.
*/
import React from 'react';
const BSContainer = (props) => <div className={`container ${props.className}`}>
{props.children}
</div>;
BSContainer.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
};
export default BSContainer;
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var Class = require('../utils/Class');
var PluginCache = require('../plugins/PluginCache');
var SceneEvents = require(... |
/**
* Created by Kevin on 12/14/2016.
*/
(function () {
'use strict';
/* @ngInject */
angular.module('app.fhir')
.config(['$fhirProvider', fhirProvider]);
fhirProvider.$inject = ['$fhirProvider'];
function fhirProvider($fhirProvider) {
// $fhirProvider.baseUrl = 'https://fhir-open-api-dstu2.smar... |
angular.module('templateStore.templates',['ngRoute'])
.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/templates', {
templateUrl: 'templates/templates.html',
controller: 'TemplatesCtrl'
}).
when('/templates/:templateId', {
templateUrl: 'templates/template-details.htm... |
/* jshint node:true */
'use strict';
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
frameworks: ['browserify', 'jasmine-ajax', 'jasmine'],
// list of files / patterns to load in the browser
files:... |
/**
* @author: @AngularClass
*/
var path = require('path');
const EVENT = process.env.npm_lifecycle_event || '';
// Helper functions
var ROOT = path.resolve(__dirname, '..');
function hasProcessFlag(flag) {
return process.argv.join('').indexOf(flag) > -1;
}
function hasNpmFlag(flag) {
return EVENT.includes(fl... |
function hashPassword(password) {
// Define and hash password
// TODO: interact with the server for passwords
return forge.md.sha256.create().update(password).digest().getBytes();
};
function encryptValue(value, encrypt=null) {
// Define encryption function
var strData = JSON.stringify(value);
if (encrypt !=nu... |
const openTutorial = () => {
return { type: 'OPEN_TUTORIAL' };
};
const closeTutorial = () => {
return { type: 'CLOSE_TUTORIAL' };
};
const viewNext = () => {
return { type: 'VIEW_NEXT' };
};
const viewPrevious = () => {
return { type: 'VIEW_PREVIOUS' };
};
const toggleHelpHighlight = () => {
return { typ... |
var class_kluster_kite_1_1_web_1_1_nginx_configurator_1_1_nginx_configurator_actor =
[
[ "NginxConfiguratorActor", "class_kluster_kite_1_1_web_1_1_nginx_configurator_1_1_nginx_configurator_actor.html#af357a9a4abe3f5249b81991976190368", null ],
[ "Configuration", "class_kluster_kite_1_1_web_1_1_nginx_configurato... |
/// <reference path="../../../../typings/tsd.d.ts" />
//NOTE: The angular app is initialised in ~/scripts/app/app.js
angular.module('app')
.factory('AdminService', function($http, HttpHelper) {
var fac = {};
fac.passwordRules = function() { return HttpHelper.get(['api/UsersAdmin/PasswordRules'].join(''))... |
/**
* Success Criterion 1.2.9: Audio-only (Live)
*
* @see http://www.w3.org/TR/UNDERSTANDING-WCAG20/media-equiv-live-audio-only.html
*/
quail.guidelines.wcag.successCriteria['1.2.9'] = (function (quail) {
/**
* Determines if this Success Criteria applies to the document.
*/
function preEvaluator () {
... |
(function(){
var util = require("util");
function match(keys, conditions, environment, options) {
if(!conditions) return true;
if(!keys) return false;
if(util.isArray(keys) == false) keys = [ keys.toString() ];
if(util.isArray(conditions) == false) conditions = [ conditions.toString() ];
re... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import gfm from 'remark-gfm';
import raw from 'raw.macro';
import {... |
class PasteGesture extends Gesture {
constructor() {
super();
this.relocatedCells_ = [];
this.hoveredCell_ = null;
}
startHover(cell) {
if (!state.clipboard) return;
if (cell.role != state.clipboard.anchor.role) return;
this.hoveredCell_ = cell;
this.relocateCells_(cell);
this.for... |
import routes from './routes';
import middleware from './middleware';
class AppConfiguration {
static run(app) {
middleware(app);
routes(app);
}
}
export default AppConfiguration;
|
(function(){
'use strict';
angular.module('rcw',[]).config(function($locationProvider){
$locationProvider.html5Mode(true);
});
}());
|
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
/*
* PekeUpload 2.0 - jQuery plugin
* written by Pedro Molina
* http://www.pekebyte.com/
*
* Copyright (c) 2015 Pedro Molina (http://pekebyte.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
*/
(function($) ... |
/**
* marked-tex-renderer
* A plug-in style renderer to produce TeX output for marked
* https://github.com/sampathsris/marked-tex-renderer
*/
/*jshint node: true */
'use strict';
var NEWLINE = '\r\n';
function Renderer() {
}
Renderer.prototype.failOnUnsupported = function() {
if (!this.optio... |
version https://git-lfs.github.com/spec/v1
oid sha256:03db059771bee943dbbcb286f9db14347a815154b7a9a65e938fd14082e47095
size 3115
|
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-disable max-len */
export const port = proce... |
'use strict';
const psplit = require('../psplit');
/**
* Routes the mock API calls (from Lambda functions) into the AWS
* actions.
*
* @param {RouteMap} actionMap - the route entry from the api/route.js
* file, for a specific service name.
* @return {Object[]} list of { actionName, handler }.
*/
... |
var mcLevel=0;
var mcScore=0;
function initStorage() {
if(localStorage.mcLevel!=null){
mcLevel=localStorage.mcLevel
} else {
mcLevel=0
}
if(localStorage.mcScore!=null){
mcScore=localStorage.mcScore
} else {
mcScore=0
}
}
function showMcStorage() { alert("Level="+mcLevel+"\n"+"Score="+mcSc... |
class Test {
/**
* @returns {Number}
* @typecheck
*/
myMethod() {
if (true) {
return 1;
} else {
return 2;
}
}
}
|
/**
* 定义marketplace类的数据模型
*
* Created by zephyre on 11/3/15.
*/
CoreModel.Marketplace = {};
const Marketplace = CoreModel.Marketplace;
const Misc = CoreModel.Misc;
Marketplace.Seller = new SimpleSchema({
// 商家的主键
sellerId: {
type: Number,
min: 1
},
// 商家对应的UserInfo
userInfo: {
type: CoreMode... |
import SVGPath from './SVGPath';
export default SVGPath;
|
Object.prototype.repeat = function (count) {
var s = this;
s._repeat = count;
return s;
};
module.exports = {
/** データ定義 **/
entries: [
{
_id: "15${padZero(rownum, 22)}",
name: "${flower}"
}.repeat(10)
]
}; |
const ServerRepository = require('../Repository/ServerRepository'),
IgnoredRepository = require('../Repository/IgnoredRepository');
module.exports = {
"repository.server": {module: ServerRepository, args: ['%storage%', '@brain.memory']},
"repository.ignored": {module: IgnoredRepository, args: ['%storag... |
(function(window, factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(factory);
} else if (typeof exports === 'object') {
// CommonJS
module.exports = factory();
} else {
// Browser Global (gms is your global library identifier)
window.gms = factory();
}
}(this, fu... |
var app = angular.module('myApp', ['ngRoute',
'ui.bootstrap',
'ngAnimate',
'ngTable',
'cloudinary',
'photoAlbumAnimations',
'photoAlbumControllers',
'photoAlbumServices'
]);
app.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/home', {
title: 'List questions',
... |
const versions = {
0: ({ mechanism }) => {
const request = require('./v0/request')
const response = require('./v0/response')
return { request: request({ mechanism }), response }
},
1: ({ mechanism }) => {
const request = require('./v1/request')
const response = require('./v1/response')
ret... |
/**
* Created by ane on 5/20/15.
*/
var app = angular.module('myApp', []);
app.directive('ensureUnique',['$http',function($http){
return {
require: 'ngModel',
link: function(scope,ele,attrs,c){
scope.$watch(attrs.ngModel,function(n){
if(!n) return;
$http({
... |
var authrocket = new AuthRocket({
jsUrl: 'https://tessellate.e1.loginrocket.com/v1/',
accountId: 'org_0vFdP9Zc11Y7yucwRTSCg8',
apiKey: 'key_AAAe02TUpGzBNgkrLkXYi6j57tmaiU0ll27NEvDRjBq',
realmId: 'rl_0vFhopfukY34r8EPGmKVpb'
});
console.log('authrocket:', authrocket);
//Set logged in status when dom is loaded
doc... |
(function($){//Модули: getfile, setfile, .xml(), customScrollIFrame
var defaultOptions = {
$mapNavigatorContainer: undefined,
nameIFrame: "PP_iframe",
pixelsScrollableInSeconds: 2000,
minWOuterScroll: 23,
minHOuterScroll: 23,
permanentVisible: true,
minWDraggable: 15,
minHDraggable: 15,... |
'use strict';
const async = require('async');
const _ = require('underscore');
const config = require('../config.json').MessageGenerator;
let mixedConfig = _.defaults(config, {
sendInterval: 500,
deliveryTimeoutTime: 2000,
sendNextMessageOnDelivery: false
});
module.exports = class MessageGenerator {
... |
export const u1F4F2 = {"viewBox":"0 0 2600 2760.837","children":[{"name":"path","attribs":{"d":"M1218 1420l-594 436v-272H69v-325h555V985zm1262-940v1844q0 155-182.5 192.5T1906 2554t-391.5-37.5T1332 2324V480q0-75 51.5-131t219-77.5T1906 250t303.5 21.5 219 77.5 51.5 131zm-224-65.5q11 10.5 27 10.5t27-10.5 11-26.5-11-27-27-1... |
describe("DurationJS", function() {
it("can parse durations as strings", function(){
var d = new Duration();
expect(d.parse('1 hours 33 mins 2 seconds').seconds()).toBe(5582);
expect(d.parse('2 w 3day 1 h 33 m 2 sec').seconds()).toBe(1474382);
expect(d.parse('5 weeks').weeks()).to... |
var Cons = (function() {
var counter = 0
// The outer function is not the constructor itself, but is instead to wrap
// around private members.
var ActualConstructor = function(prop) {
this.text = prop
this.id = (counter += 1)
}
ActualConstructor.prototype.getLastId = function() {
return counter
}
Actu... |
var express = require('express')
, passport = require('passport')
, util = require('util')
, WeiboStrategy = require('../../').Strategy;
var WEIBO_CLIENT_ID = "--CLIENT_ID--";
var WEIBO_CLIENT_SECRET = "--CLIENT_SECRET--";
// Passport session setup.
// To support persistent login sessions, Passport needs to ... |
// console.log(' - ljswitchboard-require.js test-file, test-file.js');
var localRequire = require('../lib/ljswitchboard-require');
exports.testVar = 'test-file.js';
exports.tFunc = function() {
var isFound = false;
try {
require('nodeunit');
isFound = true;
} catch (err) {
}
return isFound;
};
exports.req... |
const node = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
module.exports = {
plugins: [
node({
mainFields: ['browser', 'es2015', 'module', 'jsnext:main', 'main'],
}),
commonjs(),
],
}; |
//Version 1.0
/**
* highlightRow and highlight are used to show a visual feedback. If the row has been successfully modified, it will be highlighted in green. Otherwise, in red
*/
function highlightRow(rowId, bgColor, after)
{
var rowSelector = $("#" + rowId);
rowSelector.css("background-color", bgColor);
rowSele... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'newpage', 'da', {
toolbar: 'Ny side'
} );
|
'use strict';
var process = require('process');
var path = require('path');
var expect = require('../../helper').expect;
var maybeRead = require('../../../lib/command/utils/maybe-read-descriptor-file');
describe('Reading descriptor', function () {
let originalWd;
beforeEach(function () {
originalWd = proces... |
var searchData=
[
['recurringcommand_107',['RecurringCommand',['../class_command_lib_1_1_recurring_command.html',1,'CommandLib']]],
['retryablecommand_108',['RetryableCommand',['../class_command_lib_1_1_retryable_command.html',1,'CommandLib']]],
['retrycallback_109',['RetryCallback',['../class_command_lib_1_1_ret... |
"use strict";
var yeoman = require('yeoman-generator'),
glob = require('yeoman-generator/node_modules/glob'),
_ = require('yeoman-generator/node_modules/lodash'),
chalk = require('yeoman-generator/node_modules/chalk'),
mkdirp = require('yeoman-generator/node_modules/mkdirp'),
path = require('path'),
exec = requir... |
"use strict"
var o = require("../../ospec/ospec")
var callAsync = require("../../test-utils/callAsync")
var Stream = require("../stream")
o.spec("stream", function() {
o.spec("stream", function() {
o("works as getter/setter", function() {
var stream = Stream(1)
var initialValue = stream()
stream(2)
var... |
'use strict';
var gulp = require('gulp');
var execFile = require('child_process').execFile
var util = require('util');
gulp.task('link', function (done) {
var srcDir = process.env.PWD;
var cmd = util.format('ln -s -f %s/src %s/node_modules', srcDir, srcDir);
var nodeModules = srcDir + '/node_modules';
execFil... |
/**
* Return an array of valid extensions, eg. ['.js','.json','.node']
*
* @api public
*/
function require_extensions()
{
return Object.keys(require.extensions);
}
module.exports = require_extensions;
/**
* return a glob pattern for `require.extensions`
*
* @api public
*/
function glob()
{
return '.{'+
... |
'use strict';
// Harnesses controller
angular.module('harnesses').controller('HarnessesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Harnesses',
function ($scope, $stateParams, $location, Authentication, Harnesses) {
$scope.authentication = Authentication;
// Create new Harness
... |
$(document).on('turbolinks:request-start', function () {
$('.loading-caption').removeAttr('hidden')
})
$(document).on('turbolinks:request-end', function () {
$('.loading-caption').attr('hidden', true)
})
$(document).on('turbolinks:load', function () {
var leftSidebar = new $.LeftSidebar.Constructor
leftSideb... |
import Biome from "./biome";
class Snow extends Biome{
constructor(n){
super(18+n,0.9);
this.color = {H : 0,S : 0,B : 95};
}
}
export default Snow;
|
;(function(){
NuxComponentHeader.apply(this, arguments)
})('fetch', {
// global options
},function(){
// Your implementation goes here.
// Nux may not exist, therefore A light loader is implemented
// and your content is stored until the method can
// be successfully applied.
return {
fails: {},
expected: ... |
$('.js-add-photo-to-album').click(function () {
$(this).closest('.mde-photo-edit').find('.mde-photo-edit__input-photo-load').trigger('click');
return false;
});
$('.js-photo-load').change(function (e) {
var files = e.target.files;
var errFiles = [];
var completeFiles = 0;
var filesCount = Object... |
// jQuery for page scrolling feature - requires jQuery Easing plugin
$(function() {
$('a.page-scroll').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500, 'easeInOutExpo');
even... |
/* jshint ignore:start */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/an... |
//(function() {
'use strict';
appbanco.factory('serviciobanco', serviciobanco);
appbanco.$inject = ['$http', '$resource'];
function serviciobanco($http, $resource) {
return $resource('http://localhost:1029/api/Bancos/:id', { id: "@_id" }, {
'update': { method: 'PUT' }
});
};
/*appbanco.factory('servi... |
import BN from "../../../bn.js";
import * as utils from "../utils";
'use strict';
var getNAF = utils.getNAF;
var getJSF = utils.getJSF;
var assert = utils.assert;
function BaseCurve(type, conf) {
this.type = type;
this.p = new BN(conf.p, 16);
// Use Montgomery, when there is no fast reduction for the prime
... |
editAreaLoader.load_syntax["scm"] = {
'DISPLAY_NAME' : 'Scheme'
,'COMMENT_SINGLE' : {1 : ';', 2:';;'}
,'COMMENT_MULTI' : {'#|' : '|#'}
,'QUOTEMARKS' : ['"']
,'KEYWORD_CASE_SENSITIVE' : false
,'KEYWORDS' : {
'symbols' : [
'*', '+', '-', '...', '/', '<', '<=', '>=', 'abs', 'acos',
... |
document.addEventListener('DOMContentLoaded',function(){
// var data = {
// list: [
// {name:' guokai', show: true},
// {name:' benben', show: false},
// {name:' dierbaby', show: true},
// {age:'123'}
// ],
// blah: [
// {num: 1},
// {num: 2},
// {num:... |
version https://git-lfs.github.com/spec/v1
oid sha256:60c4151a84bbab8127be57222ba3679f88d5c6a5012a8615c5f29edcb8bad0b4
size 1707
|
import ajax from './ajax';
export default (url) => {
return ajax( url, '' )
.then( ( str ) => JSON.parse( str ) );
}; |
'use strict';
var originalMobile = typeof Mobile === 'undefined' ? undefined : Mobile;
var mockMobile = require('../lib/MockMobile');
var net = require('net');
var tape = require('../lib/thaliTape');
var ThaliTCPServersManager = require('thali/NextGeneration/mux/thaliTcpServersManager');
var makeIntoCloseAllServer = r... |
'use strict';
/**
* @ngdoc overview
* @name cpsClientApp
* @description
* # cpsClientApp
*
* Main module of the application.
*/
angular
.module('cpsClientApp', [
'cpsClientApp.services',
'ngAnimate',
'ngCookies',
'ngResource',
'ngSanitize',
'ngTouch',
'ui.bootstrap',
'ui.grid',... |
var init = require('../base/init');
var error = require('../base/error');
var expb = require('../express/express-base');
var userb = require('../user/user-base');
expb.core.get('/api/users/:id([0-9]+)', function (req, res, done) {
var id = parseInt(req.params.id) || 0;
var user = res.locals.user
userb.getCached(... |
(function (root, factory) { // UMD from https://github.com/umdjs/umd/blob/master/returnExports.js
"use strict";
if (typeof exports === 'object') {
module.exports = factory();
} else {
define(factory);
}
}(this, function () {
"use strict";
// Author: Matthew Forrester <matt_at_keyboardwritescode.com>
// Copyr... |
import React from 'react';
import classNames from 'classnames';
const DialogContentSection = ({ className, noMargin, title, last, children, style, rootStyles = {} }) => {
const styles = {
title: {
color: '#aaa',
fontSize: 11,
textTransform: 'uppercase'
}
};
const rootClassName = classN... |
/**
* Created by ralphy on 29/03/17.
*/
/**
* this spell will permanantly increase player fire power
* by 10 points
* @class MANSION.SPELLS.PermaPower
*/
O2.createClass('MANSION.SPELLS.PermaPower', {
run: function(g) {
var ePerma = new Effect.PermaBonus('power');
var p = g.oLogic.getPlayerSou... |
import Ember from 'ember';
import RequestMixin from '../mixins/request';
export default Ember.Route.extend(RequestMixin, {
model() {
return this.request({
url: 'http://reqr.es/api/users',
type: 'GET',
data: {}
})
.then((res) => res.data);
}
});
|
// Test setup
///////////////////////////////////////
var specs = require("../../SpecHelpers");
//specs.debug();
specs.ensureWindow();
specs.ensureNamespace("ExoWeb.Model");
//require("../../../src/base/core/Activity");
//require("../../../src/base/core/Function");
//require("../../../src/base/core/Functor");
//requi... |
import createEggUnits from './eggs';
import createButterUnits from './butter';
export default repository => {
createEggUnits(repository);
createButterUnits(repository);
} |
'use strict';
var defaultEnvConfig = require('./default');
module.exports = {
db: {
//uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev',
uri: 'mongodb://admin:n0rth725@apollo.modulusmongo.net:27017/uqIq2ina',
op... |
'use strict';
/**
* This 'registered' action acknowledge that the server has registered the user
* @param client
*/
module.exports = function(client) {
client.emit('registered');
};
|
import React from "react"
import { graphql } from "gatsby"
import Helmet from "react-helmet"
import Layout from "../components/layout"
import presets, { colors } from "../utils/presets"
import { rhythm, options } from "../utils/typography"
import { WebpackIcon, ReactJSIcon, GraphQLIcon } from "../assets/logos"
import {... |
module.exports = {
theme: {
},
variants: {},
plugins: []
}
|
(function() {
'use strict';
angular
.module('jhbookz')
.config(compileServiceConfig);
compileServiceConfig.$inject = ['$compileProvider','DEBUG_INFO_ENABLED'];
function compileServiceConfig($compileProvider,DEBUG_INFO_ENABLED) {
// disable debug data on prod profile to improve... |
version https://git-lfs.github.com/spec/v1
oid sha256:e33f1e0b0b9b38b5649aa36f088b24b87dce7496e7f39d32c4422c81b29f1864
size 1614475
|
var CILJS = require("../CilJs.Runtime/Runtime");
var asm1 = {};
var asm = asm1;
var asm0 = CILJS.findAssembly("mscorlib");
asm.FullName = "IsInstDelegate.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* TResult FuncX`2.Invoke(T)*/
asm.x6000002 = CILJS.delegateInvoke;;/* System.IAsyncResult FuncX`2.... |
export default {
Currency: '货币',
Amount: '金额',
Balance: '余额',
Deposit: '储值卡',
Type: '类型',
Default: '默认',
'Income Record': '收支记录',
Credit: '积分',
Withdraw: '提现',
Note: '备注',
Actions: '操作',
Reject: '拒绝',
Accept: '接受',
'Accept Withdraw': '接受提现',
'Reject Withdraw': '拒绝提现',
'Reject Reason': '拒... |
'use strict';
module.exports = function (value) {
return `${value}%`;
};
|
'use strict';
module.exports = {
db: 'mongodb://localhost/gadgetboy-dev',
app: {
title: 'gadgetboy - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || '750701491722559',
clientSecret: process.env.FACEBOOK_SECRET || '0678f654f3f4e001fea07e3af7e53d44',
callbackURL: '/api/auth/faceb... |
version https://git-lfs.github.com/spec/v1
oid sha256:0218be47602a2c4a7b193148b0b2dea5e1bc13e3b135056a383953b48bbb39c6
size 4306
|
const _ = require('lodash');
const {
User,
Student,
Ticket,
Team,
NotificationSubscription,
} = require('../models');
const constant = require('../constants');
const populateAdmin = async () => [constant.adminScope];
const populateStudent = async (decoded) => {
const { userId } = decoded;
const student... |
//Copied from test.js in node-hpka
var http = require('http');
var hpka = require('hpka');
var fs = require('fs');
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
//In-memory list of registered users and sessions
var userList = {};
var sessions = {};
var httpPor... |
import feathers from 'feathers/client';
import socketio from 'feathers-socketio/client';
import hooks from 'feathers-hooks';
import io from 'socket.io-client';
import auth from 'feathers-authentication/client';
import decode from 'jwt-decode';
import rxjs from 'rxjs';
import rx from 'feathers-reactive';
const host = '... |
define([
'../util/Class',
'./BaseView',
'../util/Helper',
'../util/DomEvent'
], function (Class, BaseView, helper, DomEvent) {
"use strict";
var protectedAttrs = ['addChild', 'set', 'get', 'attachTo', 'detach', '_addProtectedAttribute',
'style', 'resize', 'on', 'off', 'once', 'focus', 'b... |
exports.randeats = function(req, res){
var key = req.query.key;
var location = encodeURIComponent(req.query.location);
var radius = 16000;
var sensor = false;
var types = "restaurant";
var keyword = "fast";
var https = require('https');
var url = "https://maps.googleapis.com/maps/api/place/nearbysearc... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
autoIncrement = require('mongoose-auto-increment');
autoIncrement.initialize(mongoose);
/**
* Parameters Schema
*/
var ParametersSchema = new Schema({
_id: {type: String},
name: { type: String, r... |
module.exports = function (kingo, student) {
it('.getRegistrations', function (done) {
kingo.getRegistrations(function (error, registrations) {
var registration = registrations.pop();
registration.should.have.property('行政班级', student.className);
registration.should.have.property('院(系)/部', stude... |
const initialState = {
login: false,
authorization: false
};
const OPEN_POPUP_AUTHORIZATION = 'OPEN_POPUP_AUTHORIZATION';
const OPEN_POPUP_LOGIN = 'OPEN_POPUP_LOGIN';
const CLOSE_POPUP = 'CLOSE_POPUP';
export function openLogin() {
return {
type: OPEN_POPUP_LOGIN
}
}
export function openAuthorization() {
retur... |
import Ember from 'ember';
import distance from 'npm:@turf/distance';
import helpers from 'npm:@turf/helpers';
import booleanContains from 'npm:@turf/boolean-contains';
import area from 'npm:@turf/area';
import intersect from 'npm:@turf/intersect';
import { getLeafletCrs } from '../utils/leaflet-crs';
import html2canva... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.