code stringlengths 2 1.05M |
|---|
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!... |
[db.config, db.config_anon].forEach(function(coll) {
coll.find().forEach(function(o) {
if (o.filter && o.filter.v && o.filter.v.length > 1) {
coll.update({
_id: o._id
}, {
$push: {
'filter.v': NumberInt(7)
}
});
};
});
});
|
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example51/index.html");
});
it('should toggle button', function() {
expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
element(by.model('checked... |
/*global device*/
var TrimFocusInput = Ember.TextField.extend({
focus: true,
attributeBindings: ['autofocus'],
autofocus: Ember.computed(function () {
return (device.ios()) ? false : 'autofocus';
}),
setFocus: function () {
// This fix is required until Mobile Safari has reliable
... |
/**
* @author Ed Spencer
* @aside guide stores
*
* The Store class encapsulates a client side cache of {@link Ext.data.Model Model} objects. Stores load
* data via a {@link Ext.data.proxy.Proxy Proxy}, and also provide functions for {@link #sort sorting},
* {@link #filter filtering} and querying the {@link Ext.da... |
import React, { useRef, useEffect } from 'react';
import styles from './Page.module.scss';
type Props = {
title?: string,
children: React.Node
};
const Page = ({ title, children }: Props) => {
const pageRef = useRef();
useEffect(() => {
pageRef.current.scrollIntoView();
});
return (
<div ref={pa... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fo', {
toolbar: 'Markera alt'
} );
|
(function () {
'use strict';
angular.module('com.module.users')
.run(function ($rootScope, gettextCatalog) {
$rootScope.addMenu(gettextCatalog.getString('Users'), 'app.users.list', 'fa-user');
});
})();
|
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.GLTFLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
THREE.GLTFLoader.prototype = {
constructor: THREE.GLTFLoader,
load: function ( url, onLoad, onProgress, onError ) {
var scope = this;
... |
Template.postsUpdate.events = {
'click #btnSave': function(e, t) {
e.preventDefault();
Router.current()._post = true;
Router.current().update(t);
Router.current()._post = false;
},
}; |
version https://git-lfs.github.com/spec/v1
oid sha256:bd106e80c0b1b3e195253b78fbf5ec70ee6bcdd03771332574beed7927d38e95
size 3501
|
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
/*
* # Semantic - Dropdown
* http://github.com/jlukic/semantic-ui/
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
$.fn.sidebar = function(parameters) {
var
$allModules = $(this),
module... |
// File: chapter9/timeAgoFilterSpec.js
describe('timeAgo Filter', function() {
beforeEach(module('filtersApp'));
var filter;
beforeEach(inject(function(timeAgoFilter) {
filter = timeAgoFilter;
}));
it('should respond based on timestamp', function() {
// The presence of new Date().getTime() makes it ... |
sampleTag`\xg` |
/*!
* Nestable jQuery Plugin - Copyright (c) 2014 Ramon Smit - https://github.com/RamonSmit/Nestable
*/
;
(function($, window, document, undefined) {
var hasTouch = 'ontouchstart' in window;
/**
* Detect CSS pointer-events property
* events are normally disabled on the dragging element to avoid con... |
/**
* @license
* (c) 2009-2016 Michael Leibman
* michael{dot}leibman{at}gmail{dot}com
* http://github.com/mleibman/slickgrid
*
* Distributed under MIT license.
* All rights reserved.
*
* SlickGrid v2.3
*
* NOTES:
* Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulat... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
Meteor.methods({
'2fa:disable'(code) {
if (!Meteor.userId()) {
throw new Meteor.Error('not-authorized');
}
const user = Meteor.user();
const verified = RocketChat.TOTP.verify({
secret: user.services.totp.secret,
token: code,
userId: Meteor.userId(),
backupTokens: user.services.totp.hashedBacku... |
var requestAnimFrame = (window.requestAnimationFrame ||
window.webkitAnimationFrame ||
function(cb) {
setTimeout(cb, 1000 / 60);
});
$(function() {
if($('body').attr('id') != 'home') {
return;
}
va... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Bold/Main.js
*
* Copyright (c) 2013-2014 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-color')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-color'], factory) :
(factory((global.d3_interpolate = {}),global.d3_color));
}(this, function (exports,d3Color) {... |
/**
* Copyright (c) 2008-2011 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
Ext.namespace("GeoExt.tree");
/** api: (define)
* module = GeoExt.tree
* class = LayerParamLoader
* base... |
/* global describe, it, expect, before */
var chai = require('chai')
, authenticate = require('../../lib/middleware/authenticate')
, Passport = require('../..').Passport;
describe('middleware/authenticate', function() {
describe('success with message set by route', function() {
function Strategy() {
... |
describe('getting resources after init', function() {
var resStore = {
dev: { translation: { 'test': 'ok_from_dev' } },
en: { translation: { 'test': 'ok_from_en' } },
'en-US': { translation: { 'test': 'ok_from_en-US' } }
};
beforeEach(function(done) {
i18n.init(i18n.functions.extend(... |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import heroComponent from './hero.component';
let heroModule = angular.module('hero', [
uiRouter
])
.directive('hero', heroComponent);
export default heroModule;
|
/*!
* OOjs UI v0.20.1
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2017 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2017-03-28T22:19:29Z
*/
( function ( OO ) {
'use strict';
/**
* Toolbars are complex interface components that ... |
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(<App />, div);
});
|
import _extends from"@babel/runtime/helpers/esm/extends";import React from"react";import SvgIcon from"../SvgIcon";export default function createSvgIcon(e,t){const o=(o,r)=>React.createElement(SvgIcon,_extends({"data-testid":`${t}Icon`,ref:r},o),e);return"production"!==process.env.NODE_ENV&&(o.displayName=`${t}Icon`),o.... |
"use strict";
module.exports = function (t, a) {
a(t.call("AA", "aa"), 0, "Same");
a.ok(t.call("Amber", "zebra") < 0, "Less");
a.ok(t.call("Zebra", "amber") > 0, "Greater");
};
|
var core = require("../level3/core");
require("./node");
exports.dom = { living: { core: core } };
|
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factory();
}
else if(typeof define === 'function' && define.amd) {
define('GMaps', [], factory);
}
root.GMaps = factory();
}(this, function() {
/*!
* GMaps.js v0.4.11
* http://hpneo.github.com/gmaps/
*
* Copyright 201... |
module.exports = function(hljs) {
var VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*';
var CHAR = {
className: 'char',
begin: '\\$.{1}'
};
var SYMBOL = {
className: 'symbol',
begin: '#' + hljs.UNDERSCORE_IDENT_RE
};
return {
keywords: 'self super nil true false thisContext', // only 6
contains: ... |
"use strict";
var inherits = require('util').inherits
, f = require('util').format
, toError = require('./utils').toError
, getSingleProperty = require('./utils').getSingleProperty
, formattedOrderClause = require('./utils').formattedOrderClause
, handleCallback = require('./utils').handleCallback
, Logger... |
/// <reference path="jquery-1.6.2.js" />
/// <reference path="jquery-ui-1.8.11.js" />
/// <reference path="jquery.validate.js" />
/// <reference path="jquery.validate.unobtrusive.js" />
/// <reference path="knockout-2.0.0.debug.js" />
/// <reference path="modernizr-2.0.6-development-only.js" /> |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCafe = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/>
</SvgIcon>
);
MapsLocalCa... |
'use strict';/**
* See {@link bootstrap} for more information.
* @deprecated
*/
var browser_1 = require('angular2/platform/browser');
exports.bootstrap = browser_1.bootstrap;
var angular_entrypoint_1 = require('angular2/src/core/angular_entrypoint');
exports.AngularEntrypoint = angular_entrypoint_1.AngularEnt... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v7.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c <... |
'use strict';
AccordionController.$inject = ['$scope', '$attrs', 'accordionConfig'];
DropdownToggleController.$inject = ['$scope', '$attrs', 'mediaQueries', '$element', '$position', '$timeout'];
dropdownToggle.$inject = ['$document', '$window', '$location'];
var _typeof = typeof Symbol === "function" && typeof Symbol.... |
export { default } from './Tabs';
export { default as tabsClasses } from './tabsClasses';
export * from './tabsClasses'; |
/*! /support/test/css/transition 1.1.0 | http://nucleus.qoopido.com | (c) 2016 Dirk Lueth */
!function(){"use strict";function e(e,r){var t=e.defer(),n=r("transition");return n?t.resolve(n):t.reject(),t.pledge}provide(["/demand/pledge","../../css/property"],e)}();
//# sourceMappingURL=transition.js.map
|
// Generated by CoffeeScript 1.4.0
/*
#
# Opentip v2.4.1
#
# More info at [www.opentip.org](http://www.opentip.org)
#
# Copyright (c) 2012, Matias Meno
# Graphics by Tjandra Mayerhold
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation fil... |
/**
* mixin issues
*
* Copyright 2012 Cloud9 IDE, Inc.
*
* This product includes software developed by
* Cloud9 IDE, Inc (http://c9.io).
*
* Author: Mike de Boer <info@mikedeboer.nl>
**/
"use strict";
var error = require("./../../error");
var Util = require("./../../util");
var issues = module.exports ... |
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
var Skeleton = (function() {
/*********
Model
*********/
function Model(attributes) {
// Make sure initialized
if(!(this instanceof Model)) {
return new Model(attributes);
}
if(!(attributes && attributes.defaults)) {
throw new Error('A "defaults" field must be passed');
}
// model clas... |
/*!***************************************************
* mark.js v8.1.1
* https://github.com/julmot/mark.js
* Copyright (c) 2014–2016, Julian Motz
* Released under the MIT license https://git.io/vwTVl
*****************************************************/
"use strict";
var _extends = Object.assign || funct... |
/*! angular-multi-select 7.4.6 */
"use strict";var angular_multi_select=angular.module("angular-multi-select");angular_multi_select.run(["$templateCache",function(a){var b=a.get("angular-multi-select.tpl");b=b.replace(/(class="(?:.*?)ams-item-text(?:.*?)")/gi,'$1 ng-click="item[amsc.INTERNAL_KEY_CHILDREN_LEAFS] === 0 &... |
/*! Hammer.JS - v1.0.10 - 2014-03-28
* http://eightmedia.github.io/hammer.js
*
* Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
* Licensed under the MIT license */
(function(window, undefined) {
'use strict';
/**
* Hammer
* use this to create instances
* @param {HTMLElement} element
* @para... |
//>>built
define("dojox/rpc/JsonRest",["dojo","dojox","dojox/json/ref","dojox/rpc/Rest"],function(_1,_2){
var _3=[];
var _4=_2.rpc.Rest;
var jr;
function _5(_6,_7,_8,_9){
var _a=_7.ioArgs&&_7.ioArgs.xhr&&_7.ioArgs.xhr.getResponseHeader("Last-Modified");
if(_a&&_4._timeStamps){
_4._timeStamps[_9]=_a;
}
var _b=_6._schema... |
/**
* Copyright 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule React... |
'use strict';
/* jshint -W030 */
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, current = Support.sequelize;
describe(Support.getTestDialectTeaser('Model'), function() {
var Project = current.define('project')
, User = current.define('user')
, Co... |
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
/*!
Facebox dialog module (for jQuery Dirty Forms) | v2.0.0-beta00008 | github.com/snikch/jquery.dirtyforms
(c) 2015 Shad Storhaug
License MIT
*/
(function($, window, document, undefined) {
// Can't use ECMAScript 5's strict mode because several apps
// including ASP.NET trace the stack via arguments.caller.c... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the
* Lithuanian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the... |
Template.main.onCreated(function() {
RocketChat.tooltip.init();
});
|
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @version 4.1.1
*
* File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced
* features including the FileReader API.
*
* The plugin drastically enhances the HTML file input to preview multiple files on the client bef... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.2.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var utils_1 = require('../utils');
var eventService_1 = require("../eventService");
var Component = (function () {
function Component(te... |
/**
* Generate the node required for the info display
* @param {object} oSettings dataTables settings object
* @returns {node} Information element
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlInfo ( oSettings )
{
var nInfo = document.createElement( 'div' );
nInfo.className = oSettings.oClasses.sInfo;... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'he', {
preview: 'תצוגה מקדימה'
});
|
describe('WaitsForBlock', function () {
var env, suite, timeout, spec, message, onComplete, fakeTimer;
beforeEach(function() {
env = new jasmine.Env();
env.updateInterval = 0;
suite = new jasmine.Suite(env, 'suite 1');
timeout = 1000;
spec = new jasmine.Spec(env, suite);
message = "some erro... |
"\ux";
|
/*! formstone v0.8.5 [cookie.js] 2015-09-10 | MIT License | formstone.it */
!function(a,b){"use strict";function c(b,c,h){if("object"===a.type(b))g=a.extend(g,b);else if(h=a.extend({},g,h||{}),"undefined"!==a.type(b)){if("undefined"===a.type(c))return e(b);null===c?f(b):d(b,c,h)}return null}function d(b,c,d){var e=!1,... |
tinyMCE.addI18n('ur.paste_dlg',{"word_title":"Use CTRL+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep linebreaks","text_title":"Use CTRL+V on your keyboard to paste the text into the window."}); |
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Should=e()}}(function(){var define,module,exports;return (function e(t,n,r){function... |
module.exports = 2;
|
function weekSelectPlugin(pluginConfig) {
return function (fp) {
var days = void 0;
function onDayHover(event) {
if (!event.target.classList.contains("flatpickr-day")) return;
dayIndex = Array.prototype.indexOf.call(days, event.target);
fp.weekStartDay = days[7 ... |
YUI.add('model-list', function(Y) {
/**
Provides an API for managing an ordered list of Model instances.
@submodule model-list
@since 3.4.0
**/
/**
Provides an API for managing an ordered list of Model instances.
In addition to providing convenient `add`, `create`, `reset`, and `remove`
methods for managing the mod... |
/**
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
jQuery(function($)
{
var treeselectmenu = $('div#treeselectmenu').html();
$('.treeselect li').each(function()
{
$li = $(this);
$div = $li.... |
'use strict';
function ClassList (el) {
var classNames = (this.className && this.className.split(' ')) || [];
for (var i = 0; i < classNames.length; i++) {
this.push(classNames[i]);
}
this._updateClassName = function () {
el.className = this.join(' ');
}
}
ClassList.prototype = [];
ClassList.proto... |
/*!
* Qoopido.js library v3.2.5, 2014-5-18
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/obje... |
/*! jQuery-Impromptu - v5.2.2 - 2014-01-29
* http://trentrichardson.com/Impromptu
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
(function($) {
"use strict";
/**
* setDefaults - Sets the default options
* @param message String/Object - String of html or Object of states
* @param options Object - Opt... |
require('../../../modules/es7.string.match-all');
module.exports = require('../../../modules/_entry-virtual')('String').matchAll;
|
/*!
* Bootstrap-select v1.6.0 (http://silviomoreto.github.io/bootstrap-select/)
*
* Copyright 2013-2014 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Nessuna selezione',
non... |
"use strict";
var Query = require('../connection/commands').Query
, retrieveBSON = require('../connection/utils').retrieveBSON
, f = require('util').format
, MongoError = require('../error')
, getReadPreference = require('./shared').getReadPreference;
var BSON = retrieveBSON(),
Long = BSON.Long;
var WirePr... |
/**
* Text range module for Rangy.
* Text-based manipulation and searching of ranges and selections.
*
* Features
*
* - Ability to move range boundaries by character or word offsets
* - Customizable word tokenizer
* - Ignores text nodes inside <script> or <style> elements or those hidden by CSS display and visi... |
// noop
|
import React from 'react';
import {render} from 'react-dom';
import BeverageList from './BeverageList';
import OrderList from './OrderList';
const beverages = [{
id: 1,
name: 'Espresso',
type: 'Coffee',
price: [{
size: 'tall',
cost: 1.95
},
{
size: 'grande',
cost: 2.05
},
{
size: 'v... |
class Plugin_Actionbar_View_Button extends View_Browser {
getIconPath() {
var instance = this.model.get('instance');
if (!instance) {
return undefined;
}
var
icon = instance.get('icon'),
button_type = this.model.get('button_type');
switch (button_type) {
case Plugin_Enum_ButtonTypes.A... |
'use strict';
const fontnik = require('fontnik');
const queue = require('d3-queue').queue;
const zlib = require('zlib');
/**
* Make all metadata (codepoints) and SDF PBFs necessary for Mapbox GL fontstacks.
* @param {Object} opts Options object with required `font` and `filetype` properties, and any optional parame... |
'use strict';
module.exports = ['$http', 'Contact', defaultContacts];
function defaultContacts($http, Contact) {
return {
get: function () {
return $http.get('data/defaults.json').then(function (resp) {
var contacts = [];
angular.forEach(resp.data, function (attributes) {
contact... |
export type CounterItem = {
id: string,
value: number,
title?: string
}
export type CounterItems = Array<CounterItem>
|
module.exports = new (require('../..'))();
|
// Jiffy Gruntfile
// Originally created by generator-angular 0.11.1
//
// Run 'grunt' for building and 'grunt serve' for preview.
// Use 'grunt test' to run the unit tests with karma.
// Use 'grunt docs' to generate doc. Then, run 'node webserver.js' and open in a browser (http://localhost/docs).
'use strict';
// # ... |
'use strict';
var mapRequire = require('map-require');
var _ = require('lodash');
var is = require('is-predicate');
var path = require('path');
var fs = require('fs');
var PHOTOS_PATH = path.join(__dirname, '..', 'public', 'images', 'speakers');
function appendPhoto(speaker) {
// filename of image is
var fname =... |
var util = require('util'),
webutil = require('../util/web'),
Tab = require('../client/tab').Tab,
fs = require('fs');
var SettingsGatewayTab = function() {
Tab.call(this);
};
util.inherits(SettingsGatewayTab, Tab);
SettingsGatewayTab.prototype.tabName = 'settingsgateway';
SettingsGatewayTab.prototype.m... |
"use strict";
function warning (message) {
var index = 1;
var args = arguments;
console.warn("Warning: " + message.replace(/%s/g, function () {
return args[index++];
}));
}
module.exports = warning;
|
"use strict";
/*
* Commands.js
* This file contains the RPC methods used by signalr
*/
var Commands = {
SendMessage: function (chat, model) {
var text = $('#messageInput').val();
if (true) {//if (model.Connected()) {
if (text[0] == '/') {
Commands.SendCommand(chat, mod... |
var Backbone = require('backbone');
var jquery = require('jquery');
Backbone.$ = jquery;
var Bot = Backbone.Model.extend({
});
module.exports = Bot;
|
var foxieData = require("foxie-data")
function closeMatch(iterate, ext) {
var fileExt = "."+iterate.split(".").pop();
if (fileExt == ext) return true;
else return false;
}
function $class(themeName) {
this.make = function (res, themePath) {
this.tmpArr = []
this.themeName = themePath.split("/").pop()
this.... |
'use strict';
describe('The nontriviality assumption', function() {
it('should hold', function() {
expect(true).to.be.true;
});
});
|
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { List } from 'material-ui/List';
import FollowingList from './presentation/FollowingList';
import CircularProgress from 'material-ui/CircularProgress';
import { getFollowing } from '../..... |
import executeInSeries from '../utils/executeInSeries';
import wait from '../utils/wait';
export default (userConfig) => () => {
const defaultConfig = {
delay: 10, // delay in milliseconds between each wave
nb: 100, // number of waves to execute (can be overridden in params)
};
const confi... |
LitJS.extendWith({
panelWrap : function(elements,title,collapsible,id,collapsed)
{
if (collapsible || collapsed) //if the element is not collapsible/collapsed, there's nowhere to display the tooltip, and no reason to display one
{
var headingEl = elements.headingEl
if (!headingEl) throw new Err... |
/*
The MIT License (MIT)
Copyright (c) 2015 Frédéric Bolvin | https://github.com/Fensterbank
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... |
version https://git-lfs.github.com/spec/v1
oid sha256:40d0e59d5fe1ac99c283f7c3ce8c5fda1c372c4991d26565e75dd8d388a8768d
size 2166
|
version https://git-lfs.github.com/spec/v1
oid sha256:cbaaf8e9006e2770060226d4468296a458c65a3c150e55da4ad4e937811c0af3
size 1067062
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.