code stringlengths 2 1.05M |
|---|
'use strict';
require('../common/service.js');
require('../prize_types/prize_types.service.js');
require('./roulette_game.service.js');
let angular = require('angular');
module.exports = angular.module('sanya.roulette_game', [
'ui.router',
'sanya.common.services',
'sanya.prize_types.service',
'sanya.r... |
import NavItem from "./NavItem.js";
export { NavItem };
|
'use strict';
var angular = require('angular');
/* @ngInject */
function currentVersion($log, version, buildTimestamp) {
function _link(scope, element, attrs) {
$log.debug('directiveDefinition.name', directiveDefinition.name);
$log.debug('attrs[directiveDefinition.name]', attrs[directiveDefinition... |
(function(){
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewport{width:auto!important}"
)
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
}()); |
version https://git-lfs.github.com/spec/v1
oid sha256:191d21e01913c665717e5da5dea69284231fe0773357a37eaefc80b871f1c85e
size 1170
|
/*
* CanvasJS v1.0.0 Beta 3- canvasjs.com
* Copyright 2013 fenopix
*/
(function(){function K(a,d){var b;b=function(){};b.prototype=d.prototype;b=new b;a.prototype=b;a.prototype.constructor=a;a.parent=d.prototype}function Y(a,d,b){"millisecond"===b?a.setMilliseconds(a.getMilliseconds()+1*d):"second"===b?a.setSeconds(a... |
import React from 'react';
import { mount } from 'enzyme';
import { MonthlyCashFlowRow } from '../../../forms/cashflow';
describe('<MonthlyCashFlowRow>', () => {
it('renders', () => {
const props = {
inputProps: {},
baseValue: 0,
updateClientValue: jest.fn(),
rowProps: ... |
// flow-typed signature: 9a683c921265d5e24f5022039bd63cb7
// flow-typed version: <<STUB>>/neutrino_v^8.3.0/flow_v0.76.0
/**
* This is an autogenerated libdef stub for:
*
* 'neutrino'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* c... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M4 19h14V5H4v14zm8-12h4v3h-4V7zm0 4h4v6h-4v-6zM6 7h5v5H6V7zm0 6h5v4H6v-4z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M6 13h5v4H6zm0-6h5v5H... |
import string from './string';
export default string;
|
;(function() {
var Game = function() {
var screen = document.getElementById("screen").getContext('2d');
this.size = { x: screen.canvas.width, y: screen.canvas.height };
this.bodies = createInvaders(this).concat(new Player(this));
this.shootSound = document.getElementById('shoot-sound');
var self... |
'use strict'
const argCommand = require('../cmd-helpers').argCommand
module.exports = (send) => {
return {
wantlist (cb) {
return send('bitswap/wantlist', {}, null, null, cb)
},
stat (cb) {
return send('bitswap/stat', {}, null, null, cb)
},
unwant: argCommand(send, 'bitswap/unwant')
... |
/**
* @private
*/
Ext.define('Ext.ux.grid.plugin.grouping.DragZone', {
extend: 'Ext.dd.DragZone',
groupColumnSelector: '.' + Ext.baseCSSPrefix + 'group-column',
groupColumnInnerSelector: '.' + Ext.baseCSSPrefix + 'group-column-inner',
maxProxyWidth: 120,
dragging: false,
... |
/**
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright... |
import s from 'underscore.string';
import { BaseRaw } from './BaseRaw';
export class LivechatVisitorsRaw extends BaseRaw {
getVisitorsBetweenDate({ start, end, department }) {
const query = {
_updatedAt: {
$gte: new Date(start),
$lt: new Date(end),
},
...department && department !== 'undefined' &&... |
import dateRangeArray from "date-range-array";
const a: Array<string> = dateRangeArray("2017-06-01", "2017-06-03");
//=> ['2017-06-01', '2017-06-02', '2017-06-03']
// $FlowExpectedError
const c: Array<string> = dateRangeArray("2017-06-01");
const d: Array<string> = dateRangeArray("2017-06-01", "2017-06-03");
|
var HelloComponent = React.createClass(
{
render: function()
{
var el = (
<div>
Hello
<ChildrenComponent/>
</div>
);
return el;
}
});
var ChildrenComponent = React.createClass(
{
render: function()
{
var createChild = function(n)
{
ret... |
/**
* @module og/entity/BaseBillboard
*/
'use strict';
import * as utils from '../utils/shared.js';
import { Vec3 } from '../math/Vec3.js';
/**
* Base prototype for billboard and label classes.
* @class
* @param {Object} [options] - Options:
* @param {og.Vec3|Array.<number>} [options.position] - B... |
System.register(['../validation/validation-group-builder', '../validation/validation-result', '../validation/validation-locale'], function (_export) {
'use strict';
var ValidationGroupBuilder, ValidationResult, ValidationLocale, ValidationGroup;
function _classCallCheck(instance, Constructor) { if (!(instance i... |
'use strict';
var assert = require('assert');
var should = require('should');
var application = require('..');
var app;
describe('.getCollection', function () {
describe('when a collection name is specified.', function () {
beforeEach(function () {
app = new application.App();
});
it('should get ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import renderer from 'react-test-renderer';
import App from '../src/App';
it('gen... |
/**
The public interface of the builder which interprets and converts the SKIP keyword
This is the main entrance of building SKIP part
*/
var BaseModel = require('../base/BaseModel.js');
var util = require('util');
var debug = require('debug')('connector:builder');
var spaces = " ";//4 spaces
var SkipBuilder =... |
/*!
* jQuery JavaScript Library v1.8.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*... |
// test-createkey.js
// © 2012 Harald Rudell <harald@therudells.com> MIT License
var createkey = require('../lib/createkey')
// https://github.com/haraldrudell/mochawrapper
var assert = require('mochawrapper')
exports['Create Key:'] = {
'Exports': function () {
assert.exportsTest(createkey, 1)
},
'Same': functi... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","th",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"ทั่วไป",items:[{name:"แถ... |
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);
function createColumnMigration({table, column, dbIsInCorrectState, operation, operationVerb, columnDefinition}) {
return function columnMigrations({t... |
var searchData=
[
['privatefuncptr',['privateFuncPtr',['/home/shannaracat/dev/gitlab/workspace_oss/LostInCompilation/docs/doxygen/shacat/html/structHackProxy.html#aee31a33e4df4d2c3ffb20a916cdd542a',1,'HackPrivate::privateFuncPtr()'],['/home/shannaracat/dev/gitlab/workspace_oss/LostInCompilation/docs/doxygen/shacat/ht... |
'use strict'
const TCP = require('libp2p-tcp')
const MulticastDNS = require('libp2p-mdns')
const WS = require('libp2p-websockets')
const Bootstrap = require('libp2p-bootstrap')
const spdy = require('libp2p-spdy')
const KadDHT = require('libp2p-kad-dht')
const mplex = require('libp2p-mplex')
const secio = require('libp... |
const User = require('../models/User');
exports.getpeople = (req, res) => {
User.find((err, docs) => {
res.render('missions', { people: docs });
});
}; |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
var useObjectID = function(value,record) {
if ( record.get('ObjectID') ) {
return record.get('ObjectID');
}
return 0;
};
var shiftDayBeginningToEnd = function(day) {
return Rally.util.DateTime.add(Rally.util.DateTime.add(Rally.util.DateTime.add(day,'hour',23), 'minute',59),'second',59);
};
Ex... |
/* Copyright (c) 2014-2015 Richard Rodger, MIT License */
'use strict'
var Assert = require('assert')
var Lab = require('lab')
var Seneca = require('..')
var lab = exports.lab = Lab.script()
var describe = lab.describe
var it = lab.it
var assert = Assert
var testopts = {log: 'silent'}
// Shortcuts
var arrayify = Fun... |
import React from 'react';
import { bool, array } from 'prop-types';
export default class ButtonToolbar extends React.Component {
static propTypes = {
pristine: bool.isRequired,
submitting: bool.isRequired,
errors: array.isRequired
};
render() {
const { pristine, submitting, errors } = this.props;
... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
define([
'aeris/util',
'aeris/api/models/aerisapimodel',
'aeris/errors/apiresponseerror'
], function(_, AerisApiModel, ApiResponseError) {
/**
* Represents data from multiple Aeris API endpoints
* combined into a single model.
*
* Note that AerisBatchModel does not currently support
* per-model a... |
module.exports="http://192.168.1.18/nafrhythm";
|
'use strict';
module.exports.definition = {
set: function (v) {
this.setProperty('-webkit-transition-property', v);
},
get: function () {
return this.getPropertyValue('-webkit-transition-property');
},
enumerable: true
};
|
exports.init = function(grunt) {
'use strict';
var fs = require('fs');
var path = require('path');
var flow = require('nue').flow;
var as = require('nue').as;
var istanbul = require('istanbul');
function flowEnd(err, done) {
if (err) {
grunt.fail.fatal(err);
} else {
... |
import { createStore, compose } from 'redux';
import { persistState } from 'redux-devtools';
import rootReducer from '../reducers';
import DevTools from '../containers/DevTools';
const finalCreateStore = compose(
DevTools.instrument(),
persistState(
window.location.href.match(
/[?&]debug_session=([^&]+)\... |
var util = require('./util');
var observable = require('./observable');
function Component(opts) {
this.opts = opts;
this.tpl = opts.tpl || {};
this.el = opts.el ? $(opts.el) : undefined;
this.data = opts.data || {};
this.listen = opts.listen || {};
this.events = opts.events || {};
this.handle = opts.han... |
var Pipe = function(stream, options) {
this.options = options;
this._use(stream);
return this;
};
Pipe.prototype._use = function( stream) {
if( !stream )
return;
if( !this.current) {
this.start = stream;
this.current = stream;
} else {
this.current.pipe(stream... |
const fs = require('fs');
const request = require('superagent');
const geolib = require('geolib');
module.exports = class XBus {
constructor() {
this.base_url = 'http://webservices.nextbus.com/service/publicJSONFeed';
}
async fetch(qs) {
try {
const res = await request.get(this.base_url).query(qs)... |
define(['../internal/baseToString', '../internal/isIterateeCall'], function(baseToString, isIterateeCall) {
/** Used to match words to create compound words. */
var reWords = (function() {
var upper = '[A-Z\\xc0-\\xd6\\xd8-\\xde]',
lower = '[a-z\\xdf-\\xf6\\xf8-\\xff]+';
return RegExp(upper + '{2,... |
/**
* Redraw the table (i.e. fnDraw) to take account of sorting and filtering,
* but retain the current pagination settings.
* @name fnStandingRedraw
* @anchor fnStandingRedraw
* @author Jonathan Hoguet
*
* @example
* $(document).ready(function() {
* var oTable = $('.dataTable').dataTable()
* ... |
//>>built
define({buttonOk:"OK",buttonCancel:"Zru\u0161i\u0165",buttonSave:"Ulo\u017ei\u0165",itemClose:"Zatvori\u0165"}); |
(function ($) {
// get window size
var $window = $(window);
var windowHeight = $window.height();
// update the size of window when resize
$window.resize(function () {
windowHeight = $window.height();
});
// define a function
$.fn.parallax = function (speedFactor, outerHeight) {
var $this = $(t... |
var fs = require('fs');
var os = require('os');
var path = require('path');
var dirs = [];
dirs.push('/usr/local/share/arduino');
dirs.push('/usr/share/arduino')
if(os.platform() === 'darwin'){
dirs.push('/Applications/Arduino.app/Contents/Resources/Java');
dirs.push('/Applications/Arduino.app/Contents/Java/'); /... |
const {
getQueryParams,
} = require('./util');
function UrlParser() {
for (const key of [
'parseProvider',
'parse',
'bind',
'create',
]) {
this[key] = this[key].bind(this);
}
this.plugins = {};
}
module.exports = UrlParser;
UrlParser.prototype.parseProvider = function(url) {
var match... |
// Generated by CoffeeScript 1.10.0
var ISOLATION_LEVEL, OPERATION_TYPE, Transaction, WritableTrackingBuffer, isolationLevelByValue, name, value, writeAllHeaders;
WritableTrackingBuffer = require('./tracking-buffer/writable-tracking-buffer');
writeAllHeaders = require('./all-headers').writeToTrackingBuffer;
/*
s2.... |
import './home';
|
import {
BufferGeometry,
DynamicDrawUsage,
Float32BufferAttribute,
MathUtils,
Uint32BufferAttribute,
Vector3
} from '../../../build/three.module.js';
import { SimplexNoise } from '../math/SimplexNoise.js';
/**
* @fileoverview LightningStrike object for creating lightning strikes and voltaic arcs.
*
*
* Usage... |
'use strict';
angular.module('users').controller('ProfileController', ['$scope', '$location', 'Authentication', '$http', '$stateParams', 'Boards', '$window',
function($scope, $location, Authentication, $http, $stateParams, Boards, $window) {
$scope.authentication = Authentication;
// If user is not signed i... |
/* eslint-disable no-unused-expressions */
import TcpSocket from './windows-socket'
describe('TCPSocket Windows Stream Socket unit tests', function () {
var socket
before(() => {
global.Windows = {
Networking: {
HostName: function (hostname) {
this.type = hostname
this.hostn... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('property-value', 'Integration | Component | property value', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Hand... |
const AbstractBinding = require('@serialport/binding-abstract')
const debug = require('debug')('serialport/binding-mock')
const { wrapWithHiddenComName } = require('./legacy')
let ports = {}
let serialNumber = 0
function resolveNextTick(value) {
return new Promise(resolve => process.nextTick(() => resolve(value)))
... |
let List = require( './list' ),
notes = new Array();
class NotesController extends List {
constructor() {
super( notes );
}
}
module.exports = NotesController;
|
import React, { Component } from 'react';
import './App.css';
import Nav from './components/navigation';
class App extends Component {
render() {
return (
<div className="App">
<Nav />
</div >
);
}
}
export default App;
|
'use strict';
var util = require( '../../../util' );
var fullFpsTime = 1000/60; // assume 60 frames per second
module.exports = {
setupDequeueing: function( opts ){
return function setupDequeueingImpl(){
var self = this;
var r = this.renderer;
if( self.dequeueingSetup ){
return;
... |
"use strict";
const cheerio = require("cheerio");
const semver = require("semver");
const scraper = require("./scraper");
const RELEASE = /^v\d+\.\d+\.\d+\/$/;
const MIN_VERSION = process.env.MIN_NW_VERSION || "0.13.0";
scraper("http://dl.nwjs.io/")
.then(function(body) {
const $ = cheerio.load(body);
co... |
"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")... |
define(
function (require) {
var lang = {};
lang.inherits = function (subClass, superClass) {
var Empty = function () {};
Empty.prototype = superClass.prototype;
var selfPrototype = subClass.prototype;
var proto = subClass.prototype = new Empty();
... |
var log = console.log,
app = require('koa')(),
koaBody = require('../index'),
port = process.env.PORT || 4290,
host = 'http://localhost';
app
.use(koaBody({
multipart: true,
formLimit: 15,
formidable: {
uploadDir: __dirname + '/uploads'
}
}))
.use(function *(n... |
//>>built
define(["dojo/_base/declare"],function(b){return b(null,{postMixInProperties:function(){this.textDir=this.params.textDir?this.params.textDir:this.params.dir},_setTextDirAttr:function(a){null!=(/^(ltr|rtl|auto)$/.test(a)?a:null)&&(this._set("textDir",a),this.chart.setTextDir(a))},_setDirAttr:function(a){this._... |
define(
[
'react',
'create-react-class',
'jquery',
],
function (React, createReactClass,$){
var ContainerThree = createReactClass({
render: function(){
var style = {
position: 'relative',
height: '250px',
... |
/*
*
* This example demonstrates how to add existing device to collection
*
* API Documentation:
* https://m2x.att.com/developer/documentation/v2/collections#Add-device-to-collection
*/
var config = require("./config");
var M2X = require("../lib/m2x");
var m2x_client = new M2X(config.api_key);
var DeviceId = con... |
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.section = {
name: 'section',
version : '4.0.5',
settings : {
deep_linking: false,
one_up: true,
callback: function (){}
},
init : function (scope... |
var engine = require('./lib/engine'),
importPipe = require('./lib/import-pipe');
exports.run = engine.run;
exports.importPipe = importPipe.importPipe;
exports.fetchPipe = importPipe.fetchPipe;
exports.pipe2decider = importPipe.pipe2decider;
exports.conf2input = importPipe.conf2input;
exports.pathsForTerminals = ... |
/* globals require, process, global, module */
/*************************************************************
* Variables
************************************************************/
// Modules
var exec = require('child_process').exec;
// Globals
var gulp = global.gulp;
function sh(cmd, exitOnError, cb) {
var c... |
({
baseUrl: ".",
paths: {
jquery: "jquery/jquery.min.js"
},
name: "app",
out: "main.js"
}) |
var gulp = require('gulp');
var paths = require('../paths');
var browserSync = require('browser-sync');
// outputs changes to files to the console
function reportChange(event){
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
}
// this task will watch for changes
// to js, html, and ... |
var Bindings = require("../bindings");
describe("observe sorted set", function () {
it("should work", function () {
var a = {name: 'a', index: 0};
var b = {name: 'b', index: 0};
var c = {name: 'c', index: 0};
var d = {name: 'd', index: 0};
var array = [a, b, c, d];
... |
/*!
* Ext JS Library 3.1.1
* Copyright(c) 2006-2010 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
if(typeof jQuery == "undefined"){
throw "Unable to load Ext, jQuery not found.";
}
(function(){
var libFlyweight;
Ext.lib.Dom = {
getViewWidth : function(full){
// jQuery doesn'... |
import React from 'react';
const PostCard = (props) => {
return (
<div>
<div className="col-xs-12 col-sm-6">
<div className="post--card">
<h3 className="post__title">Pomodoro Clock</h3>
<a className="post__author" href="#">created by Bob</a>
<p className="post__d... |
/*
* Revolution custom js file
* Author: Design_mylife
*
*/
//full width slider
jQuery(document).ready(function () {
revapi = jQuery('.tp-banner').revolution(
{
delay: 6000,
startwidth: 1170,
startheight: 600,
hideT... |
import React, { Component } from 'react'
import classnames from 'classnames'
import PropTypes from '../utils/proptypes'
import { getLang } from '../lang'
import { format } from '../utils/strings'
import * as Datetime from '../utils/datetime'
export default class TimeAgo extends Component {
count (current) {
cons... |
import cleanData from '../cleanData';
describe('i18n | Components | CMEditViewCopyLocale | utils', () => {
describe('cleanData', () => {
it('should change the localization key with the one passed in the argument', () => {
const data = {
address: 'test',
addresseses: [],
common: 'com... |
var logger = require('winston');
exports.notFound = function(req, res, next){
res.send(404, 'Sorry cant find that!');
}
exports.logErrors = function(err, req, res, next) {
logger.log("error", err.stack);
next(err);
}
exports.clientErrorHandler = function(err, req, res, next) {
if (req.xhr) {
logger.l... |
'use strict';
describe('Service: gridService', function () {
// load the service's module
beforeEach(module('uixApp'));
// instantiate service
var gridService;
beforeEach(inject(function (_gridService_) {
gridService = _gridService_;
}));
it('should do something', function () {
expect(!!gridSe... |
console.log("GlobalsDB-Admin is starting...");
var server,
config,
fs = require("fs");
try {
config = require("./config.js");
} catch (e) {
console.error("Unable to start: invalid configuration file config.js");
console.error(e);
process.exit(1);
}
// set config global
config.system = {
c... |
import { assert } from 'chai';
import utils from 'osg/utils';
import 'tests/mockup/mockup';
import primitiveFunctor from 'osg/primitiveFunctor';
import primitiveSet from 'osg/primitiveSet';
import DrawElements from 'osg/DrawElements';
import DrawArrays from 'osg/DrawArrays';
import Geometry from 'osg/Geometry';
import ... |
'use strict';
var Vault = require('../index');
var assert = require('assert');
describe('parse', function() {
describe('string', function () {
Vault.set('name', 'jimmy');
var name = Vault.get('name');
it('should be a typeof string', function () {
assert.equal('string', typeof name);
});
i... |
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
chai.should();
var assert = chai.assert;
var expect = chai.expect;
var fs = require('fs');
var rimraf = require('rimraf');
var outputDir = './output';
if (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir);
... |
/*
* jQuery File Upload Image Processing Plugin 1.0.6
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global define,... |
/**
* @fileoverview Rule to replace assignment expressions with operator assignment
* @author Brandon Mills
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Checks whe... |
module.exports = [{
'name': 'Accounting/Auditing'
}, {
'name': 'Administrative'
}, {
'name': 'Advertising'
}, {
'name': 'Business Analyst'
}, {
'name': 'Financial Analyst'
}, {
'name': 'Data Analyst'
}, {
'name': 'Art/Creative'
}, {
'name': 'Business Development'
}, {
'name': 'Consulting'
}, {
'name... |
'use strict';
const common = require('../common');
const assert = require('assert');
const { REPLServer } = require('repl');
const { Stream } = require('stream');
const { inspect } = require('util');
common.skipIfInspectorDisabled();
common.skipIfDumbTerminal();
const PROMPT = 'repl > ';
class REPLStream extends St... |
var path = require('path');
var fs = require('fs');
var url = require('url');
var _ = require('lodash');
module.exports = function (settings) {
return function (req, res, next) {
settings.load(parseHostname(req), function (err, config) {
if (err) return next();
if (!config) config = {};
... |
(function( $, sinon, undefined ) {
"use strict";
module( "Methods", {
setup: function() {
this.select = $( "#select-1" ).bselect({
animationDuration: 0
});
this.bselect = this.select.bselect( "element" );
},
teardown: funct... |
webix.protoUI({
name:"ckeditor",
$init:function(config){
this.$view.className += " webix_selectable";
},
defaults:{
borderless:true,
toolbar: [
[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
[ 'FontSize', 'TextColor', 'BGColor' ]
]
},
_init_ckeditor_once:function()... |
Template['clients'].helpers({
'clients': function() {
return Clients.find();
}
});
|
import { Class } from '../mixin/index';
import { $, Animation, isNumeric, isString, query, requestAnimationFrame, win } from '../util/index';
export default function (UIkit) {
UIkit.component('sticky', {
mixins: [Class],
props: {
top: null,
bottom: Boolean,
of... |
var ObserveOnObservable = (function (__super__) {
inherits(ObserveOnObservable, __super__);
function ObserveOnObservable(source, s) {
this.source = source;
this._s = s;
__super__.call(this);
}
ObserveOnObservable.prototype.subscribeCore = function (o) {
return this.source.subscribe(new ObserveO... |
var searchData=
[
['quadcol_2ecpp',['QuadCol.cpp',['../_quad_col_8cpp.html',1,'']]],
['quadcol_2eh',['QuadCol.h',['../_quad_col_8h.html',1,'']]]
];
|
/*
Simple JQuery menu.
HTML structure to use:
Notes:
Each menu MUST have a class 'menu' set. If the menu doesn't have this, the JS won't make it dynamic
If you want a panel to be expanded at page load, give the containing LI element the classname 'expand'.
Use this to set the right state in your page (generation) c... |
'use strict';
var Lib = require('../../lib');
var constants = require('./constants');
var isNumeric = require('fast-isnumeric');
var Axes = require('../../plots/cartesian/axes');
var maxRowLength = require('../../lib').maxRowLength;
var getImageSize = require('./helpers').getImageSize;
module.exports = function calc(... |
const root = __dirname + '/../../../..';
require('@babel/register')({
root,
cwd: root,
configFile: root + '/packages/server/babel.config.js',
extensions: ['.js', '.jsx', '.ts', '.tsx'],
cache: false
});
require.extensions['.scss'] = () => {};
require.extensions['.css'] = () => {};
require.extensions['.less'... |
const dashboards = require('../lib/dashboards.js');
const helper = require('../lib/helper.js');
const config = require('config');
var program = require('commander');
// Print out the URL of the newly created dashboard
var handleCreate = function(error, response, body) {
var rspBody = helper.handleCB(error, response,... |
import _ from 'underscore';
import s from 'underscore.string';
import moment from 'moment';
/**
* Chechs if a messages contains a user highlight
*
* @param {string} message
* @param {array|undefined} highlights
*
* @returns {boolean}
*/
export function messageContainsHighlight(message, highlights) {
if (! hig... |
'use strict';
/**
* idbRequest
* -----------------------------------------------------------------------------
* [Exposed=(Window,Worker)]
* interface IDBRequest : EventTarget {
* readonly attribute any result;
* readonly attribute DOMException? ... |
import { Mixin } from 'ember-metal/mixin';
import create from 'ember-metal/platform/create';
import { meta } from 'ember-metal/utils';
import {
on,
addListener,
removeListener,
suspendListener,
suspendListeners,
sendEvent,
hasListeners
} from "ember-metal/events";
QUnit.module('system/props/events_test'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.