code stringlengths 2 1.05M |
|---|
/*
This overlay provides a 'liquid' mode to the excellent CodeMirror editor (http://codemirror.net/).
Taken from https://gist.github.com/kylefox/1356686
Add something like this to your CSS:
.cm-liquid-tag {
color: #32273f;
background: #ead9ff;
}
.cm-liquid-variable {
color: #2... |
gc2i18n = {
dict: {
/* Start of viewer and widget */
"Meters": "Meters",
"Buffer": "Buffer",
"Search": "Search",
"Result": "Result",
"Info": "Info",
"Layers": "Layers",
"Legend": "Legend",
"Help": "help",
"Log": "Log",
"Address"... |
import ReactReconciler from './byo-react-reconciler';
import getNode from './byo-get-node-from-instance';
import ByoReactChildReconciler from './byo-react-child-reconciler';
import ByoDOMProperty from './byo-dom-property';
import ByoDOMPropertyOperations from './byo-dom-property-operations';
class ByoReactDOMComponent... |
var Bar = Backbone.Collection.extend({
model: Alcohol,
localStorage: new Backbone.LocalStorage('Bar'),
defaultAlcohol: function(){
var alcohol = {
beer: [],
wine: [],
hl:[]
};
alcohol.beer = [
{
"name": "Blue Moon",
"alcoholContent": 0.054,
"ounces": 12,
"timeConsu... |
module.exports = require('./lib/bot')
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils = require("../util/utils");
const Emitter = require("component-emitter2");
class AnonymousRecord extends Emitter {
constructor(getRecordCore) {
super();
this.record = null;
this.subscriptions = [];
... |
const MockServer = require('./mockserver.js');
let server;
module.exports = {
start(done) {
server = MockServer.init();
server.on('listening', function () {
done();
});
},
stop(done) {
if (!server) {
done();
return;
}
server.close(function () {
done();
});
... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['3285',"Tlece.Recruitment.UploaderAMS Namespace","topic_0000000000000B83.html"]]; |
function showDebitMovementsOverTime() {
var url = "/Home/GetDebitMovementsOverTime";
$.get(url)
.done(function (result) {
var values = [];
$.each(result.ChartDatasets[0].Values,
function(index, val) {
values.push(val.Value);
... |
'use strict';
angular.module('wsapp')
.controller('ApplicationController', function ($scope, $location, applicationService, $state, $cookies, $stateParams) {
console.log($stateParams.programmeId)
$scope.degreeId = $stateParams.programmeId
$scope.availableOptions = [ {name : "- Select ... |
module.exports = function(app) {
var homeController = {};
var File = app.models.file;
homeController.read = function(req, res) {
var _id = req.params.id;
File.findById(_id).exec()
.then(
function(file) {
if(!file) throw new Error('File not found!');
res.download(file.pa... |
/**
* @license Highstock JS v8.0.1 (2020-03-02)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Rafał Sebestjański
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module... |
#!/usr/bin/env node
import yargs from 'yargs';
import { concat, memoize } from 'ramda';
/**
* Lazy loading and cache of an internal ES6 module
*
* @param {String} module - Module to evaluate
* @return {*}
*/
const getModule = memoize(concat('./') & require);
/**
* Entry point of Rung CLI
*
* @param {Object} a... |
export { EventEmitterEx } from './EventEmitterEx';
export { EventProxify } from './EventProxify';
|
angular.module('angular-timeline', ['ngSanitize']);
// Source: src/timeline-badge-directive.js
/*global angular*/
/**
* @ngdoc directive
* @name angular-timeline.directive:timeline-badge
* @restrict AE
*
* @description
* Shown in the centre pane (or left on narrow devices) to indicate the activity.
*/
angular.m... |
"use strict";
var _utils = _interopRequireWildcard(require("./utils"));
var _es = require("./es2015");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = ... |
'use strict';
describe('Relations', function() {
var Todo = client.backbone.LocalTodo;
var User = client.backbone.LocalUser;
Todo.Collection.prototype.comparator = 'created';
var user, collection;
var ids = {};
var json;
before(function reset(done) {
localStorage.clear();
client.model... |
import PropTypes from 'prop-types';
import React from 'react';
import cloneDeep from 'lodash.clonedeep';
let createPlotlyComponent = (plotlyInstance) => class Plotly extends React.Component {
static propTypes = {
data: PropTypes.array,
layout: PropTypes.object,
config: PropTypes.object,
onClick: Pr... |
import EmberPerfService from 'ember-perf/services/ember-perf';
import RouterExt from 'ember-perf/ext/router';
import RouteExt from 'ember-perf/ext/route';
import config from '../config/environment';
const {
Router, Route
} = Ember;
function injectServiceOntoFactories(emberPerf, container, application) {
const {
... |
import React, { Fragment, Component } from 'react'
import PropTypes from 'prop-types'
import {
TrapApiError,
Widget,
WidgetHeader,
WidgetBody,
WidgetLoader,
ExternalLink,
UsersIcon,
} from '@mozaik/ui'
import ProjectMembersItem from './ProjectMembersItem'
export default class ProjectMembers... |
/**
*
* food.js
*
* @description
* @author Fantasy <fantasyshao@icloud.com>
* @create 2014-12-01
* @update 2014-12-04
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var FoodSchema = new Schema({
name: { type: String },
price: { type: Number },
shopId: { type: Number }
});
mongoose... |
import Posts from "meteor/vulcan:posts";
import { addCallback, getSetting } from 'meteor/vulcan:core';
function getEmbedlyData(url) {
var data = {};
var extractBase = 'https://EmbedAPI.com/api/embed';
var embedlyKey = getSetting('embedAPIKey');
var thumbnailWidth = getSetting('thumbnailWidth', 200);
var thum... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
/**
* Each section of the site has its own module. It probably also has
* submodules, though this boilerplate is too simple to demonstrate it. Within
* `src/app/home`, however, could exist several additional folders representing
* additional modules that would then be listed as dependencies of this one.
* For exam... |
myApp.directive('myJsonEditor', [function()
{
return {
restrict: 'E',
require: 'ngModel',
scope: {
},
link: function(scope, root, attr, ngModel)
{
var editor = null, editorSession = null, tmrChanged = 0;
editor = window.ace.edit(root... |
export { default } from 'ember-enchant/components/enchant-text';
|
/**
* Reaction.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
//connection: 'userMongodbServer',
attributes: {
section: {
... |
var lib = require('./google-lib.js');
function searchBooks(req, res, next) {
lib.searchBooks(req.params.search, function (err, result) {
next.ifError(err);
return res.json(result);
});
}
module.exports.searchBooks = searchBooks;
|
/**
* @license Highstock JS v8.1.0 (2020-05-05)
* @module highcharts/indicators/ema
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Sebastian Bochan
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/ema.src.... |
import { W as WidgetBehavior, y as getFloatFromAttr, i as isEqual } from './index-0338ddf6.js';
const EVENT_MAP = {
'mousemove': 'onDragging',
'touchmove': 'onDragging',
'mouseup': 'onDragEnd',
'touchend': 'onDragEnd',
'contextmenu': 'onDragEnd',
};
class SliderBehavior extends WidgetBehavior {
static get... |
/** @license React vundefined
* react.development.js
*
* 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.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(function() {
'... |
'use strict';
var Debug = require('./Debug-ec8c9014.js');
var redux = require('redux');
var turnOrder = require('./turn-order-0846b669.js');
var reducer = require('./reducer-172d838d.js');
var initialize = require('./initialize-05ccbf0c.js');
/**
* Class to manage boardgame.io clients and limit debug panel renderin... |
(function() {
/*!
* @overview Ember - JavaScript Application Framework
* @copyright Copyright 2011-2018 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CardTitle = exports.CardText = exports.CardMedia = exports.CardActions = exports.Card = undefined;
var _reactCssThemr = require('react-css-themr');
var _identifiers = require('../identifiers.js');
var _Card = require('./Card.js')... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PolygonMaskPlugin=void 0;var PolygonMaskInstance_1=require("./PolygonMaskInstance"),PolygonMaskPlugin=function(){function n(){this.id="polygonMask"}return n.prototype.getPlugin=function(n){return new PolygonMaskInstance_1.PolygonMaskInstance(n)... |
/*
* /MathJax-v2/localization/diq/TeX.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/licens... |
"use strict";
exports.__esModule = true;
exports.default = useMergeRefs;
var React = _interopRequireWildcard(require("react"));
var _mergeRefs = _interopRequireDefault(require("../mergeRefs"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildc... |
/**
* Tom Select v1.2.1
* Licensed under the Apache License, Version 2.0 (the "License");
*/
/**
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
* https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or... |
// exporting modules to be included the UMD bundle
import disabled from './disabled';
import focusRelevant from './focus-relevant';
import focusable from './focusable';
import onlyTabbable from './only-tabbable';
import shadowed from './shadowed';
import tabbable from './tabbable';
import validArea from './valid-area... |
export const EMAIL_REGEX = /^\S+@\S+$/
|
/*jshint esnext:true*/
/*exported DNSPacket*/
'use strict';
module.exports = window.DNSPacket = (function() {
var DNSRecord = require('./dns-record');
var DNSResourceRecord = require('./dns-resource-record');
var DNSUtils = require('./dns-utils');
var ByteArray = require('./byte-array');
co... |
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
var header = require('gulp-header');
var cleanCSS = require('gulp-clean-css');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
var pkg = require('./package.json');
// Set ... |
(function() {
Dagaz.AI.AI_FRAME = 2000;
Dagaz.AI.REP_DEEP = 30;
Dagaz.AI.MAX_QS_LEVEL = 5;
Dagaz.AI.MAX_AB_VARS = 1000;
Dagaz.AI.MAX_QS_VARS = 5;
Dagaz.AI.STALEMATE = -1;
var penalty =
[ -60, -30, -10, 20, 20, -10, -30, -60,
40, 70, 90, 120, 120, 90, 70, 40,
-60, -30, -10, ... |
version https://git-lfs.github.com/spec/v1
oid sha256:0f595fb93d8acbaf1122997e4202293c5599493cc8ff8f439546cb9b44b608f9
size 648
|
define(function () {
console.log('file-shimmed.js');
}); |
/*
browserclient.js
================
Model objects (via Backbone) for a browser client (a connection to a browser + the test run session)
and the returned test results for a run of tests.
*/
var log = require('winston')
, Backbone = require('backbone')
, tap = require('tap')
, extend = require('util')._extend... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Tile = require('../Tile');
var IsInLayerBounds = require('./IsInLayerBounds');
var CalculateFacesAt = require('./CalculateFacesAt');
var Set... |
(function() {
"use strict";
var co = require('co');
var assert = require('assert');
describe("Ceramic Core", function() {
var Author, BlogPost;
var authorSchema, postSchema;
var Ceramic;
before(function() {
return co(function*() {
Ceramic = require("../lib/ceramic");
A... |
import Helper, { states } from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Has Many | Basic | accessor', {
beforeEach() {
this.helper = new Helper();
}
});
/*
The reference to a belongs-to association is correct, for all states
*/
states.forEach((state) => {
test(`the r... |
var class_drachenhorn_1_1_xml_1_1_sheet_1_1_roll_1_1_roll_attributes =
[
[ "RollAttributes", "class_drachenhorn_1_1_xml_1_1_sheet_1_1_roll_1_1_roll_attributes.html#a28710884c28ece183837546ac6cf8aa8", null ],
[ "RollAttributes", "class_drachenhorn_1_1_xml_1_1_sheet_1_1_roll_1_1_roll_attributes.html#a6696659b2d75... |
const babel = require('rollup-plugin-babel');
const commonjs = require('rollup-plugin-commonjs');
const createBanner = require('create-banner');
const nodeResolve = require('rollup-plugin-node-resolve');
const pkg = require('./package');
pkg.name = pkg.name.replace(/^.+\//, '');
const banner = createBanner({
case: ... |
/**
* lessThan validator
*
* @link http://formvalidation.io/validators/lessThan/
* @author https://twitter.com/formvalidation
* @copyright (c) 2013 - 2015 Nguyen Huu Phuoc
* @license http://formvalidation.io/license/
*/
(function($) {
FormValidation.I18n = $.extend(true, FormValidation.I18n... |
"use strict";
// I003: ES5 option is now set per default
/*jshint es5: true */
// W117: 'jshintrp' is not defined.
// W033: Missing semicolon.
jshintrp
|
var express = require('express');
var bodyParser = require('body-parser');
var cons = require('consolidate');
var routes = require('./server/routes.js'); //requesting my module routes
var app = express();
app.use(bodyParser());
app.use(express.static(__dirname + '/'));
app.engine('html', cons.swig);
app.set('view e... |
var config = require('../config');
var imagemin = require('gulp-imagemin');
var runSequence = require('run-sequence');
var spritesmith = require('gulp.spritesmith');
gulp.task('sprites' ,function () {
runSequence('generateSpriteFiles', 'sass');
});
gulp.task('generateSpriteFiles', function() {
var spriteData =... |
/**
* 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.
*/
type TextEncodeOptions = { options?: boolean, ... };
declare class TextEncoder {
encode(buffer: string, options?: TextEncodeOpt... |
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { ImageViewerDirective } from './image-viewer.directive';
import { ImageViewerComponent } from './image-viewer.component';
import { ImageViewerController } from './image-viewer.controller';
var IonicImageViewerModule = (f... |
import Economy from './economy';
export default tour;
/**
* Gets the name of users
*
* @param {Array} users
* @return {String} name
*/
function usersToNames(users) {
return users.map((user) => user.name);
}
/**
* Determines the amount of earnings from tournaments
*
* @param {Number} sizeRequiredToEarn
* ... |
/**
* @file
* Provides javascript methods for manage the visual help.
*/
(function ($, Drupal) {
// Global variable base_path.
var drupalBasePath = "";
// Hide the visual help for document ready
$('.vcl-visual-help').hide();
$('.vcl-btn').text('Enable Visual Content Layout');
/**
* Manage the disp... |
//subscribe to posts in routes not using waitOn
Meteor.subscribe('posts');
|
import React from 'react';
import { Form, Button } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import './styles.scss';
function formatDate(date) {
const d = new Date(date);
const monthStr = (d.getMonth() + 1).toString();
const dayStr = d.getDate().toString();
const ye... |
var assert = require('assert');
var WebSocket = require('ws');
var zetta = require('./..');
var zettacluster = require('zetta-cluster');
var Driver = require('./fixture/example_driver');
var MemRegistry = require('./fixture/mem_registry');
var MemPeerRegistry = require('./fixture/mem_peer_registry');
describe('Peering... |
/*!
* CanJS - 2.2.7
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Fri, 24 Jul 2015 20:57:32 GMT
* Licensed MIT
*/
/*can@2.2.7#view/parser/parser*/
steal('can/view', function (can) {
function makeMap(str) {
var obj = {}, items = str.split(',');
for (var i = 0; i < items.length; i++) {
... |
/**
* Load the specified relations for the given instance.
*
* @param resourceName The name of the type of resource of the instance for which to load relations.
* @param instance The instance or the primary key of the instance.
* @param relations An array of the relations to load.
* @param options Optional config... |
var ProgressBarClassic = require('./lib/ProgressBarClassic')
module.exports = ProgressBarClassic
|
// Initializes the `messages` service on path `/messages`
const createService = require('feathers-sequelize');
const createModel = require('../../models/messages.model');
const hooks = require('./messages.hooks');
const filters = require('./messages.filters');
module.exports = function () {
const app = this;
const... |
require('mocha');
const should = require('should');
const mongoose = require('mongoose');
const lockdown = require('..');
const Schema = mongoose.Schema;
// make database connection
mongoose.connect('mongodb://localhost', {
useNewUrlParser: true,
useMongoClient: true,
});
mongoose.connection.on('error', function(e... |
var assert = require('assert')
var specifications = require('./specifications.json')
var compressible = require('./')
// None of these should be actual types so that the lookup will never include them.
var example_types = [
{ type: 'something/text', should: true },
{ type: 'thingie/dart', should: true },
... |
var app, viewModel;
viewModel = {
dt1: new u.DataTable({
meta: {
f1: {},
f2: {}
}
}),
};
/**
* app 创建框架服务
* el 指定服务对应的顶层DOM
* model 指定服务对应的数据模型
*/
app = u.createApp({
el: 'body',
model: viewModel
});
// 创建空行,绑定默认值
var r = viewModel.dt1.createEmptyRow();
r.se... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 20h20v4H2v-4zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5L5.49 17zm4.42-5.61 2.03-5.79h.12l2.03 5.79H9.91z"
}), 'FormatColorText'); |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.8.2r1
*/
/**
* The Carousel module provides a widget for browsing among a set of like
* objects represented pictorially.
*
* @module carousel
* @requires yahoo, dom, e... |
/// <reference path="D:\GE\GE.WebUI\bower_components/jquery/dist/jquery.min.js" />
(function ($) {
$.fn.geGameMenu = function () {
this.each(function () {
var $this = $(this);
$this.find('[data-toggle="tooltip"]').tooltip({
container: $this
});
}... |
import BasePlugin from './../_base.js';
import Handsontable from './../../browser';
import {addClass, hasClass, removeClass, outerHeight} from './../../helpers/dom/element';
import {arrayEach, arrayMap} from './../../helpers/array';
import {rangeEach} from './../../helpers/number';
import {eventManager as eventManagerO... |
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Container } from "./Container";
import { List, ListDisposer } from "./utils/Li... |
/*
Copyright 2016 Capital One Services, LLC
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
Unless required by applicable law or agreed to in writing... |
'use strict'
var XML = require('xmlbuilder')
var YAML = require('yamljs')
var moment = require('moment')
module.exports = function (req, res, next) {
res.bodyXmlObj = {
response: res.body
}
// am I pretty?
var spaces = req.headers['x-pretty-print'] ? parseInt(req.headers['x-pretty-print'], 10) : 2
fun... |
const moment = require('moment-timezone');
const { LOCALE_TIMEZONE } = process.env;
const pgTimeToDate = time => new Date(`2000-01-01 ${time}`);
const dateTime = (date, time) => new Date([date, time].join('T'));
function getDuration(start, end) {
const diffMS = end.getTime() - start.getTime();
const diffMinutes ... |
var api = require("./api");
function getRevision(id, body, callback) {
if (body.revision) {
return callback(null, body.revision);
}
api.get("/tasks/" + id, function(error, response, body) {
if (error) {
return callback(error);
}
callback(null, body.revision);
});
}
module.exports = funct... |
'use strict';
import React, { AppRegistry } from 'react-native';
import Main from './src/containers/Main/Main';
AppRegistry.registerComponent('gainsville', () => Main);
|
/** @license React v16.11.0
* react.development.js
*
* 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.
*/
'use strict';
(function (global, factory) {
typeof exports === 'object' && ty... |
//
// Minimal amount of configuration required for running Jasmine
// specs in an headless environment
//
// You may choose to use a slighly different environment with
// reporters like a jasmine.TrivialReporter or jasmine.HtmlReporter
// to see the results py pointing your browser to your spec runner.
//
// If you ar... |
'use strict';
/**
* Register the Babel require hook. This will transpile
* ES6 files to ES5 on-the-fly.
*
* @see https://babeljs.io/docs/usage/require/
*/
require('babel/register')({
optional: ["es7.classProperties"]
});
/**
* Bootstrap our server process. This is responsible for
* pre-rendering React views ... |
goog.provide('app.modifyrectangle');
goog.require('ngeo.interaction.ModifyRectangle');
/** @suppress {extraRequire} */
goog.require('ngeo.mapDirective');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.OSM');
goog.require('ol.sour... |
import { moduleForComponent, test } from 'ember-qunit';
var component;
moduleForComponent('magma-button', 'Unit | Component | magma button', {
unit: true,
setup() {
component = this.subject({name: 'buttons', value: 'button1'});
},
teardown() {
component = null;
}
});
test('Component has correct initial val... |
import { Button } from '@rocket.chat/fuselage';
import React, { memo } from 'react';
import { useEditableSettingsGroupSections } from '../../../../contexts/EditableSettingsContext';
import { useMethod } from '../../../../contexts/ServerContext';
import { useToastMessageDispatch } from '../../../../contexts/ToastMessag... |
'use strict';
/**
* @author Jeremy Dowell <jeremy@codevinsky.com>
* @license {@link http://www.wtfpl.net/txt/copying/|WTFPL}
*/
/**
* Creates a new `Juicy` object.
*
* @class Phaser.Plugin.Juicy
* @constructor
*
* @param {Phaser.Game} game Current game instance.
*/
Phaser.Plugin.Juicy = function (game) {... |
//
// CLUSTER VIEW
//
bv.views.cluster = {
name: "cluster",
description: "Projection View",
plots: {}
};
bv.views.cluster.create = function() {
var view = Object.create(bv.views.cluster);
view.resourcesRequested = [
bv.ui.request("runs", "runs.json"),
bv.ui.request("solvers", "sol... |
export default () => (
<div className="card">
<div className="card__item soft">
<div className="soft-half-top one-fifth push-bottom background--light-tertiary" />
<div className="soft-half-top four-fifths push-half-bottom background--light-tertiary" />
<div className="soft-half-top one-half pus... |
/*! jQuery UI - v1.10.3 - 2013-08-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomple... |
// Last.Fm Records 3.1
// Copyright 2008 -
// Jeroen Smeets
// http://jeroensmeets.net/
// Released under GPL license, with an additional remark:
// If you release this code as part of your own package,
// you have to change the API key. For more info, see
// http://www.last.fm/api/account
var lastFmRecords = (funct... |
// it's bad to do this in general, as code is now heavily environment specific
var fs = System._nodeRequire('fs');
var CleanCSS = require('./clean-css.js');
function escape(source) {
return source
.replace(/(["\\])/g, '\\$1')
.replace(/[\f]/g, "\\f")
.replace(/[\b]/g, "\\b")
.replace(/[\n]/g, "\\n")
... |
import Ember from 'ember';
export default Ember.Controller.extend({
activeProjects: Ember.computed("model.[]", function() {
return this.get("model").filterBy("state", "active");
}),
completedProjects: Ember.computed("model.[]", function() {
return this.get("model").filterBy("state", "completed");
}),... |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
/*!
* From Bootstrap's docs (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under the Creative Commons Attribution 3.... |
// Generated by CoffeeScript 1.10.0
(function() {
var _;
_ = require('underscore');
module.exports = {
groupByAlpha: function() {
var instance;
instance = new this.model();
return this.groupBy(function(model) {
var key, letter;
key = (typeof model.alphaSortKey === "function... |
/* eslint-env node */
const gulp = require('gulp');
const zip = require('gulp-zip');
const del = require('del');
const pkg = require('./package.json');
let versionedPane = `panes-${pkg.emberVersionsSupported[0].replace(
/\./g,
'-'
)}`;
function compress(baseSrc, archiveName) {
return gulp
.src(`${baseSrc}/**... |
orion.collections.onCreated(function() {
var self = this;
/**
* Register the link
*/
var linkOptions = _.extend({
identifier: 'collections-' + self.name,
routeName: 'collections.' + self.name + '.index',
activeRouteRegex: 'collections.' + self.name,
permission: 'collections.' + self.name + ... |
var path = require('path');
var webpack = require('webpack');
var plugins = [new webpack.HotModuleReplacementPlugin()];
var entry = ['./src/index'];
if(process.env.NODE_ENV === "production") {
plugins.push(new webpack.optimize.UglifyJsPlugin({minimize: true, comments: false}));
} else {
entry.push('webpack-dev-se... |
import { Instruction, INUMBER, IOP1, IOP2, IOP3, IVAR, IVARNAME, IEXPR, IMEMBER, IARRAY } from './instruction';
export default function simplify(tokens, unaryOps, binaryOps, ternaryOps, values) {
var nstack = [];
var newexpression = [];
var n1, n2, n3;
var f;
for (var i = 0; i < tokens.length; i++) {
var... |
webpackJsonp([2,4],{
/***/ 292:
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(454);
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var up... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = markEvents;
var _events = require('./events');
var _events2 = _interopRequireDefault(_events);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Cleans up events' re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.