code stringlengths 2 1.05M |
|---|
import _ from 'lodash'
const DO_NOT_LOG = [
'EFFECT_TRIGGERED', 'EFFECT_RESOLVED', 'EFFECT_REJECTED'
]
export default store => next => action => {
const state = store.getState()
if( (! _.includes( DO_NOT_LOG, action.type ) ) ) {
console.info( 'Dispatching: ', action )
}
let result = next( action )
... |
'use strict';
var Batch = require("./batch.js");
var Tile = require("./tile.js");
var Rectangle = require("../math/rectangle.js");
/**
* Map constructor
* @param {Game} game reference to game object
* @param {Number} x the x position of the map (default 0)
* @param {Number} y the y position of the map (default 0)... |
//# sourceURL=addWarehouse.js
$(function () {
$('.layui-layer-btn0').addClass('btn-primary');
$('.layui-layer-btn1').addClass('btn-default').css('color','#FFFFFF');
$("#warehoseFrm").jValidate({
rules:{
warehouseName:{
required:true,
minlength:1,
... |
/**
*
* Loading Indicator
*
*/
import React from 'react';
import './style.scss'
function LoadingIndicator({post}) {
return (
<div className="LoadingIndicator">
<div className="bounce1"></div>
<div className="bounce2"></div>
<div className="bounce3"></div>
</div>
)
}
LoadingInd... |
'use strict';
var fs = require('fs');
module.exports = function (app) {
// load all the other controllers in this directory
fs.readdirSync(__dirname).
filter(function (file) {
return file !== "index.js" && (/.js$/).test(file);
}).
forEach(function (file) {
var name = file.substr(0, file.in... |
import fs from 'fs';
import RBAC from 'rbac';
import extend from 'node.extend';
import defaultOptions from './options';
import Router from './router';
import App from './app';
import Secure from './secure';
import Models from './models';
import debug from 'debug';
import domain from 'domain';
import { EventEmitter } fr... |
;(function() {
"use strict";
angular.module('RDash')
.service('commpropHTTP', ['$http', 'authService', function($http, authService) {
this.add = function add(client) {
return $http.post("/api/commprop", client);
};
this.read = function read(criteria) {
var criteria_ = criteri... |
/**
* Created by Nobay on 28/06/2017.
*/
var compareTo = function() {
return {
require: "ngModel",
scope: {
otherModelValue: "=compareTo"
},
link: function(scope, element, attributes, ngModel) {
ngModel.$validators.compareTo = function(modelValue) {
... |
/**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],(function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0}... |
/* app/views/partials/album.js
* detail view for image galleries in photography and books */
'use strict';
define([
'jquery',
'backbone',
'underscore',
'tpl/jst',
'app/views/showcases/video',
'app/views/showcases/gallery',
'app/views/partials/filterviews',
'utils/spinner',
'slick',... |
/* eslint-disable no-underscore-dangle */
require('colors');
var fs = require('fs');
var Q = require('q');
var path = require('path');
var connect = require('connect');
var finalhandler = require('finalhandler');
var http = require('http');
var serveStatic = require('serve-static');
var tinylr = require('tiny-lr-fork'... |
export const female = {"viewBox":"0 0 512 512","children":[{"name":"path","attribs":{"d":"M288,284c55.2-14.2,96-64.3,96-124c0-70.7-57.3-128-128-128S128,89.3,128,160c0,59.6,40.8,109.7,96,124v68h-64v64h64v64h64\r\n\tv-64h64v-64h-64V284z M256,240c-44.1,0-80-35.9-80-80s35.9-80,80-80s80,35.9,80,80S300.1,240,256,240z"},"chil... |
import { Platform } from 'react-native';
import getPlatformElevationIos from '../getPlatformElevation.ios';
import getPlatformElevationAndroid from '../getPlatformElevation.android';
import { black } from '../colors';
const elevation = 4;
const iOSResult = {
shadowColor: black,
shadowOpacity: 0.3,
shadow... |
const Lang = imports.lang;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const StructureView = imports.StructureView;
const Utils = imports.Utils;
const MatchTreeView = new Lang.Class({
Name: 'MatchTreeView',
Extends: Gtk.ScrolledWindow,
_init: function(args) {
this.parent(args);
this.... |
function checkTriangle(t) {
const a = +t[0], b = +t[1], c = +t[2];
return a + b > c
&& a + c > b
&& b + c > a
}
require('./helpers').getFile(3, input => {
const validTriangles = input.split('\n').filter(line => {
const [match, first, second, third] = line.match(/(\d+)\s+(\d+)\s+(\d+)/);
return checkT... |
/**
* @author chrsmlls333
*/
// Cam
var WIDTH = window.innerWidth;
var HEIGHT = window.innerHeight;
var VIEW_ANGLE = 55;
var ASPECT = WIDTH / HEIGHT;
var NEAR = 1;
var FAR = 5000;
var statswitch = false;
var statcontainer, stats;
var controlswitch = false;
var camera, controls, scene, renderer;
var mesh, texture, g... |
'use strict';
var fs = require('graceful-fs');
var sinon = require('sinon');
var errorfn = false;
function maybeCallAsync(module, func) {
var original = module[func];
return sinon.stub(module, func, function() {
var args = Array.prototype.slice.call(arguments);
args.unshift(module, func);
var err = t... |
(function() {
/* global process:false */
"use strict";
var STORAGE_LOCATION = '/tmp',
DEFAULT_RECORD_NAME = '_-temporary',
LOG_LOCATION = STORAGE_LOCATION + '/x-tmp-macro.log',
TMP_RUN_FILE = '/tmp/x-tmp-macro.run',
EXTENSION = 'x-tmp-macro',
DEFAULT_DELAY_TIME = 12;
var current_modifiers = [];
var map_to_x... |
var app = angular.module('c3ExportTest', [
'ngC3Export'
]);
app.run(function () {
console.log("ngC3Export module test initiated");
});
app.controller("SimplePieChartController", function () {
var chart = c3.generate({
bindto: "#simple-pie-chart",
data: {
type: 'pie',
columns: [
['sa... |
'use strict';
var jos = require('../');
var helpers = require('./helpers');
describe('parsing', function() {
it('should abort if the root level item is neither an array or an object', function(done) {
var json = 'hello world';
var stream = helpers.chunkedStream(json);
stream.pipe(jos.parse()).on('erro... |
require('colors')
const numeral = require('numeral')
const fs = require('fs')
const path = require('path')
const Table = require('cli-table')
console.log()
// const head = ['Project', '.swift', '.h .m', 'Swift LOC', 'Obj-C LOC']
const head = ['Project', '.swift', '.m', '.swift LOC', '.m LOC']
const table = new Table({... |
var ModelDatabase = require('./ModelDatabase.js');
class BaseModel {
static get(id) {
var modelDatabase = new ModelDatabase();
return modelDatabase.get(this._collection(), id, this);
}
static update(id, data) {
var modelDatabase = new ModelDatabase();
return modelDatabase.update(this._collection(), id, d... |
import React from 'react'
import { FormatMessage } from 'react-easy-intl'
export default ({title, children, size}) => {
const customSize = size ? `is-${size}` : null
return (
<section className={`hero is-primary ${customSize} is-bold`}>
<div className='hero-body'>
<div className='container'>
... |
Meteor.publish('allRecipes', function (limit, search) {
var myRegExp = new RegExp(".*", "i");
if (search && search !== '')
myRegExp = new RegExp(".*" + search + ".*", "i");
return Recipe.find({
$and: [{
$or: [
{private: false},
{owner: this.user... |
"use strict";
var _chai = require("chai");
var _observer = require("../../dst/observer.js");
var _observer2 = _interopRequireDefault(_observer);
var _reactiveVar = require("reactive-var");
var _reactiveVar2 = _interopRequireDefault(_reactiveVar);
function _interopRequireDefault(obj) { return obj && obj.__esModule... |
/// <reference path="../_definitions.d.ts" />
define(["require", "exports"], function (require, exports) {
exports.mimeTypes = {
"*": "application/octet-stream",
323: "text/h323",
acx: "application/internet-property-stream",
ai: "application/postscript",
aif: "audio/x-aiff",
... |
version https://git-lfs.github.com/spec/v1
oid sha256:5202b17d6702a599dbd5af63824950982f2b1cadefcb0054a14a0798db26b8db
size 4478
|
define( [ 'libs/math', 'models/entity', 'models/mesh', 'graphics', 'models/scene' ], function( math, Entity, Mesh, graphics, scene ) {
var dian3 = math.dian3;
var MergeGroup = graphics.MergeGroup;
var utils = graphics.utils;
var world = scene.world;
var groupDrawable = graphics.groupDrawable;
var... |
'use strict';
module.exports = {
app: {
title: 'FilmTrackr',
description: 'Tracking films used in film cameras.',
keywords: 'film, analog, kodak, photography, agfa, leica, 35mm'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions',
assets: {
lib... |
Ext.define('Packt.model.staticData.Country', {
extend: 'Packt.model.sakila.Sakila',
idProperty: 'country_id',
fields: [
{ name: 'country_id' },
{ name: 'country', defaultValue: 'New Country*'}
]
}); |
/* rite a script that finds the maximal sequence of equal elements in an array. */
var array = [2, 1, 1, 1, 1, 2, 3, 3, 2, 2, 2, 1],
tmpBestStart = 0,
tmpBestCount = 0,
bestStart = 0,
bestCount = 0,
len = array.length,
i,
result;
for (i = 1; i < len; i += 1) {
if (array[i - 1] === arra... |
/**
* Plugin: "remove_button" (selectize.js)
* Copyright (c) 2013 Brian Reavis & contributors
*
* 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... |
'use strict';
(function ($) {
$.wilson = $.wilson || {};
$.wilson.reporters = $.wilson.reporters || {};
$.wilson.reporters.memory = memory;
var graph = new Rickshaw.Graph({
element: document.getElementById('memory'),
width: 900,
height: 500,
renderer: 'area',
stroke: true,
preserve: tr... |
import {
REQUEST_ANIME_CHARACTERS,
RECIEVE_ANIME_CHARACTERS_DATA,
REQUEST_ANIME_CHARACTERS_FAILED,
} from 'actions/characterCreators';
/**
* App's initial state, Redux will use these values
* to bootstrap our app, before having a generated state.
*
* @type {object}
*
*/
const initialAnimeCharacters = {
i... |
import React, { Component, PropTypes } from 'react'
import {walkState} from 'redux-operations';
import Counter from './Counter';
import {connect} from 'react-redux';
const mapStateToProps = state => {
return {
numberOfCounters: state.numberOfCounters
}
};
@connect(mapStateToProps)
export default class AddDyn... |
var driver = require('selenium-webdriver');
var deferred = driver.promise.defer();
deferred.then(function(data){
console.log("I am the promised action - the data passed to me was: " + data);
});
setTimeout(function() {
deferred.fulfill('engineering report - shields at 50% captain');
}, 4000);
|
/*! jQuery UI - v1.11.2 - 2015-01-18
* http://jqueryui.com
* This file has been modified to suit the needs of the Form builder / Widgets.
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, ... |
'use strict';
describe('Playlist Services', function () {
beforeEach(module('septWebRadioApp'));
var $cacheFactory, scope, Playlists, swrNotification, $modal, playlistServices, cache;
var $httpBackend, userServices, utilities;
var playlistsMock = [
{name: 'Playlist 1', _id: 1},
{name: 'Playlist 2', _... |
relay_4ch = (function() {
var dim = {
x: 76,
y: 56,
z: 15,
folga: 0.3,
parede: 1.2,
altura_pcb: 7,
screw_r: 1.6,
gap_screw_shell: 3.4, // distância da parede ao centro do screw
z_displacement: 0
}
function shell() {
var shell = cube({
size: [
dim.x + (dim.pa... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Acta = mongoose.model('Acta'),
config = require('meanio').loadConfig(),
_ = require('lodash');
module.exports = function(Actas) {
return {
/**
* Find acta by id
*/
acta: function(req, r... |
class UserTableController{
constructor(NgTableParams,$state){
'ngInject';
this.NgTableParams = NgTableParams;
this.$state = $state;
}
$onInit(){
this.data = [{name: "Moroni", age: 50}];
this.selected = [];
this.query = {
order: 'name',
... |
var searchData=
[
['ue4_5fpagebody',['UE4_PageBody',['../class_u_e4___page_body.html',1,'']]],
['ue4_5fpageheader',['UE4_PageHeader',['../class_u_e4___page_header.html',1,'']]],
['ue4_5fui',['UE4_UI',['../class_u_e4___u_i.html',1,'']]],
['ue4_5fuimodal',['UE4_UIModal',['../class_u_e4___u_i_modal.html',1,'']]],
... |
import * as THREE from 'three';
import * as CANNON from 'cannon';
import store from '../redux/store';
import socket, { playerArr } from '../socket';
import { PointerLockControls } from './PointerLockControls';
import Player from './Player';
import Bomb from './Bomb';
import { animateFire, animatePlayers, animateExplosi... |
/* eslint-env qunit */
/* globals os:true */
module('Basics', {
setup: function() {
Optiscroll.globalSettings.checkFrequency = 300;
os = new window.Optiscroll(document.querySelector('#os'));
}, teardown: function() {
os.destroy();
Optiscroll.G.instances.length = 0;
os = null;
},
});
test('I... |
var columnMeta =
[
{
"columnName": "id",
"order": 1,
"locked": false,
"visible": true
},
{
"columnName": "name",
"order": 2,
"locked": false,
"visible": true
},
{
"columnName": "city",
"order": 3,
"locked": false,
"visible": true
},
{
"columnName": "stat... |
/***************************************************************
* JS-TrackBar
*
* Copyright (C) 2008 by Alexander Burtsev - http://webew.ru/
* and abarmot - http://abarmot.habrahabr.ru/
* and 1602 - http://1602.habrahabr.ru/
* desing: Ñâåòëàíà Ñîëîâüåâà - http://my.mail.ru/bk/concur/
*
* This code is... |
/* eslint-env jest */
/* global jasmine */
import { join } from 'path'
import {
renderViaHTTP,
runNextCommand,
nextServer,
startApp,
stopApp
} from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
let app
let appPort
let server
const appDir = join(__dirname, '../')
describe('Legacy Packag... |
'use strict';
angular.module("sselabWebApp").controller("BlogCtrl", function ($scope, $routeParams, $http, $sce) {
// view blog detail
var blogTitle = $routeParams.title;
$scope.isDetail = !!blogTitle;
// filter by tag
var blogTag = $routeParams.tag;
// pagination
var limit = 5;
var currentPage = $ro... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Transition from 'react-motion-ui-pack';
import Dialog from '../Dialog';
import DatetimePicker from '../DatetimePicker';
import A from '../A';
export const Container = styled.div`
position: fixed;
bottom: 0... |
function battery_connect() {
let serviceUuid = "battery_service";
let characteristicUuid = "battery_level"
navigator.bluetooth.requestDevice
({
filters: [{ services: [serviceUuid] }]
, optionalServices: [serviceUuid]
})
.then(device => { return device.gatt.c... |
/* jslint node: true */
"use strict";
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
// app.use(bodyParser.urlencoded({
// extended: true
// }));
// app.use(bodyParser.json());
var http = require('http');
app.get('/', function(req, res) {
http.request({
... |
/*home View-Model*/
var about = (function (window, $, ko, app, undefined) {
'use strict';
/**
* view{} is initialized to be the main object literal of about view.
*
*/
var view = {
observables : {
initial : {
content : {
h1 : {text : 'SPA Prototyping Boilerplate for KnockoutJS / About'},
... |
process.env.NODE_ENV = process.env.NODE_ENV || `production`;
const jsdom = require(`jsdom`);
global.document = jsdom.jsdom();
global.window = document.defaultView;
window.APP_META = { BROWSER: false };
require(`babel-register`);
require(`./prod`);
|
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-highcharts',
setupPreprocessorRegistry: function(type, registry) {
var options = getOptions(this.parent && this.parent.options && this.parent.options['babel']);
var plugin = {
name : 'ember-cli-babel',
ext : 'js',
... |
var SpaceAge = require('./space-age');
describe('Space Age', function() {
it('age in seconds', function() {
var age = new SpaceAge(1000000);
expect(age.seconds).toEqual(1000000);
});
it('age in earth years', function() {
var age = new SpaceAge(1000000000);
expect(age.onEarth()).toEqual... |
// Regular expression that matches all symbols in the `Sharada` script as per Unicode v10.0.0:
/\uD804[\uDD80-\uDDCD\uDDD0-\uDDDF]/; |
// Generated by CoffeeScript 2.0.0
(function() {
/*
CoffeeScript Twitch Subscription Notifier v1.0
Released under the MIT License
*/
var ENDOFMOTD, MAGICNICK, Notifier, PINGREGEX, SUBNOTIFY, info;
MAGICNICK = "justinfan427138773870";
ENDOFMOTD = /^:tmi.twitch.tv 376 /;
PINGREGEX = /^PING :tmi.twitch.... |
/*-------------------------------------------------
SUPER for Router and Endpoint
---------------------------------------------------*/
/**
* adding common functionality
*
* @constructor prototype
* @private
*/
function Super ( extend ) {
// extend prototype wich be created
Object.assign.apply(Object,[... |
import path from 'path'
import { argv } from 'yargs'
const env = process.env.NODE_ENV || 'development'
const envConfig = require('./' + env + '.json')
const config = {
env: env,
// 项目结构
path_project : path.resolve(__dirname, '../'),
dir_src : 'src',
dir_dist : '.dist',
dir_server: 'server',
dir_... |
//= require ../palette-color-picker
//= require_self
$(function() {
setupColorPicker();
$(document).on('has_many_add:after', setupColorPicker);
function setupColorPicker() {
$('.color-picker').each(function(i, el) {
$(el).paletteColorPicker({
clear_btn: 'last'
});
});
}
});
|
/* eslint-disable no-bitwise, no-process-exit */
"use strict"
module.exports = new function init() {
var spec = {}, subjects = [], results, only = null, ctx = spec, start, stack = 0, nextTickish, hasProcess = typeof process === "object", hasOwn = ({}).hasOwnProperty
function o(subject, predicate) {
if (predicate ... |
import AbstractKeyEventSimulator from './AbstractKeyEventSimulator';
import Configuration from '../config/Configuration';
import KeyEventType from '../../const/KeyEventType';
class GlobalKeyEventSimulator extends AbstractKeyEventSimulator{
handleKeyPressSimulation(options){
this._handleEventSimulation('handleKey... |
/* @flow */
declare var require: {
(id: string): any;
ensure(ids: Array<string>, callback?: { (require: typeof require): void }, chunk?: string): void
}
declare var BASE_URL: bool;
|
search_result['693']=["topic_0000000000000177.html","TleceAccountController.EmailSender Property",""]; |
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicati... |
import React from 'react';
import H2Header from '../H2Header/H2Header';
import GridContainer from '../GridContainer/GridContainer';
import CloseHood from '../CloseHood/CloseHood';
const DashboardBackground = () => {
return (
<div className="dashboard-background">
<H2Header />
<GridContainer />
... |
{
"movies": [
{
"title": "King Kong",
"summary": "A love story about a big monkey and a blonde chick.",
"thumbnail": "http://localhost:8080/images/king_kong.jpg",
"video": "https://www.youtube.com/watch?v=aanYNjjoCQo",
},
{
"title": "E.T.",
"summary": "A psychotropic movie about a kid that beli... |
var _ = require('lodash');
module.exports = function() {
var service = this;
var ontologiesKey = "__ONTOLOGIES__";
var viewsKey = "__VIEWS__";
service.views = {};
service.ontologies = {};
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16)
.s... |
/* jshint devel: true, indent: 2, undef: true, unused: strict, strict: false, eqeqeq: true, trailing: true, curly: true, latedef: true, quotmark: single, maxlen: 120 */
/* global define */
define('collections/profile_pics', ['backbone', 'models/profile_pic'],
function (Backbone, ProfilePic) {
var ProfilePic... |
import { startMirage } from '../../initializers/ember-cli-mirage';
export default function setupMirage() {
return startMirage();
}
|
/* eslint-disable import/prefer-default-export */
export const INPUT_HEIGHT = 30;
/* eslint-enable import/prefer-default-export */
|
$('#accordion').accordion(); |
'use strict';
const swal = require('sweetalert');
const AdminHeaderCtrl = (app) => {
app.controller('AdminHeaderCtrl', ['$scope', '$log', '$window', '$location', ($scope, $log, $window, $location) => {
// $scope.showAccountButton = $cookies.get(`strategy`) === `basic` || $cookies.get(`interopAdmin`) === ... |
// @flow
import { app, BrowserWindow } from 'electron';
import MenuBuilder from './menu';
/* eslint global-require: 1, flowtype-errors/show-errors: 0 */
let mainWindow = null;
if (process.env.NODE_ENV === 'production') {
const sourceMapSupport = require('source-map-support');
sourceMapSupport.install();
}
if (... |
(function (app) {
'use strict';
app.registerModule('carts');
})(ApplicationConfiguration);
|
var crypto = require("crypto"),
jade = require("jade"),
path = require("path"),
juice = require("juice2"),
sass = require("node-sass");
module.exports = (function() {
var InvitationsManager = {},
transport = sails.config.mail.transport;
InvitationsManager.send = function(options, callback) ... |
'use strict';
import dispatcher from './../../infrastructure/dispatcher';
import api from './../../infrastructure/web.api';
export function getStudents(data) {
return api.get('/api/v1/activity/students', data)
.then(res => {
if (!res.hasErrors) {
dispatcher.dispatch({action: 's... |
(function(){
window.app = {};
app.collections = {};
app.models = {};
app.views = {};
app.mixins = {};
// Defer initialization until doc ready.
$(function(){
app.collections.paginatedItems = new app.collections.PaginatedCollection();
app.collections.paginatedItems.fetch({
... |
Pong.Menu = function ()
{
this.keyIsDown = false;
};
Pong.Menu.prototype = {
create: function ()
{
Pong.onePlayer = true;
// add all the text on the screen
this.pongText = this.add.bitmapText(this.world.centerX, 50, 'bigFont', 'PONG', 128);
this.pongText.anchor.set(0.5, 0);
// on player i... |
(function(factory) {
// NOTE:
// All techniques except for the "browser globals" fallback will extend the
// provided QUnit object but return the isolated API methods
// For AMD: Register as an anonymous AMD module with a named dependency on "qunit".
if (typeof define === "function" && define.amd) {
def... |
'use strict';
var path = require('path');
var fs = require('fs');
var config_file_cache = new Map();
module.exports.niceName = 'Custom file (.gcc-flags.json)';
module.exports.settings = function () {
var SETTINGS_FILENAME = ".gcc-flags.json";
var MAX_ITERATIONS = 30;
var linted_file = atom.workspace.getActiv... |
// Use default color scheme
function save_scheme() {
console.log("inside save_scheme ");
var colors = {};
colors.bgColor = "#2f4f4f";
colors.paraColor = "#f5deb3";
colors.mainHeading = "#f1f1f1";
colors.closeColor = "#ffffff";
colors.subHeading = "#f5deb3"
colors.subHeadingH3 = "#f5deb3"... |
module.exports = function (alchemy) {
'use strict';
alchemy.formula.define('slides.Testing-UI-02', [], function () {
// - neu: ECS
return {
type: 'core.entities.Slide',
state: {
title: 'Testing - Wie lässt sich das UI testen?'
},
... |
/**
* Copyright 2014 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
/**
* This module provides helpers for patterns regarding *takeActionRequest*, *willTakeAction* and
* *didTakeAction* events.
*
* @module actions
*/
define( [
'angular',
'laxar'
], function( ng, ax ) {
'us... |
import { Message } from './message';
describe('Message', () => {
const MSG = new Message('message.action');
const MSGData = new Message('message.action', {});
const MSGDataFalse = new Message('message.action', false);
const MSGDataMalformed = new Message('message.action', undefined);
const MSGNoAc... |
// @flow
export { default } from './tab-size'
|
/*Coppy right : vuhongminh911@gmail.com*/
(function ($) {
$.fn.convertHiKata = function (value , type , content)
{
valueTextInput = value ;
Type = type ;
Content = content;
pos = $(Content).caret();
Convert (valueTextInput , Type);
};
array_char = [];
array_char2 = [];
array_char3 = [];
array_ch... |
import {rejectNotFound} from './rejectNotFound'
import {ensureRequestKey} from './request'
import isString from 'lodash/isString'
import {markSafeSource, createSafeSource} from './source'
// Require / prefix to make it easier to understand that these are routes.
export const isPath = (path) =>
isString(path) && path... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Post Schema
*/
var PostSchema = new Schema({
textContent: {
type: String,
default: '',
trim: true
},
created: {
type: Date,
default: Date.now
},
localisation: [
{
... |
module.exports = {
output: {
library: 'ReduxRequests',
libraryTarget: 'umd',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
externals: {
reselect: {
commonjs: 'reselect',
commonjs2: 'reselect'... |
/*globals jQuery, window, XMLHttpRequest*/
/*
*
* Wijmo Library 2.2.1
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Dual licensed under the Wijmo Commercial or GNU GPL Version 3 licenses.
* licensing@wijmo.com
* http://www.wijmo.com/license
*
*
* Wijmo Upload widget.
*
* Depends:... |
export const barChart = {"viewBox":"0 0 2048 1792","children":[{"name":"path","attribs":{"d":"M640 896v512h-256v-512h256zM1024 384v1024h-256v-1024h256zM2048 1536v128h-2048v-1536h128v1408h1920zM1408 640v768h-256v-768h256zM1792 256v1152h-256v-1152h256z"}}]}; |
var clientSockets = function (){
socket.on('newPlayer',function (data){
if(data.name !== name)
actors[data.name] = new Actor(data.x,data.y,data.name,data.color,data.rune);
});
socket.on('yourTurn',function(data){
document.getElementById("WhoseTurn").innerHTML = "Current Turn: "+data.whoseTurn;
... |
/**
* Manapaho (https://github.com/manapaho/)
*
* Copyright © 2015 Manapaho. 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.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'r... |
'use strict';
require('./lib/mock-env');
const expect = require('chai').expect;
const request = require('superagent');
const mongoose = require('mongoose');
const Promise = require('bluebird');
mongoose.Promise = Promise;
const server = require('../server.js');
const User = require('../src/model/user.js');
const serve... |
$(function(){
var $statusMsg = $("#status-msg");
/* Bind Events */
KDBCONNECT.bind("event","ws_event",function(data){
// Data is default message that is set in monitor.js
$statusMsg.html(data);
});
KDBCONNECT.bind("event","error",function(data){
$statusMsg.html("Error - " + data);
}... |
/* http://keith-wood.name/calendars.html
Maltese localisation for Gregorian/Julian calendars for jQuery.
Written by Chritian Sciberras (uuf6429@gmail.com). */
(function($) {
$.calendars.calendars.gregorian.prototype.regionalOptions['mt'] = {
name: 'Gregorian',
epochs: ['BCE', 'CE'],
monthNames: ['Jannar',... |
import React from 'react';
import ValidateInput from './ValidateInput';
class Form extends React.Component {
constructor(props) {
super(props);
this.state = {
title: {
value: '',
error: ''
}
}
}
updateTitle(e) {
this.setState({
title: {
value: e.target.va... |
import React, { Component } from 'react';
import AuthService from './AuthService';
export default function withAuth(AuthComponent) {
const Auth = new AuthService();
return class AuthWrapped extends Component {
constructor() {
super();
this.state = {
user: null
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.