code stringlengths 2 1.05M |
|---|
import c3 from 'c3';
import strings from 'lang';
export default function redrawGraphs(rows, field, yAxis) {
const hasSum = rows[0] && rows[0].sum;
const hasAvg = rows[0] && rows[0].avg;
c3.generate({
bindto: '#donut',
data: {
type: 'donut',
columns: hasSum ? rows.map(row => [row[field], row.s... |
'use strict';
var cutoffs = [];
var consoleTree = [];
var nbNodeSearched = 0;
var nbCutoffs = 0;
var watches = require('./watches');
//Settings
var enabled = false;
function isEnabled() {
return enabled;
}
function setEnabled(enabledFlag) {
if(enabledFlag === undefined || typeof enabledFlag !== 'boolean') {... |
var DEBUG = true;
var debug = function(string) {
if (DEBUG) {console.log(string)};
};
function span(class_string) {
return "<span class='variable_word " + class_string + "'>{{}}</span>";
}
function spanify(content, class_string, id) {
var element = $("<span/>", {
class: class_string,
id: id
});
elem... |
module.exports={A:{A:{"1":"B","2":"H D G E A HB"},B:{"2":"0 C p J L N I"},C:{"2":"0 1 2 3 4 6 7 8 9 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z AB BB aB UB"},D:{"1":"0 1 2 4 6 7 8 9 p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w... |
var interact = require('..'),
assert = require('assert');
describe("Express server", function() {
var app;
beforeEach(function() {
app = interact();
});
it("should be an express server", function() {
assert(app.use);
assert(app.set);
});
it('should have a room handler', function() {
assert(app.room);... |
var searchData=
[
['ind_5fnc',['IND_NC',['../class_toggle_button.html#af78fabb4cbc5414cd37f3cba0b4fac6b',1,'ToggleButton']]],
['is_5fneg_5flogic',['IS_NEG_LOGIC',['../class_toggle_button.html#a424ab2889bee7651aa96a5930c39aece',1,'ToggleButton']]],
['is_5fpos_5flogic',['IS_POS_LOGIC',['../class_toggle_button.html#... |
var BaseColors = require('./base_colors');
var util = require('util');
var fs = require('fs');
var SourceMapConsumer = require('source-map').SourceMapConsumer;
var path = require('path');
var KarmaPhantomJSSourceMapReporter = function(formatError, baseReporterDecorator) {
baseReporterDecorator(this);
BaseColors.ca... |
/* global process, __dirname */
var path = require('path'),
MiniCssExtractPlugin = require("mini-css-extract-plugin"),
webpack = require('webpack');
var production = (process.env.NODE_ENV === 'production'),
bundlePath = path.resolve(__dirname, 'apps/dg/resources/build'),
plugins = [
new MiniCssExt... |
import { gql } from "@apollo/client"
import { DEFAULT_SEARCH_PROPS, PAGE_PROPS_NO_NAV } from "actions"
import API from "api"
import { initInvisibleFields } from "components/CustomFields"
import { DEFAULT_CUSTOM_FIELDS_PARENT } from "components/Model"
import {
mapPageDispatchersToProps,
PageDispatchersPropType,
us... |
function werewolfClaw(){
var sequence = [];
sequence.push(new Frame(0, 0, 80, 137, tc.constants.LIGHT_ACTION, 0, 22));
sequence.push(new Frame(0, 0, 96, 132, tc.constants.LIGHT_ACTION, 137, 6));
sequence.push(new Frame(0, 0, 95, 121, tc.constants.LIGHT_ACTION, 269, 7));
sequence.push(new Frame(0, 0, 95, 120, tc.co... |
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './Root';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(<Root />, document.getElementById('root')); |
//日报表统计算法
//参数:目标日期
const Moment = require('moment');
let Promise = require("bluebird");
const Sequelize = require('../../config/sequelize');
const loadModels = require('../../config/loadModels');
const fs = require('fs')
const config = require('../../config/config');
const utils = require('../utils/util');
const json... |
define(["lib/jquery", "lib/lodash", "lib/class", "src/skinner/core/loader", "src/skinner/core/keypath", "src/skinner/core/task", "peg!src/skinner/core/parser/repeatStatement", "src/skinner/core/mode"], function ($, _, Class, loader, keyPath, Task, RepeatStatementParser, mode) {
"use strict";
var States = {
... |
/*eslint no-console:0 */
'use strict';
require('core-js/fn/object/assign');
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
const open = require('open');
/**
* Flag indicating whether webpack compiled for the first time.
* @type ... |
// Load the visualization API and the piechart package.
google.load('visualization', '1', {packages: ['corechart']});
// Set a callback to run when the Google visualization API is loaded.
google.setOnLoadCallback(drawChart);
function drawChart()
{
var jsonData = $.ajax({
url: "/slice-data",
dataTy... |
/**
* Module dependencies.
*/
var _ = require('@sailshq/lodash');
var flaverr = require('flaverr');
var async = require('async');
var STRIP_COMMENTS_RX = /(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/mg;
module.exports = function(sails) {
/**
* Expos... |
var shuffle_candidate = [];
var counter;
var isA = $('.round').attr('id')
var SECOND = 10;
var count;
var round;
if (isA == 'isA')
var ROUND = 5;
else
var ROUND = 3;
var interval;
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
$.get('/shuffle', getCandidate);
})
functi... |
import {
FILTER_BY_TYPE_INJURY,
FILTER_BY_TYPE_FATALITY,
FILTER_BY_NO_INJURY_FATALITY,
} from '../constants/action_types';
export const filterByTypeInjury = personType => ({
type: FILTER_BY_TYPE_INJURY,
personType,
});
export const filterByTypeFatality = personType => ({
type: FILTER_BY_TYPE_FATALITY,
p... |
import ProjectService from '../../services/ProjectService';
export async function createProject(ctx) {
ctx.body = await ProjectService.createProject(ctx.request.body);
}
export async function getProject(ctx) {
ctx.body = await ProjectService.getProject(ctx.params.projectId, {
includeTasks: ctx.query.includeTa... |
jQuery(document).ready(function() {
setTimeout(function(){
jQuery('.tp-banner').show().revolution(
{
dottedOverlay:"none",
delay:16000,
startwidth:1250,
startheight:500,
navigationType:"none",
navigationStyle:"none",
touchenabled:"... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { selectReddit, fetchPostsIfNeeded, invalidateReddit } from '../actions/redditActions';
import Picker from '../components/Picker';
import Posts from '../components/Posts';
class AsyncApp extends Component {
constructor... |
var SystemBuilder = require('systemjs-builder');
var argv = require('yargs').argv;
var builder = new SystemBuilder();
builder.loadConfig('./system.config.js')
.then(function(){
var outputFile = argv.prod ? 'dist/bundle.min.js' : 'dist/bundle.js';
return builder.buildStatic('app', outputFile, {
minify: argv... |
module.exports = function() {
let heroes = ["leto", "duncan", "goku", "batman", "asterix", "naruto", "totoro"];
for(let index = 2, __ks_0 = Math.min(heroes.length, 6), hero; index < __ks_0; index += 2) {
hero = heroes[index];
console.log("The hero at index %d is %s", index, hero);
}
}; |
var http = require("http")
var html = "<html>" +
"<title>Hello Node</title>" +
"<body>Hello Node</body>" +
"</html>"
var handler = function(req, res) {
res.writeHead(200, { "Content-Type": "text/html" })
res.end(html)
}
http.createServer(handler).listen(3000, "127.0.0.1")
|
/**
* Created by asyler on 03.04.17.
*/
module.exports = {
'Join Game Test': '' + function (client) {
client
.callFunction('joinGame')
.waitForState('GamesList', 3000)
.callFunction('open_game', {
data: {
id: 5
}
... |
'use strict';
buildApp.factory('Build', function($resource) {
return $resource('/api/builds/:id', {id: '@id'}, {
update: {method:'PUT'}
});
});
|
'use strict';
/**
* Adds extension to all paths imported inside MJS files
*
* Transforms:
*
* import { foo } from './bar';
* export { foo } from './bar';
*
* to:
*
* import { foo } from './bar.mjs';
* export { foo } from './bar.mjs';
*
*/
module.exports = function addExtensionToImportPaths(context, { ... |
'use strict';
(function (angular) {
angular.module('fixedTimerPluginWidget')
.constant('TAG_NAMES', {
TIMER_INFO: 'timerInfo',
TIMER_ITEMS: 'timerItems'
})
.constant('STATUS_CODE', {
INSERTED: 'inserted',
UPDATED: 'updated',
NOT_FOUND: 'NOTFOUND',
UNDEFINED_DATA: 'UNDE... |
// dependencies ------------------------------------
import express from 'express';
import users from './handlers/users';
import jobs from './handlers/jobs';
import awsJobs from './handlers/awsJobs';
import eventLogs from './handlers/eventLogs';
import validation from './handlers/validation';
impor... |
export const nerpTiles = [
{
img: './img/nodejs-logo.png',
title: 'Node.js',
about: 'Node.js® is a JavaScript runtime built on Chrome\'s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js\' package ecosystem, npm, is the largest ecos... |
const splitRegexp = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]
const stripRegexp = /[^A-Z0-9]+/gi
fixIcons.parser = 'tsx'
module.exports = fixIcons
function fixIcons(fileInfo, api) {
const j = api.jscodeshift
const root = j(fileInfo.source)
// Imports
// from: import {MdPerson} from 'react-icons/lib/md'
... |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
const postcss = require('./postcss')
// Returns absolute paths relative to the package root.
const root = (...args) => (
path.join(process.cwd(), ...args)
)
// Returns true for paths that mat... |
declare type xstream$Subscription<T> = {
unsubscribe(): void;
};
declare type xstream$Listener<T> = {
next(value: T): void;
error(error: Error): void;
complete(): void;
};
declare type xstream$Stream<T> = {
addListener(listener: xstream$Listener<T>): void;
removeListener(listener: xstream$Listener<T>): vo... |
/*
* Copyright (C) 2013 Vanderbilt University, All rights reserved.
*
*/
define(['js/Constants',
'js/NodePropertyNames',
'js/RegistryKeys',
'./FMUBase',
'./FMU.META',
'./FMUDecorator.Constants',
'text!./FMUDecorator.html',
'text!../default.svg'], function (CONSTANTS,
nodeProper... |
var searchData=
[
['additional_5finteraction',['Additional_interaction',['../class_ising___o_p_v_1_1_parameters.html#af9f3d293ed5afbff981de94e4a8504dd',1,'Ising_OPV::Parameters']]]
];
|
var fs = require('fs');
var util;
try {
util = require('util')
} catch(e) {
util = require('sys')
}
var path = require('path');
var filename = __dirname + '/jasmine-1.3.1.js';
var isWindowUndefined = typeof global.window === 'undefined';
if (isWindowUndefined) {
global.window = {
setTimeout: setTimeout,
... |
/**** Variables Initiation ****/
var doc = document;
var docEl = document.documentElement;
var $body = $('body');
var $sidebar = $('.sidebar');
var $sidebarFooter = $('.sidebar .sidebar-footer');
var $mainContent = $('.main-content');
var $pageContent = $('.page-content');
var $topbar = $('.topbar');
var $logopanel =... |
const findMissing = new FindMissing().findMissing;
describe("Find missing number two lists: ", function() {
describe("Case for en empty list", function() {
it("should return 0 for empty list", function() {
expect(findMissing([], [])).toEqual(0);
});
});
describe("Case for lists with the same ent... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const FireMockError_1 = require("../../../errors/FireMockError");
const state_mgmt_1 = require("../../state-mgmt");
const util_1 = require("../../../shared/util");
/**
* **updateEmail**
*
* Gives a logged in user the ability to update their... |
define( [
"./core",
"./core/access",
"./data/var/dataPriv",
"./data/var/dataUser"
], function( jQuery, access, dataPriv, dataUser ) {
"use strict";
// Implementation Summary
//
// 1. Enforce API surface and semantic compatibility with 1.9.x branch
// 2. Improve the module's maintainability by reducing the storage... |
/*jshint -W018 */
(function(){
'use strict';
manu.manager = cloz(manu.base, {
elements: function(){
return this.logger.get('elements');
},
log: function(){
return this.logger.get('log');
},
index: function(){
return this.logger.get('head').get('index');
},
lap: function(){
return this.logger.get('lap', ... |
'use strict';
var CommanderRunner = function(program, options) {
if (program.cli) {
return require('./command/showcli')(options);
} else if (program.answer) {
return require('./command/showanswer')(options);
}
};
module.exports = CommanderRunner;
|
/**
* @hidden
*/
export function lcoE3(a0, a1, a2, a3, a4, a5, a6, a7, b0, b1, b2, b3, b4, b5, b6, b7, index) {
a0 = +a0;
a1 = +a1;
a2 = +a2;
a3 = +a3;
a4 = +a4;
a5 = +a5;
a6 = +a6;
a7 = +a7;
b0 = +b0;
b1 = +b1;
b2 = +b2;
b3 = +b3;
b4 = +b4;
b5 = +b5;
b6 = +... |
frappe.provide("frappe.ui.form");
frappe.ui.form.Sidebar = Class.extend({
init: function(opts) {
$.extend(this, opts);
},
make: function() {
var sidebar_content = frappe.render_template("form_sidebar", {doctype: this.frm.doctype, frm:this.frm});
this.sidebar = $('<div class="form-sidebar overlay-sidebar hidd... |
const express = require('./express');
const db = require('./db');
const ranking = require('./ranking');
module.exports.express = express;
module.exports.db = db;
module.exports.ranking = ranking;
|
(function() {
'use strict';
var canvas = document.createElement('canvas');
var cx = canvas.getContext('2d');
var lastCanvas = document.createElement('canvas');
var lastCx = lastCanvas.getContext('2d');
function redraw() {
clearTimeout(loop);
w = window.innerWidth;
h = window.innerHeight;
... |
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Messenger Messenger
* @ingroup UnaModules
* @{
*/
/**
* Work with browser storage
*/
;window.oMessengerStorage = class {
constructor(sName = ''){
this._sSubLot = 'lots';
this._s... |
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var mongoosePaginate = require('mongoose-paginate');
var schema = new Schema({
title: String,
audience: String,
apliesTo: String,
ticket:String,
issue: String,
root: String,
prereqs: String,
solution: St... |
describe('Airport', function() {
var airport;
var plane = 'plane';
it('exists', function() {
airport = new Airport();
expect(airport).toBeDefined();
});
describe('#land', function() {
it('lands a plane', function() {
expect(airport.land(plane)).toBeDefined();
});
});
describe('.pl... |
/**
* Iterable is for internal use only.
* @module Hook
* @class Hook.Iterable
*/
Hook.Iterable = function() { };
Hook.Iterable.prototype = {
/**
* @method each
* @param {Function} func
* @return {Promise}
*/
each : function(func) { return this._iterate('each', func); },
/**
* @method find
... |
// @flow
import * as React from 'react';
import SidebarRequestRow from './sidebar-request-row';
import SidebarRequestGroupRow from './sidebar-request-group-row';
import * as models from '../../../models/index';
import type { RequestGroup } from '../../../models/request-group';
import type { Workspace } from '../../../m... |
import _ from 'lodash';
import React, { PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import DocumentTitle from 'react-document-title';
import { Button, Input } from 'react-bootstrap';
import * as actions from '../actions';
import { podcastsSelector } fro... |
/* Abstraction for any Input/Output filed in a Tab */
class Field {
constructor(baseID,unitList,defaultUn,updateCallback,textGenerator) {
this.unitlessValue = 0;
this.isValid = true;
if(unitList === undefined || unitList.length == 0) {
unitList = [units.defaultUnit];
}
this.unit = units.de... |
'use strict';
var glob = require('glob'),
_ = require('lodash');
function getNameFromPath(path) {
return path.split('/').pop().split('.').shift();
}
module.exports = function (env, cb) {
// options is optional
var files = glob.sync('./**/*.js', {cwd: __dirname});
files = _.filter(files, function (fi... |
(function(){
angular
.module('about')
.controller('AboutController', [
'aboutService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
AboutController
]);
function AboutController( aboutService, $mdSidenav, $mdBottomSheet, $log, $q) {
var self = this;
self.about = [ ];
// Load all regi... |
'use strict';
const addrs = require('./addresses');
const crc = require('crc');
const sleep = msec => new Promise(resolve => setTimeout(resolve, msec));
const HEAD_COUNT = 0x02;
const READ_COUNT = 0x04;
const CRC_COUNT = 0x02;
const readLength = HEAD_COUNT + READ_COUNT + CRC_COUNT;
const getData = async bus => {
... |
'use strict';
function autoproxy(decorator) {
return function(target) {
var decoratedTarget = decorator(target);
if (decoratedTarget !== target) {
proxyProperties(decoratedTarget, target);
proxyProperties(decoratedTarget.prototype, target.prototype);
}
return decoratedTarget;
};
}
func... |
version https://git-lfs.github.com/spec/v1
oid sha256:c5d785cc13a912225e582e8bb70c4f9cb1f135eb31d8975d1fda676e2bd129f4
size 39816
|
import Ember from 'ember';
export default Ember.Controller.extend({
due: Ember.computed('goal.amount', 'budget.amount', function(){
let month = Math.round(parseInt(this.get('goal').get('amount'))/parseInt(this.get('budget').get('amount')));
return month;
}),
actions: {
save(){
let goal = this.g... |
var clone = require('clone');
xtend = require('xtend');
source = {
gist: require('../source/gist'),
github: require('../source/github')
};
module.exports = function(context) {
var _data = {
map: {
type: 'FeatureCollection',
features: []
},
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _defin... |
var toffee;
if (!(typeof toffee !== "undefined" && toffee !== null)) toffee = {};
if (!toffee.templates) toffee.templates = {};
toffee.states = {
"TOFFEE": 1,
"COFFEE": 2
};
toffee.__json = function(locals, o) {
if (!(o != null)) {
return "null";
} else {
return "" + JSON.stringify(o).replace(/</g, ... |
var assert = require('chai').assert;
|
Proj4js.defs["EPSG:41001"] = "+title=simple mercator EPSG:41001\
+proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m"; |
import TravisRoute from 'travis/routes/basic';
export default TravisRoute.extend({
titleToken: 'Profile',
needsAuth: true,
setupController(controller, model) {
return this.controllerFor('accounts').set('model', model);
},
renderTemplate() {
$('body').attr('id', 'profile');
this._super.apply(thi... |
/*
* GET auth window.
*/
exports.index = function(req, res) {
console.log('auth-callback,user', req.user);
res.render('auth-callback', {
user: JSON.stringify(req.user)
});
}; |
;(function(){
/**
* A Container for dynamically loading markers.
* A hybrid of L.LayerTile behavior to manage which Markers to display and data to request.
*
* TODO - Create a data cache, so that we are not re-requesting the same data / tiles
*
*/
/**
* TODO - Remove jQuery ... |
$(document).ready(function() {
// -- This file is for Foundation Admin views ONLY -- //
// I'm on the outside
var internalLink = window.location.hostname
$("a[href^=http]")
.not("a[href*='" + internalLink + "']")
.addClass('link external')
.attr('target', '_blank');
$('.sortable').tablesorter({ widgets: ... |
var class__sequence__testing__listener_8js =
[
[ "class_sequence_testing_listener", "class__sequence__testing__listener_8js.html#adc60dbf1cb25bc992b85df20ee0d56f7", null ]
]; |
/**
* Created by Carleton on 7/31/2015.
*/
Hourly = new Mongo.Collection('hourly');
Hourly.helpers({
});
Hourly.before.insert(function (userId, doc) {
doc.createdAt = moment().toDate();
});
|
/* Taken from underscore.js */
_ = {};
_.now = Date.now || function() { return new Date().getTime(); };
_.throttle = function(func, wait, options) {
var context, args, result;
var timeout = null;
var previous = 0;
options || (options = {});
var later = function() {
previous = options.leading... |
this.NesDb = this.NesDb || {};
NesDb[ '55DF1D724F051B38630E2BD14BC02EDF2650F2BD' ] = {
"$": {
"name": "Ninjara Hoi!",
"altname": "忍者らホイ!",
"class": "Licensed",
"catalog": "HSP-34",
"publisher": "ASCII",
"developer": "ASCII",
"region": "Japan",
"players": "1",
"date": "1990-08-08"
},
"peripherals":... |
(function ( $ ) {
'use strict';
var wcSquarePaymentForm;
// create namespace to avoid any possible conflicts
$.WooSquare_payments = {
init: function() {
// Checkout page
$( document.body ).on( 'updated_checkout', function() {
$.WooSquare_payments.loadForm();
});
// Pay order form ... |
import { getPath } from "./Utils";
const DOMAIN_NAME = "brackets-svg-font.fontforge-domain",
DOMAIN_PATH = getPath("../node/FontForgeDomain.js");
let ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
NodeDomain = brackets.getModule("utils/NodeDomain");
let FontForge;
function exec() {
if (!... |
/**
* Created by bulanmaster on 21.12.2016.
*/
import React, { Component, PropTypes } from 'react';
class BaseIInput extends Component {
render() {
const { type, placeholder } = this.props;
return (
<input className="baseIInput" type={type} placeholder={placeholder} />
);
... |
/*
* Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... |
import DS from 'ember-data';
var Table = DS.Model.extend({
tab: DS.belongsTo('tab')
});
Table.reopenClass({
FIXTURES: [
{
id: 1,
tab: 1
},
{
id: 2,
tab: 2
},
{
id: 3,
tab: 3
},
{
id: 4,
tab: 4
},
{
id: 5,
tab: 5
},
{
id: 6,
tab: 6
}
]
}... |
'use strict';
//Comites service used to communicate Comites REST endpoints
angular.module('comites').factory('Comites', ['$resource',
function($resource) {
return $resource('comites/:comiteId', { comiteId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]); |
import DS from 'ember-data';
const {
Model,
attr,
belongsTo,
hasMany
} = DS;
export default Model.extend({
name: attr('string'),
user: belongsTo('user', { async: true, autoSave: true }),
comments: hasMany('comment', { async: true, dependent: 'destroy' })
});
|
import { combineReducers } from 'redux';
import getApiReducer from '../common/utils/getApiReducer';
import { FETCH_COLLECTION_LIST } from './collection-actions';
import Immutable from 'immutable';
const collectionListReducer = (state = Immutable.Map(), action) => {
if (action.originalType === FETCH_COLLECTION_LIST) ... |
var item_cache = {}, item_id_map = {};
// Index functions
if(getParameterByName("fail") == "true") {
$("#location_search_error").html(error_string.location_not_set);
$("#location_search_error").show();
}
function geo_process(position) {
$.post("/set_location/", { latitude: position.coords.latitude, longitude: pos... |
// ********************************************************************
// **************************** HOW TO USE ****************************
// ********************************************************************
//
// 1. Include a <select> element with the class "vue-chosen" in your Vue template.
// 2. In BOTH moun... |
import React from 'react';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import './style.scss';
import reactLogo from './images/react-logo.png';
import reduxLogo from './images/redux-logo.png';
import headerBG from './images/home.jpg';
import Tit... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../../core/tsSupport/assignHelper ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper dojo/i18n!./ColorSlider/nls... |
var app = require('app')
var BrowserWindow = require('browser-window')
var mainWindow = null
app.on('ready', function () {
mainWindow = new BrowserWindow({
height: 600,
resizable: false,
title: '9-sensor-log',
width: 800
})
mainWindow.loadURL('file://' + __dirname + '/app/index.html')
mainWi... |
module.exports = function VacancyManageController($uibModal) {
var vm = this;
vm.open = function() {
$uibModal.open({
animation: vm.animationsEnabled,
templateUrl: 'js/vacancy/manage/create.html',
controller: 'VacancyCreateController',
controllerAs: 'vm',
resolve: {}
});
};
... |
/*
Copyright (c) 2012 Gildas Lormeau. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the follo... |
import gulp from 'gulp';
gulp.task('default', gulp.parallel('watch', 'debug'));
|
import * as actions from './actions';
import reducer from './reducer';
import Container from './Container';
import saga from './saga';
export { actions, reducer, Container, saga };
|
module.exports = [{
id:'1',
title:'系统自动填充',
status:1,
child:[
{
name:'公司名称',
label:'公司名称',
value:'101',
type:'0', // 0 为 文本类型 1 为时间类型
field: "{company_name}",
},
{
name:'员工姓名',
label:'员工姓名',
value:'102',
type:'0', // 0 为 文本类型 1 为时间类型
field: "{company_name}",
},
{
name:'员... |
export default {
projections: {
AuditView: {
text: {
__caption__: 'text'
},
votes: {
__caption__: 'votes'
},
moderated: {
__caption__: 'moderated'
},
author: {
__caption__: 'author',
name: {
__caption__: 'name'
}
... |
const { init } = require('../');
module.exports = {
command: 'init',
describe: 'Create a SQL schema in a database; uses PGHOST, PGDATABASE, PGUSER, PGPASSWORD environment variables to authenticate.',
builder: {},
handler: init
};
|
'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var debug = require('debug')('meshblu-mailgun')
var mailgun;
var MESSAGE_SCHEMA = {
type: 'object',
properties: {
from: {
type: 'string',
required: true
},
to: {
type: 'string',
require... |
var App = function(data) {
this.data = null;
this.map = null;
this.visualizations = new Array();
this.filters = new Array();
this.getData = function(){
return this.data;
};
this.setData = function(data){
this.data = data;
};
this.getMap = function(){
return this.map;
};
this.getVisualizations = f... |
import React from 'react'
import Sentry from 'react-activity/lib/Sentry'
import './Modal.styl'
export default class GithubLink extends React.Component {
render () {
return (
<div className="modal">
<Sentry className="modal-process" color="#57caf4" size={32} speed={1} />
</div>
)
}
}
|
import React from 'react';
import PropTypes from 'prop-types';
import Event from './Event';
import EventForm from './EventForm';
class EventList extends React.Component {
constructor(props) {
super(props);
}
render() {
const rest = Object.assign({}, this.props);
delete rest.list;
delete rest.se... |
'use strict';
angular.module('dockerUiApp').controller('HostsCtrl', [
'$rootScope', '$scope', 'Docker', 'hosts',
function ($rootScope, $scope, Docker, hosts) {
function normalize(hosts) {
var result = [],
host;
for (host in hosts) {
if (hosts.hasO... |
/**
* Defines a sampler and initializes it. HTML document must
* have an object with id="sampler" for the sampler to populate.
*
* Author: Spencer Rudnick
* Website: therudnick.com/software/sampler
*/
function sampler() {
beat = 0;
running = false;
length = 0;
paused = false;
intervalId = null;
... |
/* Theme customizations */
$(document).ready(function() {
if ( typeof SLB == 'undefined' || typeof SLB.View == 'undefined' || typeof SLB.View.extend_theme == 'undefined' )
return false;
/**
* Extend theme
* @param string id Theme to extend
* @param object props Theme properties to add to theme
*/
SLB.View.extend_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.