code stringlengths 2 1.05M |
|---|
version https://git-lfs.github.com/spec/v1
oid sha256:cf52ae3662d046b0cc6d4fdcbfd0f942a49caca8ac602306c33cb37548741760
size 172
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
//@flow
export type RecordOf<Values: Object> = Values;
function f<X: Object>(x: X): X {
var o = x;
return o;
}
var y = f();
|
// compress a list of things by frequency
const topk = function(list) {
let counts = {}
list.forEach(a => {
counts[a] = counts[a] || 0
counts[a] += 1
})
let arr = Object.keys(counts)
arr = arr.sort((a, b) => {
if (counts[a] > counts[b]) {
return -1
} else {
return 1
}
})
//... |
// a force directed chart visualisation
$.fn.holder.display.chart = function(obj) {
var options = obj.holder.options;
$.fn.holder.display.chart.nodesLinks(options.response,options);
if ( !$('div.'+options.class+'.chart').length ) {
obj.append('<div class="' + options.class + ' chart" style="height:100%;"></di... |
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: __dirname + '/src/js',
devtool: 'source-map',
entry: './entry.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js'
},
pl... |
var Alias = require('./alias');
(function () {
module.exports.register = function (Handlebars, options) {
/*
* Loop helper.
*
* @return easy for-loop
*/
Handlebars.registerHelper('times', function (n, block) {
var content = '';
for (var i = 0; i < n; ++i)
content += block.fn(i)... |
var triggerEvent = function (eventType, selector, opts = {}) {
let element = (typeof selector === 'string') ? document.querySelector(selector) : selector;
return new Promise(resolve => {
if (opts.position) {
const { x,y } = (typeof selector === 'string') ? element.getBoundingClientRect() : { x: 0, y: 0 ... |
//>>built
define({invalidMessage:"Mus\u00edte vybra\u0165 aspo\u0148 jednu polo\u017eku.",multiSelectLabelText:"Vybrat\u00e9 polo\u017eky: {num}"}); |
/*!
* harbor v2.16.0: A free WordPress theme for animal and pet rescue organizations
* (c) 2016 Chris Ferdinandi
* MIT License
* https://github.com/cferdinandi/harbor-wp-theme
* Open Source Credits: https://github.com/ftlabs/fastclick, https://github.com/toddmotto/fluidvids, http://photoswipe.com, http://masonry.d... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= pkg.version %> */\n'
},
'ng-flow': {
src: ['dist/ng-flow.js'],
dest: 'dist/ng-flow.min.js'... |
export const closeNoti = {
type: 'CLOSE_NOTI',
};
export const showNoti = (message, action) => {
return {
type: 'SHOW_NOTI',
message: message,
action: action
}
}
|
var express = require('express'),
path = require('path'),
http = require('http'),
fs = require('fs'),
parser = require('body-parser'),
template = require('art-template'),
compression = require('compression'),
utils = require('./utils/utils.js'),
widget = require('./connect/widget');
var... |
var get = Ember.get, set = Ember.set, isEqual = Ember.isEqual;
/**
Merge strategy that merges on a per-field basis.
Fields which have been editted by both parties will
default to "ours".
*/
Ep.PerField = Ep.MergeStrategy.extend({
init: function() {
this.cache = Ep.ModelSet.create();
},
merge: functi... |
$(document).on('ajaxComplete ready', function () {
// Initialize WYSIWYG editors.
$('textarea[data-provides="anomaly.field_type.wysiwyg"]:not(.hasEditor)').each(function () {
/**
* Gather available buttons / plugins.
*/
var textarea = $(this);
var buttons = textarea.... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15 21v-4.24l-1.41 1.41-9.2-9.19-1.41 1.41 9.19 9.19L10.76 21H15zM11.25 8.48l3.54 3.54-.92 2.19 1.48 1.48 4.42-11.14-1.06-1.05L7.57 7.92 9.06 9.4l2.19-.92zm6.59-3.05l-2.23 4.87-2.64-2.64 4.87-2.2... |
import {
EventDispatcher,
Matrix4,
Plane,
Raycaster,
Vector2,
Vector3
} from '../../../build/three.module.js';
const _plane = new Plane();
const _raycaster = new Raycaster();
const _pointer = new Vector2();
const _offset = new Vector3();
const _intersection = new Vector3();
const _worldPosition = new Vector3();... |
const { Console } = require("console");
const Colors = require("./Colors");
const { inspect } = require("util");
const Timestamp = require("../../util/Timestamp");
/**
* Komada's console class, extends NodeJS Console class.
*
*/
class KomadaConsole extends Console {
/**
* Constructs our KomadaConsole instance... |
'use strict';
var command = require('../cmd-helpers').command;
module.exports = function (send) {
return command(send, 'commands');
}; |
/**
* SiteController
*
* @module :: Controller
* @description :: A set of functions called `actions`.
*
* Actions contain code telling Sails how to respond to a certain type of request.
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
*
... |
var api = require('../../../../api/sample.js');
module.exports = function (router) {
router.route('/api/v1/sample').get(api.works);
}; |
(function() {
// Default to the local version.
var path = '../libs/jquery/dist/jquery.js';
// Get any jquery=___ param from the query string.
var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/);
// If a version was specified, use that version from code.jquery.com.
if (jqversion) {
path = 'h... |
import {
Parser,
ObserverLocator,
EventManager,
ListenerExpression,
BindingExpression,
NameExpression,
CallExpression,
bindingMode
} from 'aurelia-binding';
import {BehaviorInstruction} from 'aurelia-templating';
export class SyntaxInterpreter {
static inject() { return [Parser,ObserverLocator,Event... |
// Wait https://github.com/facebook/flow/issues/380 to be fixed
/* eslint-disable flowtype/require-valid-file-annotation */
const brown = {
50: '#efebe9',
100: '#d7ccc8',
200: '#bcaaa4',
300: '#a1887f',
400: '#8d6e63',
500: '#795548',
600: '#6d4c41',
700: '#5d4037',
800: '#4e342e',
900: '#3e2723',
... |
var Application;
(function ($) {
JSC.require(
['jsc/Controller', 'jsc/Loader', 'jsc/Notifier'],
function () {
Application = function (master, url, controller) {
Controller.call(this, master);
this.cls = 'Application';
this.controller = controller;
this.home = url;
... |
// @flow
import callApi from '../utils/apiCaller';
import type { Dispatch } from './types';
import type { Game } from '../utils/globalTypes';
export function addGame(game: Game) {
return {
type: 'ADD_GAME',
game,
};
}
export function addGameRequest(game: Game) {
return (dispatch: Dispatch) =>
callApi(... |
module.exports={A:{A:{"1":"E A B","2":"H D G EB"},B:{"1":"C p x J L N I"},C:{"1":"9","33":"0 1 2 3 4 5 6 8 ZB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y XB RB"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k... |
// @flow
/* eslint-disable no-console */
const validAnimationState = /^(from|to|\+?(\d*\.)?\d+%)(\s*,\s*(from|to|\+?(\d*\.)?\d+%))*$/;
export default function validateKeyframesObject(keyframes: Object) {
let valid = true;
for (const animationState in keyframes) {
const value = keyframes[animationState];
... |
/**
*
* @param {Array<String>} midiMessages
* @param {TrackBank} trackBank
* @param {int} numberOfTracks
* @constructor
*/
function SceneSelectorButtons(midiMessages, trackBank, numberOfTracks)
{
ControlGroup.call(this);
this.trackBank = trackBank;
this.numberOfTracks = numberOfTracks;
this._previ... |
var hasNodeRequire = typeof require === 'function' && typeof window === 'undefined';
/* jshint ignore:start */
if (hasNodeRequire) {
chai = require('chai');
jDataView = require('jdataview');
jBinary = require('..');
} else {
__dirname = 'base/test';
}
/* jshint ignore:end */
var assert = chai.assert,
... |
RocketChat.models.OAuthApps = new class extends RocketChat.models._Base {
constructor() {
super('oauth_apps');
}
};
// FIND
// findByRole: (role, options) ->
// query =
// roles: role
// return @find query, options
// CREATE
|
{
"AD" : "서기",
"Africa/Abidjan_Z_abbreviated" : "코트디부아르 시간",
"Africa/Abidjan_Z_short" : "GMT",
"Africa/Accra_Z_abbreviated" : "가나 시간",
"Africa/Accra_Z_short" : "GMT",
"Africa/Addis_Ababa_Z_abbreviated" : "이디오피아 시간",
"Africa/Addis_Ababa_Z_short" : "EAT",
"Africa/Algiers_Z_abbreviated" : "알제리 시간",
"Africa/Algier... |
import {
assert,
CacheFactory
} from '../../_setup'
describe('CacheFactory#destroyAll', function () {
beforeEach(function () {
sinon.stub(CacheFactory.Cache.prototype, 'destroy')
})
afterEach(function () {
CacheFactory.Cache.prototype.destroy.restore()
})
it('should call destroy on all caches',... |
"use strict";
/**
* Copyright 2013 Facebook, Inc.
*
* 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... |
define(["require", "exports", "aurelia-router", "scripts/app-state"], function (require, exports, aur, app) {
var Login = (function () {
function Login(theRouter) {
this.theRouter = theRouter;
this.heading = "aurelia login page";
this.username = "Admin";
this.... |
const arr = [ 1, 2, 3, 4, 5 ];
// const squares = arr.map( function(x) { return x * x } )
const squares = arr.map( x => x * x )
|
'use strict';
module.exports = [
'!**',
'!**/*',
'!**/*.md',
'!*.*',
'!*.js',
'!*/**/*',
'!*/**/*/',
'!*/*/*',
'!/**',
'!/**/',
'!/*/',
'!/*/**/*/',
'!/*/*/',
'!a/!b*',
'!a/!b/*',
'!a/*?b',
'!a/?',
'!a/?*b',
'!a/??b',
'!a/?b',
'!a/b/!*',
'!a/b/*',
'!a/b/c*',
'*',
'**',... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ActionQueryBuilder = React.createClass({
displayName: 'ActionQueryBuilder',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M11.99 2C6.47 2... |
'use strict';
var routeHelper = require('../lib/route-helper');
var expect = require('chai').expect;
var _defaults = require('lodash.defaults');
describe('route-helper', function() {
it('returns "object" when a route has multiple return values', function() {
var doc = createAPIDoc({
returns: [
{ a... |
import { Timer } from './Timer';
import { EventEmitter } from 'events';
class Pipeline extends EventEmitter {
constructor(name) {
super();
this.name = name;
this.steps = [];
this.results = {};
}
after(fn) {
let name = 'execution';
if (typeof fn === 'string') {
name = fn;
fn =... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
require({cache:{"url:esri/dijit/metadata/types/arcgis/content/templates/ContentTypCd.html":'\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\r\n \x3cdiv data-... |
/*
* 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"); you ... |
/**
* @license AngularJS v1.1.2-f0c6ebc0
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
/**
* @ngdoc overview
* @name ngCookies
*/
angular.module('ngCookies', ['ng']).
/**
* @ngdoc object
* @name ngCookies.$cookies
* @requir... |
var expect = require('expect.js'),
cheerio = require('../'),
parse = cheerio.parse,
render = cheerio.render;
var html = function(str, options) {
options = options || {};
var dom = parse(str, options);
return render(dom);
};
describe('render', function() {
describe('(html)', function() {
it(... |
define(["app/app",
"text!templates/postAttachmentTemplate.handlebars"], function(App, tpl) {
App.PostAttachmentView = Ember.View.extend({
templateName: 'post-attachment',
template: Ember.Handlebars.compile(tpl),
didInsertElement: function() {
var that = this;
this.$().on('upload-prog... |
/*
* Angular Hammer v2
*
* Forked from https://github.com/randallb/angular-hammer
* Updated to support https://github.com/EightMedia/hammer.js
*
* Within an Angular.js application, allows you to specify custom behaviour on Hammer.js touch events.
*
* Usage, currently as attribute only:
*
* hm-tap="{express... |
/* global assert, process, sinon, setup, suite, teardown, test */
var helpers = require('../../helpers');
var AEntity = require('core/a-entity');
var ANode = require('core/a-node');
var AScene = require('core/scene/a-scene');
/**
* Tests in this suite should not involve WebGL contexts or renderer.
* They operate wit... |
/* eslint no-console: 0 */
'use strict';
// This script runs a local SMTP server for testing
var SMTPServer = require('smtp-server').SMTPServer;
var crypto = require('crypto');
var counter = 0;
// Setup server
var server = new SMTPServer({
logger: false,
// not required but nice-to-have
banner: 'Welc... |
import { Point, ObservablePoint, Rectangle } from '../math';
import { sign, TextureCache } from '../utils';
import { BLEND_MODES } from '../const';
import Texture from '../textures/Texture';
import Container from '../display/Container';
const tempPoint = new Point();
/**
* The Sprite object is the base for all textu... |
var Dungeon = {
map: [],
in_battle: 0,
player_position: 0
};
Dungeon.mapGenerator = function () {
this.map = [];
this.player_position = 0;
for (var i = 0; i < 100; i++) {
if (rand(0, 5) != 0) {
this.map[i] = {symbol: '_', unit: null};
}
else {
... |
import { propOr } from 'ramda'
const SPECIAL_USE_FLAGS = ['\\All', '\\Archive', '\\Drafts', '\\Flagged', '\\Junk', '\\Sent', '\\Trash']
const SPECIAL_USE_BOXES = {
'\\Sent': [
'aika', 'bidaliak', 'bidalita', 'dihantar', 'e rometsweng', 'e tindami', 'elküldött', 'elküldöttek', 'enviadas',
'enviadas', 'enviado... |
ig.module(
'plusplus.entities.trigger-reverse'
)
.requires(
'plusplus.entities.trigger'
)
.defines(function () {
"use strict";
/**
* Trigger that deactivates instead of activating.
* @class
* @extends ig.EntityTrigger
* @memberof ig
... |
/*global define*/
'use strict';
// Dependecies
define([
'jquery',
'jquery-ui',
'pubsub',
'underscore'
], function(
jQuery,
jQuery_ui,
PubSub,
_
)
{
/* This module handles the user notes.
Each note can be connect to an atom (via IAC) or not.
Each note may appear on... |
'use strict';
var HapiCapitalizeModules = require('hapi-capitalize-modules');
var HapiForYou = require('hapi-for-you');
var HapiScopeStart = require('hapi-scope-start');
var NoArrowception = require('no-arrowception');
module.exports = {
rules: {
'hapi-capitalize-modules': HapiCapitalizeModules,
'hapi-for-y... |
require('seneca')()
.use('../plugins/salestax-basic.js',{rate:0.2})
.listen()
|
var getTree = function (table, idIndex, pidIndex) {
var ids = _.pluck(table, idIndex);
var pids = _.pluck(table, pidIndex);
var rootIDs = _.difference(pids, ids);
var roots = table.filter(function (row) {
return _.indexOf(rootIDs, row[pidIndex]) !== -1;
});
roots.forEach(function (root) {
root.chi... |
/*
* Copyright (C) 2013 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... |
/*
* HomePage Messages
*
* This contains all the text for the HomePage component.
*/
import { defineMessages } from 'react-intl';
export const scope = 'boilerplate.containers.HomePage';
export default defineMessages({
startProjectHeader: {
id: `${scope}.start_project.header`,
defaultMessage: 'Start your... |
(function(){self.JSREPLEngine=function(){function c(b,a,d,c,e,f){var g=this;this.input=b;this.output=a;this.result=d;this.error=c;this.sandbox=e;this.Unlambda=this.sandbox.Unlambda;this.result=function(a){return d(g.Unlambda.unparse(a))};f()}c.prototype.Eval=function(b){var a;try{a=this.Unlambda.parse(b)}catch(d){this.... |
var gulp = require('gulp');
var jshint = require('gulp-jshint');
// config
var config = require('../../config.json');
// options
var options = require('../options/jshint');
module.exports = function () {
return gulp.src([config.destination.js + '/**/*.js', '!' + config.destination.js + '/**/*.min.js'... |
import repl from 'repl';
import net from 'net';
import logger from 'common/utils/logger';
/**
* Create the server and start listening on the given port.
*/
export function createServer (port) {
log('listening for REPL connections on port', port);
net.createServer((socket) => {
const r = repl.start({
p... |
if ( !this.message ) {
error('message', "tell what make you happy");
}
if (this.level < 1 || this.level > 5) {
error('level', "values between 1 and 5");
}
if( this.latlng )
{
var isFloat = function(n){
return n === Number(n) && n%1 !== 0;
};
if ( !this.latlng.lat || !this.latlng.lng ) {
error('... |
/**
* Configuration file for font-awesome-webpack
*
* In order to keep the bundle size low in production,
* disable components you don't use.
*
*/
module.exports = {
styles: {
mixins: true,
core: true,
icons: true,
larger: true,
path: true,
animated: true,
}
}
|
/**
* Internationalization / Localization Settings
*
* If your app will touch people from all over the world, i18n (or internationalization)
* may be an important part of your international strategy.
*
*
* For more information, check out:
* http://sailsjs.org/#documentation
*/
module.exports.i18n = {
// W... |
module.exports = {
description: 'install bower dependencies',
normalizeEntityName: function() {},
afterInstall: function(options) {
var _this = this;
return _this.addBowerPackageToProject('moment').then(function() {
return _this.addBowerPackageToProject('moment-duration-format');
});
}
};
|
import * as echarts from '../../echarts';
import * as zrUtil from 'zrender/src/core/util';
import * as helper from './helper';
echarts.registerAction('dataZoom', function (payload, ecModel) {
var linkedNodesFinder = helper.createLinkedNodesFinder(
zrUtil.bind(ecModel.eachComponent, ecModel, 'dataZoom'),
... |
var mongoose = require('mongoose'),
User = require('./userAuth'),
connStr = 'mongodb://127.0.0.1:27017/440w';
//We want to check to see if the user already exists in the datebase
this.checkUser = function(userName, userPass, cb){
//Initialize Our Connection To The MongoDB With Our Provided Connection Strin... |
function dayOfWeek(){var e=new Date,n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return n[e.getDay()]}window.onload=function(){function e(){function e(){if("undefined"!=typeof window.scrollY)return window.scrollY;var e=document.documentElement;return e.clientHeight?e.scrollTop:document.bod... |
'use strict';
define([
'jquery',
'three',
'explorer',
'underscore'
], function(
jQuery,
THREE,
Explorer,
_
) {
var clocks = {
rotUp : new THREE.Clock(),
rotDown : new THREE.Clock(),
rotLeft : new THREE.Clock(),
rotRight : new THREE.Clock(),
up : new THREE.Clock(),
... |
/**
* Initialize standard build of the TinyMCE
*
* @param options
*/
function initTinyMCE(options) {
(function ($, undefined) {
$(function () {
var $tinymceTargets;
if(options.textarea_class){
$tinymceTargets = $('textarea' + options.textarea_class);
... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extend... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const semver_1 = require("semver");
const interfaces_1 = require("./interfaces");
const elide_imports_1 = require("./elide_imports");
// Typescript below 2.5.0 needs a workaround.
const visitEachChild = semver... |
/* first banner */
/* second banner */
console.log( 1 + 1 );
/* first footer */
/* second footer */
|
'use strict';
var Parsimmon = require('parsimmon');
module.exports = join;
function join(expr, seperator, count) {
count = count || 0;
var defaultToken = count > 0 ?
Parsimmon.fail('must join() at least 1 token') :
Parsimmon.succeed([]);
return expr.chain(function (value) {
retu... |
import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount () {
setTimeout(() => {
this.refs.myScheduler.scrollTop(700);
})
}
render () {
/... |
/**
* Highcharts Drilldown module
*
* Author: Torstein Honsi
* License: www.highcharts.com/license
*
*/
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
}(function (H) {
'use strict';
var noop = funct... |
var showTriggers = new Array();
function registerShow(sectId,showFunc) {
showTriggers[sectId] = showFunc;
}
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
functi... |
import * as React from 'react'
import SingleImage from '../../components/SingleImage'
import { images } from '../../constants'
const Page = ({ index }) => {
return <SingleImage index={index} />
}
export async function getStaticProps({ params }) {
const number = Number.parseInt(params.index, 10)
return {
prop... |
'use strict';
/**
* @ngdoc service
* @name ss.log:log
* @function
*
* @description
* Contains method stubs for logging to console (by default) or
* whatever logging provider you choose.
*/
/**
* @ngdoc function
* @name ss.log#trace
* @methodOf ss.log:log
* @function
* @description
* Trace function cal... |
/*!
* Module dependencies.
*/
var _ = require('underscore'),
moment = require('moment'),
keystone = require('../../../'),
util = require('util'),
knox = require('knox'),
// s3 = require('s3'),
utils = require('keystone-utils'),
grappling = require('grappling-hook'),
super_ = require('../Type');
/**
* S3Fil... |
var Checker = require('../../lib/checker');
var assert = require('assert');
describe('rules/require-dot-notation', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
checker.configure({ requireDotNotation: true });
});
it... |
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the BSD license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/**
* @requires plugins/Tool.js
* @requires widgets/form/GoogleGeocoderComboBox.js
*/
/** api: (define)
* module =... |
version https://git-lfs.github.com/spec/v1
oid sha256:1a87afcf2097cc01bd4c89cda9c083d99bffafb40907ec012cab1f84e67e1989
size 3326
|
/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
/*jslint white:true, plusplus:true, nomen:true, vars:true, browser:true */
/*global buster, sinon, wooga */
var assert = buster.assertions.assert;
var refute = buster.assertions.refute;
(function() {
"use strict";
buster.testCase("Spawner test case", {
setUp: function() {
this.game = {
... |
$(function () {
function pageLoad() {
removeActiveClass();
}
function removeActiveClass() {
$('.nav-tabs').on('shown.bs.tab', 'a', function (e) {
if (e.relatedTarget) {
$(e.relatedTarget).removeClass('active');
}
});
}
pageLoad();
... |
//>>built
define({doNew:"[novo]",edit:"[uredi]",save:"[sa\u010duvaj]",cancel:"[otka\u017ei]"}); |
var BlocktrailSDK = require('../api_client');
var _ = require('lodash');
var q = require('q');
var async = require('async');
/**
*
* @param options
* @constructor
*/
var BlocktrailBitcoinService = function(options) {
this.defaultSettings = {
apiKey: null,
apiSecret: null,
network... |
import Vue from 'vue';
import headerComponent from '~/vue_merge_request_widget/components/mr_widget_header';
const createComponent = (mr) => {
const Component = Vue.extend(headerComponent);
return new Component({
el: document.createElement('div'),
propsData: { mr },
});
};
describe('MRWidgetHeader', () ... |
$(function() {
function ConcreteBlockForm(data) {
'use strict';
this.data = data;
this.setupEvents(data);
this.init(data);
}
ConcreteBlockForm.prototype.setupEvents = function(data) {
var my = this,
$chooseContainer = $('#ccm-block-express-form-choose-t... |
(function($) {
//
// Public interface
//
// The main event - creates a pretty graph. See index.html for documentation.
$.fn.tufteBar = function(options) {
var defaultCopy = $.extend(true, {}, $.fn.tufteBar.defaults);
var options = $.extend(true, defaultCopy, options);
return this.each(functi... |
import Network from '../../src/app/utils/Network';
import Address from '../../src/app/utils/Address';
import convert from '../../src/app/utils/convert';
describe('WalletBuilder service tests', function() {
let WalletBuilder
beforeEach(angular.mock.module('app'));
beforeEach(angular.mock.inject(function(_... |
/**
* @license
* v1.2.8
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
(function (global, factory) {
typeof exports === 'object' && typeof modul... |
/**
* Copyright (c) 2014-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.
*/
'use strict';
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var core = require('primereact/core');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy... |
/*! UIkit 3.1.0 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitfilter', ['uikit-util'],... |
var utils = require("utils/utils");
var common = require("./grid-layout-common");
var view_1 = require("ui/core/view");
global.moduleMerge(common, exports);
function setNativeProperty(data, setter) {
var view = data.object;
if (view instanceof view_1.View) {
var nativeView = view._nativeView;
va... |
"use strict";
var logParser = require('../log-parser');
var stats = require('../stats');
module.exports = function (req, res, next) {
if (req.isCDN) {
return void next();
}
var referrer = req.get('referrer');
if (referrer) {
referrer = req.canonicalReferrer = referrer.replace(/\?... |
'use strict';
import Vue from 'vue';
const _ = Vue.util;
let toString = Object.prototype.toString,
join = function() {
return this && this.length ? Array.prototype.join.apply(this, arguments) : '';
};
let getType = function(o) {
let _t = typeof o;
let result;
if (_t == 'object') {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.