code stringlengths 2 1.05M |
|---|
var ObjectAnimationDrawing;
(function (ObjectAnimationDrawing) {
var Main = (function () {
function Main() {
this.logicalScreenWidth = 640.0;
this.logicalScreenHeight = 360.0;
this.render = new WebGLRender();
this.shader = new SampleShaders.PlainShader();
... |
/**
* Place model events
*/
'use strict';
import {EventEmitter} from 'events';
import Place from './place.model';
var PlaceEvents = new EventEmitter();
// Set max event listeners (0 == unlimited)
PlaceEvents.setMaxListeners(0);
// Model events
var events = {
'save': 'save',
'remove': 'remove'
};
// Register ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
(function($) {
$charts = $('#charts');
for (var i = 0; i < monthly.categories.length; i++) {
monthly.categories[i] = months[monthly.categories[i] - 1];
}
$charts.append('<div id="monthly"></div>');
$monthly = $('#monthly');
$monthly.css('margin', '0 auto');
$monthly.css('min-width... |
'use strict';
const pgp = require('pg-promise')({});
var cn = {
host: 'localhost', // server name or IP address;
port: 5432,
database: process.env.DB_NAME,
user: process.env.DB_USER,
password: process.env.DB_PASS
};
const db = pgp(cn)
function insertRecipe(req, res, next) {
req.body.user_id =... |
// Generated by CoffeeScript 1.11.1
var $, S;
$ = require('cheerio');
S = require('string');
module.exports = {
isTextNode: function(dom) {
var $dom;
$dom = $(dom);
return $dom[0].type === 'text';
},
isEmptyTextNode: function(dom) {
var $dom;
$dom = $(dom);
return $dom[0].type === 'text... |
import { Observable } from 'rxjs';
import 'rxjs/observable/throw';
import { createDirectLine } from 'botframework-webchat';
export default function createFaultyDirectLine(directLineOptions) {
const underlying = createDirectLine(directLineOptions);
const { postActivity: workingPostActivity } = underlying;
unde... |
import React from 'react';
import Relay from 'react-relay'
import Icon from 'react-fa';
import delay from 'lodash/delay'
import SetStableMutation from './mutations/SetStableMutation';
import './styles.css';
export default class ActiveOperations extends React.Component {
constructor(props) {
super(props);
... |
export function isAuthenticated(req, res, next) {
}
|
var xlsx = require ('xlsx');
var fs = require ('fs');
var Excel = require ('exceljs');
var workbook1 = new Excel.Workbook();
if ( typeof require !== 'undefined' ) XLSX = require ( 'xlsx' );
var workbook = XLSX.readFile('boxxspring.xlsx', { cellStyles: true } );
var worksheet = workbook.Sheets [ 'categories_group' ];
va... |
DailyOps = window['DailyOps'] || {};
DailyOps.localStorage = (function () {
if (!window.localStorage) {
alert("Local storage not available");
return null;
}
// Try to read the cache object from localStorage...
return {
allPlans: function (then, error) {
var plan... |
alert("Hanami!"); |
function removeClasses(element, start = 0, end = -1)
{
if (end === -1){
end = element.classList.length;
}
var len = end - start;
for (var i = 0; i < len; ++i){
element.classList.remove(element.classList[start]);
}
}
function showNext(result, colorize = true) {
var state = getState(result);
var el... |
/*
The MIT License (MIT)
Copyright (c) 2016 Jim Daly
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, copy, modify, merge, pub... |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M22 11h-4.17l3.24-3.24-1.41-1.42L... |
Template.healthdetails.helpers({
'userinput': function() {
var userinput = Template.instance().userinput.get();
return userinput;
}
});
Template.healthdetails.events({
});
Template.healthdetails.onCreated(function() {
this.userinput = new ReactiveVar();
Meteor.call('livechat:getUserI... |
/**
* Expanding form plugin for jQuery
* ---
* VodkaBears(https://github.com/VodkaBears)
*/
(function ($) {
"use strict";
$.fn.expandingForm = function (options) {
var defaults = {
from: 'top'
};
var opts = $.extend(defaults, options);
var self = th... |
var PackageBuilder = (function() {
PackageBuilder.BINARYTRUST_TC1 = "binarytrust.tc1";
PackageBuilder.CONFIRMTRUST_TC1 = "confirm.tc1";
PackageBuilder.RATING_TC1 = "rating.tc1";
PackageBuilder.IDENTITY_TC1 = "identity.tc1";
function PackageBuilder(settings) {
this.settings = settings;... |
var pandas = require('../../data/pandas.json')
module.exports = function(req, res) {
return res.json({pandas})
}
|
'use strict';
/**
* @param {String} text
*/
function printLine(text) {
process.stdout.write(text);
}
module.exports = {
printLine: printLine
};
|
( function() {
'use strict';
angular.module( 'app', [
'ngRoute',
'app.home',
'app.sampleData'
] );
angular.module( 'app' ).controller( 'mainController', function( $scope ) {
$scope.tagline = 'Lorem ipsum dolor';
} );
angular.module( 'app' ).config( [
'$routeProvider',
'$locationProvider',
fun... |
module.exports = (grunt) => {
grunt.config('clean', {
test: ['test/results'],
});
grunt.loadNpmTasks('grunt-contrib-clean');
};
|
var isArray = function(elem){
return toString.call(elem) === '[object Array]';
};
var isObject = function(elem){
var t = typeof elem;
return t === "function" || t === "object" && !!elem;
};
var has = function(o, p){
return !!o && hasOwnProperty.call(o, p);
};
var deepCopy = function(obj){
var out... |
// Disable the fixed, floating header in the admin. This occasionally causes
// problems with Poltergeist's scroll logic, since Poltergeist thinks it's
// scrolled an element to click into view, but then it discovers there's the
// navbar overlapping it, making it unclickable.
(function() {
function ready() {
var... |
var files =
[
[ "Mobile Clinic", "dir_9c7e14f069bc2ed190ac787811b99994.html", null ],
[ "Mobile ClinicTests", "dir_b8b1610e6c91c0dd95f3c2fb8e69503c.html", null ],
[ "TestFlightSDK1.1", "dir_583ebe6260d6bb2835877b6d74da8b43.html", null ]
]; |
var assert = require('assert');
var sinon = require('sinon');
var GitterBot = require('../lib/GitterBot');
var DEFAULT_CONFIG = {
apiKey: 'API_KEY',
roomName: 'ghaiklor/uwcua-vii',
execPattern: /^exec\s+/,
calcPattern: /^calc\s+/,
pingPattern: /^Ping$/
};
describe('GitterBot', function () {
it('Should prop... |
var express = require('express');
var path = require('path');
var app = express();
var http = require('http').Server(app);
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname + '/client/index.html'))
});
app.use(express.static(__dirname));
app.set('port', process.env.PORT || 8080);
h... |
/*
* controller script for futurgo vehicle
* extends Vizi.Script
*/
FuturgoController = function(param)
{
param = param || {};
Vizi.Script.call(this, param);
this.enabled = (param.enabled !== undefined) ? param.enabled : true;
this.scene = param.scene || null;
this.camera = param.camera || null;
this.tur... |
'use strict';
angular.module('cyanogenmodDistributionApp')
.controller('MainCtrl', function ($scope, Statistics) {
var getData = function(sortByVersion) {
var downloadsPromise = Statistics.getDownloads(sortByVersion);
downloadsPromise.then(function(data) {
$scope.barData = data;
});
... |
const test = require('tape');
const request = require('supertest');
const server = require('../lib/server');
test.onFinish(() => process.exit(0));
test('GET /', (t) => {
request(server)
.get('/')
.expect(401)
.end((err, res) => {
const expected = {
code: 'Unauthorized',
message: 'A... |
#!/usr/bin/env node
var program = require('commander');
var chalk = require('chalk');
var decrypt = require('../lib/decrypt');
program
.usage('<password> [source-path] [destination-path]');
program.on('--help', function () {
console.log(' Examples:');
console.log();
console.log(chalk.gray(' # de... |
//
//= require ../../../vendor/assets/javascripts/externals
//= require_tree .
|
import webpack from 'webpack';
import config from '../../config';
import webpackConfig from './development';
webpackConfig.entry.app.push(
`webpack-dev-server/client?${config.get('webpack_public_path')}`,
`webpack/hot/dev-server`
);
webpackConfig.plugins.push(
new webpack.HotModuleReplacement... |
const { Observable } = require('@apollo/client');
const { GRAPHQL_SUBSCRIPTION_MESSAGE_TYPE } = require('../common/defaults');
function filterGraphQLMessages(callback) {
return (message) => {
const data = typeof message === 'string'
? JSON.parse(message)
: message;
const {
type,
subI... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
RssFeed.publish('jobs', function(query) {
var self = this;
var pubDate = new Date();
var lastBuildDate = new Date();
var mostRecent = Jobs.findOne({}, {
sort: {
createdAt: -1
}
});
var secondMostRecent = Jobs.findOne({}, {
sort: {
createdAt: -1
},
skip: 1
});
if (mostRece... |
/*
Copyright 2013-2015 ASIAL CORPORATION
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 or agreed to in wr... |
var danmu_from_sql = new Array();
var danmu_count = 0;
//HTML加密
function htmlEncode(str) {
var s = "";
if (str.length == 0)
return "";
s = str.replace(/&/g, ">");
s = s.replace(/</g, "<");
s = s.replace(/>/g, ">");
s = s.replace(/\"/g, """);
s = s.replace(/\n/g, " ");
... |
module.exports = { prefix: 'fal', iconName: 'paste', icon: [448, 512, [], "f0ea", "M433.941 193.941l-51.882-51.882A48 48 0 0 0 348.118 128H320V80c0-26.51-21.49-48-48-48h-66.752C198.643 13.377 180.858 0 160 0s-38.643 13.377-45.248 32H48C21.49 32 0 53.49 0 80v288c0 26.51 21.49 48 48 48h80v48c0 26.51 21.49 48 48 48h224c26... |
function showPic(whichpic) {
if (!document.getElementById("placeholder")) return false;
var source = whichpic.getAttribute("href");
var placeholder = document.getElementById("placeholder");
if (placeholder.nodeName != "IMG") return false;
placeholder.setAttribute("src", source);
if (document.getElementById("desc... |
const Project = require('../../');
const c = new Project({
entry: './eg/project-has-browser/index.js',
});
const expected = [
'project-has-browser/package.json',
'project-has-browser/node_modules/engine.io-parser/package.json',
'project-has-browser/node_modules/engine.io-parser/lib/keys.js',
'project-has-br... |
var deck = new Array();
var classRoof = new Array();
var score = 0
window.onload = function(){
for(var i =1; i < 14; i++ ){
deck[i-1] = 'img/'+i +"S.jpg";
}
for(var i =1; i< 14; i++){
deck[i+12] = 'img/'+i +'D.jpg';
}
for(var i =1; i<14; i++){
deck[i+25] = 'img/'+i +'H.jpg';
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _Mod = require("../Mod");
class VueLoader extends _Mod.Mod {
constructor(opts = {}) {
super(opts);
this.init();
}
get dependencies() {
return ['css-loader', this.mod];
}
}
exports.defau... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
/**
* A Validation function for local strategy properties
*/
var validateLocalStrategyProperty = function(property) {
return ((this.provider !== 'local' && !this.updated) || pro... |
/*------------------------------------------------------------------------------------
MSF Dashboard - module-colorscale.js
(c) 2015-present, MSF-Dashboard contributors for MSF
List of contributors: https://github.com/MSF-UK/MSF-Dashboard/graphs/contributors
Please refer to the LICENSE.md and LICENSES-DEP.... |
/**
* Created by Alexandru Ionut Budisteanu - SkyHub on 6/25/2017.
* (C) BIT TECHNOLOGIES
*/
import actions from './Contact-actions'
export default {
modules: {
},
state: {
},
actions,
}
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
module.exports = function() {
this.Before("@cloudformation", function (callback) {
this.service = new this.AWS.CloudFormation.Client();
callback();
});
this.Given(/^I create a CloudFormation stack with name prefix "([^"]*)"$/, function(prefix, callback) {
this.stackName = this.uniqueName(prefi... |
'use strict';
/*global angular*/
angular.module('educationApp.filters', [])
.filter('looseCreatorComparator', function(){
return function(object, query){
if(!query){
//if no query, match all
return object;
} else {
var retObject = [];
var lcQuery = query.toLowerCase();
var addM... |
var a00158 =
[
[ "atcacert_gen_challenge_hw", "a00840.html#ga208c1ea765f192bd86b26964fbb5edcb", null ],
[ "atcacert_verify_cert_hw", "a00840.html#ga81e92ea606e86051afa84f2fac4898d6", null ],
[ "atcacert_verify_response_hw", "a00840.html#gafeffa7a36a7b5a343f5f568d090e8eed", null ]
]; |
'use strict';
var express = require('express'),
http = require('http'),
bodyParser = require('body-parser'),
methodOverride = require('method-override'),
resource = require('../siren-resource'),
collection = resource.adapters.memory,
app = express(),
server,
// Collections are the database abstractio... |
(function () {
/**
* Show dialog
* @param dialogId - id of showing dialog
* @param resolveAction - additional action for resolving
* @param rejectAction - additional action for rejecting
* @param onOpened {Function} - event after opening dialog
* @returns {Promise}
*/
functio... |
$(function(){
$("body").on('click','button#invoice-detail', function(e){
e.preventDefault();
$url = $(this).data("source");
window.location = $url;
}).on('click','button.button-send', function(e){
$("#loader").show();
$url = $(this).data("source");
$.get($url, function(data){
$("#loader").hide... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
// indicate to webpack what external lib should be external (i.e. can be imported but won't be bundled)
module.exports = {
common: [
{
name: 'moment',
importName: 'moment'
}
],
app: [
{
name: 'Modernizr',
importname: 'Moder... |
version https://git-lfs.github.com/spec/v1
oid sha256:5030b45dd5b55d00d4dcedd0cae84f7765f87c38c3988b1db9e5ef53cb689df1
size 134600
|
version https://git-lfs.github.com/spec/v1
oid sha256:4f0f8bbed24cb706dfd1ea5d2a89a39463da1039166665c7e883aee2ccbdc991
size 19788
|
require('app-module-path').addPath(`${__dirname}'./../`);
import Mock from 'mock-require';
import Minimist from 'minimist';
import Mocha from 'mocha';
import Glob from 'glob';
Mock('stylishly/lib/utils/helpers', '../packages/stylishly/src/utils/helpers');
Mock('stylishly/lib/utils/canUseDOM', '../packages/stylishly/sr... |
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "func... |
/*
* @copyright
* Copyright © Microsoft Open Technologies, Inc.
*
* All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http: *www.apache.org/licenses... |
import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
import SvgIcon from '../../SvgIcon';
export default function createSvgIcon(path, displayName) {
const Component = React.memo(React.forwardRef((props, ref) => React.createElement(SvgIcon, _extends({}, props, {
ref: ref
}), path)));... |
import GameObject from './GameObject'
export default class Text extends GameObject{
constructor(font = '20px Arial', fillStyle = '#000') {
this.font = font;
this.fillStyle = fillStyle;
this.baseline = 'top';
this.text = '';
}
render(context) {
context.font = th... |
const path = require('path')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
plugins: [
new CleanWebpackPlugin([... |
version https://git-lfs.github.com/spec/v1
oid sha256:caa8e97487be4e55b49f6f97ce833751e29c35c0be1b29d878e1908156d5218f
size 4037
|
'use strict'
const path = require('path')
const { babel } = require('@rollup/plugin-babel')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
const banner = require('./banner.js')
const BUNDLE = process.env.BUNDLE === 'true'
let fileDest = 'bootstrap.js'
const external = ['jquery', 'popper.js']
const pl... |
// Get all of our friend data
var data = require('../data.json');
exports.view = function(req, res){
console.log(data);
res.render('signUp', data);
};
|
app.directive('circlePack', ['$window', function($window) {
return {
restrict: 'A',
controller: 'chartController',
link: function($scope, element, attrs) {
var margin = 20,
diameter = 960,
width = $window.innerWidth,
height = $window.innerHeight - 98;
var color = d3.scale.linear()
.d... |
const lab = require("lab").script();
const code = require("code");
exports.lab = lab;
let Execute = require("../src/index");
lab.experiment("Signal - ", () => {
lab.test("should ignore step 3", () => {
let execute = new Execute();
let executionTree = Execute.prepareExecutionTree([
{... |
import _ from 'lodash';
import * as actions from '../actions';
import PaginatorError from '../paginator-error';
export const errors = Object.freeze({
calculateOffsetNoLimit: 'Can\'t calculate offsets without a limit',
calculatePageNoLimit: 'Can\'t calculate pages without a limit'
});
const defaultOptions = {
... |
window.KnownSites_ = window.KnownSites_ || (function($){
var sites = [
{
domain: "tuoitre.vn",
title: ".content-detail .article-title",
author: ".author",
date: ".content-detail .date-time",
lead: ".main-content-body .sapo",
leadImg: "",
leadImgCaption: "",
content: "#main-detail-body",
quote: "[... |
class Dog {
constructor(name) {
this.name = name;
}
bark() {
return `Wah wah, I am ${this.name}`;
}
barkInConsole() {
/* eslint-disable no-console */
console.log(this.bark());
/* eslint-enable no-console */
}
}
export default Dog;
|
var rs = require('./rs');
var bufw = require('./bufw').W;
var binaryWriter = require('./binarywriter');
var binaryReader = require('./binaryreader');
var _ = require('underscorem');
var optimizer = require('./optimizer');
exports.add = function(wrapped, state, handle){
function makeBinarySingleReader(reader){
... |
var before = null;
states.forEach(function(object) {
Reveal.addEventListener(object.div,function() {
console.log(object)
paint(object.div,object.logo,object.stroke);
},false)
})
function paint(div,obj,stroke) {
if (before != null) {
$(before).lazylinepainter('erase');
}
$(... |
/* global describe, expect, it */
'use strict';
describe('Main app module and it\'s dependencies', function() {
[
'app',
'govright.platformServices',
'govright.corpusServices',
'ngMaterial',
'ui.router',
'gettext'
].forEach(function(module) {
it(module + ' module should be registered'... |
var passport = require('passport')
//plug code into app
module.exports = function(app) {
//use passport
app.use(passport.initialize());
app.use(passport.session());
//setup passport- serializeuser -> puts user into a session
passport.serializeUser(function(user, done) {
done(null, ... |
/*
leaflet-tracksymbol-label, a plugin that adds labels leaflet-trackmarkers for Leaflet powered maps. Based on Leaflet.label
(c) 2016, Johannes Rudolph
https://github.com/PowerPan/leaflet-tracksymbol-label
https://github.com/Leaflet/Leaflet.label
http://leafletjs.com
https://github.com/PowerPan
*/
/**
*
*/
... |
export const homeWelcomeExplanation = `
This message is being retrieved from an unauthenticated endpoint!
`;
export const homeAPIInfoExplanation = `
This information is being retrieved from an authenticated endpoint!
`;
|
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from '../src/Gallery';
class Demo6 extends React.Component {
constructor(props){
super(props);
this.state = {
images: this.props.images,
currentImage: 0
... |
/* UNDER CONSTRUCTION */
/*****************************
DEFINE FILTER
******************************/
Ext.define('UtilFilter.TitleFilter', {
extend: 'Ext.util.Filter',
filterFn: function(node) {
var pattern = new RegExp(this.getValue(), 'i'),
childr... |
/*
* Fuel UX Tree
* https://github.com/ExactTarget/fuelux
*
* Copyright (c) 2012 ExactTarget
* Licensed under the MIT license.
*/
define(function(require) {
var $ = require('jquery');
// TREE CONSTRUCTOR AND PROTOTYPE
var Tree = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, ... |
'use strict';
// ==============================
// CARETAKER
// ==============================
var BookmarksManager, bookmarks;
BookmarksManager = function () {};
bookmarks = [];
BookmarksManager.prototype.addBookmark = function (bookmark) {
bookmarks.push(bookmark);
};
BookmarksManager.prototype.getBookmark... |
const app = require('APP'), { env } = app
const debug = require('debug')(`${app.name}:auth`)
const passport = require('passport')
const { User, OAuth } = require('APP/db')
const auth = require('express').Router()
/*************************
* Auth strategies
*
* The OAuth model knows how to configure Passport middl... |
var group__cobalt__api =
[
[ "Clocks and timers", "group__cobalt__api__time.html", "group__cobalt__api__time" ],
[ "Condition variables", "group__cobalt__api__cond.html", "group__cobalt__api__cond" ],
[ "Message queues", "group__cobalt__api__mq.html", "group__cobalt__api__mq" ],
[ "Mutual exclusion", "g... |
/**
* Created by henrysavi on 31/05/17.
*/
import React from "react"
import {Download} from "../../Icons"
import { prettyPrint } from "../../../Utilities"
import EditableValue from "./EditableValue"
const css = require("./FileRow.scss")
export default class FileRow extends React.Component {
constructor(props) {
... |
"use strict";
// SRC: http://stackoverflow.com/questions/17415579/how-to-iso-8601-format-a-date-with-timezone-offset-in-javascript
function pad(num) {
var norm = Math.abs(Math.floor(num));
return (norm < 10 ? '0' : '') + norm;
}
var CuantoDate = function(dateObj) {
// Cuanto expect Datetime in localised ISO 860... |
/**
* Poll related API definition
*/
var mongoose = require('mongoose');
// Setup Database config for mongoose
var configDB = require('../config/userDb.js');
var db = mongoose.createConnection(configDB.dbUrl, configDB.options); // connect to
// polls app DB
var DestinationsSchema = require('../models/destinations... |
/**
* Data mock for testing
*/
const languages = {
cs: ['./app/**/*CS.json'],
en: ['./app/**/*EN.json'],
de: ['./app/**/*DE.json']
};
module.exports = {
languages
};
|
const DrawCard = require('../../../drawcard.js');
class BloodMagicRitual extends DrawCard {
setupCardAbilities(ability) {
this.interrupt({
canCancel: true,
when: {
onCharactersKilled: event => event.allowSave
},
location: 'hand',
t... |
cordova.commandProxy.add("SSLCertificateChecker", {
checkInCertChain: function(successCallback, errorCallback, params) {
if (typeof errorCallback != "function") {
console.log("SSLCertificateChecker.find failure: errorCallback parameter must be a function");
return
}
// note that this is entir... |
(function(root) {
'use strict';
root.app = root.app || {};
root.app.View = root.app.View || {};
root.app.Model = root.app.Model || {};
// View for display results
root.app.View.ContentView = Backbone.View.extend({
el: '#contentView',
model: new (Backbone.Model.extend({
defaults: {
... |
import Ember from 'ember';
export default Ember.Object.extend({
url: '',
ariaLabel: '',
icon: '',
altText: '',
username: ''
});
|
import React from 'react'
import DefaultLayout from '../../components/base/DefaultLayout'
import withBootstrap from '../../lib/hocs/withBootstrap'
import EditIssueFormContainer from '../../components/issues/edit/EditIssueFormContainer'
class EditIssuePage extends React.PureComponent {
render () {
const {
i... |
import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'next/router';
import { ArrowBack } from 'styled-icons/material/ArrowBack.cjs';
import { Router } from '../server/pages';
import InputField from './InputField';
import EditTiers from './EditTiers';
import EditGoals from './EditGo... |
'use strict';
var mean = require('meanio');
var config = require('../config/config');
exports.render = function(req, res) {
var modules = [];
// Preparing angular modules list with dependencies
for (var name in mean.modules) {
modules.push({
name: name,
module: 'mean.' + ... |
"use strict";
// xml2js is optional because only needed for geonames support
var xml2js = require("xml2js");
var request = require("request");
var _ = require('underscore');
exports.geocode = function (providerOpts, loc, cbk, opts) {
var options = _.extend({ q: loc, maxRows: 10, username: providerOpts.username || ... |
//var _ = require("lodash");
var test = require("tape");
var http = require("http");
var cocb = require("co-callback");
var event_module = require("./event");
test("module - event:attr(name)", function(t){
cocb.run(function*(){
var kevent = event_module();
t.equals(
yield kevent.def.at... |
module.exports = function() {
function foobar(x) {
if(arguments.length < 1) {
throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)");
}
if(x === void 0 || x === null) {
throw new TypeError("'x' is not nullable");
}
if(x === true) {
return 0;
}
else {
return 1;
}... |
storage.getAll = function(){
// summary:
// Retrieves all stored key/value
// pairs currently present in
// storage.
// description:
// `getAll` will collect everything
// that is stored and return an
// array of objects. If the storage
// is empty, it will return an empty
// array.
// feature:
// ... |
var app = require('koa')()
, koa = require('koa-router')()
, logger = require('koa-logger')
, json = require('koa-json')
, views = require('koa-views')
, onerror = require('koa-onerror')
, sass = require('koa-sass')
, koaStatic = require('koa-static')
, session = require('koa-session')
, csrf = requir... |
jest.autoMockOff();
const thePlugin = require('../../../utils/test-transform')(require('../scalar-replacement'));
const theUnsafePlugin = require('../../../utils/test-transform')([[require('../scalar-replacement'), { unsafe: true }]]);
const thePluginVerifies = require('../../../utils/test-transform').withVerifier(req... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.