code stringlengths 2 1.05M |
|---|
(function(){
'use strict';
angular.module('gantt').factory('GanttObjectModel', ['ganttUtils', 'moment', function(utils, moment) {
var ObjectModel = function(api) {
this.api = api;
this.api.registerEvent('tasks', 'clean');
this.api.registerEvent('rows', 'clean');
... |
import { generateUtilityClasses, generateUtilityClass } from '@material-ui/unstyled';
export function getFormControlLabelUtilityClasses(slot) {
return generateUtilityClass('MuiFormControlLabel', slot);
}
var formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'label... |
/*
This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
(function (g, factory) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = factory(require('react'), require('react-dom'))
} else if (typeof define === 'function' && define.amd) {
define(['react', 'react-dom'], factory)
} else {
g['ReactAutocomplete... |
/* */
module.exports = require("crypto").createHash;
|
define(
({
fontSize: "Размер",
fontName: "Шрифт",
formatBlock: "Формат",
serif: "с засечками",
"sans-serif": "без засечек",
monospace: "непропорциональный",
cursive: "курсив",
fantasy: "артистический",
noFormat: "Нет",
p: "Абзац",
h1: "Заголовок",
h2: "Подзаголовок",
h3: "Вложенный подзаголов... |
// XXX type checking on selectors (graceful error if malformed)
// LocalCollection: a set of documents that supports queries and modifiers.
// Cursor: a specification for a particular subset of documents, w/
// a defined order, limit, and offset. creating a Cursor with LocalCollection.find(),
// ObserveHandle: the ... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import cp from 'child_process'... |
define("dojo/hash", ["./_base/kernel", "require", "./_base/config", "./aspect", "./_base/lang", "./topic", "./domReady", "./sniff"],
function(dojo, require, config, aspect, lang, topic, domReady, has){
// module:
// dojo/hash
dojo.hash = function(/* String? */ hash, /* Boolean? */ replace){
// summary:
// G... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v8.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 <... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'vi', {
preview: 'Xem trước'
} );
|
module.exports = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] }; |
import { generateSecret as generate } from '../runtime/generate.js';
export async function generateSecret(alg, options) {
return generate(alg, options);
}
|
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/eu', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.EL... |
/*
* pagination.js 2.0.3
* A jQuery plugin to provide simple yet fully customisable pagination.
* https://github.com/superRaytin/paginationjs
*
* Homepage: http://paginationjs.com
*
* Copyright 2014-2100, superRaytin
* Released under the MIT license.
*/
(function(global, $){
if(typeof $ === 'undefined'){... |
module.exports = require('./assign');
|
/**!
* TableSorter 2.11.1 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*... |
(function (define) {
define(function () {
"use strict";
var enqueue;
if (typeof process !== "undefined") {
// node
enqueue = process.nextTick;
} else if (typeof msSetImmediate === "function") {
// IE 10. From http://github.com/kriskowal/q
// bind is necessary
enqueue = msSetImmediate.bind(window);
} el... |
/**
* A module defining functionality for circular axis grid elements.
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { ... |
/*!
* Inheritance.js (0.4.11)
*
* Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/inheritance.js/blob/master/LICENSE.md)
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof ... |
(function () {
'use strict';
/**
* mark an object with a 'hyperform=true' property
*
* We use this to distinguish our properties from the native ones. Usage:
* js> mark(obj);
* js> assert(obj.hyperform === true)
*/
function mark (obj) {
if (['object', 'function'].indexO... |
/*! Lity - v2.0.0 - 2016-09-09
* http://sorgalla.com/lity/
* Copyright (c) 2015-2016 Jan Sorgalla; Licensed MIT */
(function(window, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], function($) {
return factory(window, $);
});
} else if (typeof module =... |
// AngularJS v1.3.13 ie8 build
(function () {
// detect IE8 one way or another
/*one way
var ie=function(){
for(var e,i=3,n=document.createElement("div"),t=n.getElementsByTagName("i");
n.innerHTML="<!--[if gt IE "+ ++i+"]><i></i><![endif]-->",t[0];);return i>4?i:e
}();
if (ie !== 8) {
// proper browsers ... |
/*
* SystemJS v0.19.31
*/
// from https://gist.github.com/Yaffle/1088850
(function(global) {
function URLPolyfill(url, baseURL) {
if (typeof url != 'string')
throw new TypeError('URL must be a string');
var m = String(url).replace(/^\s+|\s+$/g, "").match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?... |
/**
* @file
* Polyfill for HTML5 date input.
*/
(function ($, Modernizr, Drupal) {
"use strict";
/**
* Attach datepicker fallback on date elements.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the behavior. Accepts in `settings.date` an object listing
... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js
*
* Initializes the HTML-CSS OutputJax to use the Neo-Euler fonts
* Copyright (c) 2013-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
/*!
* Vue.js v2.0.6
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function... |
//>>built
define("dojo/store/api/Store", ["dojo/_base/declare"], function(declare) {
// module:
// dojo/store/api/Store
// summary:
// The module defines the Dojo object store interface.
var Store = declare("dojo.store.api.Store", null, {
// summary:
// This is an abstract API that data provider imple... |
/*! AdminLTE app.js
* ================
* Main JS application file for AdminLTE v2. This file
* should be included in all pages. It controls some layout
* options and implements exclusive AdminLTE plugins.
*
* @Author Almsaeed Studio
* @Support <http://www.almsaeedstudio.com>
* @Email <abdullah@almsaeedstudio... |
/*!
* json-schema-faker library v0.3.0
* http://json-schema-faker.js.org
* @preserve
*
* Copyright (c) 2014-2016 Alvaro Cabrera & Tomasz Ducin
* Released under the MIT license
*
* Date: 2016-04-07 15:47:55.094Z
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else i... |
define(['./forOwn', '../function/makeIterator_'], function(forOwn, makeIterator) {
/**
* Creates a new object where all the values are the result of calling
* `callback`.
*/
function mapValues(obj, callback, thisObj) {
callback = makeIterator(callback, thisObj);
var output = {};
... |
/**
@module ember-data
*/
import "ember-data/system/debug/debug-info";
import DebugAdapter from "ember-data/system/debug/debug-adapter";
export default DebugAdapter;
|
var options={blockUI:!0,moveBackground:!0};export default options;export function extendShorthandOptions(o){return"object"!=typeof o&&(o={}),o}; |
describe('validate-commit-msg.js', function() {
var m = require('./validate-commit-msg');
var errors = [];
var logs = [];
var VALID = true;
var INVALID = false;
beforeEach(function() {
errors.length = 0;
logs.length = 0;
spyOn(console, 'error').andCallFake(function(msg) {
errors.push(ms... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("language","it",{button:"Imposta lingua",remove:"Rimuovi lingua"}); |
var test = require('tape');
var pack = require('../');
var vm = require('vm');
test('empty', function (t) {
t.plan(1);
var p = pack();
var src = '';
p.on('data', function (buf) { src += buf });
p.on('end', function () {
t.doesNotThrow(function() {
vm.runInNewContext(src, {}... |
'use strict';
exports.__esModule = true;
var _toArray2 = require('lodash/toArray');
var _toArray3 = _interopRequireDefault(_toArray2);
var _each2 = require('lodash/each');
var _each3 = _interopRequireDefault(_each2);
var _inherits = require('inherits');
var _inherits2 = _interopRequireDefault(_inherits);
var _e... |
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(core) {
if (typeof define == "function" && define.amd) { // AMD
define("uikit", function(){
var uikit = window.UIkit || core(window, window.jQuery, window.document);
uikit.load = function(re... |
/*
Input Mask plugin for jquery
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2014 Robin Herbots
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
Version: 3.0.55
*/
(function(c){if(void 0!=c.fn.inputmask){var s=function(b,h,g){function s(a){var c=document.c... |
var axios =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/***... |
'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... |
'use strict';
var MessageProcessor = require('./../msg-processor');
module.exports = MessageProcessor.extend({
if: function() {
return this.toConfRoot &&
this.ns['http://jabber.org/protocol/disco#info'];
},
then: function(cb) {
var stanza = this.Iq();
var query = ... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js
*
* Copyright (c) 2009-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 License.
* You may obtain a copy of the License at
*
* http:... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _ExecutionEnvironment = require("fbjs/lib/ExecutionEnvironment");
var _react = require("react");
/**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory ... |
/**
* Module dependencies.
*/
var TokenError = require('../errors/tokenerror');
/**
* Exchanges authorization grants for access tokens.
*
* Obtaining authorization via OAuth 2.0 consists of a sequence of discrete
* steps. First, the client requests authorization from the user (in this case
* using an authoriz... |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*
Project: angular-gantt v1.0.0 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: http://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
(function(){
'use strict';
angular.module('gantt.bounds', ['gantt', 'gantt.bounds.... |
var super |
YUI.add('loader-base', function (Y, NAME) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLER... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014 Petka Antonov
*
* 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 the rights
* to ... |
(function (root, factory) {if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['exports', 'echarts'], factory);
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
factory(exports, require('echar... |
/* Slovak initialisation for the jQuery UI date picker plugin. */
/* Written by Vojtech Rinik (vojto@hmm.sk). */
jQuery(function($){
$.datepicker.regional['sk'] = {
closeText: 'Zavrieť',
prevText: '<Predchádzajúci',
nextText: 'Nasledujúci>',
currentText: 'Dnes',
monthNames: ['Január','Február','Mar... |
/**
* Module dependencies.
*/
var crypto = require('crypto');
/**
* Sign the given `val` with `secret`.
*
* @param {String} val
* @param {String} secret
* @return {String}
* @api private
*/
exports.sign = function(val, secret){
if ('string' != typeof val) throw new TypeError('cookie required');
if ('st... |
/*
* /MathJax/extensions/HTML-CSS/handle-floats.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* ... |
/* use strict; */
$('.search-filter-act').on('click',function(e){
e.preventDefault();
$('body').addClass('disableScorll');
$('.filter-layer').css('display','block');
});
$('.filter-layer .header-back').click(function(e){
e.preventDefault();
$('body').removeClass('disableScorll');
$('.filter-layer').css('display'... |
import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet-async';
import { Container, Row, Col, Card } from 'reactstrap';
const AuthLayout = ({ children }) => (
<>
<Helmet defaultTitle="Authentication" />
<Container>
<Row>
<Col l... |
import React from 'react';
import '../Seguidor.css';
import YearOfStudy from '../YearOfStudy/YearOfStudy';
const SubjectYears = ({ years, updateFn }) => (
<div className="YearsVisualizer">
{years.map((year) => (
<YearOfStudy
key={year.year}
year={year.year}
subjects={year.subjects}
... |
'use strict'
const {Component, xml, jid} = require('@xmpp/component-core')
const _reconnect = require('@xmpp/reconnect')
const _middleware = require('@xmpp/middleware')
const _iqCaller = require('@xmpp/iq/caller')
const _iqCallee = require('@xmpp/iq/callee')
function component(options) {
const {password, service, ... |
var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (in... |
var chai = require('chai');
var sinon = require('sinon');
var assert = chai.assert;
var expect = chai.expect;
var should = chai.should();
describe('MQTT Client - event emitter', function() {
var client;
var clientParams = {
host : 'domain.tld',
port : 8080,
};
beforeEach(function() {
... |
var structdbs_1_1_part =
[
[ "dxf", "structdbs_1_1_part.html#a0ace68f6735ca684848f93f915ac7500", null ],
[ "json", "structdbs_1_1_part.html#a31cb44e4aba877a9b28f7a0e7176edd3", null ],
[ "yaml", "structdbs_1_1_part.html#ada080547db98e718658fdc833944e34e", null ],
[ "name", "structdbs_1_1_part.html#a1856c... |
// Messages module
define([
"app"
],
function(app) {
"use strict";
var Messages = app.module();
Messages.Views.Warning = Backbone.View.extend({
el: false,
template: "message",
serialize: function() {
return this.model;
}
... |
'use strict';
var transformTools = require('browserify-transform-tools');
var path = require('path')
var pp = require('preprocess');
module.exports = function(file, options) {
options = options || {includeExtensions: [".js"]};
var ppContext = require(path.resolve(options.context || 'config.js'))
return tr... |
// Convert the Xml Entities to punctuation
var sanitizeHtml = require('sanitize-html')
, _ = require('lodash');
var entities_ = require('entities'); // encode & decode XML/HTML entities with ease
var Entities = require('html-entities').AllHtmlEntities
, entities = new Entities();
var strRegex ... |
'use strict';
var ksa=require("ksana-simple-api");
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
TouchableHighlight,
View,
Dimensions,
LayoutAnimation,
PanResponder,
Animated,
PropTypes,
} = React;
var StaticRenderer = require('react-native/Libraries/Components/StaticR... |
const licenseText = {
ISC: `Copyright (c) [year] [author]
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
var map;
function downloadSVG() {
d3.select(this)
.attr("download", "map.svg")
.attr("href", "data:image/svg+xml;charset=utf-8;base64," + btoa(unescape(encodeURIComponent((new XMLSerializer).serializeToString(map.getSVG().attr("version", "1.1").attr("xmlns", "http://www.w3.org/2000/svg").node()))))... |
var models = require('../models');
var AccessPath = models.AccessPath;
var logger = global.dawan.logger;
exports.getTreeNode = function(pid) {
return new Promise((resolve, reject) => {
AccessPath.find({
pid: pid
}, (err, accessPath) => {
if (err) {
reject(err... |
'use strict';
module.exports = function(mycro) {
return {
'v1.0.0': {
'/healthy': {
get(req, res) {
res.json(200);
}
},
'/if': {
policies: [
mycro.policies.if(
... |
const { ajax, utils, view } = require('plm-base');
const Inputs = require('./base.js');
class Form extends Inputs {
constructor() {
super();
this.view = view().add('table', { className: 'table' }).push('body');
}
defaultInput(k, callback) {
var _this = this;
view().add('tr', ... |
jQuery(function(){
if(InstallTrigger !== 'undefined'){
$('#browser').text('Yes');
window.setInterval(function(){
applyTransforms($('img#ff-scale'));
}, 500);
}
function applyTransforms(el){
if(el.length > 0){
var dpi = window.devicePixelRatio;
... |
import { test, moduleForModel } from 'ember-qunit';
moduleForModel('expense', 'expense', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function() {
var model = this.subject();
// var store = this.store();
ok(model);
});
|
#!/usr/bin/env node
/**
* Algorithm
* [1] Look at all installed platforms
* [2] Copy (non-destructive) icons and splash screens from platform to local RESOURCE_DIR
* [3] Copy (destructive) matching icons and splash screens from RESOURCE_DIR to platform
*
* This ensures that local RESOURCE_DIR will be pre-scaffold... |
import { PercentileDice, StandardDice } from '../../src/dice/index.js';
import {
ExplodeModifier, KeepModifier, Modifier, SortingModifier,
} from '../../src/modifiers/index.js';
import RollResult from '../../src/results/RollResult.js';
import RollResults from '../../src/results/RollResults.js';
import ComparePoint fr... |
import React, { Component } from 'react';
import SearchBar from '../containers/search_bar'
import WeatherList from '../containers/weather_list'
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
import React from "react"
import { graphql, StaticQuery } from "gatsby"
import { rhythm } from "../utils/typography"
import Nav from "../components/nav"
import "../styles/global.css"
import LayoutStyles from "./layout.module.css"
class Layout extends React.Component {
render() {
const { children, withoutNav } = ... |
'use strict';
angular.module('teaparty2.widgets')
.directive('widgetStatus', function(TemplatePath) {
return {
restrict: 'E',
replace: true,
require: '^widgetContainer',
scope: {
widget: '=widget'
},
templateUrl: TemplatePath.get('status'),
l... |
import {Sessions, Responses} from '../../lib/collections';
import {Meteor} from 'meteor/meteor';
import {check} from 'meteor/check';
export default function () {
Meteor.methods({
'response.select'(_id, sessionId, questionId, selected) {
check(_id, String);
check(sessionId, String);
check(questi... |
exports.locate = function(load) {
return {
then: function(resolve, reject) {
setTimeout(function() {
resolve('custom fetch');
}, 20);
}
};
}
exports.fetch = function(load) {
return {
then: function(resolve, reject) {
setTimeout(function() {
resolve(load.addres... |
// React Components
import React, { PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { browserHistory } from 'react-router';
// material Components
import AppBar from 'material-ui/AppBar';
import { Tabs, Tab } from 'material-ui/Tabs';
import IconButton from 'material-ui/IconButton';
im... |
/* eslint no-console: 0 */
module.exports = {
/**
* Display results of mock run
* @param {string} error Error message
* @param {string} message Success message
*/
displayResult: (error, message) => {
if (error) {
console.log('ERROR', error);
return;
}
console.log(message);
... |
var restler = require('restler'),
OAuth = require('oauth').OAuth,
urlBase = 'https://secure.moo.com',
requestPath = urlBase + '/oauth/request_token.php',
tokenPath = urlBase + '/oauth/access_token.php';
function Moo(key, secret) {
this.basePath = '/api/service/';
this.oauth = new OAuth(requestPath, tokenPath... |
const path = require('path');
module.exports = {
entry: [
'./entry.js'
],
output: {
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
filename: 'app.bundle.js'
},
module: {
rules: [
{
test: /\.font\.json/,
type: 'javascript/auto',
use: [
'styl... |
/**
* Sinon.JS 1.17.2, 2015/10/21
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
*
* Redistribution... |
$(function($) {
var Speakup = function() {
var self = this;
/* yuck, javascript multi-line strings to let us inject HTML */
var injectHtml = '';
self.init = function() {
self.injectContent();
// show it?
self.toggleHomepage(window.location.pathname);
Discourse.PageTracker.... |
/**
* @license Bravocart.js 0.1.0
* (c) 2014-2015 Oceanhouse21 GmbH
* https://github.com/bravocart/bravocart#readme
* License: MIT
*/
(function () {
'use strict';
var bc = angular.module('bravocart', []);
bc.factory('bcRequest', ["$http", "$q", function ($http, $q){
return function(config, handler) {
va... |
"use strict";!function(){var n=function(){return{restrict:"A",scope:{callback:"&ngOnload"},link:function(n,t,o){t.one("load",function(o){var c=t.length>0&&t[0].contentWindow?t[0].contentWindow.location:void 0;n.callback({contentLocation:c})})}}};n.$inject=[],n.directiveName="ngOnload",angular.module("ngOnload",[]).dire... |
import sinon from 'sinon'
import * as api from '../../../api'
import getSagaTester from '../../../../mock/sagaTester'
import sagas from '..'
describe('Workshop Lector sagas', () => {
beforeEach(() => {
Object.keys(api).forEach(key => sinon.stub(api, key))
})
afterEach(() => {
Object.keys(api).forEach(... |
import { app, BrowserWindow } from 'electron';
let mainWindow
function createWindow () {
mainWindow = new BrowserWindow({width: 800, height: 600})
mainWindow.loadURL(`file://${__dirname}/index.html`)
if (process.env.NODE_ENV === 'dev') {
mainWindow.webContents.openDevTools()
}
mainWindow.on('closed',... |
version https://git-lfs.github.com/spec/v1
oid sha256:eb3f072147720ef8253dd0edbe82ed11cacf1447c86330bb89012d7b4cd97931
size 2693
|
module.exports = {
log: {
printTime: true
}
}; |
'use strict';
const Immutable = require('immutable');
const generateCashflowReport = require('../reports/cashflow/cashflowReport.js');
const generateCreditCardsReport = require('../reports/credit_cards/creditCardsReport.js');
const generateReports = (cff, configs) => {
const reportGenerators = [
generateCashfl... |
import expect from "expect"
import DateTime, {DateTimeKind} from "../src/datetime"
import {describe, it} from "mocha"
describe("DateTime", () => {
it("can be created from Date", () => {
const date = new Date()
const dateTime = new DateTime(date)
expect(dateTime.getTicks()).toBe(date.getTime())
expec... |
/*
* The MIT License
*
* Copyright (c) 2013 dragmove
*
* 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 the rights
* to use, c... |
'use strict';
module.exports = function config($stateProvider) {
$stateProvider
.state('avatar', {
url: '/avatar',
abstract: true,
views: {
'main': {
controller: 'AvatarCtrl',
controllerAs: 'avatarCtrl',
... |
/*
benchmark-result-visualizer.js v0.2 (2014-02-04)
(c)2013-2014 Iori Mizutani(iomz@cisco.com)
License: https://github.com/iomz/ec2-vid-benchmark/LICENSE
Parse benchmark json results to TaffyDB and plot the figure with Highcharts.js
*/
var instances = null;
var groupResults = null;
var iperfs = null;
var iperf2... |
import * as React from 'react';
function LogoutIcon(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
... |
var Timing = {
now() {
var performance = window.performance;
if (performance === undefined) {
this.now = function() {
return new Date().getTime();
}
} else {
if (performance.now) {
this.now = function() { return performance.now();}
} else if (performance.webkitNow) ... |
/*
function getQuery(variable){
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
*/
function getdata... |
var playerSpell = function(name, effect, manaCost, hostility){
this.name = name;
this.effect = effect;
this.manaCost = manaCost;
this.hostile = hostility
}
earthquake = new playerSpell("Earthquake", 21, 15, true);
push = new playerSpell("Push", 10, 10, true);
var spellList = [earthquake, push];
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.