code stringlengths 2 1.05M |
|---|
/**
* @depends {nrs.js}
*/
var NRS = (function(NRS, $, undefined) {
var _password;
NRS.multiQueue = null;
NRS.setServerPassword = function(password) {
_password = password;
}
NRS.sendOutsideRequest = function(url, data, callback, async) {
if ($.isFunction(data)) {
async = callback;
callback = data;
... |
import config from '../config';
import changed from 'gulp-changed';
import gulp from 'gulp';
import gulpif from 'gulp-if';
import imagemin from 'gulp-imagemin';
import browserSync from 'browser-sync';
function images(src, dest) {
return gulp.src(config.sourceDir + src)
.pipe(changed... |
'use strict';
var Promise = require('bluebird');
var IDLE = 0;
var ACTIVE = 1;
var STOPPING = 2;
function deferred () {
var _resolve;
var _reject;
var promise = new Promise(function (resolve, reject) {
_resolve = resolve;
_reject = reject;
});
return {
promise: promise,
resolve: _resolve,
... |
var Lang = {};
Lang.category = {
"name": "ko"
};
Lang.type = "ko";
Lang.en = "English";
Lang.Command = {
"101": "๋ธ๋ก ์ฐ๋ ๋ ์ถ๊ฐํ๊ธฐ",
"102": "๋ธ๋ก ์ฐ๋ ๋ ์ญ์ ํ๊ธฐ",
"103": "๋ธ๋ก ์ญ์ ํ๊ธฐ",
"104": "๋ธ๋ก ๋ณต๊ตฌํ๊ธฐ",
"105": "๋ธ๋ก ๋ผ์๋ฃ๊ธฐ",
"106": "๋ธ๋ก ๋ถ๋ฆฌํ๊ธฐ",
"107": "๋ธ๋ก ์ด๋ํ๊ธฐ",
"108": "๋ธ๋ก ๋ณต์ ํ๊ธฐ",
"109": "๋ธ๋ก ๋ณต์ ์ทจ์ํ๊ธฐ",
... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules o... |
module.exports = function(app) {
app.controller('FamilyTreeController', ['$scope', 'leafletData', '$http',
function($scope, leafletData, $http) {
var mapQuestKey = 'qszwthBye44A571jhqvCn4AWhTsEILRT';
// required for cypher parser
require('../../plugins/sigma.parsers.json.js');
//for loa... |
"use strict";
module.exports = function(grunt) {
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
// Define Directory
dirs: {
js: "src/js",
coffee: "src/coffee",
build: "dist"
},
// Metadata
... |
import typescript from 'rollup-plugin-typescript'
import bundleWorker from 'rollup-plugin-bundle-worker'
export default {
input: 'src/index.ts',
output: {
file: 'docs/nonogram.js',
format: 'iife',
},
name: 'nonogram',
plugins: [
typescript({ typescript: require('typescript') }),
bundleWorker(... |
var path = require('path')
ScrewTurnPageFile.LATEST = -1
ScrewTurnPageFile.compare = compare
ScrewTurnPageFile.prototype.isLatest = isLatest
ScrewTurnPageFile.prototype.compareTo = compareTo
function ScrewTurnPageFile(filename) {
var revision = getRevision(filename)
, title = getTitle(filename)
this.__... |
'use strict';
var gulp = require( 'gulp' );
var fontmin = require( 'gulp-fontmin' );
var path = require( '../../paths.js' );
gulp.task( 'fonts', function( )
{
return gulp.src( path.to.fonts.source )
.pipe( fontmin( )
.pipe( gulp.dest( path.to.fonts.destination ) ) );
} );
|
var http = require('http'),
fs = require('fs');
var people = {};
//var port = process.env.OPENSHIFT_NODEJS_PORT || "1337";
var port = "1337";
//var serverUrl = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
var serverUrl = "127.0.0.1";
var app = http.createServer(function (request, response)
{
//console.log(... |
// Here is where you can define configuration overrides based on the execution environment.
// Supply a key to the default export matching the NODE_ENV that you wish to target, and
// the base configuration will apply your overrides before exporting itself.
export default {
// =========================================... |
/* globals Mustache */
var NAILS_Admin_CMS_Menus_Create_Edit;
NAILS_Admin_CMS_Menus_Create_Edit = function(items) {
/**
* Avoid scope issues in callbacks and anonymous functions by referring to `this` as `base`
* @type {Object}
*/
var base = this;
// -----------------------------------------... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Animated, StyleSheet } from 'react-native';
import { H6 } from '@ui/typography';
import styled from '@ui/styled';
export const LabelText = styled(({ theme }) => ({
color: theme.colors.text.secondary,
backgroundColor: 'transp... |
//= require wow
//= require formvalidation.min
//= require formvalidation/framework/bootstrap.min
//= require formvalidation/language/pt_BR
//= require_self
//= require_tree ./autoload
|
// Load in dependencies
var exec = require('./utils').exec;
// Helper function to collect information about a window
function windowInfo(id) {
// Get active window and window info
// http://unix.stackexchange.com/questions/61037/how-to-resize-application-windows-in-an-arbitrary-direction-not-vertical-and-no
var ... |
(function() {
var devices = {};
$.subscribe('ninja.data', function(topic, d) {
console.log("Got some data", d);
if (!devices[d.G]) {
$.publish('mappu.zone', d.G);
devices[d.G] = true;
}
var age = new Date().getTime() - d.DA.timestamp;
$.publish('mappu.alarm.'+d.G, d.DA.Alarm... |
import Octicon from '../components/Octicon.vue'
Octicon.register({"file-zip":{"width":12,"height":16,"d":"M8.5 1H1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4.5L8.5 1zM11 14H1V2h3v1h1V2h3l3 3v9zM5 4V3h1v1H5zM4 4h1v1H4V4zm1 2V5h1v1H5zM4 6h1v1H4V6zm1 2V7h1v1H5zM4 9.28A2 2 0 0 0 3 11v1h4v-1a2 2 0 0 0-2-2V8H4v1.28zM... |
version https://git-lfs.github.com/spec/v1
oid sha256:57f07eb24fc71a0deb80c59e16d9ba40da0e8cb6fe6b9156fd85cc14f56c8f8a
size 2663
|
import configureUrlQuery from '../configureUrlQuery';
import urlQueryConfig from '../urlQueryConfig';
it('updates the singleton query object', () => {
configureUrlQuery({ test: 99 });
expect(urlQueryConfig.test).toBe(99);
configureUrlQuery({ history: 123 });
expect(urlQueryConfig.history).toBe(123);
expect(... |
'use strict';
angular
.module('personalWebsiteApp', [
'ngResource',
'ngRoute',
'ngAnimate',
'animatedBirdsDirective',
'scrollAnimDirective',
'swfTemplateDirective'
])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/m... |
define(['mousetrap'], function(Mousetrap){
'use strict';
var utils = require('util'),
instances = []
;
function IframeMousetrap(a){
var self = new Mousetrap(a);
/*self._instanceId = instances.push(this);
self._originalHandleKey = this._handleKey;
self._handleKey = IframeMousetrap.protot... |
'use strict';
const EmberApp = require('./ember-app');
/**
* FastBoot renders your Ember.js applications in Node.js. Start by
* instantiating this class with the path to your compiled Ember app:
*
*
* #### Sandboxing
*
* For security and correctness reasons, Ember applications running in FastBoot
* are run in... |
//# sourceURL=add.js
$(function () {
$("#frm").jValidate({
rules:{
name:{
required:true,
minlength:2,
maxlength:32,
stringCheck:true
},
code:{
required:true,
minlength:2,
... |
/* ========================================================================
* ZUI: browser.js
* http://zui.sexy
* ========================================================================
* Copyright (c) 2014 cnezsoft.com; Licensed MIT
* ======================================================================== */
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.flushCacheConfiguration = exports.getCacheConfiguration = exports.loadCacheConfigurations = exports.setCacheConfiguration = undefined;
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopReq... |
//@ sourceMappingURL=connect.test.map
// Generated by CoffeeScript 1.6.1
(function() {
var assert, async, wongo,
__hasProp = {}.hasOwnProperty;
assert = require('assert');
async = require('async');
wongo = require('../lib/wongo');
describe('Wongo.connect()', function() {
it('should connect to the ... |
/*global module, process */
module.exports = process.env.AWS_REGION || 'us-east-1';
|
/**
* Open the Eyes Instance
*/
import {getBrowserFor} from './utils'
module.exports = (
person, page, done
) => {
console.log("(openEyes) Opening the Eyes for: " + person)
getBrowserFor(person).EyesOpen(page);
global.eyesIsOpen = true
done()
};
|
jQuery.fn.showMeMore = function (options) {
var options = $.extend({
current: 4, // number to be displayed at start
count: 4, // how many show in one click
fadeSpeed: 300, // animation speed
showButton: '', // show button (false / string)
hideButton: '', // hide button
... |
import _ from 'lodash';
import 'ui/paginated_table';
import popularityHtml from 'plugins/kibana/management/sections/indices/_field_popularity.html';
import controlsHtml from 'plugins/kibana/management/sections/indices/_field_controls.html';
import dateScripts from 'plugins/kibana/management/sections/indices/_date_scrip... |
import {
connecting,
connected,
reconnecting,
connectionFailed
} from './actions';
export default uri => store => {
let ws;
let hasEverConnected = false;
const RECONNECT_TIMEOUT_MS = 2000;
const ACTION = 'ACTION';
const connect = () => {
ws = new WebSocket(uri);
... |
import {FkJsListener} from './antlr/FkJsListener';
import {FkJsParser} from './antlr/FkJsParser';
/**
* Obtains a list of modes and mixins from a .fk
* file, as well as other information.
*/
export default class PreProcessor extends FkJsListener {
/**
* @type {string}
*/
defaultMode;
/**
... |
/**
* Created by Deathnerd on 1/23/2015.
*/
var gulp = require('gulp');
var usemin = require('gulp-usemin');
var uglify = require('gulp-uglify');
var shell = require('gulp-shell');
var replace = require('gulp-replace');
gulp.task('usemin', function(){
gulp.src(['./src/template.html'])
.pipe(usemin({
... |
export const bell = {"viewBox":"0 0 64 64","children":[{"name":"g","attribs":{"id":"BELL_1_","enable-background":"new "},"children":[{"name":"g","attribs":{"id":"BELL"},"children":[{"name":"g","attribs":{"id":"BELL"},"children":[{"name":"g","attribs":{},"children":[{"name":"g","attribs":{},"children":[{"name":"path"... |
//~ name b258
alert(b258);
//~ component b259.js
|
var WO = WO || {};
WO.Track = Backbone.Model.extend({
urlRoot: '/api/tracks',
idAttribute: '_id',
defaults: {
notes: "",
title: 'Acoustic Piano',
isMuted: false,
solo: false,
octave: 4,
volume: 0.75,
instrument: "",
type: 'MIDI'
},
initialize : function(){
this.set('not... |
describe('GiftCard Purchase Workflow', function () {
'use strict';
function waitForUrlToChangeTo (urlRegex) {
var currentUrl;
return browser.getCurrentUrl().then(function storeCurrentUrl (url) {
currentUrl = url;
}
).then(function waitForUrlToChangeTo () {
return browser.wait(function... |
var structaaa_1_1sqrt__type =
[
[ "type", "structaaa_1_1sqrt__type.html#a5843af2f9db00396bf14cf79cabecac0", null ]
]; |
import React from 'react';
import Wrapper, {
Header,
Content,
Footer,
Sidebar,
SidebarItem,
MainContent,
MainItem,
} from '../components/common/layouts/Container/Container';
import Menu from '../components/Menu/Menu';
import Filter from '../components/Filter/Filter';
const Main = () =>
<Wrapper>
<... |
var path = require("path");
module.exports = {
watch: false,
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
],
postLoaders: [{ //
test: /\.js$/,
exc... |
recipes['Fiery Ginger Ale (2L)'] = {
type: 'Fiery Ginger Ale (2L)',
volume: '2L',
brewTime: [
'2 days',
],
ingredients: [
'1.5 oz. finely grated fresh ginger (the younger the better; microplane suggested)',
'6 oz. table sugar',
'7.5 cups filtered water',
'1/8 ... |
const murmur = require('murmurhash-native/stream')
function createHash () {
// algorithm, seed and endianness - do affect the results!
return murmur.createHash('murmurHash128x86', {
seed: 0,
endianness: 'LE'
})
}
module.exports = createHash
|
var React = require('react');
var Animation = require('react-addons-css-transition-group');
var NBButton = require('./NBItems').NBButton;
var NBTitle = require('./NBItems').NBTitle;
var NBEmpty = require('./NBItems').NBEmpty;
var Navbar = React.createClass({
render: function() {
return (
<div c... |
module.exports = {
up: (queryInterface, Sequelize) =>
queryInterface.createTable('Groups', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
name: {
type: Sequelize.STRING,
allowNull: false,
},
... |
var fs = require('fs');
var url = require('url');
var mime = require('mime');
var path = require('path');
exports.css = function(s) {
var pathname = url.parse(s.request.url).pathname;
var path = 'g' + pathname + '.css';
var locale = s.strings('locale.json');
var errors = s.strings('errors.json');
var conte... |
import React, { Component } from 'react';
import { SelectField, MenuItem } from 'fusionui-shared-components-react';
import PropTypes from 'prop-types';
import '../../FormField.scss';
import './FormSelectField.scss';
const style = {
width: '100%',
height: 30,
border: 'none',
backgroundColor: 'rgb(239, 239, 239)... |
// this will build and serve the examples
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
app: './examples/js/app.js',
vendors: ['webpack-dev-server/client?http://localhost:3004', 'webpack/hot/only-dev-server']
},
debug: true,
devtool: '#eval-source-map',
ou... |
'use strict';
var mongoose = require('mongoose'),
async = require('async');
var DeleteChildrenPlugin = function(schema, options) {
schema.pre('remove', function(done) {
var parentField = options.parentField;
var childModel = options.childModel;
if (!parentField) {
var err = new Error('parentField not def... |
import CoreClient from './CoreClient';
export default CoreClient;
|
import merge from 'webpack-merge'
import { isString } from '../../utils'
export default (config, settings) => {
if (isString(settings)) {
return merge.smart(config, { entry: [settings] })
}
if (Array.isArray(settings)) {
return merge.smart(config, { entry: settings })
}
throw new Error('Unexpected ... |
// I am well aware this could be so very much tidier,
// we are going fo basic functionality first.
// will tidy up later.
var boilerplate = function() {
this.popup = function(html) {
$('#popup').html(html);
// add X
var close = '<img id="close" src="libs/icons/close.png"></img>';
$('#popup').append... |
import React from 'react';
import { render as mount } from 'enzyme';
import { Provider as ContextProvider } from '../common/context';
import Message from './Message';
describe('Message', () => {
function render(message, context) {
// need the spans otherwise the document has 0 html elements in it.
return mo... |
/**
* @param {number[]} nums
* @return {void} Do not return anything, modify nums in-place instead.
*/
var sortColors = function(nums) {
nums.sort();
};
|
define(function (require) {
'use strict';
/**
* Module dependencies
*/
var defineComponent = require('flight/lib/component');
var tweetItems = require('component/tweet_items');
var templates = require('templates');
var _ = require('underscore');
/**
* Module exports
*/
return defineComp... |
({
block : 'page',
title : 'bem-components: spin',
mods : { theme : 'islands' },
head : [
{ elem : 'css', url : 'gemini.css' }
],
content : [
{ tag : 'h2', content : 'islands' },
['xs', 's', 'm', 'l', 'xl'].map(function(size){
return {
tag : 'p... |
'use strict';
/* App Module */
var phonecatApp = angular.module('phonecatApp', [
'ngRoute',
'phonecatAnimations',
'phonecatControllers',
'phonecatFilters',
'phonecatServices',
]);
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/phones', {
tem... |
define('jqueryui/tabs', ['jquery','jqueryui/core','jqueryui/widget'], function (jQuery) {
/*
* jQuery UI Tabs 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Tabs
*
* Depends:
... |
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
normalize: function(type, hash) {
delete hash['author_email'];
delete hash['author_name'];
delete hash['branch'];
delete hash['committed_at'];
delete hash['committer_email'];
delete hash['committe... |
const { decode, parse } = require('./response')
describe('Protocol > Requests > ListOffsets > v1', () => {
test('response', async () => {
const data = await decode(Buffer.from(require('../fixtures/v1_response.json')))
expect(data).toEqual({
responses: [
{
topic: 'test-topic-16e956902e... |
import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
define([],
function() {
'use strict';
/**
* Prints a debugging console message for a shortcut
*
* @param {Shortcut} shortcut - shortcut object
*/
var printDebugConsoleMessage = function(shortcut) {
console.log('Shortcut "' + shortcut.name + '" triggered with key "' + shortcut.ke... |
var game = new Phaser.Game(450, 350, Phaser.CANVAS, '', { preload: preload, create: create, update: update });
function preload(){
game.stage.backgroundColor='#000066';
game.load.image('correct','assets/correct.png');
game.load.image('incorrect','assets/incorrect.png');
game.load.spritesheet('greenbutt... |
module.exports = function(app) {
var _env = app.get('env');
var _log = app.lib.logger;
var _mongoose = app.core.mongo.mongoose;
var _group = 'MODEL:oauth.authcodes';
var Schema = {
authCode : {type: String, required: true, unique: true, alias: 'authCode'},
clientId : {... |
/*
The MIT License (MIT)
Copyright (c) 2017 Adrian Paul Nutiu <nutiuadrianpaul@gmail.com>
http://adrianpaulnutiu.me/
*/
// ==UserScript==
// @name kartwars.io Bot
// @namespace https://github.com/kmataru/kartwars.io-bot/raw/pre-release/src/DracoolaArt.Bot.Kartwars/
// @version 0.7.475
// @description ... |
import Page from '../Page';
import './news.scss';
import RoomList from "../parts/RoomList";
export default class NewsPage extends Page {
indexAction() {
this.headerTitle = "ๆฐ็ใปใใใใ";
var $switchPanel = $(`
<div class="switch-panel">
<div class="switch-btn selected new">
<span class="t... |
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O... |
/* WebGL Renderer*/
var WebGLRenderer,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor... |
"use strict";
const test = require("tape");
const aceyDeuceyGameEngine = require("../");
const getInitialGameState = aceyDeuceyGameEngine.getInitialGameState;
test("getInitialGameState", t => {
t.plan(1);
const gameState = {
board: [
{isPlayerOne: null, numPieces: 0},
{isPlayer... |
'use strict';
(function(module) {
const splashView = {};
splashView.defaultView = function(){
$('#about').hide();
$('#map').css('z-index', -500);
$('form').fadeIn();
$('#splash-page').fadeIn();
}
module.splashView = splashView;
})(window);
$(function(){
$('#home').on('click', function(){
... |
import Vue from 'vue'
import Router from 'vue-router'
import Resource from'vue-resource'
import { sync } from 'vuex-router-sync'
Vue.use(Router)
Vue.use(Resource)
// components
import App from './components/App.vue'
import Login from './components/Login/Login.vue'
import Dashboard from './components/Dashboard/Dashboa... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2015 */
/* - www.movable-type.co.uk/scripts/latlong.html MIT Licence */
/* - - - - - - - ... |
/* @flow */
/* eslint-disable */
import * as React from 'react';
jest.autoMockOff();
jest.clearAllMocks();
jest.resetAllMocks();
// $FlowExpectedError[prop-missing] property `atoMockOff` not found in object type
jest.atoMockOff();
const mockFn = jest.fn();
mockFn.mock.calls.map(String).map((a) => a + a);
type Foo =... |
/**
* Dependencies
* @type {exports}
*/
var fs = require('fs')
, q = require('q')
, _ = require('underscore')
, path = require('path')
, natural = require('natural')
, nounInflector = new natural.NounInflector()
, argv = require('optimist').argv
, path = require('path')
, generator = require('./model... |
'use strict'
const path = require('path')
const Generator = require('yeoman-generator')
const chalk = require('chalk')
const _ = require('lodash')
_.templateSettings.interpolate = /<%=([\s\S]+?)%>/g
module.exports = Generator.extend({
initializing: function () {
this.props = {}
},
paths: function () {
t... |
'use strict'
/* libraries */
var Sequelize = require('sequelize')
/* own code */
var Attribute = require('./attribute')
/**
* Parse DEM entity and create Sequelize definition for the table itself.
* @constructor
*/
function Entity() {
this._parserAttr = new Attribute()
}
/**
* Input JSON (DEM entity):
{
"i... |
/**
* Copyright 2016-present Tuan Le.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.html
*
* Unless required by applicable law or agreed to in writing, software
* d... |
const pageIcon = require('./../lib/index');
const helpers = require('./helpers');
const fs = require('fs');
const chai = require('chai');
const path = require('path');
const url = require('url');
const expect = chai.expect;
const {isIconValid, saveToFile} = helpers;
const SITE_URLS = [
'https://www.facebook.com/'... |
//
// This is only a SKELETON file for the 'Rectangles' exercise. It's been provided as a
// convenience to get you started writing code faster.
//
export function count() {
throw new Error('Remove this statement and implement this function');
}
|
var async = require('async'),
awsSDK = require('aws-sdk'),
uuid = require('node-uuid');
function client() {
return new awsSDK.DynamoDB().client;
}
function putItem(done) {
var item = {
TableName: "test.performance.ssl",
Item: {
id: {
S: uuid.v1()
}
}
};
client().putItem(it... |
'use strict';
var _ = require("lodash-node")
,parserlib = require("parserlib") // for linting CSS
,fse = require("fs-extra")
,cwd = process.cwd()
describe("test 4 - check css is valid", function() {
var originalTimeout;
beforeEach(function() {
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
jasmine.... |
'use strict';
import angular from 'angular';
import NavbarTpl from './navbar.html';
import NavbarService from './navbar-service';
import NavbarCtrl from './navbar-ctrl';
function navbar(NavbarService) {
return {
restrict: 'E',
scope: {
name: '@',
version: '@',
linkTo: '@'
},
templat... |
'use strict'
require('should')
const DummyTransport = require('chix-transport/dummy')
const ProcessManager = require('chix-flow/src/process/manager')
const RuntimeHandler = require('../lib/handler/runtime')
const pkg = require('../package')
const schemas = require('../schemas')
// TODO: this just loads the definitio... |
/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05
* http://photoswipe.com
* Copyright (c) 2017 Dmitry Semenov; */
/**
*
* UI on top of main sliding area (caption, arrows, close button, etc.).
* Built just using public methods/properties of PhotoSwipe.
*
*/
(function (root, factory) {
if (typeof define === 'function' &&... |
/**
* Clase que permite trabajar con la plantilla del profesor.
*
* @param {String} id ID de la etiqueta HTML asociada.
* @param {Boolean revisor ยฟSรณlo se buscarรกn revisores?
* @returns {Profesor}
*/
function Profesor(id, revisor)
{
/**
* Establece la etiqueta HTML asociada a esta plantil... |
import React from 'react'
function LoadingIndicator () {
return (
<div>
Loading
<div className='sk-fading-circle'>
<div className='sk-circle1 sk-circle'></div>
<div className='sk-circle2 sk-circle'></div>
<div className='sk-circle3 sk-circle'></div>
<div className='sk-... |
const c = require('ansi-colors')
const glob = require('glob')
const path = require('path')
const terserVersion = require('terser/package.json').version
const TerserWebpackPlugin = require('terser-webpack-plugin')
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAn... |
LearnosityAmd.define([
'jquery-v1.10.2',
'underscore-v1.5.2',
'vendor/mathcore'
], function ($, _, mathcore) {
'use strict';
var padding = 10,
defaults = {
"is_math": true,
"response_id": "custom-mathcore-response-<?php echo $session_id; ?>",
"type": "cus... |
/* eslint-disable no-cond-assign, no-param-reassign */
import voidElements from "void-elements";
function isVoidElement(tag) {
const tagName = tag.match(/<([^\s>]+)/);
return Boolean(tagName) && voidElements[tagName[1].toLowerCase()] === true;
}
export default {
strip(str) {
return str.replace(/(<([^>]+)>)/... |
var superagent = require('superagent')
var env = process.env
/**
* put_doc
* initialize with the couchdb to save to
*
* expects that the url, port, username, password are in environment
* variables. If not, add these to the options object.
*
* var cuser = env.COUCHDB_USER ;
* var cpass = env.COUCHDB_PASS ;
... |
(function() {
// Creating application
var app = {};
var parseData = function(data) {
var result = {};
// TODO: Get better performance here
var years = _.groupBy(data, 'year');
for (var key in years) {
result[key] = _.groupBy(years[key], 'cartodb_id');
}
return result;
};
var M... |
/**
* #config
*
* Copyright (c)2011, by Branko Vukelic
*
* Configuration methods and settings for Postfinance. All startup configuration
* settings are set using the `config.configure()` and `config.option()`
* methods. Most options can only be set once, and subsequent attempts to set
* them will result in an ... |
var EffectsList = [
['ๅคๅคๆๆ', 'sketch', 'dorsy', '2013-10-12'],
['้ป่ฒ่ฐๆๆ', 'yellowStyle', 'dorsy', '2013-10-12'],
['็ผฉๅฐ', 'mini', 'dorsy', '2013-10-12']
];
var EffectTmp = ' <li data-ename="{name}">\
<img src="style/image/effect/{name}.png" />\
<h3>{cnname}</h3>\
<div class="itemInfo">\
... |
//= require ../bower_components/jquery/dist/jquery.js
'use strict';
var APP = {};
$(function() {
console.log('Hello from your jQuery application!');
}); |
const userDao = require('../dao/user'),
tokenDao = require('../dao/token'),
appDao = require('../dao/app'),
tokenRedisDao = require('../dao/redis/token'),
userRedisDao = require('../dao/redis/user'),
passport = require('../service/passport'),
STATUS = require('../common/const').STATUS,
ERROR... |
๏ปฟ// ga.addEventBehavior(ga.gameEvents.MouseDown, undefined, undefined, undefined, function (e) {
// var spriteClick = ga.CheckEventPosition(e.offsetX, e.offsetY);
// if (spriteClick != undefined) {
// if (this.lastClick != undefined) {
// ... |
/**
* modal api
*/
export default {
methods: {
/**
* ็นๅป Full ็ๅฏผ่ชๆ้ฎ
*/
clickFullNav() {
if (this.commit) {
this.no()
} else {
this.hide()
}
},
/**
* ๆพ็คบpop
*
* @param {Number} - ๅฝๅ้กต็
* @return {Object}
*/
show() {
this.mo... |
(function() {
'use strict';
/**
* @ngdoc function
* @name app.service:badgesService
* @description
* # badgesService
* Service of the app
*/
angular
.module('badges')
.factory('BadgesService', Badges);
// Inject your dependencies as .$inject = ['$http', 'someSevide'];
// function Name ($http,... |
import React from 'react';
import renderer from 'react-test-renderer';
import { data, renderers, expectors } from '../../test-utils';
import ImmutableVirtualizedList from '../ImmutableVirtualizedList';
describe('ImmutableVirtualizedList', () => {
it('renders with empty data', () => {
expectors.expectVirtualize... |
describe("Quiz API Tests", function() {
var api;
var mock;
beforeAll(function(done) {
api = Playbasis.quizApi;
mock = window.mock;
window.acquireBuiltPlaybasis();
done();
});
describe("List Active Quizzes test", function() {
beforeAll(function(done) {
done();
});
it("should return success", fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.