code stringlengths 2 1.05M |
|---|
const offset = {};
// mouse position inside btn
let dragging = false;
const btn = '';
// font btn
btn.addEventListener('mousedown', (e) => {
dragging = true;
({ clientX: offset.x, clientY: offset.y } = e);
}, true);
self.addEventListener('mousemove', (e) => {
e.preventDefault();
if (dragging) {
btn.sty... |
export default {
// 90deg
1: '[originX + originY - y, -originX + originY + x]',
// 180deg
2: '[(2 * originX) - x, (2 * originY) - y]',
// 270deg
3: '[originX - originY + y, originX + originY - x]'
};
|
let Promise = require('bluebird');
let { log, error } = require('../logger');
let request;
function addons(app, desiredAddons) {
let existingAddons;
// fetch existing app addons
return request.get(`/apps/${app.name}/addons`)
// filter existing addons for those which aren't in the new sch... |
'use strict';
/**
* Custom `@colors` annotation. Accepts optional
* map-variable name (used to access data from Sass JSON).
*/
module.exports = () => ({
name: 'colors',
multiple: false,
parse: (raw) => ({ key: raw.trim() }),
});
|
'use strict';
import 'prismjs';
import Vue from 'vue';
import VueSimpleValidator from '../src';
import App from './vue/App.vue';
import LeftNavBar from './vue/LeftNavBar.vue';
import MainContent from './vue/MainContent.vue';
import DemoWithCode from './vue/DemoWithCode.vue';
import GettingStarted from './vue/chapter... |
import {sendGetRequest} from "../../../helpers/RequestHelper";
import {FETCH_COMPANY_REQUESTS_ACTION_PREFIX, FETCH_COMPANY_REQUESTS_URL,} from "../constants";
const PAGING = `&sort=id,DESC&size=999`
const FILTER = "?filter=status:PENDING"
export const fetchCompanyRequests = dispatch => {
dispatch({type: `${FETCH_... |
const Marionette = require('backbone.marionette');
module.exports = class LocationPickerListView extends Marionette.View {
template = Templates['picker/location-picker-list'];
ui() {
return {room: '.room'};
}
events() {
return {'click @ui.room': 'onRoomClick'};
}
serializeData() {
const cur... |
"use strict";
exports.__esModule = true;
exports.navigateTo = undefined;
var _extends2 = require("babel-runtime/helpers/extends");
var _extends3 = _interopRequireDefault(_extends2);
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
var _objectWithoutProperties2 ... |
'use strict';
describe('RepoFetcherRatings', function(){
beforeEach( function(){
//initialize module under test
module('RepoFetcherRatings');
});
it('sanity check', function(){
expect(true).toBe(true);
});
xdescribe('Repo', function(){
var repo;
var _httpBackend;
beforeEach(i... |
/**
* Module exports.
*/
exports = module.exports = setup;
/**
* Module dependencies.
*/
var http = require('http');
var send = require('send');
var root = __dirname;
var swf = '/ClipAndFile.swf';
function setup () {
return http.createServer(onReq);
}
function onReq (req, res) {
send(req, swf)
.root(r... |
'use strict';
var Anyfetch = require('anyfetch');
var rarity = require('rarity');
/**
* HYDRATING FUNCTION
*
* @param {string} path Path of the specified file
* @param {string} document to hydrate
* @param {function} cb Callback, first parameter, is the error if any, then the processed data
*/
module.exports =... |
export { default as Tooltip } from './directives/tooltip'
|
var gulp = require("gulp");
var jshint = require("gulp-jshint");
var uglify = require("gulp-uglify");
var minifyCSS = require("gulp-minify-css");
var concat = require("gulp-concat");
var rename = require("gulp-rename");
var del = require("del");
var assets = require("gulp-assets");
gulp.task("css", function() {
gu... |
'use strict';
angular
.module('webRemoteViewerApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.otherwise({
redirect... |
(function($$) {
/**
* WindowTitle class
*/
class WindowTitle extends Component
{
/**
* @constructor
* @param {String} cfg.title - title text
* @param {Boolean} cfg.closable - is set a close box is added
* @param {Function} cfg.onclose - function to call on close
*/
constructor( cfg ) {... |
new Vue({
el: '.container',
data: {
todos: [
{ text: 'Test your mind' },
{ text: 'Wash dishes' },
{ text: 'Move to USA' },
],
newTask: ''
},
methods: {
add: function () {
var newTask = this.newTask.trim();
if (newTask === ''){
return;
}... |
var bigInt = (function() {
var bi_base = 0x4000000; // 2^26 so there is not overflow in multiplication in the JS 2^53 ints
function _testBase() {
bi_base = 1000;
}
function BigInt (value) {
this.value = value;
}
BigInt.prototype.toString = function() {
return this.value.toString();
};
// s... |
(function () {
'use strict';
angular.module('scaApp.widgets', ['scaApp.core', 'ui.bootstrap']);
})();
|
/**
* A simple test case that determines if elements, specified by a selector,
* exist or not.
*
* The test fails for elements that are found and a case is created for each
* one. The test passes is the selector finds no matching elements.
*/
'use strict';
quail.formHasSubmitButton = function (quail, test, Case,... |
var User = require('mongoose').model('user');
var Joi = require('joi');
var server = require(__dirname + '/../lib/http');
var crypt = require(__dirname + '/../lib/crypt');
var log = require(__dirname + '/../lib/log');
var proto = require(__dirname + '/../lib/proto');
var crypto = require(__dirname + '/../lib/crypto... |
var tape = require("tape"),
vec2 = require("vec2"),
aabb2ToAabb2 = require("..");
tape("aabb2ToAabb2(minx1, miny1, maxx1, maxy1, minx2, miny2, maxx2, maxy2)", function(assert) {
assert.deepEqual(aabb2ToAabb2(
0, 0, 1, 1,
0.5, 0.5, 1.5, 1.5
), {
point: vec2.create(0.5, 0.5),
... |
var Attacklab=Attacklab||{};
Attacklab.wmdBase=function(){
var _1=top;
var _2=_1["Attacklab"];
var _3=_1["document"];
var _4=_1["RegExp"];
var _5=_1["navigator"];
_2.Util={};
_2.Position={};
_2.Command={};
var _6=_2.Util;
var _7=_2.Position;
var _8=_2.Command;
_2.Util.IE=(_5.userAgent.indexOf("MSIE")!=-1);
_2.Util.oldI... |
// Unit test for a.mem
QUnit.module('core/mem.js', {
_beforeStore: [],
setup: function() {
this._beforeStore = a.keys(a.mem.list());
},
teardown: function() {
var current = a.keys(a.mem.list());
var difference = a.difference(current, this._beforeStore);
a.each(differenc... |
/* @flow */
jest.mock('../../utils', () => ({ requireModule: v => require(v) }));
jest.mock(
'cwd/src/gluestick.config.js',
() => config => ({ ...config, buildStaticPath: 'test' }),
{ virtual: true },
);
const compileGluestickConfig = require('../compileGlueStickConfig');
const defaultConfig = require('../default... |
/* eslint-disable no-unused-expressions */
const { expect } = require('chai');
const { base, example, orm } = require('feathers-service-tests');
const errors = require('feathers-errors');
const feathers = require('feathers');
const service = require('../lib');
const { hooks, Service } = require('../lib');
const server... |
var searchData=
[
['scadenza',['scadenza',['../structflashcards__t.html#aca5df2b9c7f242f0fe6bca656d38e991',1,'flashcards_t']]]
];
|
/*!
handlebars v4.0.5
Copyright (C) 2011-2015 by Yehuda Katz
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, mod... |
/*
Product Name: dhtmlxSuite
Version: 4.1.1
Edition: Professional
License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com
Copyright UAB Dinamenta http://www.dhtmlx.com
*/
dhtmlXCalendarObject.prototy... |
/*!
* JavaScript Custom Forms : Checkbox Module
*
* Copyright 2014-2016 PSD2HTML - http://psd2html.com/jcf
* Released under the MIT license (LICENSE.txt)
*
* Version: 1.2.3
*/
(function(jcf) {
jcf.addModule(function($) {
'use strict';
return {
name: 'Checkbox',
selector: 'input[type="checkbox"]',
opti... |
// Generated on 2017-10-01 using generator-jhipster 4.9.0
'use strict';
var gulp = require('gulp'),
rev = require('gulp-rev'),
templateCache = require('gulp-angular-templatecache'),
htmlmin = require('gulp-htmlmin'),
imagemin = require('gulp-imagemin'),
ngConstant = require('gulp-ng-constant'),
... |
function acceso() {
window.location.href="http://localhost/montage/public/home";
} |
(function() {
var Command, Config, apm, optimist, path, _,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototyp... |
const vm = require('vm')
const util = require('util')
const path = require('path')
const coverageMap = require('../lib/coverage-map')
describe('preprocessor', () => {
const createPreprocessor = require('../lib/preprocessor')
const ORIGINAL_CODE = `
if (a) {
something();
} else {
other();
}
`
c... |
// import { Signup } from '../index';
import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';
describe('<Signup />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
var _ = require( "lodash" );
var when = require( "when" );
function setModel( self, model, context ) {
self._model = model;
self._context = context;
return self;
}
var HyperResponse = function( envelope, engine, hyperResource, contentType ) {
this._code = 200;
this._envelope = envelope;
this._engine = engine;
... |
var loggly = require('loggly');
/*var client = loggly.createClient({
token: "1cae3802-0bfb-4462-8b6f-4697c794867c",
subdomain: "edwinacevedo",
tags: ["NodeJS"],
json: true
});*/
// we can use loggly's api to send logs from multiple servers to loggly,
// which assembles these into a comprehensible whole
functi... |
import $ from 'jquery';
var Videos = {
current: null,
get: function (subreddit) {
var base = 'https://www.reddit.com/r/';
var url = base + subreddit + '.json?jsonp=?';
$.getJSON(url).done(function (json) {
this.current = json;
$(window).trigger('set-videos', this.current);
}.bind(this... |
var assert = require('assert')
, ref = require('ref')
, ffi = require('../')
, int = ref.types.int
, bindings = require('bindings')({ module_root: __dirname, bindings: 'ffi_tests' })
describe('Callback', function () {
afterEach(gc)
it('should create a C function pointer from a JS function', function () {... |
const scrollSyncMixin = {
getScrollRate(targetElement) {
const rect = targetElement.getBoundingClientRect();
this.scrollTop = targetElement.scrollTop;
this.scrollHeight = targetElement.scrollHeight;
this.maxScrollTop = this.scrollHeight - rect.height;
return this.scrollTop / this.maxScrollTop;
... |
import path from 'path';
import base from '../../';
import { fileExists, readDir, writeFile } from '../FileSystem';
const exportTpl = '\n\nconst modelIndex = [@param];\n\nexport default { modelIndex };';
const importTpl = 'import * as @paramModel from \'containers/@param/models\';';
function RegenerateImportLine(con... |
/*global module:false*/
module.exports = function(grunt) {
var glob = require("glob"),
root = grunt.config('build').options.root;
grunt.log.writeln('Searching for buildscripts in ' + root + '/app/' + ' ...');
glob(root + '/app/' + '**/scripts/build.js', {
sync: true
}, function(er, ap... |
define([
"../core",
"../var/support"
], function( jQuery, support ) {
(function() {
var pixelPositionVal, boxSizingReliableVal,
docElem = document.documentElement,
container = document.createElement( "div" ),
div = document.createElement( "div" );
if ( !div.style ) {
return;
}
// Support: IE9-11+
// S... |
'use strict';
function isTrackEnabled(type, t){
return t.kind === type && t.enabled &&
!t.muted && t.readyState !== 'ended';
}
function hasValidTrack(stream, type){
return stream.getTracks().some(isTrackEnabled.bind(null, type));
}
module.exports = hasValidTrack;
|
import { Phaser } from 'phaser';
export class Spell extends Phaser.Sprite{
constructor(game, x, y) {
super(game, x, y, 'icicle');
this.animations.add('casting', [0,1,2,3,4,5,6,7,8]);
this.soundEffect = this.game.add.audio('spell');
this.soundEffect.volume = 0.5;
... |
(function() {
var url = 'data.json';
var r = 10;
var graph, layout, zoom, nodes, links, data;
var linkedByIndex = {};
var graphWidth, graphHeight;
// Helpers
function formatClassName(prefix, object) {
return prefix + '-' + object.id.replace(/(\.|\/)/gi, '-');
}
function findElementByNode(prefix... |
'use strict';
angular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', '$window', 'Authentication',
function($scope, $http, $location, $window, Authentication) {
$scope.authentication = Authentication;
$scope.signup = function() {
$http.post('/aut... |
/* eslint-disable jsx-a11y/anchor-has-content */
/* eslint-disable jsx-a11y/anchor-is-valid */
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import MarkdownView from 'react-showdown';
import semver from 'semver';
import Paper from '@mat... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({root:{other:"Other"},ar:1,bs:1,ca:1,cs:1,da:1,de:1,el:1,es:1,et:1,fi:1,fr:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,ko:1,lv:1,lt:1,nl:1,nb:1,pl:1,"pt-br":1,"pt-p... |
exports.info = { FormatID: '692',
FormatName: 'Windows Media Audio',
FormatVersion: '',
FormatAliases: 'WMA',
FormatFamilies: '',
FormatTypes: 'Audio',
FormatDisclosure: 'Full',
FormatDescription: 'Windows Media Audio Format is a subtype of the Advanced Systems Format, developed by Microsoft for storing a... |
'use strict';
var mongoose = require('mongoose');
var chai = require('chai');
var chaihttp = require('chai-http');
chai.use(chaihttp);
var expect = chai.expect;
var Note = require('../note.js');
process.env.MONGOLAB_URI = 'mongodb://localhost/restAPI';
require('../app');
describe('REST api', function() {
var not... |
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package. RGraph is Free Software, licensed |
* | under the MIT license - so it's free to use for all purposes. If you want to |
* | donate to help keep the project going... |
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { resetState } from '../actions/boilerplate';
class Boilerplate extends Component {
constructor(props) {
super(props);
this.resetState = this.resetState.bind(this);
}
resetState() {
r... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Ui5Title = 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; descrip... |
export default
{
"type": "group",
"id": "9a99988a-0123-4456-b89a-b1607f326fd8",
"children1": {
"a98ab9b9-cdef-4012-b456-71607f326fd9": {
"type": "rule",
"properties": {
"field": "user.login",
"operator": "equal",
"value": [
{
"func": "LOWER",
... |
var gulp = require('gulp');
var util = require('gulp-util');
var bowerFiles = require('main-bower-files');
var less = require('gulp-less');
var inject = require('gulp-inject');
var angularSort = require('gulp-angular-filesort');
var path =
{
bower : './src/main/webapp/bower_components',
js : './src/main/webapp/ass... |
var gulp = require('gulp'),
blanket = require('../../gulp-blanket'),
mocha = require('gulp-mocha');
gulp.task('blanketTest', function () {
gulp.src(['src.js'], { read: false })
.pipe(mocha({
reporter: 'spec'
}))
.pipe(blanket({
instrument:['src.js'],
... |
window.onload = function() {
configToolbar();
document.getElementById("roundDropDown").onclick = function() {
listenToSelect();
};
};
function listenToSelect() {
for (i = 1; i < document.getElementById("roundDropDown").length; i++) {
console.log(document.getElementById("roundDropDown").... |
import Ember from 'ember';
export default Ember.Mixin.create({
// Solution based on: http://flightschool.acylt.com/devnotes/caret-position-woes/
getCaretPosition: function(oField) {
var iCaretPos = 0;
// IE Support
if (document.selection) {
// Set focus on the element
oField.focus ()... |
var createListItemTemplate = function (schema, id, deletable, readOnly) {
return '' +
(
!readOnly ?
'<td>' +
(deletable ? '<input type="checkbox" class="crud-list-selected"/>' : '') +
(readOnly ? '' : '<input type="button" class="crud-edit-button" value="Edit"/>') +
... |
/**
* sprite plugin
*
* @copy Copyright (c) 2012 Skype Limited
* @author Martin Kapp <skype:kappmartin>
* @author Thibault Martin-Lagardette
*/
(function($) {
/**
* @constructor Extend jQuery elements set here with 'sprite' function
*/
$.fn.extend({
sprite: function(options) {
... |
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
function foobar() {
if(arguments.length === 2) {
let __ks_i = -1;
let a = arguments[++__ks_i];
if(a === void 0 || a === null) {
throw new TypeError("'a' is not nullable");
}
else if(!Type.isString(a)) {
throw new Type... |
/*! flatpickr v2.3.4, @license MIT */
function Flatpickr(element, config) {
const self = this;
function init() {
if (element._flatpickr)
destroy(element._flatpickr);
element._flatpickr = self;
self.element = element;
self.instanceConfig = config || {};
setupFormats();
parseConfig();
setupLocale(... |
"use strict";
const _ = require('lodash');
class ExpenseUtils {
constructor() {
}
sumUp (expenses) {
var sum = 0;
_(expenses).forEach((e) => {
sum += parseFloat(e.amount);
});
return sum.toFixed(2);
}
prettyPrintAll(expenses) {
var s = ... |
define([
'extensions/views/graph/interleavedbar'
],
function (InterleavedBar) {
var ConversionBar = InterleavedBar.extend({
interactive: true,
strokeAlign: 'inner',
blockWidth: function (group, groupIndex, model, index) {
var x0 = this.scales.x(this.graph.getXPos(0, 0));
var x1 = this.scale... |
// NOTE: This example uses the ALPHA release of the next generation Twilio
// helper library - for more information on how to download and install this version, visit
// https://www.twilio.com/docs/libraries/node#accessing-preview-twilio-features
// These consts are your accountSid and authToken from https://www.twili... |
/* :indentSize=2:tabSize=2:noTabs=true: */
var jsdom = require("jsdom"),
expect = require('chai').expect,
coffeescript = require("coffee-script"),
jqueryFactory = require('jquery');
glyphtreeFactory = require(__dirname+"/../src/glyphtree.coffee");
describe('.glyphtree', function() {
describe('#options', f... |
import express from 'express';
import { db } from './db';
import cors from 'express-cors';
import path from 'path';
const app = express();
let rootPath;
switch(process.env.NODE_ENV) {
case 'production':
rootPath = path.resolve(__dirname, '../../public');
break;
case 'test':
rootPath = path.resolve(__... |
/**
* Created by maxvasterd on 14/12/15.
*/
angular.module('myApp.gamesOverview', ['ngRoute', 'ngMaterial'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/gameOverview', {
templateUrl: 'views/gameOverview/gameOverview.html',
controller: 'gameControll... |
import _ from 'underscore';
this.t = function(key, ...replaces) {
if (_.isObject(replaces[0])) {
return TAPi18n.__(key, replaces);
} else {
return TAPi18n.__(key, {
postProcess: 'sprintf',
sprintf: replaces,
});
}
};
this.tr = function(key, options, ...replaces) {
if (_.isObject(replaces[0])) {
retu... |
/// Jquery used for filter form sticky
$(document).ready(function(){
"use strict";
$("#headersticky").sticky({topSpacing:0});
});
|
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
var oDefaults = {
sName: ''... |
// All symbols in the Armenian block as per Unicode v5.1.0:
[
'\u0530',
'\u0531',
'\u0532',
'\u0533',
'\u0534',
'\u0535',
'\u0536',
'\u0537',
'\u0538',
'\u0539',
'\u053A',
'\u053B',
'\u053C',
'\u053D',
'\u053E',
'\u053F',
'\u0540',
'\u0541',
'\u0542',
'\u0543',
'\u0544',
'\u0545',
'\u0546',
'\u0... |
var a: "foo bar" |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import PlayerContext from './PlayerContext';
import { logWarning } from './utils/console';
import getReactParentNameStack from './utils/getReactParentNameStack';
class PlayerContextConsumer extends PureComponent {
render() {
const... |
// Primary Navigation
// =======================================
var controller = new ScrollMagic.Controller(),
atomic_nav = document.getElementById('nav'),
atomic_links = atomic_nav.children,
atomic_scrollinks = {};
for (var i = 0, l = atomic_links.length; i < l; i++) {
if(atomic_lin... |
/**
* Created by williamleong on 4/20/15.
*/
Meteor.methods({
deleteAccount: function(userId) {
if (this.userId === userId) {
return Meteor.users.remove({
_id: this.userId
});
}
}
}); |
$(function () {
// start the ticker
$('#js-news').ticker();
// hide the release history when the page loads
$('#release-wrapper').css('margin-top', '-' + ($('#release-wrapper').height() + 10) + 'px');
// show/hide the release history on click
$('a[href="#release-history"]').toggle(function () {
$('#rel... |
import Details from '../../../../ui/components/details.jsx';
import fixture from '../../../fixtures/components/passed/details.js';
import {render} from '../../helpers.js';
describe('Passed', function() {
describe('Render', function() {
let component;
beforeEach(function() {
component = render(Details,... |
'use strict';
var createFunnelCalculator = require('./lib/create-funnel-calculator');
module.exports = createFunnelCalculator;
|
export const CELL_STATUS_CLOSED = 'CELL_STATUS_CLOSED';
export const CELL_STATUS_OPENED = 'CELL_STATUS_OPENED';
export const CELL_STATUS_QUESTION = 'CELL_STATUS_QUESTION';
export const CELL_STATUS_MARK = 'CELL_STATUS_MARK';
export const GAME_STATUS_WIN = 'GAME_STATUS_WIN';
export const GAME_STATUS_LOOSE = 'GAME_STATUS_... |
jQuery.selectpicker.widget = {};
jQuery.selectpicker.widget.picker = {
append: function( context ) {
var config = jQuery.selectpicker.config( context );
context
.prop( "disabled", true )
.hide()
.after(
jQuery( "<div>" )
.prop( { id: config.items.selector.picker.baseId.re... |
let kuaida_data = require('../data/zh-cn/kuaida-data')
let builder = require('botbuilder')
let help = require('../data/zh-cn/help')
let anwser = require('../data/zh-cn/answer')
module.exports = [
(session)=>{
let msg = new builder.Message(session)
msg.attachmentLayout(builder.AttachmentLayout.carous... |
import merge from 'lodash/object/merge';
const initialState = {
users: {},
games: {},
participations: {}
};
export default function reducer(state = initialState, action = {}) {
if (action.entities) {
return merge({}, state, action.entities);
}
return state;
}
|
'use strict';
import React, {Component} from "react";
import {
StyleSheet,
View,
Text,
Image,
ScrollView,
Linking,
TouchableOpacity
} from "react-native";
import Dimensions from "Dimensions";
import theme from "@store/theme";
var {height, width} = Dimensions.get("window");
var _height = 2... |
// ###########
// # imports #
// ###########
import scrollToTarget from "../helper/scrollToTarget";
import find from "../helper/find";
import toggleClass from "../helper/toggleClass";
import updateTimestamp from "../tools/updateTimestamp";
// ###########
// # program #
// ###########
function setupTimeline(response)... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var passport = require('passport');
var session = require('express-session');
var routes = require(... |
class compatcontextmenu_compatcontextmenu_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeS... |
/**
* This cloudflare worker performs the following functions:
* - rejects banned clients
* - enforce presence of API Key
* - responds to read queries using mirror api hosts (if available, tracking unavailable hosts)
* - sends writes to master API
* - logs request summary to logs.openchargemap.org for debug purp... |
// includes
var express = require('express');
var mysql = require('mysql');
var app = express();
var handlebars = require('express-handlebars').create({defaultLayout:'main'});
var bodyParser = require('body-parser');
// set the app variables
app.engine('handlebars', handlebars.engine);
app.set('view engine', 'handleb... |
'use strict';
chrome.browserAction.onClicked.addListener(() => {
chrome.tabs.create({
active: true,
url: 'options/options.html'
}, null);
});
|
var utils = require("../lib/utils"),
assert = require("assert");
var now = new Date().getTime().toString();
describe('utils', function() {
it('should generate unique identifiers', function() {
var generatedIds = [];
for (var i = 0; i < 1000; i++) {
var id = utils.uniqueId();
assert(id);
... |
import styled from 'styled-components';
const List = styled.ul`
font-family: Georgia, Times, 'Times New Roman', serif;
padding-left: 1.75em;
list-style:none;
`;
export default List;
|
const gulp = require('gulp')
const source = require('vinyl-source-stream')
const browserify = require('browserify')
const watchify = require('watchify')
const reactify = require('reactify')
const gulpif = require('gulp-if')
const uglify = require('gulp-uglify')
const streamify = require('gulp-streamify')
const notify ... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 3.41L16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2 22 3.41zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59 3.41 22z" />
, 'CloseFullscreenOutlined');
|
export default class MapView {
on() {}
}
|
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'morganizer',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-... |
module.exports = {
"key": "raichu",
"moves": [
{
"learn_type": "tutor",
"name": "covet"
},
{
"learn_type": "machine",
"name": "wild-charge"
},
{
"learn_type": "machine",
"name": "volt-switch"
... |
let stringValue = "hello ";
let result = stringValue.concat("world");
console.log(result); // "hello world"
console.log(stringValue); // "hello"
|
/**
* Asciify
*
* ---------------------------------------------------------------
*
* Create a fancy banner
*
* For usage docs see:
* https://github.com/olizilla/grunt-asciify
*/
module.exports = function(grunt) {
grunt.config.set('asciify', {
pkg: grunt.file.readJSON('package.json'),
options: {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.