code stringlengths 2 1.05M |
|---|
var NgUploaderOptions = (function () {
function NgUploaderOptions(obj) {
function use(source, defaultValue) {
return obj && source !== undefined ? source : defaultValue;
}
this.url = use(obj.url, '');
this.cors = use(obj.cors, true);
this.withCredentials = use(obj... |
'use strict';
angular.module('web-push-angular', [])
.factory('webPush', ['$rootScope',
function ($rootScope) {
function PusherAngular (pusherClient) {
if (!(this instanceof PusherAngular)) {
return new PusherAngular(pusherClient);
}
this._assertValidClient(pusherClient);
this.... |
'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var hasher = require('./hasher');
var User = require('./model/user');
var Item = require('./model/item');
var Category = require('./model/category');
var JOURNAL_INTERVAL = 1000;
var EVENT_BUYNOW = 'buynow';
var API_CHANGE_B... |
/**
* Created by yakuncyk on 16/1/24.
*/
const net = require('net');
process.on('message', function (m, handle) {
start(handle);
});
var buf = 'hello nodejs';
var res = ['HTTP/1.1 200 ok', 'content-length:' + buf.length].join('\r\n') + '\r\n\r\n' + buf;
function start(server) {
server.listen();
server.... |
import { Registry } from 'container';
import factory from 'container/tests/test-helpers/factory';
import isEnabled from 'ember-metal/features';
QUnit.module('Registry');
QUnit.test('A registered factory is returned from resolve', function() {
var registry = new Registry();
var PostController = factory();
regis... |
// var express = require('express');
// var app = express();
// var bodyParser = require('body-parser');
// app.use(bodyParser.urlencoded({extended: false}));
var CODES = {
HELP: "hlp",
REGISTER: "reg",
REPLY: "rep"
};
function prepareSMS(msg){
var sms = msg.sms;
if (typeof sms === 'string') {
console.log('s... |
function navigate(url) {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.update(tabs[0].id, {url: url});
});
}
chrome.omnibox.onInputEntered.addListener(function(text) {
navigate('http://gomarks.herokuapp.com/' + text);
});
function search(query, callback) {
var url = "... |
import {App} from './app';
export class NoSelection{
static inject(){ return [App]; }
constructor(app){
this.app = app;
}
activate(){
this.app.selectedId = null;
}
} |
import Notification from "./Notification";
export default Notification;
|
/**
*
* SelectComponents
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { MultiSelectNested } from '@strapi/design-system/Select';
import { useIntl } from 'react-intl';
import useDataManager from '../../hooks/useDataManager';
import findAttribute from '../../utils/findAttribute';
import... |
(function(){
Template.__define__("addRewards", (function() {
var self = this;
var template = this;
return [ HTML.Raw("<!--Modal launched when Edit button below clicked -->\n "), HTML.DIV({
"class": "modal fade",
id: "addRewardsModal"
}, "\n ", HTML.DIV({
"class": "modal-dialog"
}, "\n ", ... |
//Simple fibonacci
var F = function F(n) {
return n == 0 ? 1 : n * F(n - 1);
};
console.log(F(5)) //120
//Reduce inline `F` using JavaScript callee
var F = function F(n) {
return n == 0 ? 1 : n * arguments.callee(n - 1)
};
console.log(F(5)) //120
//Reduce inline `F` using lambda
var F = function F(f) {
ret... |
'use strict';
var _ = require('lodash'); /* jshint ignore:line */
var CredentialList = require('./v2/credential').CredentialList;
var ServiceList = require('./v2/service').ServiceList;
var Version = require('../../base/Version'); /* jshint ignore:line */
/* jshint ignore:start */
/**
* Initialize the V2 version o... |
// tokens.js
// 2009-05-17
// (c) 2006 Douglas Crockford
// Produce an array of simple token objects from a string.
// A simple token object contains these members:
// type: 'name', 'string', 'number', 'operator'
// value: string or number value of the token
// from: index of first character of the tok... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M16.11 7l-.59-.65L14.28 5h-4.24L8.81 6.35l-.6.65H4v12h7v-1.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V19h7V7h-3.89zM14 12c0 1.1-.9 2-2 2s-... |
$(function() {
$(".filter-item").click(function() {
$(ul.post-index > a.post-item-wrapper).addClass("post-category-hidden");
});
});
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-... |
import { Meteor } from 'meteor/meteor';
import { TAPi18n } from 'meteor/rocketchat:tap-i18n';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { callbacks } from '../../../../callbacks';
import { settings } from '../../../../settings';
/**
* This function returns a string ready to be shown in the no... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<9fa35a6597a0a8ae3b51344d14969d5d>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disable ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m14 9-1-2H7V5.72c.6-.34 1-.98 1-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .74.4 1.38 1 1.72V21h2v-4h5l1 2h7V9h-6zm4 8h-4l-1-2H7V9h5l1 2h5v6z"
}), 'EmojiFlagsOutlined'... |
import Head from '../../components/Head'
import Layout from '../../layout/page'
import Article from '../../components/Article'
import fetchPostShowPath from '../../libs/fetchPostShowPath'
import fetchPostShowData from '../../libs/fetchPostShowData'
const LANG = 'tw'
export const PostComponentFactory = lang => (props... |
/*global define*/
define([
'./Cartesian3',
'./Cartographic',
'./defaultValue',
'./defined',
'./DeveloperError',
'./Math',
'./Matrix3',
'./QuadraticRealPolynomial',
'./QuarticRealPolynomial',
'./Ray'
], function(
Cartesian3,
... |
// Create array from node string
stringToArray: function() {
return arguments[0].replace(/ /g, "").split("@").slice(1);
}
|
'use strict';
exports.BattleMovedex = {
"infgun": {
id: "infgun",
name: "INF Gun",
basePower: 50,
pp: 99,
accuracy: true,
category: "Special",
secondary: false,
priority: false,
flags: {protect: 1},
onHit: function (target, source) {
this.attrLastMove('[still]');
this.add('-anim', source, "F... |
'use strict';
module.exports = (event, state, args, next) => {
let data = event.data || {};
let nodeId = data.node ? (data.node.id || data.node) : null;
if (!state.VIS) {
return next(new Error('Flow-visualizer: No flow-visualizer instance found on state.'));
}
if (!data.event || !data.eve... |
(function() {
'use strict';
define([
'dessert.component'
], main);
function main(
Component
) {
class Box extends Component {
static get name() { return 'box'; }
render() {
return `<div class="box"></div>`;
}
... |
const DrawCard = require('../../drawcard.js');
const { Players, CardTypes } = require('../../Constants');
class StewardOfLaw extends DrawCard {
setupCardAbilities(ability) {
this.persistentEffect({
condition: context => context.source.isParticipating(),
targetController: Players.Any... |
const test = require('ava')
, { everyPred } = require('../dist/redash')
test('returns true if all predicates pass', (t) => {
t.true(everyPred([
() => true
, () => true
], 8))
})
test('returns false if any predicate fails', (t) => {
t.false(everyPred([
() => true
, () => false
], 7))
})
t... |
import React from 'react';
import { expect } from 'chai';
import { shallow, mount } from 'enzyme';
import sinon from 'sinon';
import { scaleLinear } from 'd3';
import Slider from '../src/slider';
import SliderHandle from '../src/slider-handle';
describe('ChoroplethLegend <Slider />', () => {
const domain = [0, 100]... |
YUI.add("datasource-polling",function(e,t){function n(){this._intervals={}}n.prototype={_intervals:null,setInterval:function(t,n){var r=e.later(t,this,this.sendRequest,[n],!0);return this._intervals[r.id]=r,e.later(0,this,this.sendRequest,[n]),r.id},clearInterval:function(e,t){e=t||e,this._intervals[e]&&(this._interval... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import styled from '@material-ui/styled-engine';
import { unstable_styleFunctionSx as styleFunctionSx } from '@material-ui/system';
import propsToClassKey from ... |
/*global define*/
define(function() {
"use strict";
/**
* This enumerated type is for classifying mouse events: down, up, click, double click, move and move while a button is held down.
*
* @exports ScreenSpaceEventType
*/
var ScreenSpaceEventType = {
/**
* Represents a... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Components = require('./components');
var GetFastValue = require('../../utils/object/GetFastValue');
var Vector2 = require('../../math/Vecto... |
var classtesting_1_1_test_part_result_array =
[
[ "TestPartResultArray", "classtesting_1_1_test_part_result_array.html#ac9bfc830989c5328d7ff2ba8fa3c072b", null ],
[ "TestPartResultArray", "classtesting_1_1_test_part_result_array.html#ac9bfc830989c5328d7ff2ba8fa3c072b", null ],
[ "Append", "classtesting_1_1_... |
(function() {
'use strict';
angular
.module('region', ['ngResource']);
})();
|
import { http } from '../net/http.js';
class CssHandler {
constructor() {
this.maxRetries = 0;
}
load(url, callback) {
if (typeof url === 'string') {
url = {
load: url,
original: url
};
}
http.get(url.load, {
... |
/*!
* Clean Blog v1.0.0 (http://startbootstrap.com)
* Copyright 2014 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
// Contact Form Scripts
$(function() {
$('.copyright').append(" " + new Date().getFullYear());
$("input,textarea").... |
var content = require('./content');
exports.json = function(obj) {
return JSON.stringify(obj);
};
exports.formatTrack = function(track, trackConfig) {
return trackConfig ? content.tracks.getName(track + '-' + trackConfig) : content.tracks.getName(track);
};
exports.formatCar = function(car) {
return cont... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc)... |
$(document).ready(function(){
$('img').each(function(){
//var maxwidth=$(this).parent(this).width();
if ($(this).parent("a").length == 0){
//if (this.width > maxwidth){
//this.width = maxwidth - 60;
$(this).wrap("<a rel='ignition' href="+this.src+" />");
//}
}else{
$(this).parent("a").attr("rel","igniti... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RelayRecordSourceProxy
* @flow
* @format
*/
'use strict';
const RelayModernRecord = require('RelayModernRecord');
... |
var test = require('tape');
var watch = require('../lib/navelgazer.js');
var path = require('path');
var fs = require('graceful-fs');
var touch = require('touch');
var fixtures = path.resolve(__dirname, 'fixtures');
// TODO: Ignoring this use case until Windows/OSX support confirmed
test('will detect change from modi... |
import { NumberInput, LabelElement } from '../../libs/flow.module.js';
import { BaseNode } from '../core/BaseNode.js';
import { Vector3Node } from '../../renderers/nodes/Nodes.js';
export class Vector3Editor extends BaseNode {
constructor() {
const node = new Vector3Node();
super( 'Vector 3', 3, node, 325 );
... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
!function(a) {
function c(a, b, c, d) {
var e = "categories" == b.xaxis.options.mode
, f = "categories" == b.yaxis.options.mode;
if (e || f) {
var g = d.format;
if (!g) {
var h = b;
if (g = [],
g.push({
... |
define({
"_widgetLabel": "Pridėti duomenis",
"noOptionsConfigured": "Nesukonfigūruota nei viena parinktis.",
"tabs": {
"search": "Ieškoti",
"url": "URL",
"file": "Failas"
},
"search": {
"featureLayerTitlePattern": "{serviceName} - {layerName}",
"layerInaccessible": "Nepavyksta pasiekti slu... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 Mickael Jeanroy
*
* 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
... |
export default (() => {
let o;
return [
{
['offset']: 12368,
['dst']: false,
['abbrev']: 'LMT',
['until']: -1577935568,
['format']: 'LMT',
},
{
['offset']: 14400,
['dst']: false,
['abbrev']: '... |
/* globals require describe it beforeEach afterEach*/
const chai = require("chai");
const sinonModule = require("sinon");
const mocks = require("./utils/mocks");
let expect = chai.expect;
const superheroes = [{
_id: 1,
name: "Batman",
secretIdentity: "Bruce wayne"
}];
describe("Test superheroes control... |
/**
* ESUI (Enterprise Simple UI library)
* Copyright 2013 Baidu Inc. All rights reserved.
*
* @ignore
* @file 字符串相关基础库
* @author otakustay
*/
define(
function (require) {
var u = require('underscore');
/**
* @override lib
*/
var lib = {};
var WHITESPACE = /... |
// Copyright IBM Corp. 2015. All Rights Reserved.
// Node module: loopback-getting-started-intermediate
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
module.exports = function(Review) {
Review.beforeRemote('create', function(context, user, next) {
... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"
}), 'GamesSharp'); |
import { getInstance } from '../../utils'
import { sendAndReactToTransaction } from '../transaction/asyncActions'
import { receiveConcepts } from './actions'
import { receiveVariable } from '../web3/actions'
export function loadConceptsFromConceptRegistery (currentBlock) {
return async (dispatch, getState) => {
... |
hljs.registerLanguage("java",function(){"use strict";return function(e){
var n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short pac... |
define({
"instruction": "Selecione e configure camadas que serão mostradas na Tabela de Atributos inicialmente.",
"label": "Camada",
"show": "Mostrar",
"actions": "Configurar campos de camada",
"field": "Campo",
"alias": "Nome Alternativo",
"visible": "Visível",
"linkField": "Campo de vínculo",
"noLay... |
import r from 'restructure';
import Entity from '../entity';
export default Entity({
raceID: r.uint8,
classID: r.uint8,
});
|
/* */
define(['exports', 'core-js', 'aurelia-logging', 'aurelia-metadata', 'aurelia-dependency-injection', 'aurelia-loader', 'aurelia-path', 'aurelia-templating', 'aurelia-binding', 'aurelia-task-queue'], function (exports, _coreJs, _aureliaLogging, _aureliaMetadata, _aureliaDependencyInjection, _aureliaLoader, _aurel... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.56-.89-1.68-1.25-2.65-.84L6 8.3V13h2... |
module.exports = function() {
return !this.rules.requiredIf || !!this.errors.length;
}
|
'use strict';
var BaseRequest = require('./BaseRequest'),
util = require('util'),
SubscriptionProduct = require('./model/SubscriptionProduct');
function UpdateSubscriptionProductRequest(request) {
BaseRequest.call(this, SubscriptionProduct.body(request));
}
util.inherits(UpdateSubscriptionProductRequest,... |
(function () {
'use strict';
angular
.module('porttare.controllers')
.controller('ResetController', ResetController);
function ResetController( $ionicLoading,
$auth,
$ionicPopup,
$state,
$root... |
import {stories, className, func, bool, string} from '../duckyStories';
import PopoverMenuItem3 from './index';
stories(module, PopoverMenuItem3, [
'https://github.com/DuckyTeam/ducky-web/issues/1015'
], {
className: className(),
label: string('Menu Label'),
onClick: func(),
selected: bool()
});
|
'use strict';
/**
* Module dependencies
*/
var mongoose = require('mongoose'),
path = require('path'),
config = require(path.resolve('./config/config')),
Schema = mongoose.Schema,
crypto = require('crypto'),
validator = require('validator'),
generatePassword = require('generate-password'),
owasp = requ... |
import { computed } from '@ember/object';
import Component from '@ember/component';
export default Component.extend({
tagName: 'tr',
numFiles: computed('gist.files.[]', function() {
return this.get('gist.files.length');
}),
filesTitle: computed('gist.files.@each.filePath', function() {
return this.ge... |
// this should reveal wrong iteration on arrays
Array.prototype.someNewMethod = function() {};
var test = require('unit.js');
describe('winreg', function(){
it('running on Windows', function () {
test.string(process.platform)
. is('win32');
});
// Registry class
var R... |
const {Song} = require('../models')
module.exports = {
async index (req, res) {
try {
let songs = null
const search = req.query.search
if (search) {
songs = await Song.findAll({
where: {
$or: [
'title', 'artist', 'genre', 'album'
].map(key... |
suite('tick-tests', function() {
setup(function() { webAnimations1.timeline._animations = []; });
test('animations are in effect but ticking stops once forward fill is reached', function() {
tick(90);
var animation = document.body.animate([], {duration: 1000, fill: 'forwards'});
tick(100);
tick(600... |
import Ember from "ember-metal/core";
import { get } from "ember-metal/property_get";
import { set } from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import EmberObject from "ember-runtime/system/object";
import RSVP from "ember-runtime/ext/rsvp";
import { View as EmberView } from "ember-views/v... |
const validate = values => {
const keys = Object.keys(values);
return keys.reduce(
(errors, valueKey) => {
if (values[valueKey]) return errors;
errors[valueKey] = 'Required';
return errors;
},
{}
);
};
export default validate;
|
/* global fullpage */
"use strict";
window.onload = function() {
function fire() {
fullpage.init("#sectionContent", {
pageSpeed: 500,
beforeLeave: function(leaveIndex, nowIndex) {
if (nowIndex === 2) {
//console.log('You will leave page 2');
}
//console.log(this, leav... |
this.primereact = this.primereact || {};
this.primereact.overlaypanel = (function (exports, React, core) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function ... |
define(
//begin v1.x content
{
"days-standAlone-short": [
"Κυ",
"Δε",
"Τρ",
"Τε",
"Πέ",
"Πα",
"Σά"
],
"months-format-narrow": [
"Ι",
"Φ",
"Μ",
"Α",
"Μ",
"Ι",
"Ι",
"Α",
"Σ",
"Ο",
"Ν",
"Δ"
],
"field-second-relative+0": "τώρα",
"field-weekday": "Ημέρα εβδομάδας",
"field-wed-rel... |
exports.notPlugin = true;
var NO_INDEX_TAGS = ['noindex'];
exports.checkRobots = function(noindexHeader, cb) {
if (noindexHeader) {
var i;
for(i = 0; i < NO_INDEX_TAGS.length; i++) {
if (noindexHeader.indexOf(NO_INDEX_TAGS[i]) > -1) {
cb({
responseSt... |
pageflow.HighlightedPage = pageflow.Object.extend({
initialize: function(entryData, options) {
this.customNavigationBarMode = options && options.customNavigationBarMode;
this.entry = entryData;
},
getPagePermaId: function(currentPagePermaId) {
var storylineId = this.entry.getStorylineIdByPagePermaId(... |
(function() {
angular.module('wikitree.search').
controller('searchController', ['$scope', '$location', 'Search',
function($scope, $location, Search) {
$scope.inputText = '';
$scope.get_suggestions = function (term) {
return Search.get_sugge... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
var React;
var ReactDOM;
var TestComponent;
describe('ReactCompositeComponent-state', () => {
... |
describe('mdCheckbox', function() {
var CHECKED_CSS = 'md-checked';
beforeEach(module('material.components.checkbox'));
beforeEach(module('ngAria'));
beforeEach(TestUtil.mockRaf);
it('should warn developers they need a label', inject(function($compile, $rootScope, $log){
spyOn($log, "warn");
var e... |
// @flow
// Same file as test.js in the root directory.
// This tests that the paths really are root-relative
// These exist in both user code and node_modules, but user code wins
import ambiguous from 'ambiguous';
(ambiguous: empty)
import sub_ambiguous from 'subdir/ambiguous';
(sub_ambiguous: empty)
// These exist... |
// @flow
import * as React from "react";
import { getDisplayName } from "./utils";
import withPhenomicApi from "./withPhenomicApi";
export default function deprecatedCreateContainer<P>(
ComposedComponent: React.ComponentType<P>,
getQueries: (props: Object) => Object = () => ({}),
) {
const displayName = getDis... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
'use strict';
var helper = require('./helper');
module.exports = helper(
'{{Infobox settlement ' +
'| name = Bemowo' +
'|}}'
);
|
describe('button specs', function () {
describe('given a named button at the same bindContext as the viewmodel containing the matching action', function () {
var vm, view, buttonId;
beforeEach(function () {
buttonId = Ext.id();
testNs = {
viewmodels:{
... |
/**
* ion-events.js
*
* Author: Max Lynch <max@drifty.com>
*
* Framework events handles various mobile browser events, and
* detects special events like tap/swipe/etc. and emits them
* as custom events that can be used in an app.
*
* Portions lovingly adapted from github.com/maker/ratchet and github.com/alexgi... |
'use strict';
var _getIterator = require('babel-runtime/core-js/get-iterator')['default'];
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.querySelector = querySelector;
exports.querySelectorAll = querySelectorAll;
var _cssSelectorParser = require('css-selector-parser');
var cssParser = n... |
var assert = require('assert')
var util = require('util')
var _ = require('underscore')
function own(obj){
if( obj ) {
var sb = ['{']
for( var p in obj ) {
if( obj.hasOwnProperty(p) && '$'!=p.charAt(p.length-1)) {
sb.push(p)
sb.push('=')
sb.push(obj[p])
sb.push(','... |
import axios from 'axios';
import { csrfToken } from 'lib/helpers/server-context';
export default class BaseAPI {
constructor() {
this.client = null;
}
/** Returns the API client */
getClient() {
if (this.client) return this.client;
const headers = { Accept: 'application/json', 'X-CSRF-Token': cs... |
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Format/OWSCommon/v1.js
*/
/**
* Class:... |
var gulp = require('gulp');
var stylus = require('gulp-stylus');
var rename = require('gulp-rename');
var minifyCSS = require('gulp-minify-css');
var nib = require('nib');
gulp.task('stylus', function () {
return gulp.src('./stylus/index.styl')
.pipe(stylus({use: [nib()]}))
.pipe(minifyCSS())
.pipe(rena... |
/**
* Copyright 2012-2017, Plotly, Inc.
* 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.
*/
'use strict';
var Box = {};
Box.attributes = require('./attributes');
Box.layoutAttributes = require('./layout_attributes');
... |
import { EssentialAppDisabledException } from '@rocket.chat/apps-engine/definition/exceptions';
import { AppInterface } from '@rocket.chat/apps-engine/definition/metadata';
import { AppManager } from '@rocket.chat/apps-engine/server/AppManager';
import { Meteor } from 'meteor/meteor';
import { Logger } from '../../log... |
/****************************************************************************
The MIT License (MIT)
Copyright (c) 2013 Apigee Corporation
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 with... |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2015 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
(function(window, document, $) {
'use strict';
var $body = $('body'),
$html = $('html');
$.site.gridmenu = {
opened: false,
init: function() {
this.$insta... |
// jshint undef:true
// jshint eqeqeq:false
/* globals Set */
/* globals getAttrByName */
/* globals findObjs */
/* globals _ */
/* globals createObj */
/* globals log */
/* globals sendChat */
/* globals state */
/* globals Campaign */
/* globals getObj */
/* globals randomInteger */
/* globals spawnFx */
/* globals s... |
define({
"left": "Linksbündig",
"right": "Rechtsbündig",
"arrangement": "Anordnung",
"autoUpdate": "Automatisch aktualisieren",
"respectCurrentMapScale": "Aktuellen Kartenmaßstab berücksichtigen",
"layerSelectorTitle": "Layer auswählen, in denen Legenden angezeigt werden sollen: ",
"showLegendsForLayers":... |
/*!
* Bootstrap v4.0.0 (https://getbootstrap.com)
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'u... |
CKEDITOR.plugins.setLang("colorbutton","de",{auto:"Automatisch",bgColorTitle:"Hintergrundfarbe",colors:{"000":"Schwarz",8E5:"Kastanienbraun","8B4513":"Braun","2F4F4F":"Dunkles Schiefergrau","008080":"Blaugrün","000080":"Marineblau","4B0082":"Indigo",696969:"Dunkelgrau",B22222:"Ziegelrot",A52A2A:"Braun",DAA520:"Goldgelb... |
import React from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import JobLink from "../JobLink/JobLink"
import TableHelper from "../TableHelper/TableHelper"
import RawJson from "../RawJson/RawJson"
const taskHeaders = ["ID", "Name", "Group", "Driver", "CPU", "Memory", "Disk"]
const... |
tinyMCE.addI18n('tw.template_dlg',{
title:"\u7BC4\u672C\u6A19\u984C",
label:"\u7BC4\u672C",
desc_label:"\u63CF\u8FF0",
desc:"\u63D2\u5165\u9810\u5B9A\u7684\u7BC4\u672C\u5167\u5BB9",
select:"\u9078\u64C7\u7BC4\u672C",
preview:"\u9810\u89BD",
warning:"\u8B66\u544A:\u66F4\u65B0\u7BC4\u672C\u6709\u53EF\u80FD\u5C0E\u81F4\u8... |
module.exports = function (grunt) {
// Full list of files that must be included by RequireJS
includes = [
'jquery.select2'
];
amdIncludes = [
'almond'
];
fullIncludes = [
'jquery',
'jquery.mousewheel',
'select2/compat/matcher',
'select2/compat/initSelection',
'select2/compat/i... |
this.recline = this.recline || {};
this.recline.Backend = this.recline.Backend || {};
this.recline.Backend.GDocs = this.recline.Backend.GDocs || {};
(function($, my) {
my.__type__ = 'gdocs';
// ## Google spreadsheet backend
//
// Fetch data from a Google Docs spreadsheet.
//
// Dataset must have a url at... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.