code stringlengths 2 1.05M |
|---|
version https://git-lfs.github.com/spec/v1
oid sha256:08a16b5f0f20cf7bd4703290135812b212d199446e9af5aea65f81626aa4ad96
size 3239
|
/**
* Created by King Lee on 14-12-11.
*/
var db = require('./mysql/dboperator');
var userInfo = require('./userInfo.js').userInfo;
var user = require("./user.js");
var analysis = require('./module/analysis');
var consts = require('./util/consts');
var db = require('./mysql/dboperator');
//exports.onGetEnergy = funct... |
module.exports = function(Book) {
};
|
var Utils = require('./../utils')
module.exports = (function() {
var HasManyDoubleLinked = function(definition, instance) {
this.__factory = definition
this.instance = instance
}
HasManyDoubleLinked.prototype.injectGetter = function(options) {
var self = this, _options = options
var customEvent... |
'use strict';
angular.module(ApplicationConfiguration.applicationModuleName)
.controller('SidenavController',
function(Authentication, Products, Menus) {
this.authentication = Authentication;
this.menu = Menus.getMenu('sidenav');
this.selected = '';
this.isSelected = function(item)... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=document.js.map |
var virt = require("@nathanfaucett/virt"),
virtDOM = require("@nathanfaucett/virt-dom"),
css = require("@nathanfaucett/css"),
propTypes = require("@nathanfaucett/prop_types"),
domDimensions = require("@nathanfaucett/dom_dimensions"),
getImageDimensions = require("../../utils/getImageDimensions");
... |
version https://git-lfs.github.com/spec/v1
oid sha256:fd4973a8a7ab92728eae7c3758d9109a74a8d538c88679427d919ec9bc4e3f44
size 8326
|
/*
# Also times each request
# Stops after given amount of requests
*/
var request = require('request');
var async = require('async');
var found = [];
var times = {};
var maxCalls=process.argv[2] && Number(process.argv[2]) || 10;
var totalCalls = 0;
var url = "https://www.raspberrypi.org/blog/the-little-computer-th... |
{
"name": "dictatemp3.js",
"url": "https://github.com/kdavis-mozilla/dictatemp3.js.git"
}
|
var animationManager = (function(){
var moduleOb = {};
var registeredAnimations = [];
var initTime = 0;
var len = 0;
var idled = true;
var playingAnimationsNum = 0;
function removeElement(ev){
var i = 0;
var animItem = ev.target;
while(i<len) {
if (regist... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 12c0-2.54-1.19-4.81-3.04-6.27l-.68-4.06C16.12.71 15.28 0 14.31 0H9.7c-.98 0-1.82.71-1.98 1.67l-.67 4.06C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27l.67 4.... |
version https://git-lfs.github.com/spec/v1
oid sha256:dfe5fa2ebffe79836b83fbd3beed535e24ad52427c400b2213e62ee494bcdc88
size 10638
|
version https://git-lfs.github.com/spec/v1
oid sha256:60116bcfa89b731940c3217d4fec2282f1a071ed0d89e789ec3c4a105157647c
size 6462
|
'use strict';
var prettify = require('gulp-jsbeautifier');
var diff = require('gulp-diff').diff;
var diffReporter = require('gulp-diff').reporter;
module.exports = function(gulp, conf) {
gulp.task('beautify', function() {
var task = gulp.src([
'!node_modules/**/*.js',
'!public/**/*.js',
... |
module.exports = function (gulp, plugins) {
gulp.task('compileAssets', function(cb) {
plugins.sequence(
'clean:dev',
'jst:dev',
'sass:dev',
'autoprefix:dev',
'copy:dev',
'coffee:dev',
'svg:dev',
cb
);
});
};
|
import { escapeHTML } from '@rocket.chat/string-helpers';
import { Migrations } from '../../../app/migrations';
import { Rooms, Messages } from '../../../app/models';
Migrations.add({
version: 55,
up() {
Rooms.find({ topic: { $exists: 1, $ne: '' } }, { topic: 1 }).forEach(function(room) {
const topic = escapeH... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetTilesWithin = require('./GetTilesWithin');
/**
* @callback FindTileCallback
*
* @param {Phaser.Tilemaps.Tile} value - The Tile.
* @p... |
/*jshint jasmine: true */
/*global inject, module */
describe('Checklist utility service', function () {
'use strict';
var bbChecklistUtility,
items;
beforeEach(module('sky.checklist.utility'));
beforeEach(inject(function (_bbChecklistUtility_) {
bbChecklistUtility = _bbC... |
'use strict';
angular.module('palaso.ui.dc.picture', ['palaso.ui.dc.multitext', 'palaso.ui.notice',
'ngFileUpload'])
// Palaso UI Dictionary Control: Picture
.directive('dcPicture', [function () {
return {
restrict: 'E',
templateUrl: '/angular-app/languageforge/lexicon/editor/field/dc-picture.html',
s... |
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let mainWindow = null;
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 480,
h... |
var CoreObject = require('core-object');
var gitRepoInfo = require('git-repo-info');
var RSVP = require('rsvp');
module.exports = CoreObject.extend({
init: function(options) {
this._super();
this._plugin = options.plugin;
},
generate: function() {
var commitHashLength = this._plugin.readConf... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.1.2.1_A3.2_T3;
* @section: 15.1.2.1, 12.3;
* @assertion: If Result(3).type is normal and its completion value is empty,
* then return the value undefined;
... |
const { join } = require('path')
const { settings } = require('../configuration.js')
module.exports = {
test: /\.(js|jsx)?(\.erb)?$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
cacheDirectory: join(settings.cache_path, 'babel-loader')
}
}
|
version https://git-lfs.github.com/spec/v1
oid sha256:39d6c67e59bc5b9ff49d231f4ea4cfeebff29c554af113291a8b19fd62dc0ceb
size 12752
|
// @flow
import React from 'react';
import { CookiesProvider } from 'react-cookie';
import { StaticRouter } from 'react-router-dom';
import { renderToString } from 'react-dom/server';
import type { $Request, $Response, NextFunction } from 'express';
import { HelmetProvider } from 'react-helmet-async';
import { ChunkEx... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import invariant from 'shared/invariant';
// Exports ReactDOM.createRoot
export const enableUserTimingAPI = __DEV__;
// Ex... |
export class Vscroll {
constructor(vscroll) {
this.vscroll = vscroll;
}
factory(settings) {
return this.vscroll(settings);
}
} |
'use strict';
// Allow the use of non-minsafe AngularJS files. Automatically makes it
// minsafe compatible so Uglify does not destroy the ng references
module.exports = {
compiled: {
files: [{
expand: true,
cwd: '<%= paths.compiled.tld %>/concat/scripts',
src: [
// List of files that ... |
let test = require('tape');
function _test(name) {
test(`test ${name}`, t => {
t.plan(1);
t.pass(name);
t.end();
});
}
_test(`huey`);
_test(`dewey`);
setTimeout(function () {
_test(`louie`);
}, 100);
|
define({
"size.natural": "åå§å¤§å°",
"button.addimg.tooltip": "æå
¥å¾ç",
"floatingmenu.tab.img": "å¾ç",
"floatingmenu.tab.formatting": "æ ¼å¼",
"floatingmenu.tab.resize": "è°æ´å¤§å°",
"floatingmenu.tab.crop": "è£å",
"button.uploadimg.tooltip": "ä¸ä¼ å¾ç",
"button.uploadimg.label": "ä¸ä¼ ... |
import React, { PropTypes } from 'react';
import { Map } from 'immutable';
import cx from 'classnames';
import { getImageURLFromThread } from '../../utils';
const ImagePreview = ({ isExpanded, thread}) => {
return (
<div className={cx({
'flex justify-center items-center p2 bg-black rounded': isExpanded,
... |
/*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2015 Hakim El Hattab, http://hakim.se
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(function () {
root.Reveal = factor... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
var path = require('path');
var rimraf = require('rimraf');
var fs = require('fs');
var async = require('async');
var exec = require('child_process').exec;
var TIMEOUT = 60000;
function expectFilesToExist(files, run) {
async.each(files, function(file, callback) {
fs.existsSync(path.join(process.cwd(), file)) ? call... |
/*jshint undef:false, strict:false*/ // Note: to avoid having to write QUnit.module, etc
module('promptForm', {
setup: function () {
this.sinon = sinon.sandbox.create();
$('<div id="form"><input id="name" /></div>').appendTo('#qunit-fixture');
},
teardown: function () {
this.sinon.re... |
var t = {
tem: 20,
temUp: function() {
this.tem++;
},
temDown: function() {
this.tem--;
}
};
$(function() {
$('#increase').on('click', function() {
t.temUp();
update();
});
$('#decrease').on('click', function() {
t.temDown();
update();
});
});
function update() {
var elTem ... |
var conf = require('../conf.js'),
log = require('../log.js');
var engine = require('engine'),
resMan = require('../resource_manager.js');
var errors = require('../errors.js');
var Bounds = require('./bounds.js');
Sheet.instances = 0;
Sheet.MISSED_SIDE = 50;
/* TODO: rename to Static and take optional functi... |
/**
* Imports
*/
import test from 'tape'
import CreatePlaylist from '.'
/**
* <Create Playlist/> tests
*/
test('<CreatePlaylist/> should work', t => {
})
|
var net = require('net'),
dgram = require('dgram');
dgram.createSocket("udp4").bind(5340, function () {
net.createServer().listen(5341);
});
|
const LOG_LEVEL = {
Debug: 'DEBUG',
Info: 'INFO',
Warning: 'WARNING',
Error: 'ERROR',
};
export default LOG_LEVEL;
|
exports.type = "BinaryExpression";
exports.call = function(node, ctx, execute) {
return ctx.operate(node.operator, node.left, node.right);
}; |
//>>built
define(["dojo/_base/kernel","dojo/_base/declare","./_base"],function(f,d,e){return d("dojox.geo.openlayers.Feature",null,{constructor:function(){this._layer=null;this._coordSys=e.EPSG4326},getCoordinateSystem:function(){return this._coordSys},setCoordinateSystem:function(a){this._coordSys=a},getLayer:function... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M22 5H2v14h20V5zM9 6c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3zm6 12H3v-1.41C3 14.08 6.97 13 9 13s6 1.08 6 3.58V18zm2.85-4h1.64L21 16l-1.99 1.99c-... |
/*global define, Workspace*/
/*jslint white: true*/
/**
* Widget for viewing and modifying narrative share settings
* @author Michael Sneddon <mwsneddon@lbl.gov>, Bill Riehl <wjriehl@lbl.gov>
* @public
*/
define ([
'bluebird',
'kbwidget',
'bootstrap',
'jquery',
'narrativeConfig',
'kbaseAuthe... |
version https://git-lfs.github.com/spec/v1
oid sha256:57f398c99d91daa92f5f3a3b02c6427638e0bd2d060f97be98260c831be95f03
size 11152
|
import Vue from 'vue'
import deepmerge from 'deepmerge'
import { mount } from 'avoriaz'
export default async (component, template, options = { propsData: {} }) => {
const wrapper = mount(component, deepmerge(options, {
slots: {
default: [template]
}
}))
await Vue.nextTick()
return Promise.resol... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "foo"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("foo"));
} else {
var mod = {
exports: {}
};
factory(mod.exports, global.foo);
global.input = mod... |
// The default deployment object. createDeployment overwrites this.
var deployment = new Deployment({});
// The label used by the QRI to denote connections with public internet.
var publicInternetLabel = "public";
// Overwrite the deployment object with a new one.
function createDeployment(deploymentOpts) {
deplo... |
var assert = require('assert');
var extend = require('util')._extend;
var expect = require('chai').expect;
var SharedClass = require('../lib/shared-class');
var factory = require('./helpers/shared-objects-factory.js');
var RemoteObjects = require('../');
describe('SharedClass', function() {
var SomeClass;
beforeEa... |
"use strict";
/**
* @license
* Copyright 2017 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
/*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import { IntlProvider } from 'react-i... |
version https://git-lfs.github.com/spec/v1
oid sha256:9194712ba9daed404de66614b857fd4428c3c696a4fa67a22c2791b916b2311e
size 6148
|
import path from 'path';
import express from 'express';
import https from 'https';
import fallback from 'express-history-api-fallback'
const webpack = require('webpack');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
// Addi... |
// Nest: A location (node) connected to other Nests via Webs (edges) in the game that Spiders can converge on, regardless of owner.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// Instead, you should only be reading its variables and calling its ... |
export const LS_ACCESS_TOKEN_KEY = 'gitment-comments-token'
export const LS_USER_KEY = 'gitment-user-info'
export const NOT_INITIALIZED_ERROR = new Error('Comments Not Initialized')
|
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define("webextension-polyfill", ["module"], factory);
} else if (typeof exports !== "undefined") {
factory(module);
} else {
var mod = {
exports: {}
};
factory(mod);
global.browser = mod.exports;
}
})(t... |
var assert = require("chai").assert;
var request = require("supertest");
var server = require("../app");
var app;
describe('Server API Test Suite', function () {
before(function (done) {
this.timeout(15000);
app = server();
done();
});
// test case for checking if server is up
describe('Server Ro... |
// This code demonstrates making point and segment queries in a space.
//
// Take a look at update(), below for the calls to space.*Query.
var Query = function() {
Demo.call(this);
var space = this.space;
space.iterations = 5;
{ // add a fat segment
var mass = 1;
var length = 100;
var a = v(-length/2, 0)... |
'use strict';
var convert = require('./convert'),
func = convert('bindAll', require('../bindAll'));
func.placeholder = require('./placeholder');
module.exports = func;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL2JpbmRBbGwuanMi... |
version https://git-lfs.github.com/spec/v1
oid sha256:147bcc2621052074f5656b1166435690c7ea9c7b543f124e75520c5200b326ad
size 15563
|
import installQuasar from './install-quasar.js'
import lang from './lang.js'
import iconSet from './icon-set.js'
import * as components from './components.js'
import * as directives from './directives.js'
export * from './components.js'
export * from './directives.js'
export * from './plugins.js'
export * from './com... |
'use strict';
angular.module('demoApp', ['nya.bootstrap.select', 'pascalprecht.translate'])
.config(function($translateProvider, nyaBsConfigProvider) {
$translateProvider.translations('en', {
LANG: 'English',
NOTHING: 'Nothing Selected!'
});
$translateProvider.translations('jp', {
LANG:... |
/**
* Copyright 2015 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
var path = require( 'path' );
var grunt = require( 'grunt' );
var runTask = require( 'grunt-run-task' );
var expect = require( 'expect.js' );
var run = require( './lib/run-elsewhere' );
var spyOn = require( './lib/spy-... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... |
import { assert } from 'chai';
import { State } from '../src';
describe('Immutability', () => {
it('Map', () => {
const innerStruct = {
lesson: 1,
module: 1,
};
const test = new State.Map({
id: 1,
name: 'John',
progress: innerStruct,
});
const result = test.get();
... |
var io = require('socket.io').listen(4242);
io.set('log level', 1);
var Cube = require('./Cube');
var cubes = {};
io.sockets.on('connection', function (socket) {
// Envía la lista de cubos actual al nuevo jugador
for (var playerId in cubes) {
socket.emit('cubeUpdate', cubes[playerId]);
}
// Crea el nuevo cu... |
axboot.promise = function () {
/**
* @Class axboot.promise
* @example
* ```js
* axboot.promise()
* .then(function (ok, fail, data) {
* $.ajax({
* url: "/api/v1/connections",
* callback: function (res) {
* ok(res); // d... |
/**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
import React from 'react';
import './UserHeaderLoading.less';
const UserHeaderLoading = () =>
(<div className="UserHeaderLoading">
<div className="UserHeaderLoading__container">
<div className="ant-card-loading-block UserHeaderLoading__avatar" style={{ width: '100px', height: '100px' }} />
<div class... |
'use strict';
(function (angular) {
angular.module('seminarNotesPluginDesign')
.constant('TAG_NAMES', {
SEMINAR_INFO: 'seminarInfo',
SEMINAR_ITEMS: "seminarItems",
SEMINAR_BOOKMARKS: "seminarBookmarks"
})
.constant('STATUS_CODE', {
INSERTED: 'inserted',
UPDATED: 'updated',
... |
describe('Set the `data-eq-state` attribute based on the element width and its CSS styling', function () {
var elem = document.createElement('div'),
body = document.querySelector('body'),
style = document.createElement('style'),
head = document.querySelector('head'),
sizes = [],
css,
... |
/**
* JQueryUI widget for a block of text with many words to tag
* Version: 1.1.9
*
* Widget should be attached the the div containing the words to which a sense must be given.
*
* Options:
*
* menus : jQuery element hosting the menus that correspond to the words
* wordsContent: string with possibl... |
'use strict';
const { spy } = require('sinon');
const Promise = require('bluebird');
describe('Tag', () => {
const Tag = require('../../../lib/extend/tag');
const tag = new Tag();
it('register()', async () => {
const tag = new Tag();
tag.register('test', (args, content) => args.join(' '));
const ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17.51 3.87 15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z"
}), 'ArrowBackIosSharp'); |
'use strict';
/**
* Expose `Abstract`.
*/
module.exports = Abstract;
/**
* Initialize a new abstract sequence interpreter.
*/
function Abstract() {
}
Abstract.defineImplementedInterfaces(['danf:sequencing.sequenceInterpreter']);
Abstract.defineAsAbstract();
Abstract.defineDependency('_sequencesContainer', 'dan... |
var glslifyBundle = require('glslify-bundle')
var staticModule = require('static-module')
var glslifyDeps = require('glslify-deps')
var glslResolve = require('glsl-resolve')
var through = require('through2')
var nodeResolve = require('resolve')
var extend = require('xtend')
var path = requi... |
/*
* File: app/store/storeTanque3Material.js
*
* This file was generated by Sencha Architect version 4.1.2.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Ext JS 5.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 5.1.x. For m... |
define(['jquery'], function($) {
var SearchService = {};
var self = this;
this.requestDigest = null;
var GetRequestDigest = function() {
var dfd = $.Deferred();
if (self.requestDigest && self.requestDigest.expiresOn > (new Date())) {
return dfd.resolve();
} else {
... |
d3.queue()
.defer(d3.csv, '../assets/data/community/wellbeing_survey_trend.csv')
.defer(d3.csv, '../assets/data/community/crime_rate_by_tract.csv')
.defer(d3.json, '../assets/json/nhv_tracts.json')
.await(initCommunity);
function initCommunity(error, safety, crime, json) {
if (error) throw error;
... |
import _ from 'underscore';
import React from 'react';
import ThatContainer from './containers/Container';
import * as Actions from '../actions/actions';
import './App.css';
//import 'bootstrap/dist/css/bootstrap.css';
import './short.css';
import 'bootstrap/d... |
import 'detects.js';
// my app logic
import 'analytics.js';
|
(function (webgl) {
/**
* A ShaderClosure connects a mesh-specific GLProgram with it's Xflow data
* @param {GLContext} context
* @constructor
*/
var AbstractShaderClosure = function(context) {
/**
* @private
* @type {GLProgramObject|null}
*/
this.p... |
version https://git-lfs.github.com/spec/v1
oid sha256:89eabed79e37ca85192e16168ed72c258770b52bb20d3714f624abb0d6c3533b
size 2415
|
/**
* Methods for rendering a template.
*/
import _ from 'lodash';
import nunjucks from 'nunjucks';
import moment from 'moment';
import Url from '../url';
const TemplateErrorMessage = {
NO_TEMPLATE: 'template not found',
};
/**
* Render a template with given context variables.
* @param {Object} env Nunjucks ins... |
import * as util from "../util";
export default class Logger {
constructor(file: File) {
this.filename = file.opts.filename;
this.file = file;
}
_buildMessage(msg: string): string {
var parts = this.filename;
if (msg) parts += `: ${msg}`;
return parts;
}
debug(msg: string) {
ut... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
import {
buttonsType,
createEventTarget,
describeWithPointerEvent,
setPointerEvent... |
/**
* React App SDK (https://github.com/kriasoft/react-app)
*
* Copyright © 2015-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.
*/
import React from 'react';
import Layout from '../../c... |
var pswpElement = document.querySelectorAll('.pswp')[0];
// build items array
var items = [{
src: 'https://placekitten.com/600/400',
w: 600,
h: 400
}, {
src: 'https://placekitten.com/1200/900',
w: 1200,
h: 900
}];
// define options (if needed)
var options = {
// optionName: 'option value'
... |
/**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { PropTypes } from 'react';
import './Layout.scss';
import Navigation from '../Navigation';
function Layout({ children }) {
// {{ /* <Navigation /> */ ... |
/**
* Created by King Lee on 15-3-3.
*/
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('announcement_230_000013', { title: 'Express' });
});
module.exports = router;
|
module.exports={A:{A:{"2":"K D G E A B hB"},B:{"1":"2 C d J M H I"},C:{"2":"2 eB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b YB XB","194":"0 1 3 4 6 7 8 9 c e f g h i j k l m n o L q r s t u v w x y z HB GB BB CB FB"},D:{"2":"2 6 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m... |
/**
* Created by jszhou on 2017/3/27.
*/
/**
* 格式化日期为YYYY-MM-DD
* @param {Date} dateObject
* @return {string}
*/
function getFormatDate(dateObject) {
let year = dateObject.getFullYear();
let month = dateObject.getMonth() + 1 < 10 ? ('0' + (dateObject.getMonth() + 1)) : (dateObject.getMonth() + 1);
let date ... |
import { connect } from 'react-redux';
import selectChapters from '../../store/selectors/chaptersSelector';
import selectActiveChapter from '../../store/selectors/activeChapterSelector';
import Chapters from './Chapters';
function mapStatetoProps(state) {
return {
chapters: selectChapters(state),
darkmode: s... |
'use strict';
$(document).ready(function() {
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
console.log(this);
if (optionalValue) {
console.log("Value");
console.log("====================");
console.log(optionalVal... |
var template = require('lodash.template');
var reEscape = require('lodash._reescape');
var reEvaluate = require('lodash._reevaluate');
var reInterpolate = require('lodash._reinterpolate');
var forcedSettings = {
escape: reEscape,
evaluate: reEvaluate,
interpolate: reInterpolate
};
module.exports = functio... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var DeviceSignalCellularConnectedNoInternet2Bar = React.createClass({
displayName: 'DeviceSignalCellularConnectedNoInternet2Bar',
render: function render() {
return React.createElement(
SvgIcon,
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-... |
let ExampleModule = require('../src/JavaScriptSkeleton.js');
describe("JavaScriptSkeleton", function () {
it("can greet the world", function () {
let em = new ExampleModule();
expect(em.hello()).toEqual("Hello friend.");
});
});
|
'use strict';
/* eslint-disable no-empty-function, no-unused-vars */
/**
* Every received message will be sent to all clients that are connected to the instance.
* Client A, B and C are connected to a WebSocket server instance with this plugin.
* When A sends a message then it will be sent to B and C, but not back... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.