code stringlengths 2 1.05M |
|---|
const path = require('path');
module.exports = {
context: path.resolve(__dirname, './src'),
entry: {
content: './content.js',
insertVotes: './insertVotes.js',
},
output: {
path: path.resolve(__dirname, './dist'),
filename: '[name].bundle.js',
},
};
|
"use strict";
/**
* @fileoverview events handling from central columns page
* @name Central columns
*
* @requires jQuery
*/
/**
* AJAX scripts for /database/central-columns
*
* Actions ajaxified here:
* Inline Edit and save of a result row
* Delete a row
* Multiple edit and delete option
*... |
'use strict';
var React = window.React = require('react'),
attachFastClick = require('fastclick'),
House = require('./views/house'),
mountNode = document.getElementById('app');
var HouseApp = React.createClass({
getInitialState: function() {
return {items: [], text: ''};
},
componentDidMount: fu... |
import chai from 'chai'
import {startQuestionnaire} from '../../../helpers'
import GeographicMarkets from '../../../pages/surveys/ukis/geographic-markets.page.js'
import SignificantEvents from '../../../pages/surveys/ukis/significant-events.page.js'
import GeneralBusinessInformationCompleted from '../../../pages/surve... |
// ConfirmationModal
// ---------------------------------
//
// A simple modal for simple confirmation dialogs
BackboneBootstrapModals.ConfirmationModal = BackboneBootstrapModals.BaseModal.extend({
confirmationEvents: {
'click #confirmation-confirm-btn': 'onClickConfirm',
'keypress .modal-body': '... |
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
name: 'travis-web',
vcs_name: 'travis-web',
github_language: 'ruby',
active: true,
active_on_org: false,
email_subscribed: true,
migration_status: null,
owner_name: 'travis-ci',
owner: Object.freeze({
login: 'travis-ci... |
var PBSyntaxHighlighter = ( function() {
"use strict";
var sh;
/**
* Constructor
* @param {String} sh The SyntaxHighlighter
*/
function PBSyntaxHighlighter(sh) {
switch(sh) {
case "HIGHLIGHT" :
this.sh = HIGHLIGHT;
break;
... |
System =
{
_cycle: null,
_startCycle: function()
{
this._cycle = setInterval("System.Queue.walk()",1);
},
_stopCycle: function()
{
clearInterval(this._cycle);
},
_initialize: function()
{
// start the cycle
this._startCycle();
// set the document monitor
... |
/*
* @Author: Matteo Zambon
* @Date: 2017-01-11 00:31:57
* @Last Modified by: Matteo Zambon
* @Last Modified time: 2017-01-11 00:39:42
*/
'use strict'
const routes = require('./routes')
module.exports = {
init: (app) => {
// const swagger = app.services.SwaggerService.stripe
},
addRoutes: app => {
... |
export { default } from './DataUploadContainer';
|
module.exports = {
options: function(method, options, keys, stream) {
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!options || !options[key]) {
stream.emit('error', new Error('#' + method + ': options.' + key + ' was not provided.'));
stream.push(null);
return... |
// This THREEx helper makes it easy to handle the fullscreen API
// * it hides the prefix for each browser
// * it hides the little discrepencies of the various vendor API
// * at the time of this writing (nov 2011) it is available in
// [firefox nightly](http://blog.pearce.org.nz/2011/11/firefoxs-html-full-scre... |
import isEqual from "../is-equal"
import fromPolyline from "./index"
test("should get the corresponding path from the SVG polyline node", () => {
const node = document.createElement("polyline")
node.setAttribute("points", "0 0 100,100 150-150 5e-14-4")
const test = fromPolyline(node)
const expected = "M0 0L1... |
const destDirProd = '';
const destDirDev = 'build/';
const isDev = process.argv[2] !== 'publish';
const destDir = isDev ? destDirDev : destDirProd;
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
dev: {
src: [ `... |
function solution(A) {
var sum = 0;
var i;
var len = A.length;
for (i = 0; i < len; i++) {
sum += A[i];
}
return (len+1) / 2 * (len+2) - sum;
}
|
import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib'
/**
* A message can contain a content.
*/
function MessageContent(props) {
const { children, className, content } = props
const classes... |
import React, {Component} from 'react';
import Nav from '../components/layout/Nav.js';
import Footer from '../components/layout/Footer.js';
import Header from '../components/layout/Header.js';
import Gramventures from '../components/layout/Gramventures.js';
import Voting from '../components/layout/Voting.js';
impor... |
//backyard 1
/*!
* coloursave v3 (130919)
*/
/**
* Posílátko pro libovolný element, který umožňuje držet uživatelem zadávaný obsah.
* Pošle při defocus/změně jeho obsah s´případně s kontextem na definované API URL.
* S tím, že automaticky mění barvu podle stavu odesílání.
*
* All class="coloursave" must have `n... |
import {routes} from "./routes/dashboard-routes";
require('./bootstrap');
require('es6-promise').polyfill();
import Vue from 'vue';
import BootstrapVue from 'bootstrap-vue';
import VueRouter from 'vue-router';
import MainPage from './components/newsfeed/MainPage.vue'
Vue.use(BootstrapVue);
Vue.use(VueRouter)
co... |
/* eslint-disable no-console */
const chalk = require('chalk');
const ip = require('ip');
const divider = chalk.gray('\n-----------------------------------');
/**
* Logger middleware, you can customize it to make messages more personal
*/
const logger = {
// Called whenever there's an error on the server we w... |
const { assert, skip, test, module: describe } = require('qunit');
const { GPU } = require('../../src');
describe('issue #130');
function typedArrays(mode) {
const gpu = new GPU({ mode });
const kernel = gpu.createKernel(function(changes) {
return changes[this.thread.y][this.thread.x];
})
.setOutput([2, ... |
function Paint (container, settings) {
this.eventHandlers = {};
this.settings = this.utils.merge(this.utils.copy(settings), this.defaultSettings);
this.container = container;
this.boundingBoxList = [];
this.scale = [1, 1]; // Used for horizontal and vertical mirror
this.rotation = 0; // Rotation in degrees
t... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
import GoogleMap from '../components/google_map'
//npm i --save react-sparklines@1.6.0
class WeatherList extends Component {
renderWeather(cityData){
const name = cityData.city.name... |
/**
* A set of functions that can be deployed to transcribe audio files to speech
*
* Note: these examples are overly verbose for demonstration purposes.
* A real application should not use console.log this liberally.
*/
'use strict';
const storage = require('@google-cloud/storage');
const speech = require('@goo... |
/**
* @function spawnProcess
*/
'use strict'
const childProcess = require('child_process')
/** @lends spawnProcess */
async function spawnProcess (bin, args, options = {}) {
const {
suppressOut = false
} = options
return new Promise((resolve, reject) => {
const spawned = childProcess.spawn(bin, args, ... |
"use strict";
var path = require('path'),
exec = require('child_process').exec;
module.exports = function (grunt) {
grunt.registerTask('data-download', '1. Download data from iana.org/time-zones.', function (version) {
version = version || 'latest';
var done = this.async(),
src = 'ftp://ftp.iana.org/tz/tzd... |
'use strict'
function createLoggerKeyword (opts) {
const { provider, seller, path } = opts
let keyword = `${provider}_${seller}`
if (path) keyword += `_${path}`
return keyword
}
module.exports = createLoggerKeyword
|
Oshinko.when( /^I empty the text field "([^\"]+)"$/ , function (window, captures) {
Oshinko.target.delay(1);
var field = UIQuery.firstKindWithName("textFields", captures[0]);
field.setValue("");
// tap somewhere to "end editing"
window.tap();
});
|
export default {
prefix: false,
/**
* 短信发送驱动
*/
drivers: {
test: {
label: 'Test',
type: 'alaska-sms-test'
}
},
/**
* 短信签名,例如 【脉冲软件】
*/
sign: ''
};
|
const initialState = [
{
id: '1',
title: 'ReactJS for dummies',
description: 'Great book to start learning React.',
count: 2,
},
{
id: '2',
title: 'JavaScript to the rescue',
description: 'Want to know more advanced stuff about JS, must read ;)!',
count: 3,
},
{
id: '3',
... |
const _ = require('underscore');
const DrawCard = require('../../../drawcard.js');
class OldWyk extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onChallenge: (event, challenge) => (
challenge.attackingPlayer === this.controller &&
... |
/**
* Created by jtun02 on 15/4/22.
*/
var Q = (function() {
var qs = (location.search.length > 0 ? decodeURIComponent(location.search.substring(1)) : '');
var args = {};
var items = qs.split('&');
var item = null,
key = null,
value = null;
for (var i = 0; i < items.length; i +... |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
* ... |
var searchData=
[
['initial',['initial',['../struct_score.html#a5d149221823e63acce30b844db826c68',1,'Score']]],
['intromenu',['IntroMenu',['../class_intro_menu.html',1,'IntroMenu'],['../class_intro_menu.html#ae34d394e4b9c966f44edb891c567a879',1,'IntroMenu::IntroMenu()']]],
['intromenu_2ecpp',['intromenu.cpp',['..... |
'use strict';
angular.module('copayApp.controllers').controller('topUpController', function($scope, $log, $state, $timeout, $ionicHistory, $ionicConfig, lodash, popupService, profileService, ongoingProcess, walletService, configService, platformInfo, bitpayService, bitpayCardService, payproService, bwcError, txFormatS... |
var config = require("./config.json");
var currentSong, newSong, currentAlbum;
const http = require("http");
const LastFmNode = require("lastfm").LastFmNode;
const Discord = require("discord.js");
const client = new Discord.Client();
var lastfm = new LastFmNode({
api_key: config.api_key
});
function stoppedPlay... |
version https://git-lfs.github.com/spec/v1
oid sha256:5a29985b06bccf704a9d8245673a80448eaaf090ff55eb16c3bbe8b3152286dd
size 292
|
var gulp = require('gulp');
var gutil = require('gulp-util');
var mocha = require('gulp-mocha');
var browserify = require('gulp-browserify');
var derequire = require('gulp-derequire');
var rename = require('gulp-rename');
var runSequence = require('run-sequence');
var http = require('http');
var BrowserStackTunnel = re... |
import * as ActionTypes from '../constants/ConnTypes';
const initialState = {
loading: false,
connected: false,
errorMessage: null,
};
export default function songs(state = initialState, action) {
switch (action.type) {
case ActionTypes.CONNECTING:
return {
loading: true,
connected: false,
... |
var Barrayuda;
Barrayuda = (function() {
function Barrayuda() {}
Barrayuda.properties = function(options) {
var luckySide, luckyTop, luckyZ;
luckyTop = Math.floor(Math.random() * (400 - 0)) + 0;
luckySide = Math.floor(Math.random() * (options["size"] - 0)) + 0;
luckyZ = Math.floor(Math.random() * ... |
import { Geometry, Vector2 } from "../geometry";
import { Tool } from "./Tool";
import { generateActionId } from "../Actions";
import simplify from "simplify-js";
import { PenDrawing } from "../drawing_objects";
export class DrawTool extends Tool {
constructor(manager) {
super(manager);
this.pointBuffer = [... |
import React from 'react';
import PropTypes from 'prop-types';
import ReduxToastr from 'react-redux-toastr';
import Header from './../header/header';
import Footer from './../../components/footer/footer.jsx';
const App = props => {
const { children } = props;
return (
<div className="App">
<Header />
... |
import { $isAsync, $async, $await, $iteratorSymbol } from '../generate/async.macro'
import { $ensureIterable } from './internal/$iterable'
import map from './map'
$async; function * $zipAll (...iterables) {
const iters = iterables.map(arg => $ensureIterable(arg)[$iteratorSymbol]())
const itersDone = iters.map(ite... |
import assert from 'minimalistic-assert';
import { nameRegex } from './Primitive';
/**
* Constructs a new primitive from a serialized value.
*/
export default class Derivation {
/**
* @param {String} name - A title for the new type.
* @param {Primitive} primitive - Something to derive from.
* @param {... |
var bnf = {
// For type annotations
"type": [
["IDENTIFIER optTypeParamList", "$$ = new yy.TypeName($1, $2);"],
["FUNCTION ( optTypeFunctionArgList )", "$$ = new yy.TypeFunction($3);"],
["GENERIC", "$$ = new yy.Generic($1);"],
["[ type ]", "$$ = new yy.TypeArray($2);"],
[... |
import React, { Component } from 'react'
import { Button } from 'stardust'
export default class ButtonFloatedExample extends Component {
render() {
return (
<div>
<Button className='right floated'>Right Floated</Button>
<Button className='left floated'>Left Floated</Button>
</div>
... |
var Store = {
adp: [],
franchises: {},
players: {},
league: {}
};
module.exports = Store;
|
const csound = require('bindings')('csound-api.node');
const stringify = require('json-stable-stringify');
const Csound = csound.Create();
const ASTRoot = csound.ParseOrc(Csound, `
0dbfs = 1
giFunctionTableID ftgen 0, 0, 16384, 10, 1
instr A440
outc oscili(0.5 * 0dbfs, 440, giFunctionTableID)
endin
`);
//... |
module.exports = [
{
startDate: '04-01-2021',
endDate: '31-01-2021',
totalCases: 215,
totalPoints: 13523,
availablePoints: 16191,
contractedHours: '290.3',
hoursReduction: '14.9',
cmsPoints: -99,
gsPoints: 0,
armsTotalCases: 0,
paromsPoints: 228,
sdrPoints: 0,
sdrCo... |
import React, { Component } from 'react/addons';
import DrawerTransitionGroupChild from './DrawerTransitionGroupChild';
const { TransitionGroup } = React.addons;
class DrawerTransitionGroup extends Component {
render() {
return <TransitionGroup {...this.props} childFactory={this.wrapChild} />;
}
wrapChild(... |
import React from 'react';
const Order = () => {
return (
<div className='method-order'>
<p className='method-order__description'>
Common convention for what the order should be for methods in ES6 React components.
</p>
<ol className='method-order__list'>
<li className='method-o... |
/**
* Expose the getUserMedia function.
*/
module.exports = getUserMedia;
/**
* Dependencies.
*/
var
debug = require('debug')('iosrtc:getUserMedia'),
debugerror = require('debug')('iosrtc:ERROR:getUserMedia'),
exec = require('cordova/exec'),
MediaStream = require('./MediaStream'),
Errors = require('./Errors'... |
// Generated by CoffeeScript 1.9.1
(function() {
var bcv_parser, bcv_passage, bcv_utils, root,
hasProp = {}.hasOwnProperty;
root = this;
bcv_parser = (function() {
bcv_parser.prototype.s = "";
bcv_parser.prototype.entities = [];
bcv_parser.prototype.passage = null;
bcv_parser.prototype.re... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.mobilePlaybackVolumeSelector = exports.playbackVolumeSelector = exports.canSkipSelector = exports.isCurrentDJSelector = exports.djSelector = exports.mediaProgressSelector = exports.timeRemainingSelector = exports.timeElapsedSelector... |
'use strict'
const path = require('path')
const { babel } = require('@rollup/plugin-babel')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
const banner = require('./banner.js')
const BUNDLE = process.env.BUNDLE === 'true'
const ESM = process.env.ESM === 'true'
let fileDest = `bootstrap${ESM ? '.esm' ... |
// allow content script access to user prefs for this extension
chrome.extension.onRequest.addListener(
function(request, sender, sendResponse) {
if (request.cmd == "get_prefs")
sendResponse({
hostlist: localStorage.hostlist || ''
});
else
sendResponse({}); // snub them.
}); |
var COMPLIANCE_APPLICANT = '__COMPLIANCE_APPLICANT__'
var applicant = require('__COMPLIANCE_APPLICANT__')
|
import React from 'react'
import TestRenderer from 'react-test-renderer'
import Image from './Logo.js'
const sizes = {
small: { width: 18, height: 18 },
medium: { width: 24, height: 24 },
large: { width: 36, height: 36 },
extralarge: { width: 48, height: 48 }
}
describe('Logo.svg generated styled component', ... |
function resultState(state) {
return { state: state }
}
module.exports = resultState
|
import * as React from 'react';
import { expect } from 'chai';
import { act, createRenderer, fireEvent } from 'test/utils';
import MenuItem from '@mui/material/MenuItem';
import Select from '@mui/material/Select';
import Dialog from '@mui/material/Dialog';
import FormControl from '@mui/material/FormControl';
import Inp... |
// helper method to load js files
// thanks to http://stackoverflow.com/questions/650377/javascript-rhino-use-library-or-include-other-scripts
var importLibrary = function(property) {
var jsFile = project.getProperty(property);
var fileReader = new java.io.FileReader(jsFile);
var fullRead = org.apache.tools.ant.u... |
/**
* Section model events
*/
'use strict';
var EventEmitter = require('events').EventEmitter;
var Section = require('./section.model');
var SectionEvents = new EventEmitter();
// Set max event listeners (0 == unlimited)
SectionEvents.setMaxListeners(0);
// Model events
var events = {
'save': 'save',
'remove'... |
/*
* Copyright (c) 2016-17 Francesco Marino
*
* @author Francesco Marino <francesco@360fun.net>
* @website www.360fun.net
*
* This is just a basic Class to start playing with the new Web Bluetooth API,
* specifications can change at any time so keep in mind that all of this is
* mostly experimental! ;)
*
* Ch... |
import { UrlUtil } from './UrlUtil'
export class Effects {
constructor () {
this.bindHighlight()
}
// if a var highlight exists in the url it will be highlighted
bindHighlight () {
// get highlight from url
const highlightId = UrlUtil.getGetValue('highlight')
// id is set
if (highlightId ... |
//compute Async real
function heavyCompute(n){
var count = 0,
i, j;
for (i = n; i > 0; --i) {
for (j = n; j > 0; --j) {
count += 1;
}
}
}
var t =new Date();
setTimeout(function(){
console.log(new Date() -t);
} ,1000);
heavyCompute(50000); |
8.0-alpha2:2647350694960ffc321b0f2f1631f7a744f6dc7d85cb5512d8edb41f97afab78
8.0-alpha3:2647350694960ffc321b0f2f1631f7a744f6dc7d85cb5512d8edb41f97afab78
8.0-alpha4:2647350694960ffc321b0f2f1631f7a744f6dc7d85cb5512d8edb41f97afab78
8.0-alpha5:2647350694960ffc321b0f2f1631f7a744f6dc7d85cb5512d8edb41f97afab78
8.0-alpha6:26473... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actions from '../actions/index';
import Admin from '../../components/Admin/index.jsx';
// include actions as they are needed by each component
// they are called via disp... |
import actionTypes from 'constants/action-types';
const initialState = {
collection: [],
loading: false,
error: {}
};
export default function reducer(state = initialState, action) {
switch (action.type) {
case actionTypes.LANGUAGES_FETCH_REQUEST:
return {
...state,
loading: true
... |
require(
{
baseUrl: chrome.extension.getURL('/'),
paths: {
backbone: 'vendors/backbone.min',
underscore: 'vendors/lodash.custom.min',
jquery: 'vendors/jquery-2.1.4.min',
bluebird: 'vendors/bluebird.min',
moment: 'vendors/moment.min'... |
// ------------------------------------------------------------------------------------------- //
// ----------------------------------------- Schema ----------------------------------------- //
// ------------------------------------------------------------------------------------------- //
SimpleSchema.extendOption... |
import React,{Component} from 'react'
import {HashRouter,Route,Switch} from 'react-router-dom'
import Root from './components/base/root'
export default () => {
return (
<HashRouter>
<div>
<Switch>
<Route path="/" component={Root}/>
</Switch>
</div>
</HashRouter>
)
}
|
Martin._version = '0.4.2';
|
#!/usr/bin/env node
'use strict'
const localWebServer = require('../')
const cliOptions = require('../lib/cli-options')
const commandLineArgs = require('command-line-args')
const ansi = require('ansi-escape-sequences')
const loadConfig = require('config-master')
const path = require('path')
const os = require('os')
con... |
map = null;
directionsDisplay = null;
directionsService = null;
pointsArr = new Array();
drawPath = function drawPath() {
if (pointsArr.length >= 2) {
var origen = pointsArr[0];
var destino = pointsArr[pointsArr.length - 1];
var waypointsArr = new Array();
//if (pointsAr... |
import BaseSerializer from './application';
export default BaseSerializer.extend({
}); |
/**
* @name SearchSource
*
* @description A promise-based stream of search results that can inherit from other search sources.
*
* Because filters/queries in Kibana have different levels of persistence and come from different
* places, it is important to keep track of where filters come from for when they are sav... |
'use strict';
const db = require('../config/connection');
function Product() {
this.list = function (query, res) {
let count = 0;
let where = '';
if (query.search) {
where = " where name like '%" + query.search + "%'";
}
db.one('select count(*) from product' + wh... |
import r from 'restructure';
export default new r.Pointer(
r.uint32le,
new r.String(null, 'utf8'),
{
type: 'global',
relativeTo: 'parent.stringBlockOffset'
}
);
|
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.employee',
'myApp.employeesList',
'myApp.assetsList',
'myApp.createChecklist',
'myApp.editChecklist',
'myApp.version',
'myApp.login',
'myApp.services',
'myApp.directives',
'myApp.todo... |
export {GeneTransformer} from './data/geneTransformer';
export * from './renderer';
|
var fs = require('fs'),
path = require('path'),
request = require('request');
var filePath = path.join(__dirname, 'start.html'),
previousOutput = 0;
try {
// input/output with respect to the lua script.
var output = parseInt(fs.readFileSync('output.txt'), 10);
} catch (err) {
console.error(err);
}
... |
(function() {
loadOptions();
buttonHandler();
})();
function buttonHandler() {
var $submitButton = $('#submitButton');
$submitButton.on('click', function() {
console.log('Submit');
var return_to = getQueryParam('return_to', 'pebblejs://close#');
document.location = return_to + encodeURIComponent(JSON.stri... |
/*jshint loopfunc: true */
var debug = require('debug')('l2cap-ble');
var events = require('events');
var spawn = require('child_process').spawn;
var util = require('util');
var ATT_OP_ERROR = 0x01;
var ATT_OP_MTU_REQ = 0x02;
var ATT_OP_MTU_RESP = 0x03;
var ATT_OP_... |
app.factory("GetDataService", ['$http',
function ($http) {
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
$http.defaults.transformRequest = function(data) {
return data != undefined ? $.param(data) : null;
}
var obj = {};
obj.get =... |
'use strict';
const ui = new WebUIWindow('chat', 'package://chat/ui/index.html', new Vector2(Math.round(jcmp.viewportSize.x * 0.3), 320));
ui.autoResize = true;
// Gets overridden by the server anyway
let MAX_MESSAGE_LENGTH = 1024;
jcmp.events.AddRemoteCallable('chat_message', (msg, r, g, b) => {
jcmp.ui.CallEvent... |
/* eslint-disable */
/* global MessageBus, bootbox */
import Repo from "manager-client/models/repo";
import Controller from "@ember/controller";
import { equal } from "@ember/object/computed";
import { computed } from "@ember/object";
export default Controller.extend({
output: null,
init() {
this._super();
... |
Kojak.Config = {
// enums / constants
CURRENT_VERSION: 1,
AUTO_START_NONE: 'none',
AUTO_START_IMMEDIATE: 'immediate',
AUTO_ON_JQUERY_LOAD: 'on_jquery_load',
AUTO_START_DELAYED: 'delayed',
_LOCAL_STORAGE_KEY: 'kojak',
_LOCAL_STORAGE_BACKUP_KEY: 'kojak_backup',
load: function () {
... |
import messageTypes from 'ringcentral-integration/enums/messageTypes';
export default {
title: "消息",
search: "搜索...",
composeText: "编辑短信",
noMessages: "无消息",
noSearchResults: "未找到匹配记录",
[messageTypes.all]: "全部",
[messageTypes.voiceMail]: "语音",
[messageTypes.text]: "短信",
[messageTypes.fax]: "传真"
};
//... |
Template.musicstandmenu.helpers({
setsSelector: {
collection: sets,
displayTemplate: 'musicstandSetDisplay',
fields: [{field: 'title', type: String}],
sort: [['title', 'asc']],
addbutton: false
}
});
|
import { getLocaleInfo } from './info';
export default function numberSymbols(locale) {
var info = getLocaleInfo(locale);
return info.numbers.symbols;
}
//# sourceMappingURL=number-symbols.js.map
|
'use strict';
angular.module('CST.version.interpolate-filter', [])
.filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}]);
|
BASE.require([
], function () {
BASE.namespace("app.properties");
app.properties.TouchInput = function () {
this["@class"] = "app.properties.TouchInput";
this.type = "touch-input";
this.x = 0;
this.y= 0;
this.isTouching = false;
};
});
|
/* eslint-env jest */
import {
createEntitiesSelectors,
} from './selectors';
const constant = x => () => x;
describe('Test selectors - legacy api', () => {
let testContext;
beforeEach(() => {
testContext = {};
});
beforeEach(() => {
testContext.selectors = createEntitiesSelectors('collection');
... |
var five = require('johnny-five');
var plane = require('./plane');
var config = require('../config');
var state = 'waiting';
var board, paintMotor;
module.exports = {
init: function() {
if (config.arduino) {
board = new five.Board();
board.on('ready', this.onBoardReady);
}
},
onBoardReady: ... |
/* eslint-env jest */
const childProcess = require('child-process-promise')
exports.realCli = function (args, env) {
return childProcess.spawn('node', ['bin/scriptfodder-publish.js', ...args], {
capture: [ 'stdout', 'stderr' ],
env
})
}
class ProcessExitError {
constructor (code) {
this.code = code... |
export default function (app) {
return {
configure: function (router) {
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('index', {title: 'Express'});
});
return router;
}
};
};
|
function authenticating(options) {
return requesting({
method: 'POST',
path: '/auth/authenticate/' + options.user,
versionRange: '0.1.0',
body: JSON.stringify({
pass: options.pass
})
})
.then(function (result) {
return {
token: result.t... |
import {types as tt} from "./tokentype"
import {Parser} from "./state"
import {lineBreak, skipWhiteSpace} from "./whitespace"
import {isIdentifierStart, isIdentifierChar} from "./identifier"
import {has} from "./util"
import {DestructuringErrors} from "./parseutil"
const pp = Parser.prototype
// ### Statement parsing... |
Lexicon.add('dregus/alchemist/TrainAlchemy1', {
layout: 'event',
gained: [
{ skill:'alchemy' },
],
lost: [
{ currency:true, count:100 },
],
links: [
{ name:'Complete', action:'event:complete' },
],
body:[
{ tag:"p", text:"Proctor motions for you to follow him upstairs into the tower, a... |
import test from 'ava';
import request from 'supertest';
import { checkArrayLength, checkFail, checkSuccess } from './helpers/general';
const PORT = process.env.PORT || 3500;
const api = request(`http://0.0.0.0:${PORT}`);
test('testing for failure on invalid height', async t => {
const res = await api
.get('/no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.