code stringlengths 2 1.05M |
|---|
describe("Tests existence of family tree", function(){
it("Family tree exists", function(){
expect(familyTree).toBeTruthy();
});
it("Family tree contains 14 members", function(){
expect(familyTree.members.length).toBe(14);
});
});
describe("Tests creation and associations of people", function(){
var nancy = ... |
import config from '../config'
import server from '../server/main.js'
import _debug from 'debug'
const debug = _debug('app:bin:server')
const port = config.server_port
const host = config.server_host
server.listen(port)
debug(`Server is now running at http://${host}:${port}.`)
debug(`Server accessible via localhost:$... |
function DateFormat( d ) {
if ( d < 3600 ) {
return d / 60 + " mins"
} else if ( d < 3600 * 24 ) {
return d / 3600 + " hours";
} else {
return d / ( 3600 * 24 ) + " days";
}
}
var typeRaffle = [ "Public Raffle", "Secret Link", "Secret Link & Password",
"My Friend ... |
// Page specific js code
/*global
msos: false,
jQuery: false,
Modernizr: false
*/
msos.provide("demo.siteos.detect");
msos.require("msos.detection");
msos.require("msos.site.detect");
msos.require("msos.browser");
// Don't translate these...
msos.config.google.no_translate.by_id =
msos.config.google.no_... |
//此check()函式在最後的「傳送」案鈕會用到
function check()
{
//若<form>屬性name值為reg裡的文字方塊值為空字串,則顯示「未輸入姓名」
if(reg.key.value == "")
{
alert("未輸入股票代碼");
}
// //若<form>屬性name值為reg裡的文字方塊與下拉式選單值為空字串或是沒有選擇月或日,則顯示「未輸入完整生日日期」
// else if(reg.year.value == "" || reg.month.value == "00" || reg.day.value == "00")
// ... |
var includes = require('../');
var test = require('tape');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st.throws(includes.bind(null, undefined, 'a'), TypeError, 'undefined is not an object');
st.throws(includes.bind(null, null, 'a'), TypeError, 'null is not an object');
s... |
var mongo = require('mongodb');
var RouteBase = require('./route-base');
var _ = require('underscore');
var Place = function(app, db, middleware) {
RouteBase.call(this, app, db, middleware, this.modelName, this.backboneModelPath);
};
_.extend(Place.prototype, RouteBase.prototype, {
modelName: 'places',
backboneM... |
'use strict';
require.config({
paths: {
angular: '../lib/angular/angular.min',
ngCookies: '../lib/angular/angular-cookies.min',
upload: '../lib/upload/angular-file-upload.min',
uploadShim: '../lib/upload/angular-file-upload-shim.min',
ngSanitize: '../lib/angular/angular-sanitize',
breadcrumbs: '../lib/ang... |
export default function Ear(v0, v1, v2) {
return [v0, v1, v2];
} |
var request = require('request');
//新增
request.post({
url: 'http://127.0.0.1:3000/classify/add',
form: {
"description": "添加数据,父级",
"parent": "57221816fde0e2f818cbce61",
"other_data": "other data"
}
}, function(err, res, body) {
console.log(body);
});
|
$(function() {
// 开始结束时间
var dates = $("#start,#end");
dates.datepicker({
dateFormat: "yy-mm-dd",
minDate: new Date(),
onSelect: function(selectedDate){
var option = this.id == "start" ? "minDate" : "maxDate";
dates.not(this).datepicker("option", option, selected... |
// Amazon s3-based backend for uploadfs. See also
// local.js.
var fs = require('fs');
var knox = require('knox');
var extname = require('path').extname;
var contentTypes;
var client;
var https;
var bucket;
var self = module.exports = {
init: function(options, callback) {
client = knox.createClient(options);
... |
'use strict';
/* eslint-disable no-unused-vars */
const readFile = require('fs').readFileSync;
const writeFile = require('fs').writeFileSync;
const should = require('should');
const cli = require('../lib');
const pathJoin = require('path').join;
const pathSeparator = require('path').sep;
const packageName = require('.... |
/* eslint no-console:0 */
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//... |
function HTMLActuator() {
this.tileContainer = document.querySelector(".tile-container");
this.scoreContainer = document.querySelector(".score-container");
this.bestContainer = document.querySelector(".best-container");
this.messageContainer = document.querySelector(".game-message");
this.score = 0;
... |
class imekeyeventhandler1041_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
... |
var Monitor = require('../../models/Monitor.js');
function monitorAction (req, res) {
function success () {
res.redirect('/monitor');
}
function fail () {
res.send(500);
}
switch (req.body.action) {
case 'delete':
Monitor
.remove(req.body.selected)
.then(success, fail);
break;
default:
succes... |
import React, {PropTypes} from 'react'
import _ from 'lodash'
export class KeyPressInput extends React.Component {
static propTypes = {
header: PropTypes.object.isRequired,
queryChange: PropTypes.func.isRequired
}
handleChange(ev) {
const { header } = this.props
this.props.queryChange(header, e... |
import {Observable} from 'rxjs'
export const createSocketIoChannel = requestTransform => socket => {
const $data = Observable.fromEvent(socket, 'data')
requestTransform($data).subscribe(data => socket.emit(data))
}
|
function dist2(p1, p2) {
var dx = p1[0] - p2[0];
var dy = p1[1] - p2[1];
return dx * dx + dy * dy;
}
window.onload = function() {
var canvas = document.getElementById("canvas");
va... |
//! moment-holiday.js locale configuration
//! locale : UK
//! author : Kodie Grantham : https://github.com/kodie
//! locale-author: DMCooper : https://github.com/SilentGamelan
//
/* regions :
EN : England
SL : Scotland
WL : Wales
NI : Northern Island
*/
(function() {
var moment = (typeof req... |
/* eslint-disable */
/** pulled from remark-parse
*
* critical change is that blockquotes require a newline to be continued, see
* the `if(!prefixed) conditional
*/
'use strict'
var trim = require('trim')
var interrupt = require('remark-parse/lib/util/interrupt')
module.exports = blockquote
var lineFeed = '\... |
import Icon from '../components/Icon.vue'
Icon.register({"firefox":{"width":1792,"height":1792,"paths":[{"d":"M903 1792q-283 0-504.5-150.5t-329.5-398.5q-58-131-67-301t26-332.5 111-312 179-242.5l-11 281q11-14 68-15.5t70 15.5q42-81 160.5-138t234.5-59q-54 45-119.5 148.5t-58.5 163.5q25 8 62.5 13.5t63 7.5 68 4 50.5 3q15 5 ... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var stripeCustomer = require('./plugins/stripe-customer');
var secrets = require('../../config/secrets');
var timestamps = require('mongoose-timestamp');
var userSchema = new mongoose.Schema({
email: { type: St... |
define(function(require, exports, module) {
"use strict";
var cc = require("./cc");
var fn = require("./fn");
var ops = require("../common/ops");
var slice = [].slice;
// common methods
fn.defineProperty(Boolean.prototype, "copy", function() {
return this;
});
fn.defineProperty(Boolean.pr... |
module.exports = {
// the port express listens on
port: 3000,
// public address to access the server from the outside
address: 'http://localhost:3000',
// mongodb configuration
mongodb: {
host: 'localhost',
port: 27017
},
// session related information
session: {
// name of the session ... |
// The Store where all color Palette instances are stored.
Ext.define('Flux.store.Palettes', {
extend: 'Ext.data.Store',
model: 'Flux.model.Palette',
storeId: 'palettes',
requires: [
'Flux.model.Palette'
]
});
|
Ui.CanvasElement.extend('Ui.Loading', {
fill: 'black',
clock: undefined,
ease: undefined,
constructor: function(config) {
if('fill' in config) {
this.setFill(config.fill);
delete(config.fill);
}
else
this.setFill(this.fill);
this.ease = new Anim.PowerEase({ mode: 'inout' });
this.clock = new An... |
// ****************************************
// get the year(s) for each metric
// ****************************************
function getYear(m) {
switch(metricConfig[m].type) {
case 'sum': case 'normalize':
// console.log('metricConfig[m].metric = '+JSON.stringify(metricConfig[m].metric));
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (filePath) {
// Constructor
var courseZip = new _courseFileScanner2.default(filePath);
var courseFiles = courseZip.getCourseFiles();
var courseDatFiles = courseZip.getDatFiles();
// API
var unusedFil... |
import './sass/main.scss'
class Navbar {
constructor(props) {
this.navbarItems = props.navbarItems
this.sections = props.sections
this.scroll()
}
init() {
let pos = 0
// check window position and set current section
for (let i = 0; i < this.sections.length; i++) {
if (
thi... |
// Regular expression that matches all symbols in the `Takri` script as per Unicode v10.0.0:
/\uD805[\uDE80-\uDEB7\uDEC0-\uDEC9]/; |
/**
* Define constants to use throughout the application.
*/
angular.module('comrise.shared'); |
'use strict';
/**
* @ngdoc function
* @name learnAngularApp.controller:HomeCtrl
* @description
* # HomeCtrl
* Controller of the learnAngularApp
*/
angular.module('learnAngularApp')
.controller('HomeCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
]... |
// ./test/addition.test.js
/* Import modules */
// test-harness modules
var chai = require('chai');
var expect = chai.expect;
// module(s) under test
var Number = require('../src/Number.js');
/* Test logic */
describe('GIVEN: a Number x (x = 5)', function() {
describe('WHEN: Calling the function x.addition(y) (y... |
'use strict';
const path = require('path');
const coffee = require('coffee');
const helper = require('../lib/helper');
const yargs = require('yargs');
const assert = require('assert');
describe('test/my-helper.test.js', () => {
const myBin = require.resolve('./fixtures/my-helper/bin/my-helper.js');
const cwd = pa... |
import 'node-fetch';
var getRepoByUser = function(username) {
let url = `https://api.github.com/users/${username}/repos`;
return fetch(url).then(response => response.json());
};
export {getRepoByUser};
|
/**
* Created by hector on 10.11.15.
*/
'use strict';
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
//context: './src',
entry: {
CommentBox: "./src/js/components/CommentBox.js",
styleComment: './src/scss/comment.scss'
},
output: {
path... |
/* global module, require */
var config = require('../../app/config');
var co = require('co');
var r = require('rethinkdbdash')(config.rethinkdb);
module.exports = {
load: function (table, data) {
return co(function *() {
yield r.db(config.rethinkdb.db)
.table(table)
... |
/*
* get clientid first
* and get usage bytes through clientId
*/
module.exports = function()
{
var job,
init = function(_job)
{
job = _job;
return this;
},
execute = function(_data, _callback)
{
getCientId(_data,function(rs,data)
{
switch(rs)
{
case -1:
_data._result.message ="get clie... |
THREE.CSS2DObject = function ( element ) {
THREE.Object3D.call( this );
this.element = element || document.createElement( 'div' );
this.element.style.position = 'absolute';
this.addEventListener( 'removed', function () {
this.traverse( function ( object ) {
if ( object.element instanceof Element && objec... |
'use strict'
const api = module.exports = require('express').Router()
api
.get('/heartbeat', (req, res) => res.send({ok: true}))
.use('/auth', require('./auth'))
.use('/users', require('./users'))
.use('/products', require('./products'))
.use('/orders', require('./orders'))
.use('/guests', require('./gues... |
(function() {
'use strict';
/**
* @name loginCtrl
* @description Controller
*/
function ObserverFactory($http, $filter, ApiConfig) {
var cfg = ApiConfig.observer;
function getObserver(region, id){
region = $filter('regionFilter')(region);
$http.get(ApiConfig.OBSERVER_URL + cfg.urlnext + r... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('/Plugin/card', ['exports', 'jquery', 'Plugin'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('jquery'), require('Plugin'));
} else {
var mod = {
exports: {}
};
facto... |
/**
* This file is part of Wizkers.io
*
* The MIT License (MIT)
* Copyright (c) 2016 Edouard Lafargue, ed@wizkers.io
*
* 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 restric... |
const { sep } = require("path");
/* GET ARRAY */
module.exports.getArray = function(state) {
return state.paths;
};
module.exports.getArrayGroup = function() {
return [""].slice(0, 0);
};
/** PUSH FILE */
module.exports.pushFileFilterAndCount = function(filters) {
return function(filename, _files, _dir, state) ... |
userProject.delByProjectId(projectId);
|
const log = require('loglevel');
const path = require('path');
const fs = require('fs');
const chalk = require('chalk');
const process = require('process');
const addSkipped = require('./rules-util.js').addSkipped;
const processRules = require('./rules-util.js').processRules;
const semver = require('semver');
const ru... |
const iconNames = SVG_ICONS || []; // eslint-disable-line no-undef
const specialIcons = [
'facebook',
'google-plus',
'twitter'
];
const initIconSamples = function () {
const dest = document.querySelectorAll('.js-icon-list')[0];
if (dest && iconNames.length > 0) {
iconNames.forEach(function (k) {
const modi... |
/**
* Module dependencies.
*/
var mongoose = require('mongoose')
, User = mongoose.model('User')
, env = process.env.NODE_ENV || 'development'
, config = require('../../config/config')[env]
, AWS = require('aws-sdk')
AWS.config.update(config.aws)
var login = function (req, res) {
var redirectTo = req... |
(function(app, undef) {
"use strict";
var gettext = app.utils._tr;
app.models.Mission = Backbone.Model.extend({
initialize: function(args) {
var id = args.id;
this.set({
name: gettext('<Mission>mission_name_' + id),
description: gettext('<Mis... |
// Here is where you can define configuration overrides based on the execution environment.
// Supply a key to the default export matching the NODE_ENV that you wish to target, and
// the base configuration will apply your overrides before exporting itself.
module.exports = {
// ====================================... |
App.Models.Introduction = Backbone.Model.extend({
defaults : {
content : null,
file : null
},
initialize : function() {
/*foo*/
},
fetch : function() {
var selfModel = this;
$.get("/docs/"+this.get("file"), function(markdownContent) {
selfModel.set... |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import StarWarsWrapper from './containers/StarWarsWrapper';
import StarWarsDetailsWrapper from './containers/StarWarsDetailsWrapper';
export default (
<Route path="/" component={App}>
<IndexRoute compone... |
/** Classe de distribution optimisée de mobiles
* O876 Raycaster project
* @date 2012-04-04
* @author Raphaël Marandet
*
* Classe gérant une liste de mobile qui seront réutilisé à la demande.
* Cette classe permet de limiter le nom de d'instanciation/destruction
*/
O2.createClass('O876_Raycaster.MobileDispense... |
var mongoose = require('mongoose'),
encryption = require('../utilities/encryption');
module.exports = function(config) {
mongoose.connect(config.db);
var db = mongoose.connection;
db.once('open', function(err){
if(err) {
console.log('Database could not be opened: ' + err);
return... |
if (process.env.NODE_ENV === 'production') {
module.exports = require('./index.prod').default;
} else {
module.exports = require('./index.dev').default;
} |
angular.module('Blocker', ['ngMaterial', 'Main', 'MapDrawer']);
|
/**
* Created by oiglesia on 26/06/2015.
*/
/**
* Angulajs bloq main declarations
*/
angular
.module('panelApp',['ngSanitize','chart.js'])
.directive('ngEnter', function() {
return function(scope, element, attrs) {
element.bind("keydown keypress", function(event) {
if(eve... |
function Write(color, borderSize, zIndex, borderColor, textSize, textUnderline, textBold,name ){
Text.call(this,name);
this.color = color || 'black';
this.borderSize = borderSize || 'none';
this.zIndex = zIndex || 0;
this.borderColor = borderColor || 'none';
this.name = name || 'write Tool';
this.textSize = text... |
import test from 'ava';
import splitArray from './';
test('splits simple array', t => {
t.same(
splitArray(['a', 'b', 'c', 'd', 'e', 'f'], 2),
[['a', 'b'], ['c', 'd'], ['e', 'f']]
);
t.same(
splitArray(['a', 'b', 'c', 'd', 'e', 'f'], 3),
[['a', 'b', 'c'], ['d', 'e', 'f']]
);
t.end();
});
test('handles ... |
// console.log(JSON.stringify(UTILS.getCurrentTemplateData()));
console.log('template data', UTILS.getCurrentTemplateData());
$(document).ready(function () {
var config = UTILS.getCurrentTemplateData();
FORM_HELPER.draw(".new-users-content", config, {
postUrl: "users/form",
callbacks: {
... |
;require(['anole'], function (anole){
var sceneQueue;
var baseUrl;
var resourceUrl;
var resource = {
"bridge": "bridge.png",
"gate": "gate.png",
"boat": "boat.png",
"oar": "oar.png",
"marco1": "marco1.png",
"marco2": "marco2.png",
"paperman": "paperman.png",
"font":"SansGBW3_min.ttf",... |
'use strict';
AppConfig.registerModule('users');
|
function greet(whattosay) {
return function(name) {
console.log(whattosay + ' ' + name);
}
}
var sayHi = greet('Hi');
sayHi('Tony');
|
export default {
prefix: '/link'
};
|
// # Ghost Configuration
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
// my app config
var myapp ... |
import React from 'react'
import { Table } from 'semantic-ui-react'
const tableData = [
{ name: undefined, status: undefined, notes: undefined },
{ name: 'Jimmy', status: 'Requires Action', notes: undefined },
{ name: 'Jamie', status: undefined, notes: 'Hostile' },
{ name: 'Jill', status: undefined, notes: und... |
import * as React from 'react';
import PropTypes from 'prop-types';
import { chainPropTypes } from '@material-ui/utils';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import InputBase from '../InputBase';
import MenuItem from '../MenuItem';
import Select from '../Select';
import TableCell from... |
'use strict';
module.exports = function ( gulp, plugins, config, pkg, bwr ) {
gulp.task( 'copy-base-src', 'Copy basic files in public directory', function () {
var baseFiles = [];
for ( var i = 0, l = config.basesiteList.length; i < l; i++ ) {
baseFiles.push( config.srcPath +... |
/* eslint-disable camelcase */
import ApplicationSerializer from 'ghost-admin/serializers/application';
import {pluralize} from 'ember-inflector';
export default ApplicationSerializer.extend({
attrs: {
createdAtUTC: {key: 'created_at'},
updatedAtUTC: {key: 'updated_at'}
},
serializeIntoHas... |
'use strict';
import Log from './log.model';
import config from '../../config';
import { handleError } from '../../components/errors';
import http from 'http';
function add(time, description) {
var log = new Log({ time: time, description: description });
log.save(function (err, usd) {
if (err) return console.err... |
/**
Copyright (C) 2014 Meiguro
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, merge, publish, distribute, su... |
// gulpfile.js
gulp.task('templates', function() {
gulp.src('./frontend/tpl/**/*.html')
.pipe(tap(function(file, t) {
var precompiled = Ractive.parse(file.contents.toString());
precompiled = JSON.stringify(precompiled);
file.contents = new Buffer('module.exports = ' + precompiled);
}))
.pipe(rename(... |
require("app").directive("viewMeasure", [function () {
return {
restrict : "EAC",
templateUrl: "/app/views/forms/view/view-measure.directive.html",
replace : true,
transclude : false,
scope: {
document : "=ngModel",
locale : "=",
target : "@linkTarget",
allowDrafts : "@"
},
... |
// import resetSelection from '../resetSelection';
Meteor.startup(() => {
RocketChat.TabBar.addButton({
groups: ['channel', 'group', 'direct'],
id: 'mail-messages',
anonymous: true,
i18nTitle: 'Mail_Messages',
icon: 'mail',
template: 'mailMessagesInstructions',
order: 10,
condition: () => RocketChat.au... |
angular.module('IssueTracker.home.service',[
'IssueTracker.currentProject.service'
])
.factory('homeService',[
'$http',
'$q',
'BASE_URL',
function($http,$q,BASE_URL) {
function getCurrentUserIssues() {
var deferred = $q.defer();
var... |
/* eslint-disable camelcase */
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Form } from 'react-redux-form'
import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js'
import AUselect from '@gov.au/select/lib/js/react.js'
import DocumentTitl... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm2-10H7v2h7v-2zm0-3H7v2h7V7zm-7 ... |
import inject from 'ember-cli-window-properties/initializers/inject';
export default inject;
|
var class_tempo_1_1_list_cell_changed =
[
[ "ListCellChanged", "class_tempo_1_1_list_cell_changed.html#a1ee3319d7a3fd7c479f7f16aca05c453", null ],
[ "Destroy", "class_tempo_1_1_list_cell_changed.html#a63d434f996f8ac1cffb9ff01a16d19dd", null ],
[ "Action", "class_tempo_1_1_list_cell_changed.html#a520a081c0bf... |
(function () {
'use strict';
var addNode = function (node) {
node.isOpen = true;
node.children.push({
name: 'child node ' + node.children.length,
parent: node,
isParent: true,
children: [],
buttons: [
{
... |
import { connect } from 'react-redux'
import List from '../components/List'
import { showNote, showLayer } from '../actions/note'
const mapStateToProps = (state, ownProps) => ({
listData: state.notes,
isShowLayer: state.isShowLayer
})
const mapDispatchToProps = (dispatch, ownProps) => ({
onClick: (id) => {
... |
'use strict';
var torrents = require('torrent-stream')
var path = require('path')
function share(torrent, torrentFile, port, cb) {
var engine = torrents(torrent, {
tracker: false
, dht: false
, path: path.dirname(torrentFile)
})
engine.files.forEach(function(f) {
f.select()
})
eng... |
faulty child |
var user = require("../public/data.json");
exports.view = function(req, res){
for (var i = 0; i < user["user"].length; i++) {
if(username == user["user"][i].username){
if(req.query.newGoal != null){
user["user"][i].goal = req.query.newGoal;
}
var ... |
// DESCRIPTION = disallow trailing whitespace at the end of lines
// STATUS = 2
// <!START
// END!>
document.window.append('', null);
|
//
// SmoothScroll for websites v1.3.8 (Balazs Galambosi)
// Licensed under the terms of the MIT license.
//
// You may use it in your theme if you credit me.
// It is also free to use on any individual website.
//
// Exception:
// The only restriction would be not to publish any
// extension for browsers or native ... |
'use strict';
const assert = require('assert');
const jsesc = require('../jsesc.js');
describe('common usage', function() {
it('works correctly for common operations', function() {
assert.equal(
typeof jsesc.version,
'string',
'`jsesc.version` must be a string'
);
assert.equal(
jsesc('\0\x31'),
... |
"use strict";
const Benchmark = require("benchmark");
function noop() {
// intentional no-op function
}
module.exports = function jsdomBenchmark(optionsArg) {
const options = {
...typeof optionsArg === "function" ? { fn: optionsArg } : optionsArg,
jsdomSetup: optionsArg.setup || noop,
jsdomFn: option... |
var searchData=
[
['news_2edox',['news.dox',['../news_8dox.html',1,'']]]
];
|
// Regular expression that matches all symbols in the Enclosed Alphanumeric Supplement block as per Unicode v10.0.0:
/\uD83C[\uDD00-\uDDFF]/; |
import './utils/polyfills'; // Import polyfills for IE11
export AppBar from './app_bar';
export Autocomplete from './autocomplete';
export Avatar from './avatar';
export Button from './button/Button';
export IconButton from './button/IconButton';
export * from './card';
export Chip from './chip';
export Checkbox from '... |
var logger = require('winston');
var datafile = require('../lib/munin-datafile');
exports.homepage = function(req, res){
logger.log("info","homepage rendered");
res.render('index', {
title: 'Goaf Munin Comparison',
lead: 'Compare Munin graphs interactively!'
});
}
exports.graph = function(req,... |
import './_Background';
import React, { Component } from 'react';
class Background extends Component {
render() {
return (
<div className="background">
</div>
);
}
};
export default Background;
|
export default {
schedule: "Programar una reunión",
prompt: "Autorice a RingCentral a acceder a la información de cuenta.",
saveAsDefault: "Guardar como predeterminado",
launchMeeting: "Iniciar reunión"
};
// @key: @#@"schedule"@#@ @source: @#@"Schedule Meeting"@#@
// @key: @#@"prompt"@#@ @source: @#@"Please a... |
/** @requires BEM */
/** @requires BEM */
(function() {
BEM.DOM.decl('i-menu', {
onElemSetMod : {
'item' : {
'state': {
'current' : function(elem, modName, modVal, oldModVal) {
if (oldModVal == 'disabled') return false;
var prev = t... |
var mqtt = require('mqtt');
var configuration = require('../configuration').mqtt;
function MqttWrapper (mqttClient) {
this._mqttClient = mqttClient || null;
}
MqttWrapper.prototype.publishTransactionValue = function (value) {
if (this._mqttClient === null) {
return;
}
this._mqttClient.publis... |
// 1 - Object literal
/*
var fact = {
name: 'Chuck',
rules: 'Noooo!!',
sayToNay: function ()
{
return 'Nay, ' + fact.name + ' rules? ' + fact.rules;
}
};
console.log(fact.name);
console.log(fact.rules);
console.log(fact.sayToNay());
console.log(typeo... |
var React = require('react');
/* React组件名:
* Ineo, 我即是唯一
*/
var util = require('../util');
var Ineo = React.createClass({
getInitialState: function() {
return {
content: '',
inputH: '1.5em'
};
},
componentDidMount: function(){
this.input = this.refs['ineo-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.