code stringlengths 2 1.05M |
|---|
/* */
"format amd";
//! moment.js locale configuration
//! locale : Serbian Cyrillic [sr-cyrl]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? ... |
/**
* Populate DB with sample data on server start
* to disable, edit config/environment/index.js, and set `seedDB: false`
*/
'use strict';
var Thing = require('../api/thing/thing.model');
var User = require('../api/user/user.model');
var Feed = require('../api/feed/feed.model');
var Comment = require('../api/comm... |
exports.init = function(req, res){
//are we logged in?
if (req.isAuthenticated()) {
res.redirect(req.user.defaultReturnUrl());
}
else {
if (!req.query.returnUrl) req.query.returnUrl = '/';
res.render('login/index', { returnUrl: req.query.returnUrl });
}
};
exports.login = function(req, res){
/... |
(function() {
/**
* @ngdoc controller
* @name app.guild.controller:RaidCtrl
* @description < description placeholder >
*/
angular
.module('app.guild')
.controller('RaidCtrl', RaidCtrl);
RaidCtrl.$inject = ['$http', 'toastr'];
/* @ngInject */
function RaidCtrl($http, toastr) {
/*jshint validthis: t... |
const shuffleArray = require('./sorting/HiLo')
var arr = [3,1,2,6,4,5]
console.log(arr)
var bar = shuffleArray(arr)
console.log(bar)
|
/*
Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved.
MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt
*/
var Modules = (function (modules) {
modules.maps = (modules.maps)? modules.maps : {};
modules.maps['h-entry'] = {
root: 'hentry',
name: 'h-entry',
properti... |
export const assign = (...args) => Object.assign({}, ...args);
export const getAppState = (state) => state.localAppData; |
var WIDTH = 256;
var HEIGHT = 128;
var audio;
var mycanvas = document.createElement("canvas");
mycanvas.id = "mycanvas"; document.body.appendChild(mycanvas);
// Interesting parameters to tweak!
var SMOOTHING = 0.8;
var FFT_SIZE = 2048;
var context = synthContext || new webkitAudioContext();
if (document.getElements... |
const reportBuild = require('bugsnag-build-reporter')
module.exports = async (apiKey, manifest, projectRoot, endpoint) => {
const { revisionId, version } = manifest
await reportBuild({
apiKey,
appVersion: version,
metadata: { [`bundle@${new Date().toISOString()}`]: revisionId }
}, { path: projectRoot... |
require('babel-core/register');
require('babel-polyfill');
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var requireDir = require('require-dir');
requireDir('./tasks');
var gulp = require('gulp');
gulp.task('default', ['ci']);
|
define({
"selectLayer": "Välj sammanfattningslager",
"filterField": "Filterfält för sammanfattningslager",
"count": "ANTAL",
"sum": "SUMMA",
"min": "MIN",
"max": "MAX",
"avg": "SNITT",
"addField": "Lägg till sammanfattningsfält",
"label": "Etikett",
"type": "Typ",
"field": "Fält",
"actions": "Åt... |
/**
* 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.
*
* @provides... |
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const webpack = require('webpack');
module.exports = {
entry: {
app: './src/index.js'
},
devtool: 'inline-source-map',
devServer: {
content... |
var _tics = _tics || {};
_tics.cms = (function () {
'use strict';
var helper = _tics.helper;
var findFuncName = function (name, query) {
var funcName = null;
if (!name) {
return null;
}
if (name.lastIndexOf(query, 0) === 0) {
funcName = name.slice(query.length + 1);
}
return funcName;
};
v... |
var classBoundaryCondition =
[
[ "boundary", "classBoundaryCondition.html#ae8f57743167e1fec9b32f8febccf833a", null ]
]; |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ErrorMessage from 'atoms/ErrorMessage';
import Text from 'atoms/Text';
import styles from './split_field.module.scss';
function SplitField(props) {
const {
className,
children,
input,
label,
... |
/**
* This function has a different `this`.
* @this Kitty
*/
function differentThis() {
}
|
import * as types from '../constants'
const initialState = {}
export default function article(state = initialState, action) {
switch (action.type) {
case types.RECV_SINGLE_ARTICLE_DATA:
return action.data
default:
return state
}
}
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
/**
* 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.
*/
/* eslint-disable global-require */
// The top-level (p... |
const tippy = require("tippy.js").default;
module.exports = class {
initTippy() {
this.tippyInstances = [];
this.tippyElements = tippy("[data-tippy-content]", {
onCreate: instance => {
this.tippyInstances.push(instance);
}
});
}
onMount() {
... |
import { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import withIssuer from 'hocs/withIssuer';
import RendererContext from './RendererContext';
@withIssuer()
@observer
export default class FieldGateway extends Component {
static propTypes = {
renderer: PropTy... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
module: {
rules: [
{
"test": /\.js?$/,
"include": [
path.resolve(__dirname, "src")
],
"use": "babel-loader",
}
]
},
devtool: 'cheap-module-eval-... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import { $ } from 'meteor/jquery';
import { AutoForm } from 'meteor/aldeed:autoform';
import { sAlert } from 'meteor/juliancwirko:s-alert';
import {
emailsCollection,
emailType a... |
search_result['1688']=["topic_0000000000000418.html","tlece_PublishedPostVacancy.JobTitle Property",""]; |
// @require JsMethod > eventTransitionName
(function(a){a.register("JsMethod","cssAnimateCallback",function(b,d,e){var f=this.eventTransitionName(),a=this,c=function(a){a.target===b&&(a.stopPropagation(),b.removeEventListener("cssAnimateStop",c),b.removeEventListener(f,c),d&&d(a))};b.addEventListener("cssAnimateStop",c... |
import styles from './test-box.css'
const name = 'testBox'
export default window.angular
.module(name, ['ui.bootstrap'])
.component(name, {
bindings: {
test: '<',
name: '<'
},
controller: class Ctrl {
calcPercent (num) {
return ((num * 158) / 100)
}
},
template: ... |
'use strict';
var through = require('through2');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var log = require('./logger');
var builtins = require('./builtins');
var prelude = fs.readFileSync(path.join(__dirname, './prelude.js'), 'utf8');
module.exports = function () {
var first... |
import Ember from 'ember';
import config from 'ember-get-config';
import workflow from '../utils/workflow';
import Watching from '../mixins/watching';
const { RSVP: {Promise}, computed, debug, get, typeOf, $, assert } = Ember;
const hzConfig = Ember.assign({ host: 'http://localhost:8181' }, get(config, 'horizon') || {... |
export { default, icon } from 'ui-icon/helpers/icon';
|
var app = app || {};
//var Codemirror = require('../../node_modules/react-codemirror/dist/react-codemirror.min.js')
(function() {
app.APP_TEST = 1;
app.STANDARD_TEST = 2;
app.SERVER_TEST = 3;
var TestButton = app.TestButton;
var CodeEditor = app.CodeEditor;
function onChange(newCode) {
... |
var express = require("express");
var path = require("path");
var app = express();
app.use(express.static(path.join(__dirname, "public")));
app.get("/", function(req, res) {
});
app.listen(process.env.PORT || 3000); |
import test from 'ava'
var sletTest = require('slettest')
const Slet = require('../../../slet')
const BaseController = require('../..')
const app = new Slet({
root: __dirname,
debug: false
})
// it('should return the Host when present', function(done){
// var app = express();
// app.use(function(req, res){
/... |
const ModelBase = require('./base').default;
const RDSInstance = class RDSInstance extends ModelBase {
constructor(infra, physicalId) {
super();
this.infra = infra;
this.physicalId = physicalId;
this.params = {
physical_id: physicalId,
id: infra.id,
};
this.ajax_infra = new AjaxSe... |
module.exports = {
primary: '#FF0000'
}
|
var MOVE_OBJECT = {
"pound" : {
"type": "normal",
"category": "physical",
"contest": "tough",
"pp": "35",
"power": "40",
"accuracy": "100%",
"gen": "i"
},
"karate-chop" : {
"type": "fighting",
"category": "physical",
"contest": "tough",
"pp": "25",
"power": "50",
"accuracy": "1... |
import {test, scheduler} from './helpers'
import chan from '../src'
const NOT_YET = { desc: 'NOT_YET' }
////////////////////////////////////////////////////////////////////////////////////////////////////
test(`chan.timeout(ms[, msg]) creates a special timeout chan`, async t => {
/////////////////////////////////////... |
pamApp.controller('pamSubList', function($scope, $http) {
$scope.button = {radio: $scope.subject}; // Subject Radio object definition
getSubList();
// Standard subject query
function getSubList() {
$http.get('/notes/sublist').
then ( function successCallback(obj) {
$scope.subList = obj.data;... |
/*syn@1.0.0-pre.1#drag.support*/
var syn = require('./synthetic.js');
(function dragSupport() {
if (!document.body) {
syn.helpers.schedule(dragSupport, 1);
return;
}
var div = document.createElement('div');
document.body.appendChild(div);
syn.helpers.extend(div.style, {
width... |
import Ember from 'ember';
const { service } = Ember.inject;
export default Ember.Component.extend({
session: service('session'),
actions: {
authenticateWithGithub() {
this.set('loading', true);
this.get('session').authenticate('authenticator:torii', 'github').then(() => {
this.set('loadi... |
CKEDITOR.plugins.setLang( 'image', 'zh-cn', {
alt: '替换文本',
border: '边框大小',
btnUpload: '上传到服务器',
button2Img: '确定要把当前图像按钮转换为普通图像吗?',
hSpace: '水平间距',
img2Button: '确定要把当前图像改变为图像按钮吗?',
infoTab: '图像信息',
linkTab: '链接',
lockRatio: '锁定比例',
menu: '图像属性',
resetSize: '原始尺寸',
title: '图像属性',
titleButton: '图像域属性',
upl... |
// Based on WeatherService by Hani Shabsigh at Inbox
// Gets Stock Prices using Bloomberg's API
// You can try this service by messaging @thestockbot on Inbox Messenger
// BASE SETUP
// =============================================================================
// setup packages
var express = require('express'); //... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// create a schema
var dishSchema = new Schema({
name: {
type: String,
required: true,
unique: true
},
description: {
type: String,
required: true
}
},
{
// createdAt & updateAt
timestamps: true
});
// create model
var ... |
define([
'lib/tabler/tabler',
'lib/tabler/tabler.pager',
'lib/tabler/tabler.jumpToPage'],
function(tabler,
pager,
jumpToPage){
'use strict';
describe('tabler.jumpToPage', function(){
var table;
afterEach(function(){
if(table){
... |
import { models } from 'exseed';
import jwt from 'jwt-simple';
import moment from 'moment';
import settings from '../settings';
export default {
identity: 'user',
attributes: {
email: {
type: 'string',
},
username: {
type: 'string',
required: true,
unique: true,
},
nam... |
// Generated on 2016-04-18 using generator-angular 0.15.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
var Plotline = Plotline || {};
// Responsive Photosets
//
// Based heavily on/stolen from: https://medium.com/coding-design/responsive-photosets-7742e6f93d9e
Plotline.Photosets = {
initialize: function() {
window.addEventListener('resize', Plotline.Utils.debounce(this.align.bind(this), 100));
Plotline.Utils... |
/*
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame, assertThrows
} = Assert;
function countIter(iterable) {
let counterNext = 0, counterIterator = 0;
let coun... |
/**
* Major dependencies
*/
// Node
var path = require('path'),
fs = require('fs'),
url = require('url'),
// JS Extensions
_ = require('underscore'),
classy = require('../classy'),
Class = classy.Class,
EventClass = classy.EventClass,
// Specific
Config = require('../config'),
Asset = require('./asset'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Ui5Bar = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto... |
/*
████████████████████████████████████████████████████████████████████████████████████████████████████
* MongoDB: MongoDB.js v0.0.0.1
* https://azmisahin.github.io
════════════════════════════════════════════════════════════════════════════════════════════════════
* Copyright bilgi@azmisahin.com
... |
var _merge = require('lodash-node/modern/objects/merge');
var _forEach = require('lodash-node/modern/collections/forEach');
var _isArray = require('lodash-node/modern/objects/isArray');
var Promise = require('promise');
var constantsConfigs = require('./configs').constants.get();
var Actions = function(dispather, act... |
Desk = {}
Nav = {}
Admin = {}
Chart = {} |
export default function getText(url) {
return fetch(url).then(res => res.text());
}
|
var isAutocompleted = false;
$(document).ready(function() {
if(Modernizr.touch){
document.addEventListener("touchstart", function(){}, true);
}
if(!Modernizr.csstransforms3d){
$("html").addClass("html4");
}
$("#mapshow").click(function(){
if(Modernizr.csstransforms3d){
$("#container").addClass("flip"... |
// @flow
export type ChuckNorrisState = {|
completed: boolean,
joke: ?string,
error: ?string,
|};
export type LayoutState = {|
shouldMenuLeftOpened: boolean,
isMenuCurrentlyOpened: boolean,
|};
export type TodoState = {|
id: number,
text: string,
completed: boolean,
|};
export type TodoManagerState ... |
var fs = require('fs')
var Stream = require('stream')
var debug = process.env.DEBUG || false
// Filter to 'cleanup' buffered data back into a single line of input
var lineFilter = new Stream
lineFilter.writable = true
lineFilter.readable = true
var lineRegExp = new RegExp('\n')
lineRegExp.compile();
var buffer = null;... |
'use strict';
var _ = require('lodash');
/**
* Object holding all the values that will be displayed in the interface
*
* @constructor
*/
function Registry(){
var self = this;
var
BUFFER_MAX_ELEMENT = 300;
var
// Raw data
_digestTiming = [],
_digestTimingDistribution = {},
_events = []... |
'use strict';
angular.module('copayApp.services').factory('addressbookService', function($log, bitcore, bitcoreCash, storageService, lodash, bitcoinCashJsService) {
var root = {};
var getNetwork = function(address) {
var network;
try {
network = (new bitcore.Address(address)).network.name;
} cat... |
quail.KINGUsePercentageWithSymbol = function (quail, test, Case) {
function testPercentFormat (index, element) {
// Detect dates with several separators.
var percentName = [
'percent',
'pct\\.'
];
// Test the words and any eventual extra letters for s and all.
var percentReg = new RegE... |
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var watch = require('gulp-watch');
gulp.task('default', ['watch', 'lint']);
gulp.task('watch', function() {
gulp.watch('./javascripts/**/*.js', ['lint']);
});
gulp.task('lint', function() {
return gulp.src('./javascripts/**/*.js')
.pipe(jshint... |
import * as V from 'ptz-validations';
export const getPasswordValidation = (required) => {
if (required)
return [
V.required,
V.isString,
V.min(6),
V.max(40)
];
return [
V.isString,
V.min(6),
V.max(40)
];
};
export const... |
const path = require('path');
const webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'./src',
],
output: {
path: path.join(__dirname, 'public'),
filename: 'app.js',
publicPath: 'public/',
},
plugins: [
new webpack.HotModuleReplac... |
define(['js/views/card/itemview', 'hbs!js/views/card/templates/header', 'js/device', 'js/commands'],
function (CardItemView, template, device, commands) {
"use strict";
return CardItemView.extend({
template: template,
ui: {
backDashboardButton: '#back-dashboard',
shareButton: '#share-button'... |
import Ember from 'ember';
export default Ember.Component.extend({
title: null,
priority: null,
isDone: null,
actions: {
editNote: function() {
const flashMessages = Ember.get(this, 'flashMessages');
var note = this.get('note');
var id = note.get('id');
var color = Ember.$("#note... |
define([
'config/types',
'shared/registerDependant',
'shared/unregisterDependant'
], function (
types,
registerDependant,
unregisterDependant
) {
'use strict';
return function resolveMustache ( keypath ) {
var i;
// In some cases, we may resolve to the same keypath (if this is
// an expression mustache... |
import { GraphQLObjectType as ObjectType } from 'graphql';
import createAppointment from './CreateAppointment';
import createWaitingAppointment from './CreateWaitingAppointment';
import updateAppointment from './UpdateAppointment';
import cancelAppointment from './CancelAppointment';
import updateEventStatus from './U... |
/*
* @Author: ben_cripps
* @Date: 2015-01-08 20:06:35
* @Last Modified by: ben_cripps
* @Last Modified time: 2015-02-14 13:46:24
*/
module.exports = function(mongoose){
'use strict';
return mongoose.model('publicUsers', {
userId: String,
name: String,
zipcode: Number,
phone... |
/*!
* devextreme-angular
* Version: 16.2.5
* Build date: Tue Feb 28 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://git... |
function $(element) {
return document.getElementById(element);
}
function toggle(id) {
if ($(id).style.display != 'none') {
$(id).style.display = 'none';
} else {
$(id).style.display = '';
}
} |
function Molecule(mv, atoms, bonds, dataStr, molid) {
this.__init(mv, atoms, bonds, dataStr, molid);
}
Molecule.prototype = {
mv: undefined,
settings: undefined,
cache: undefined,
dataStr: undefined,
atoms: undefined,
bonds: undefined,
molid: undefined,
__init: function(mv, atoms, bonds, dataStr, ... |
/**
* Tom Select v1.7.3
* Licensed under the Apache License, Version 2.0 (the "License");
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undef... |
export default function clientMiddleware(client) {
return ({dispatch, getState}) => {
return next => action => {
if (typeof action === 'function') {
return action(dispatch, getState);
}
const { promise, types, ...rest } = action;
if (!promise) {
return next(action);
... |
/*
* Flush stats to Uptime Cloud Monitor (https://www.idera.com/infrastructure-monitoring-as-a-service/https://www.idera.com/infrastructure-monitoring-as-a-service/).
*
* To enable this backend, include 'copperegg-statsd-backend'
* in the backends configuration array:
*
* backends: ['copperegg-statsd-backend']... |
#!/usr/bin/env node
/**
* Render files.
*/
"use strict";
process.chdir(__dirname + '/..');
const apeTasking = require('ape-tasking'),
async = require('async'),
filecopy = require('filecopy'),
path = require('path'),
mkdirp = require('mkdirp'),
fur = require('fur');
const furFavicons = require... |
search_result['816']=["topic_00000000000001CC_overloads--.html","CustomAccountController.VerifyPhoneNumber Method",""]; |
module.exports = function(grunt) { // eslint-disable-line no-unused-vars
'use strict';
var connect = {
dist: {
options: {
port: 80,
keepalive: false,
base: 'dist',
hostname: '0.0.0.0',
livereload: 35729,
... |
'use strict'
const stringify = require('fast-safe-stringify')
exports.serialize = function serialize (obj) {
const str = tryJSONStringify(obj) || stringify(obj)
return str + '\n'
}
function tryJSONStringify (obj) {
try {
return JSON.stringify(obj)
} catch (e) {}
}
|
ContactPlate.HandObserver = (function (ContactPlate) {
var disabled = true;
ContactPlate.KeyboardObserver.register(function (which) {
if (which === 32)
disabled = !disabled;
});
var observers = [];
return {
register: function (newObserver) {
observers.push... |
'use strict';
/* eslint-env node */
module.exports = {
name: 'ember-cli-qunit',
contentFor(type) {
let output = this.eachAddonInvoke('contentFor', [type]);
return output.join('\n');
},
// intentionally not calling _super here
// to avoid these trees being namespaced into
// `ember-cli-qunit/test-... |
(function( $ ) {
$.fn.barslider = function( options ) {
this.addClass('barslider');
this.filter("div").each(function() {
$(this).html('<canvas></canvas><div></div>');
});
var canvas = this.children("canvas");
var slider = this.children... |
window.predix = window.predix || {};
window.predix.hopscotchTour = {
'tour0' : {
id: "basic-application",
i18n: {
stepNums: ['1', '1.1', '1.2', '1.3', '1.4', '1.5']
},
steps: [
{
title: "Basic Application",
content: "Congratulations! You have successfully installed a basic form ... |
/**
* Check in Functions
*
* Created by tpaulus on 1/10/17.
*/
var TXComponents = [];
var supervisor = null;
const notifyChime = new Audio("error.ogg");
function loadCheckedOutItems() {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {... |
document.onload = displayBooks(false);
function displayBooks(isWishlist) {
var bookDivElement = document.getElementById("book-div");
if (bookDivElement) {
while (bookDivElement.firstChild) {
bookDivElement.removeChild(bookDivElement.firstChild);
}
}
var httpRequest = ne... |
if (process.env.NODE_ENV !== 'production') require('dotenv').config()
import './ai'
|
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'print', 'gu', {
toolbar: 'પ્રિન્ટ'
} );
|
function user() {
var __SNAKESKIN_RESULT__ = '',
$_;
var TPL_NAME = 'user';
var PARENT_TPL_NAME;
__SNAKESKIN_RESULT__ += 'Hi, ';
__SNAKESKIN_RESULT__ += Snakeskin.Filters.html(Snakeskin.Vars['user'].name);
__SNAKESKIN_RESULT__ += '! Its an cold cache emulation';
return __SNAKESKIN_RE... |
var test = require('tape');
var groupBy = require('../../tools/groupBy');
test('throws if not given a key lens function', function (t) {
t.throws(function () { groupBy([]); }, TypeError, 'no function provided');
t.throws(function () { groupBy([], {}); }, TypeError, 'object is not a function');
t.throws(function () ... |
module.exports = {
UtilError: require('./utilerror'),
DbError: require('./dberror')
}
|
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.1 (2019-10-28)
*/
(function () {
'use strict';
... |
class AssetsProvider {
constructor(isInExtensionMode) {
this.isInExtensionMode = isInExtensionMode;
}
getAsset(pathToAsset) {
if (this.isInExtensionMode) {
return chrome.extension.getURL(pathToAsset);
}
else {
return pathToAsset;
}
}
}
ex... |
/**
* clouds-socket test
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
var support = require('./support');
describe('clouds-socket', function () {
it('server.listen() & client.connect()', function (done) {
var address = support.getListenAddress();
var s, c1, c2;
async.series([
function (... |
var env = require('./environment.js');
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
module.exports = function() {
this.Given(/^I started a game$/, function(done) {
browser.get(env.baseUrl + '/#/fight');
done();
... |
import { createDecorator } from '../util/helpers';
/**
* OnInit decorator - sets method to be run at init
* @returns {Function} decorator
*/
export default createDecorator((component, property) => {
const emptyFnc = function () {};
const org = component.init || emptyFnc;
if (property === 'init') {
return... |
import { get } from "ember-metal/property_get";
import EmberError from "ember-metal/error";
import run from "ember-metal/run_loop";
import jQuery from "ember-views/system/jquery";
import Test from "ember-testing/test";
/**
* @module ember
* @submodule ember-testing
*/
var helper = Test.registerHelper;
var asyncHelper... |
'use strict';
exports.up = function(knex, Promise) {
return Promise.all([
knex.schema.table('logs', function(table) {
table.text('message');
})
]);
};
exports.down = function(knex, Promise) {
};
|
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";var l={"NA":["NA","Noord-Amerika"]};(this?this:window)['DvtBaseMapManager']['_UNPROCESSED_MAPS'][2].push(["northAmerica","continent",l]); |
/*! Element Plus v2.0.4 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ElementPlusLocaleIt... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.6.1 (2020-11-25)
*/
(function () {
'use strict';
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const is_1 = require("@riim/is");
const logger_1 = require("@riim/logger");
const map_set_polyfill_1 = require("@riim/map-set-polyfill");
const next_tick_1 = require("@riim/next-tick");
const symbol_polyfill_1 = require("@riim/symbol-polyfill"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.