code stringlengths 2 1.05M |
|---|
"use strict";angular.module("ngParallax",[]).directive("ngParallax",["$timeout",function(){return{restrict:"AE",scope:{pattern:"=",speed:"=",offset:"=",reverse:"="},link:function(e,t){function n(){var t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).sc... |
/**
* angular-drag-and-drop-lists v1.4.0
*
* Copyright (c) 2014 Marcel Juenemann marcel@juenemann.cc
* Copyright (c) 2014-2016 Google Inc.
* https://github.com/marceljuenemann/angular-drag-and-drop-lists
*
* License: MIT
*/
angular.module('dndLists', [])
/**
* Use the dnd-draggable attribute to make your ... |
/*
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.3.0-17
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/
(function(){ // encapsulate all variables so they don't become global vars
"Use Strict";
// IE version detection - http://stackoverflow.c... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var sampleTitle = "Adaptive Streaming";
var scenarios = [
{ url: "/html/scenario1.html", title: "Basic HLS/DASH Playback" },
{ url: "/html/scenario2.html", title: "Configuring HLS/DASH Playback" },... |
export default function isPlainFunction(test) {
return typeof test === 'function' && test.PrototypeMixin === undefined;
}
|
(function() {
var MaxmertkitEvent, MaxmertkitHelpers, MaxmertkitReactor, _eventCallbacks, _globalRotation, _reactorEvents, _version;
_eventCallbacks = [];
_reactorEvents = [];
_globalRotation = {
x: 0,
y: 0,
z: 0
};
_version = "0.0.1";
MaxmertkitEvent = (function() {
function Maxmertk... |
/*! Select2 4.0.0-rc.2 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol s... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var page = WinJS.UI.Pages.define("/html/crossfade.html", {
ready: function (element, options) {
runAnimation.addEventListener("click", runCrossfadeAnimation, false);
element2.style.opacit... |
module.exports = []
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u13cc\u13be\u13b4",
"\u13d2\u13af\u13f1\u13a2\u13d7\u13e... |
!function($){$.fn.datepicker.dates["sw"]={days:["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi","Jumapili"],daysShort:["J2","J3","J4","J5","Alh","Ij","J1","J2"],daysMin:["2","3","4","5","A","I","1","2"],months:["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Okt... |
YUI.add("lang/datatype-date-format_zh-Hans-CN",function(a){a.Intl.add("datatype-date-format","zh-Hans-CN",{"a":["周日","周一","周二","周三","周四","周五","周六"],"A":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"b":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"B":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月"... |
/**
* angular-strap
* @version v2.2.1 - 2015-05-15
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.affix', [ 'mgcrea.ngStrap.h... |
YUI.add('swf', function (Y, NAME) {
/**
* Embed a Flash applications in a standard manner and communicate with it
* via External Interface.
* @module swf
*/
var Event = Y.Event,
SWFDetect = Y.SWFDetect,
Lang = Y.Lang,
uA = Y.UA,
Node = Y.Node,
Escape = Y.Escape,
... |
// FILE H TWO
module.exports = 2
|
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
/**
* Form Validation
* @module Ink.UI.FormValidator_2
* @version 2
*/
Ink.createModule('Ink.UI.FormValidator', '2', [ 'Ink.UI.Common_1','Ink.Dom.Element_1','Ink.Dom.Event_1','Ink.Dom.Selector_1','Ink.Dom.Css_1','Ink.Util.Array_1','Ink.Util.I18n_1','Ink.Util.Validator_1'], function( Common, Element, Event, Selecto... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* <%= model.pascalCaseSingular %> Schema
*/
var <%= model.pascalCaseSingular %>Schema = new Schema({<% model.elements.forEach(function(element) { %>
<% if ( ['Schema.Types.ObjectId', 'File'].indexOf(elem... |
import {
Card,
} from '@card-game/core';
class Suits extends Enum {}
Suits.initEnum(['RED', 'GREEN', 'BLUE', 'YELLOW']);
class Ranks extends Enum {}
Ranks.initEnum(['ZERO', 'ONE', 'TWO', 'THREE', 'FOUR', 'FIVE', 'SIX', 'SEVEN', 'EIGHT', 'NINE', 'SKIP', 'DRAW_TWO', 'REVERSE']);
class Wilds extends Enum {}
Wilds.init... |
var jfs = require('json-schema-faker');
var mout = require('mout');
var Joi = require('joi');
var bluebird = require('bluebird');
var HapiFaker = function(options) {
if (!(this instanceof HapiFaker))
return new HapiFaker(options);
var result = Joi.validate(options, Joi.object({
schemas: Joi.array().items(... |
/**
* Created by Guoliang Cui on 2015/5/5.
*/
var utility=require('../lib/utility');
var ConfigInfo=require("../../config/baseConfig")
exports.getVersion=function(req,res){
var params=utility.parseParams(req).query;
var resultObj;
resultObj=utility.jsonResult(false,"OK",{version:ConfigInfo.basicSettings[p... |
/* eslint-env mocha */
import path from 'path';
import fs from 'fs';
import assert from 'assert';
import {transformFileSync} from 'babel-core';
function trim(str) {
return str.replace(/^\s+|\s+$/, '');
}
describe('Transpile ES7 async/await to vanilla ES6 Promise chains -', function () {
// sometimes 2000 isn't e... |
#!/usr/bin/env node
"use strict";
var setupThrobber = require("../../throbber")
, throbber = setupThrobber(process.stdout.write.bind(process.stdout), 200);
process.stdout.write("START");
throbber.start();
setTimeout(throbber.stop, 1100);
|
import { Constants, Feature } from 'alpheios-data-models'
import Morpheme from '@lib/morpheme.js'
import Form from '@lib/form.js'
import Table from '@views/lib/table.js'
import GreekView from '../greek-view.js'
import GroupFeatureType from '../../../lib/group-feature-type.js'
export default class GreekNumeralView ext... |
const Packages = [
{
id: 'book',
title: 'The Book',
price: 1000,
desc: `
- The Book
- 14 chapters
- 100s of examples
- Access to GitHub Repo + Source
`
},
{
id: 'bookAndVideos',
title: 'The Book and Videos',
price: 1000,
desc: `
- The book
- Screencasts on
- Building this sit... |
var socket = io()
var app = angular.module('alcohol', ['ui.router', 'ui.router.grant', 'ngStorage'])
app.run(['grant', 'authService', function (grant, authService) {
grant.addTest('auth', function () {
console.log(authService.isLoggedIn())
return authService.isLoggedIn()
})
}])
app.config(['$stateProvide... |
version https://git-lfs.github.com/spec/v1
oid sha256:0f37b0ed995928892d2a7c5d05dbecd85b0d4d248931074f5f228f0c14bf5909
size 11378
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.2.15_A1_T23;
* @section: 15.10.2.15;
* @assertion: The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
* followin... |
/* jshint -W030 */
'use strict';
describe('Controller: MainMenuController', function () {
// load the controller's module
beforeEach(module('ftiApp.mainMenu'));
var controller;
var menuEntry = {name: 'test', state: 'test.main'};
var mainMenuMock = {
getMenu: function () {
return [menuEntry]
}
};
var $m... |
'use strict';
/* lib/encode.js
* Encode WebSocket message frames.
* * */
|
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile',... |
var twilio = require('twilio'),
Player = require('../models/Player'),
Question = require('../models/Question');
// Handle inbound SMS and process commands
module.exports = function(request, response) {
var twiml = new twilio.TwimlResponse();
var body = request.param('Body').trim(),
playerP... |
(function () {
'use strict';
angular.module('openSnap')
.constant('CONFIG', {
menuItems: [{
state: 'home',
icon: 'home'
},
{
state: 'codes',
icon: 'code'
},
{
state: 'create',
icon: 'create'
},
{
... |
define(function (require) {
'use strict';
/**
* Module dependencies
*/
var defineComponent = require('flight/lib/component');
/**
* Module exports
*/
return defineComponent(switcher);
/**
* Module function
*/
function switcher() {
this.defaultAttrs({
onClass: 'btn-primar... |
const other = {
something: 'here'
};
const other$1 = {
somethingElse: 'here'
};
|
var mongoose = require('mongoose');
var u = require('../utils');
var autorizadaSchema = new mongoose.Schema({
nome: String,
cpf: { type: String, unique: true },
celular: String,
dtInicial: Date,
dtFinal: Date,
autorizador: String,
apto: Number,
bloco: String,
contato: String
});
va... |
'use strict';
// MODULES //
var ctor = require( './ctor.js' );
// VARIABLES //
var CACHE = require( './cache.js' ).CTORS;
// GET CTOR //
/**
* FUNCTION: getCtor( dtype, ndims )
* Returns an ndarray constructor.
*
* @param {String} dtype - underlying ndarray data type
* @param {Number} ndims - view dimensions
* ... |
var elt;
var canvas;
var gl;
var program;
var NumVertices = 36;
var pointsArray = [];
var normalsArray = [];
var colorsArray = [];
var framebuffer;
var flag = true;
var color = new Uint8Array(4);
var vertices = [
vec4( -0.5, -0.5, 0.5, 1.0 ),
vec4( -0.5, 0.5, 0.5, 1.0 ),
vec4( 0.5, ... |
import classnames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus';
import callDirections from 'ringcentral-integration/enums/callDirections';
import CloseIcon from '../../assets/images/CloseIco... |
/************************************************************************************************************
JS Calendar
Copyright (C) September 2006 DTHMLGoodies.com, Alf Magne Kalleland
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Li... |
import Resolver from 'ember/resolver';
var resolver = Resolver.create();
resolver.namespace = {
modulePrefix: 'map-app'
};
export default resolver;
|
'use strict';
module.exports = function (t, a) {
var foo = 'raz',
bar = 'dwa',
fn = function fn(a, b) {
return this + a + b + foo + bar;
},
result;
result = t(fn, 3);
a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content");
a(result.length, 3, "Length");
a(result.prototype, fn.prototy... |
var tag, tag_text;
var name, name_jp;
var labeltags = document.getElementsByTagName("label");
for (var i = 0; i < labeltags.length; i++) {
tag = labeltags[i];
tag_text = tag.innerText;
for (var j=0; j<skill_replace_list.length; j++) {
name = skill_replace_list[j]["name"];
name_jp = skill_rep... |
(function () {
'use strict';
// Uploadfiles controller
angular
.module('uploadfiles')
.controller('UploadfilesController', UploadfilesController);
UploadfilesController.$inject = ['$scope', '$state', '$window', 'Authentication', 'uploadfileResolve'];
function UploadfilesController ($scope, $state, ... |
'use strict';
const common = require('../common');
const assert = require('assert');
const URLSearchParams = require('url').URLSearchParams;
const { test, assert_false, assert_true } = require('../common/wpt');
/* The following tests are copied from WPT. Modifications to them should be
upstreamed first. Refs:
h... |
//-----------------------------------------------------------------------------
/**
* The sprite which covers the entire game screen.
*
* @class ScreenSprite
* @constructor
*/
function ScreenSprite() {
this.initialize.apply(this, arguments);
}
ScreenSprite.prototype = Object.create(PIXI.Container.prototype);
... |
var sum_pairs = function (ints, s) {
// your code here
};
module.exports = sum_pairs;
|
window.Rendxx = window.Rendxx || {};
window.Rendxx.Game = window.Rendxx.Game || {};
window.Rendxx.Game.Ghost = window.Rendxx.Game.Ghost || {};
window.Rendxx.Game.Ghost.Renderer2D = window.Rendxx.Game.Ghost.Renderer2D || {};
(function (RENDERER) {
var Data = RENDERER.Data;
var GridSize = Data.grid.size;
va... |
'use strict';
angular.module('applicant-test').controller('ApplicantTestController', ['$scope', '$stateParams', '$location', 'Authentication', 'Questions', '$http',
function($scope, $stateParams, $location, Authentication, Questions, $http ) {
$scope.authentication =Authentication;
$sco... |
/**
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
i... |
/*!
Material Components for the web
Copyright (c) 2017 Google Inc.
License: Apache-2.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory)... |
import SocialShare from './SocialShare'
export default SocialShare
|
module.exports = require('react-native').NativeModules.SuperIDRN;
|
version https://git-lfs.github.com/spec/v1
oid sha256:54bbb07ae1a9f895764c118915dd17af16bf383083de7e4f867c71d1da32c925
size 972
|
!function(e){"use strict";e.redux=e.redux||{},e(document).ready(function(){e.redux.table()}),e.redux.table=function(){var l=e(".wpglobus_flag_table_wrapper").html(),a=e(".wpglobus_flag_table_wrapper").parents("table");a.wrap('<div style="overflow:hidden;" class="wpglobus_flag_table"></div>'),a.remove(),e(".wpglobus_fla... |
/**
Loading progress view
@class LoadingView
@constructor
@return {object} instantiated LoadingView
**/
define(['jquery', 'backbone'], function ($, Backbone) {
var LoadingView = Backbone.View.extend({
/**
Constructor
@method initialize
**/
initialize: function () {
... |
// *****************************************************************
// Ox - A modular framework for developing templated, responsive, grid-based projects.
//
// *****************************************************************
// Project configuration
var project = 'ox' // Directory name for yo... |
import { app, router, store } from './app'
const isDev = process.env.NODE_ENV !== 'production'
export default context => {
const s = isDev && Date.now()
router.push(context.url)
const matchedComponents = router.getMatchedComponents()
if (!matchedComponents.length) {
return Promise.reject({ code: 404 })
... |
/// <reference path="_reference.js" />
"use strict";
var svgNameSpace = "http://www.w3.org/2000/svg";
function createSVG(id, width, height) {
var svg = document.createElementNS(svgNameSpace, "svg");
if (id) {
svg.setAttribute("id", id);
}
svg.setAttribute("width", width );
svg.setAttribute(... |
define(["require", "exports", "./selection", "./collection", "./utils/arrayUtils"], function (require, exports, selection_1, collection_1, arrayUtils_1) {
Object.defineProperty(exports, "__esModule", { value: true });
var DataSource = (function () {
function DataSource(selection, config) {
t... |
function TableSort(id) {
this.tbl = document.getElementById(id);
this.lastSortedTh = null;
if (this.tbl && this.tbl.nodeName == "TABLE") {
var headings = this.tbl.tHead.rows[0].cells;
for (var i=0; headings[i]; i++) {
if (headings[i].className.match(/asc|dsc/)) {
this.lastSortedTh ... |
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');
const conf = require('./conf/gulp.conf');
// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);
// Tell gulp to use the tasks just loaded
gulp.registry(hub);
<% ... |
// All symbols in the Unified Canadian Aboriginal Syllabics block as per Unicode v5.1.0:
[
'\u1400',
'\u1401',
'\u1402',
'\u1403',
'\u1404',
'\u1405',
'\u1406',
'\u1407',
'\u1408',
'\u1409',
'\u140A',
'\u140B',
'\u140C',
'\u140D',
'\u140E',
'\u140F',
'\u1410',
'\u1411',
'\u1412',
'\u1413',
'\u1414'... |
// All code points with the `Sentence_Terminal` property as per Unicode v9.0.0:
[
0x21,
0x2E,
0x3F,
0x589,
0x61F,
0x6D4,
0x700,
0x701,
0x702,
0x7F9,
0x964,
0x965,
0x104A,
0x104B,
0x1362,
0x1367,
0x1368,
0x166E,
0x1735,
0x1736,
0x1803,
0x1809,
0x1944,
0x1945,
0x1AA8,
0x1AA9,
0x1AAA,
0x1AAB,
... |
import { expect } from 'chai';
import Draft, { EditorState, SelectionState } from 'draft-js';
import handleBlockType from '../handleBlockType';
describe('handleBlockType', () => {
describe('no markup', () => {
const rawContentState = {
entityMap: {},
blocks: [
{
key: 'item1',
... |
var searchData=
[
['text',['text',['../class_politechnikon_1_1game__elements_1_1_text.html#aa18ff5a85e90a5d19b62976a65863932',1,'Politechnikon::game_elements::Text']]],
['textbuffor',['TextBuffor',['../class_politechnikon_1_1game__elements_1_1_field.html#a35f9c0081c0928be00204ca03ca56f1e',1,'Politechnikon::game_ele... |
//================================================================
// RS_HUD_OptimizedMobile.js
// ---------------------------------------------------------------
// The MIT License
// Copyright (c) 2015 biud436
// ---------------------------------------------------------------
// Free for commercial and non commercial... |
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var sass = require('gulp-sass');
// Load all gulp plugins automatically
// and attach them to the `plugins` object
var plugins = require('gulp-load-plugins')();
// Temporary solution until gulp 4
// https://github.com/gulpjs/gulp/issues... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root.C = factory();
}
}(this, function () {
function runAndWaitOn(func) {
... |
'use strict';
var expect = require('chai').expect;
var ember = require('ember-cli/tests/helpers/ember');
var MockUI = require('ember-cli/tests/helpers/mock-ui');
var MockAnalytics = require('ember-cli/tests/helpers/mock-analytics');
var Command = require('ember-cli/lib/models/command');
var... |
/*!
* Jade - Parser
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Lexer = require('./lexer')
, nodes = require('./nodes');
/**
* Initialize `Parser` with the given input `str` and `filename`.
*
* @param {String} str
* @param {String} filename... |
'use strict';
var IoTServer = require("../iot");
var inquirer = require("inquirer");
var chalk = require('chalk');
inquirer.prompt([{
type: "input",
name: "iotBaseURL",
message: "Enter the URL to the IoT Server",
default: "http://iotserver:7101"
}], function(answers) {
var iot = new IoTServer(ans... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
/* eslint-disable class-methods-use-this */
import Relay from 'react-relay';
class DeletePermissionMutation extends Relay.Mutation {
getMutation() {
return Relay.QL`
mutation {
deletePermission(input: $input)
}
`;
}
getVariables() {
return {
projectId: this.props.project.i... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Exame = mongoose.model('Exame'),
_ = require('lodash');
/**
* Create a Exame
*/
exports.create = function(req, res) {
var exame = new Exame(req.body);
exame.user = req.user;
... |
goog.module('test_files.use_closure_externs.use_closure_externs');var module = module || {id: 'test_files/use_closure_externs/use_closure_externs.js'};/**
* @fileoverview A source file that uses types that are used in .d.ts files, but
* that are not available or use different names in Closure's externs.
* @suppress ... |
/**
* Created with JetBrains WebStorm.
* User: yujilong
* Date: 14-2-11
* Time: 上午11:08
* To change this template use File | Settings | File Templates.
*/
define(['jquery', 'util', 'post/PostContent'], function ($, util, PostContent) {
var Post = function (_id, categoryId, boardId, title, createTime, taobaoU... |
'use strict'
module.exports = (gulp) => {
require('./build/node')(gulp)
require('./build/browser')(gulp)
require('./clean')(gulp)
gulp.task('build', ['build:browser'])
}
|
import React from 'react'
import PropTypes from 'prop-types'
import A from 'components/A'
const Arasaac = ({ link }) =>
link ? (
<A href={'http://www.arasaac.org'} target='_blank' alt='Arasaac'>
ARASAAC (http://www.arasaac.org)
</A>
) : (
<A href={'http://www.arasaac.org'} target='_blank' alt='Ar... |
/**
* Simple wrapper for lang.hitch to make it into an easy function
*/
define(['dojo/_base/lang'], function (lang) {
var l = {
_mixin: function(dest, source, copyFunc){
// summary:
// Copies/adds all properties of source to dest; returns dest.
// dest: Object
... |
$(function () {
'use strict';
QUnit.module('popover plugin')
QUnit.test('should be defined on jquery object', function (assert) {
assert.expect(1)
assert.ok($(document.body).popover, 'popover method is defined')
})
QUnit.module('popover', {
beforeEach: function () {
... |
import internalQuerySelector from '../src/query-selector';
import { querySelector } from '../src';
describe('exports', () => {
it('exports `querySelector`', () => {
expect(querySelector).toEqual(internalQuerySelector);
});
});
|
'use strict';
module.exports = class Account
{
constructor(name, password, email)
{
var load = typeof name === 'object';
this._username = load ? name._username : name;
this._password = load ? name._password : password;
this._email = load ? name._email : email;
this._userType ... |
"use strict";
var _ = require('lodash');
_.mixin({
pickObjectParams: function (data, params) {
params = Array.prototype.slice.call(arguments, 1);
return _.map(data, function (item) {
return _.pick.apply(_, [item].concat(params));
});
},
omitObjectParams: function (dat... |
/**
* @namespace
* @description All general ABC methods and functionality should be placed within this namespace.
* @version 0.0.5 Jul 2014
* @author ABC Innovation
*
*/
var ABC = function() {
var includeLocations = [];
var onLoadFunctions = [getSubMenus, clearSearchField];
var lastNav... |
// Get the modal
var modal = document.getElementById('myModal');
// Get the image and insert it inside the modal - use its "alt" text as a caption
var img = document.getElementById('myImg');
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
img.onclick = function(){... |
import { Selector } from 'testcafe'
const host = process.env.HOST || 'localhost'
const port = process.env.PORT || '3000'
const MAIN_PAGE = `http://${host}:${port}`
// eslint-disable-next-line no-unused-expressions, no-undef
fixture`Hello, world!`.beforeEach(async (t) => {
await t.setNativeDialogHandler(() => true)
... |
var React = require('react');
module.exports = React.createClass({
render: function () {
return (
<html lang="sv">
<head>
<meta charSet="utf-8" />
<title>{this.props.title}</title>
</head>
<body style={{ width: 300 + 'px', margin: '0 auto'}}>
... |
var http = require('http')
, https = require('https')
, url = require('url')
, vm = require('vm')
, cluster = require('cluster')
, util = require('util')
, haikuConsole = require('./haikuConsole.js')
, sandbox = require('./sandbox.js')
var shutdown
, shutdownInProgress = false
, requestCount = 0
, argv
proc... |
import * as API from '../utils/Api'
export const SET_CATEGORIES = "SET_CATEGORIES"
export function setCategories(categories) {
return {
type: SET_CATEGORIES,
categories
}
}
export const fetchGetCategories = () => dispatch => (
API.getCategories().then(data => {
dispatch(setCategor... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _toast = require('./toast.container');
Object.defineProperty(exports, 'default', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_toast).default;
}
});
var _redux = require('./redux');
Object.keys(_... |
define({
"configText": "아래의 필터 그룹 정의",
"labels": {
"groupName": "필터 설정 이름:",
"groupNameTip": "사용자가 선택할 필터의 이름입니다.",
"groupDesc": "설명:",
"groupDescTip": "필터 설정의 설명입니다.",
"groupOperator": "프리셋 연산자:",
"groupOperatorTip": "필터의 연산자를 미리 정의하는 옵션입니다. 프리셋 연산자가 선택되지 않으면 필터가 동일한 연산자를 사용하게 됩니다.",
"g... |
define('dummy/tests/app.jshint', ['exports'], function (exports) {
'use strict';
QUnit.module('JSHint - .');
QUnit.test('app.js should pass jshint', function (assert) {
assert.ok(true, 'app.js should pass jshint.');
});
});
define('dummy/tests/helpers/destroy-app', ['exports', 'ember'], function (exports, ... |
'use strict';
var app = angular.module('testReport.project.settings', [
'ngRoute',
]);
app.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/project/:projectId/settings', {
templateUrl: '/static/app/partials/project/settings/settings.html',
controller: 'ProjectSetting... |
define( [ 'angular',
'ngRoute',
'config/config',
'tmdb/services/TMDBAPIService'],
function( angular, $routeParams, config, TMDBAPIService ) {
"use strict";
var MovieTileController = function($scope, TMDBAPIService, $routeParams ) {
$scope.view = {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const vgraph_1 = require("./vgraph");
const vrootgraph_list_1 = require("../../components/graph/vrootgraph.list");
const cabeiri_lang_1 = require("cabeiri-lang");
class RootGraphesState {
constructor() {
... |
const fs = require('fs');
const p = require('path');
// walk $PATH to find bin
const which = (bin) => {
const path = process.env.PATH.split(p.delimiter);
let file = '';
path.find((v) => {
const testPath = v + p.sep + bin;
if (fs.existsSync(testPath)) {
file = testPath;
... |
module.exports = client => { //eslint-disable-line no-unused-vars
console.log(`Reconnecting... [at ${new Date()}]`);
};
|
import React from 'react';
import { FlexRow, FlexCell } from '../common';
import CharacterName from './CharacterName';
import InfoBlock from './InfoBlock';
const PersonalInfo = ({ character }) => (
<FlexRow>
<FlexCell columns={3}>
<CharacterName character={character} />
</FlexCell>
<FlexCell column... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.