code stringlengths 2 1.05M |
|---|
/**
* config is the configuration wrapper object of the app
*/
var config = {
site : 'http://www.some.com',
domains : {
some : 'some.com'
},
el : {
productList : $('#product_list'),
productTemplate : $('#productTemplate'),
loader : $('#loader'),
err : $("#err")
},
imgPaths : {
logo : '../../img/logo... |
/*!
* Usher
* Copyright(c) 2014 meltmedia <mike@meltmedia.com>
*/
'use strict';
var async = require('async'),
winston = require('winston'),
STATUS = require('./tasks/status');
module.exports = WorkflowExecution;
function WorkflowExecution(tasks) {
if (!(this instanceof WorkflowExecution)) {
retur... |
// Generated by CoffeeScript 1.6.3
var BackoffTimer, ConnectionRdy, ConnectionRdyState, EventEmitter, NSQDConnection, NodeState, READER_COUNT, ReaderRdy, RoundRobinList, StateChangeLogger, _,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, ke... |
(function() {
'use strict';
b3e.nodes.RestartBehaviorTree = b3e.node.create('RestartBehaviorTree', b3e.MODULATOR, {
group: 'behaviorTrees',
properties: [
['treeName', b3e.properties.String, {title: 'Tree name'}],
],
});
})(); |
/**
* Created by Wayne on 15/7/9.
*/
'use strict';
zhuzhuqs.directive('zzplacehold', function() {
return {
restrict: 'A',
require: 'ngModel',
link: function(scope, element, attr, ctrl) {
var value;
var placehold = function () {
element.val(attr.zzplacehold)
};
var unp... |
// Karma configuration
// Generated on Wed May 13 2015 17:38:34 GMT-0400 (EDT)
module.exports = function(config) {
config.set({
basePath: '',
browsers: ['Firefox', 'PhantomJS'],
frameworks: ['mocha', 'requirejs'],
files: [
'node_modules/mocha/mocha.js',
'node_modules/mocha/mocha.css',
... |
worldlyPosition = {
config: {
topLongitude: 10000
, leftLatitude: 20000
, bottomLongitude: 14000
, rightLatitude: 26000
}
, field: {}
, calcVars: function () {
var self = this
// Measured from left to right
self.field.width = self.config.rightLatitude - self.config.leftLatitude
self.field.... |
'use strict'
const config = require('../config')
const pkg = require('../../package.json')
const winston = require('winston')
require('winston-papertrail').Papertrail // eslint-disable-line no-unused-expressions
function getPapertrail () {
return process.env.NODE_ENV !== 'production' ? {} : new winston.transports.P... |
#!/usr/bin/env babel-node --harmony
// import firequeue from 'firequeue'
import firequeue from './src'
import { concat, throughSync } from 'stream-util'
import parallel from 'concurrent-transform'
const queue = firequeue.init('https://firequeue-test.firebaseio.com')
const logger = (fn) => throughSync(function(data) ... |
exports = module.exports;
const request = require('request');
exports.answerJoke = function(sender, token) {
let messageData = {
"text":"Oh ho ho. My street name is \"the bot with the jokes\", FYI. Check out a few of them below."
+ " I love to share and make hoomans laugh!",
"quick_replies":[
{
... |
const nconf = require('nconf');
nconf.argv()
.env()
.file({ file: './config.json' });
const task = require('./task');
const context = {
data: {
DOMAINS: nconf.get('DOMAINS'),
DAYS_THRESHOLD: nconf.get('DAYS_THRESHOLD'),
SLACK_INCOMING_WEBHOOK_URL: nconf.get('SLACK_INCOMING_WEBHOOK_URL')
}
};
task(... |
'use strict'
let models
class BlocksController {
constructor (projectModels) {
models = projectModels
}
async create (req, res) {
models.Blocks.create({
block: req.body.block
})
.then((block) => {
res.json({
error: false,
id: block.id
})
})
... |
export { default } from './poop'
|
'use strict';
var EventDispatcher = createjs.EventDispatcher
, EaselEvent = createjs.Event;
var controls = {
37: 'moveleft',
39: 'moveright',
38: 'moveup',
40: 'movedown',
32: 'fire1'
};
var currentActions = {};
var actionService = module.exports = {
init: actions_init,
get: actions... |
/**
* Represents a student's response
*/
var StudentResponse = function (question, answeredCorrectly, abilityLevel) {
'use strict';
// TODO: Add some checking and error handling here.
// TODO: Possibly add a few more methods.
//console.log(question);
//console.log(answeredCorrectly);
//console.log(abili... |
var ebayTradingAPI = require('../index');
console.log(ebayTradingAPI.getUserToken());
ebayTradingAPI.setUserToken("adfsafdsaf");
console.log(ebayTradingAPI.getUserToken());
var config = require('./config.json');
ebayTradingAPI.setUserToken(config.eBayAuthToken);
console.log(ebayTradingAPI.getUserToken());
ebayTr... |
import axios from 'axios';
import {Pet, PetList} from '../types/Pet';
/**
* @class PetService
*/
class PetService {
/**
* Get all pets the user has access to
* @return {Promise<Array<Pet>>} A promise that unwraps to an array of pets
*/
getAll() {
return axios.get('/pets')
... |
var underscore = require('./underscore.js');
var _executeBound = require('./_executeBound.js');
var restArguments = require('./restArguments.js');
// Partially apply a function by creating a version that has had some of its
// arguments pre-filled, without changing its dynamic `this` context. `_` acts
// as a placehol... |
/**
* Renders graph with text symbols. Even though name says ASCII it supports
* unicode as well.
*
* @example
* var asciiGraphics = require('ngraph.ascii').graphics(graph);
* asciiGraphics.run(); // this will render graph with '*' symbols
*
* @param {ngraph.graph} graph - graph object to be rendered
*/
mo... |
/*
* ToNumber() (E5 Section 9.3).
*
* Postfix increment changes its LHS, put returns ToNumber(oldValue) as the
* expression value. Use this get ToNumber() indirectly.
*/
function tonumber(x) {
var tmp = x;
return tmp++;
}
function zeroSign(x) {
if (x !== 0) {
return 'nz';
}
if (1 ... |
module.exports = function (string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
|
/* eslint no-unused-expressions:0 */
import { createElement } from 'react';
import ReactDOM from 'react-dom';
import CheckboxGroup from './index';
import { $, $$, conformanceChecker } from '../boundless-utils-test-helpers/index';
import sinon from 'sinon';
describe('CheckboxGroup component', () => {
const mount... |
// ==UserScript==
// @name RPH Tools
// @namespace https://openuserjs.org/scripts/shuffyiosys/RPH_Tools
// @version 2.3.4e
// @description Adds extended settings to RPH
// @match http://chat.rphaven.com/
// @copyright (c)2014 shuffyiosys@github
// @grant none
// @license MIT license (https://en.... |
// Config params for the Angular App
var
contentLoaded = false,
template_ext = '.html',
host = (function () {
return '//' + location.host + '/';
})(),
firstLoad = true;
jQuery(window).scroll(function (event) {
if (jQuery(this).scrollTop() > 200) {
jQuery('.static-share-header').css({
transform: 'translate... |
var sh = require('../');
sh.log.on('message', function (level, message) {
console.log(level, message);
})
sh.log.mode = 'event';
sh.config.setAlias('lsHidden', 'ls', ['-a']);
sh.config.setAlias('lsFull', sh.cmd('ls', ['-l']));
sh('lsHidden').on('success', function (output) {
console.assert(output.indexOf('..')... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M3 2l2.21 20H18.8L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33-11H5.67l-.44-4h13.53l-.43 4z"
}), 'LocalDrinkSharp'); |
/*
* JSLists v0.4.5
* © 2016 George Duff
*
* Release date: 01/06/2016
* The MIT License (MIT)
* Copyright (c) 2016 George Duff
* 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 witho... |
function parseAngular(arr) {
let modules = new Map();
let elements = new Map();
let appPattern = /^\$app='([^']+)'$/;
let controllerPattern = /^\$controller='([^']+)'&app='([^']+)'$/;
let modelPattern = /^\$model='([^']+)'&app='([^']+)'$/;
let viewPattern = /^\$view='([^']+)'&app='([^']+)'$/;
... |
"use strict";
const utils = require('../utils/utils');
const ruleRegexp = /^S?([0-9]*)\/B?([0-9]*)\/C?([1-9][0-9]*)([MV]?)([0-9]*)$/i;
function getNeighbourMethod (methodId) {
if (methodId === 'V' || methodId === 'v' || methodId === 'von-neumann') {
return 'von-neumann';
} else {
return 'moore';
}
}
fu... |
function expandLeft() {
document.getElementById("sectionLeft").style.left = "0";
document.getElementById("sectionMiddle").style.left = "80%";
document.getElementById("sectionRight").style.left = "90%";
document.getElementById("titleLeft").style.left = "40%";
document.getElementById("titleMiddle").style.left =... |
$(function() {
var toc = $('.toc-link'),
sidebar = $('#sidebar'),
main = $('#main'),
menu = $('#menu'),
x1, y1;
// run this function after pjax load.
var afterPjax = function() {
// open links in new tab.
$('#main').find('a').filter(function() {
return this.hostnam... |
// @flow
import SRStudyTaskEditor from '../js/components/screens/SRStudyTaskEditor'
test('input title label visibility', () => {
// hidden at launch when not readonly
// hidden when place text input placeholder is still visible
})
test('Added SRSpacedRepetition properties', () => {
// expect(.easinessFactor).to... |
this.NesDb = this.NesDb || {};
NesDb[ '7974126FFE8C5C064D6A0BDDA14646F874FA7109' ] = {
"$": {
"name": "Dokuganryuu Masamune",
"altname": "独眼竜政宗",
"class": "Licensed",
"subclass": "3rd-Party",
"catalog": "NAM-DG-5500",
"publisher": "Namco",
"developer": "Namco",
"region": "Japan",
"players": "1",
"... |
'use strict';
/*
* Module dependencies
*/
export default class Index{
//Constructor de la clase
constructor(){
}
} |
'use strict';
const _ = require('lodash');
const Bluebird = require('bluebird');
const request = Bluebird.promisifyAll(require('request'));
const BASE_URL = 'https://api.test.rb.is/v1/';
function createClaim(token, phoneNumber) {
return request.getAsync({
url: `${BASE_URL}/accounts/identifier?identifierId=${ph... |
"use strict";
var flatMap = function (arr, fn) {
return Array.prototype.concat.apply([], arr.map(fn));
};
var xmlQuery = function (ast) {
var nodes = Array.isArray(ast) ? ast : (ast ? [ast] : []);
var length = nodes.length;
var get = function (index) { return nodes[index]; };
var children = function... |
define({
"module-appland": {
"projectName": 'Project Name'
}
}); |
/*
| Ast minus assignment ( -= )
*/
/*
| The jion definition.
*/
if( JION )
{
throw{
id : 'jion$ast_minusAssign',
attributes :
{
left :
{
comment : 'left-hand side',
type : require( '../typemaps/astExpression' )
},
right :
{
comment : 'right-hand side',
type : require( '../typema... |
/*
* poeditor_htmid
*
* This is an adaptation of a plugin found https://github.com/Philoozushi/grunt-poeditor-pz . This plugin will download the localizations for a particular project ID and then get all of the string associated with the project. This plugin is to be used in combination with the other htmid plugin... |
var assign = require('object-assign');
var number = require('as-number');
module.exports = function (THREE) {
return function (opt) {
opt = opt || {};
var ret = assign({
transparent: true,
uniforms: {
thickness: { type: 'f', value: number(opt.thickness, 0.1) },
opacity: { type: '... |
var through = require('through2'),
falafel = require('falafel'),
fs = require('fs')
module.exports = lintroller
function lintroller(_checks) {
var count = 0,
files = [],
stream = through(add_files, noop),
checks = _checks || []
checks.forEach(resolve_check)
checks = checks.filter(Bool... |
const _ = require("lodash");
const logger = require("../util/logger");
const MANDATORY_ENV_VARS = [
"PORT",
"FB_PAGE_ACCESS_TOKEN",
"FB_VERIFICATION_TOKEN",
"VIRTUAL_ASSISTANT_NAME",
"SOCIALMINER_HOST",
"SOCIALMINER_CHAT_FEED_ID",
"CCX_QUEUE_ID",
];
module.exports = {
/**
* Valida... |
import Inflector from 'ember-inflector';
const { inflector } = Inflector;
inflector.uncountable('knowledge');
inflector.uncountable('account-access');
export default { };
|
'use strict';
var build = "build"; // ビルド結果が出力されるディレクトリ
var tmp = ".tmp"; // Sassコンパイルで作成されるcssのテンポラリーファイルの場所
var src = 'src'; // ソースコードの場所
module.exports = {
build: build,
tmp: tmp,
src: src,
sf: {
//Salesforceのビルド結果が出力されるディレクトリ
sfbuild: build + "/sf",
// デプロイする静的リソースの名前
resourceName: ... |
/**
* Created by 文琪 on 2015/3/3.
* 用于读取云大主页上的通知,并在数据库中保存发送标识。
*/
var MongoClient = require('mongodb').MongoClient,
ObjectID = require('mongodb').ObjectID;
var array = require('array');
var uuid = require('node-uuid');
var date = require('date-extended');
var sa = require('superagent');
var cheer = require('ch... |
const { ALCore } = require('./lib/AurelionCore');
ALCore.startApp();
|
define([
"dojo/_base/declare", // declare
"dojo/dom-construct", // domConstruct.create
"dojo/has",
"dojo/_base/lang", // lang.hitch
"dojo/on",
"dojo/_base/window", // win.body
"../Viewport"
], function(declare, domConstruct, has, lang, on, win, Viewport){
// module:
// dijit/form/_ExpandingTextAreaMixin
//... |
describe('Reinforced Plate', function() {
integration(function() {
describe('Reinforced Plate\'s constant ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['brash-... |
'use strict'
const path = require('path')
const execa = require('execa')
const merge = require('merge-options')
const { pkg } = require('./utils')
/**
* @typedef {import("execa").Options} ExecaOptions
* @typedef {import("./types").GlobalOptions} GlobalOptions
* @typedef {import("./types").DependencyCheckOptions} D... |
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import organSiteCategories from './organSiteCategories';
import riskEstimateSchema from './riskEstimateSchema';
import { isNumericishString } from '/imports/api/validators';
export default {
organSiteCategory: {
label: 'Organ site',
typ... |
var Util = {
addClass: function(cl, el){
if( el.className.trim() == '' || el.className.indexOf(cl) == -1 ){
el.className += ' '+ cl;
}
},
hasClass: function(cl, el){
return el.className.split(' ').indexOf( cl.replace('.', '') ) > -1;
},
removeClass: function(cl, el){
if( el... |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
* @requires OpenLayers/Han... |
// Pluralize
export function pluralize(length, singular, plural) {
if (length == 1) {
return singular
} else {
return plural
}
}
// Get a single dom node by selector
export function getDOMNode(selector) {
const node = document.querySelectorAll(selector)[0]
return node
}
// Create ... |
'use strict';
var MongoBox = require('mongobox').MongoBox,
mongobox = new MongoBox();
before(function (done) {
mongobox.start(function (error) {
if (error) {
return done(error);
}
global.MONGOBIRD_TEST_PORT = mongobox.options.port;
done();
});
});
after(funct... |
version https://git-lfs.github.com/spec/v1
oid sha256:577cc71f3d670e7c7a12e65b775a4e4e1c92a3552bb6b5ad94a69c4bec582b61
size 67957
|
version https://git-lfs.github.com/spec/v1
oid sha256:344627044ea2b88e1bc840b18e4a63a9eea81e6dc19bfd280e321a47f8a9c78a
size 412114
|
// 引入 node 的 fms 模块
var fms = require('fms')
fms.run({
// Server 启动在 3000 端口
port: 3100,
read: ['/demo/']
})
fms.ajax({
type: 'POST',
title: '获取颜值节目列表',
url: '/get_face/',
request: {
cid: 1
},
res: {
ok: {
list:[
{
url... |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'filetools', 'nl', {
loadError: 'Fout tijdens lezen van bestand.',
networkError: 'Netwerkfout tijdens upl... |
"use strict";
var Sequence = require('../models/sequence.model');
// Create a sequence
exports.sequenceGenerator = function(name){
return {
next: function(callback){
Sequence.find({"name":name},function(err, data){
if(err){ throw(err); }
if(data.length < 1){
// create if doesn't... |
var Mongoose = require('mongoose');
var personSchema = Mongoose.Schema({
family:String,
gen1:String,
gen2:String,
firstName:String,
maidenName:String,
familyName:String,
birtDate:Date,
weddingDate:Date,
phone:Array,
street:String,
city:String,
zip:String,
email:Array,
social:Array
});
va... |
(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['items-stored'] = template({"1":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=con... |
// Karma configuration
// Generated on Thu Jul 03 2014 13:23:26 GMT+0530 (India Standard Time)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/... |
export default {
SHOW_WEB3_CONFIRM_MODAL: 'showWeb3Wallet',
SHOW_TX_CONFIRM_MODAL: 'showTxConfirmModal',
SHOW_MSG_CONFIRM_MODAL: 'showMessageConfirmModal',
SHOW_TX_SIGN_MODAL: 'showTxSignModal',
CONFIRMED_TX: 'confirmedTx',
SHOW_BATCH_TX_MODAL: 'showTxCollectionConfirmModal',
SHOW_SWAP_TX_MODAL: 'showSwap... |
angular.module('septicaApp', []).
// services
factory('socket', function ($rootScope) {
var socket = {};
return {
connect: function (url, opts) {
socket = io.connect(url, opts);
},
on: function (eventName, callback) {
socket.on && socket.on(eventName, function () {
... |
"use strict";
angular.module("homeuiApp")
.factory("getTime", function () {
return function getTime () {
return new Date().getTime();
};
});
|
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'blockquote', 'ku', {
toolbar: 'بەربەستکردنی ووتەی وەرگیراو'
} );
|
$(document).ready(function() {
$.validator.setDefaults({
highlight: function (element) {
$(element)
.closest('.input-group')
.addClass('has-danger')
.removeClass('has-success')
},
unhighlight: function (element) {
$(elem... |
/*let calculator = (function () {
let result = 0;
function add(x) {
result += x;
return this;
}
function subtract(x) {
result -= x;
return this;
}
function getResult() {
return result;
}
return{
add, subtract, getResult
}
})();*/
// our lasted obj starts as empty
let calculator = {};
// private if... |
"use strict";
const {toPromise} = require("./promise");
const {interceptNode, registerGlobalInterceptor} = require("./interceptor");
// pipeline interceptor
registerGlobalInterceptor(node => node instanceof Pipeline ? (payload => node.dispatch(payload)) : null);
class Pipeline {
constructor() {
this.firstNode = n... |
import {connect } from 'react-redux'
import React,{Component} from 'react'
import {Nav, Navbar, NavItem} from 'react-bootstrap'
import {pushState} from 'redux-router'
import Alert from '../components/alert'
import Loader from 'react-loader-advanced';
@connect((state) => ( {loading: state.common.loading}))
export defa... |
'use strict';
//Emails service used to communicate Emails REST endpoints
angular.module('emails').factory('Emails', ['$resource',
function($resource) {
return $resource('api/emails/:emailId', { emailId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]);
|
var assert = require('assert');
var util = require('util');
var auth0OidcStrategy = require('../lib/passport-auth0-openidconnect');
describe('passport-auth0-openidconnect', function(){
it('should report a version', function () {
assert.ok(auth0OidcStrategy.version);
assert.equal(typeof(auth0OidcStrategy.ver... |
var Omegle = require('omegle').Omegle;
var omegleSessions = [];
function init() {
if(Omegle) {
this.on('command', function(context, command) {
if(command == 'omegle') {
if(command.arguments.length == 0) {
context.reply('Omegle Plugin commands: pair, stop');
}else {
if(command.arguments[0] == 'p... |
var temp;
var weather;
function setTemp(tempKelvin) {
temp = tempKelvin - 273.15;
$("#temp").html(Math.floor(temp));
}
function getWeather(geolocation) {
$("#city").html(geolocation.city + ", " + geolocation.regionName);
$.getJSON("http://api.openweathermap.org/data/2.5/weather?lat=" + geolocation.lat + "&lo... |
Ext.define('OppUI.view.loadTestDashboard.loadtestreport.loadtestchart.LoadTestChart',{
extend: 'Ext.chart.CartesianChart',
alias: 'widget.loadtestchart',
requires: [
'OppUI.view.loadTestDashboard.loadtestreport.loadtestchart.LoadTestChartController',
'OppUI.view.loadTestDashboard.loadtestr... |
var Login = function() {};
Login.prototype = {
preload: function() {
console.log('STATE : Login - Preload');
},
create: function() {
console.log('STATE : Login - Create');
this.state.start('Setup');
}
};
module.exports = Login; |
const loadAll = true
const defaultLanguage = 'en'
const otherLang = [ 'vi']
const supportLanguage = [defaultLanguage, ...otherLang]
const defaultAndActive = [defaultLanguage, 'active']
module.exports = { supportLanguage, defaultLanguage, loadAll, defaultAndActive, otherLang } |
$( document ).ready( function( ) {
setTimeout( function( ) {
$( ".alert.alert-overhead" ).css({
"opacity": 0
});
}, 1500 )
}); |
const path = require('path');
const { resolve, join } = path;
const OfflinePlugin = require(process.env.OFFLINE_PLUGIN_ROOT);
const CopyWebpackPlugin = require('copy-webpack-plugin');
const DefinePlugin = require('webpack').DefinePlugin;
module.exports = {
entry: {
main: join(__dirname, 'src/main.js'),
},
... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var gutil = require('gulp-util');
var _ = require('lodash');
var notify = require('gulp-notify');
var plumber = require('gulp-plumber');
var livereload = require('gulp-livereload');
var config = require('./config');
var loaded = [];
var ns = funct... |
import { someValue } from './index.js';
assert.equal( someValue, 10 );
|
// var pheader = '<tr class="header"> <td><a href="javascript:sort("name", arr)">Name</a></td> <td><a href="javascript:sort("data[i]", arr)">Team</a></td> <td><a href="javascript:sort("POS", arr)">Position</a></td> <td><a href="javascript:sort("gp&q... |
'use strict';
var should = require('chai').should();
var sinon = require('sinon');
var proxyquire = require('proxyquire');
var fs = require('fs');
var sinon = require('sinon');
var readFileSync = sinon.stub().returns(fs.readFileSync(__dirname + '/../data/bitcoin.conf'));
var BitcoinService = proxyquire('../../lib/serv... |
Options.set('collectionsDefaultUpdateTemplate', 'orionHeartbeatCollectionsUpdate');
ReactiveTemplates.set('pages.update', 'orionHeartbeatPagesUpdate');
|
// COPYRIGHT © 2017 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
'use strict';
(function() {
// Employer profile view Controller Spec
describe('Employer profile view Controller Tests', function() {
// Initialize global variables
var EmployerProfileViewController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object... |
version https://git-lfs.github.com/spec/v1
oid sha256:8935846d723ae549df268eb54eaa120003319b3e26aca089dfd2fc3b0f146a7e
size 14667
|
(function($, $$) {
var _ = Mavo.UI.Popup = $.Class({
constructor: function(primitive) {
this.primitive = primitive;
// Need to be defined here so that this is what expected
this.position = evt => {
var bounds = this.primitive.element.getBoundingClientRect();
var x = bounds.left;
var y = bounds.bottom;... |
module.exports = isLabelIdentifier;
function isLabelIdentifier(path) {
const { node } = path;
return (
path.parentPath.isLabeledStatement({ label: node }) ||
path.parentPath.isBreakStatement({ label: node }) ||
path.parentPath.isContinueStatement({ label: node })
);
}
|
import gulp from 'gulp';
import es from 'event-stream';
import nugetRestore from 'gulp-nuget-restore';
export default {
/**
* Task name
* @type {String}
*/
name: 'sitecore:nuget-restore',
/**
* Task description
* @type {String}
*/
description: 'Restore all nuget packages for solution.',
/... |
$(document).ready(function () {
var $sliderSlick = $('.latest-posts__list');
var $destroyed = true;
var $documentSize = $(document).innerWidth();
var $sliderOptions = {
arrows: false,
dots: true,
dotsClass: 'latest-posts__dots',
infinite: true,
vertical: true,
... |
import QItem from './QItem'
import QItemMain from './QItemMain'
import QItemSide from './QItemSide'
function push (child, h, name, slot, replace, conf) {
const defaultProps = { props: { right: conf.right } }
if (slot && replace) {
child.push(h(name, defaultProps, slot))
return
}
let props, v = false
... |
// Component: QuestionsPage
import React from 'react';
import { Redirect } from 'react-router-dom';
import { Header, SubTitle } from 'styles/Layout';
import { QuestionCard, UnansweredList } from 'Questions/ui/dynamicRoutes';
const QuestionListCard = question => <QuestionCard {...question} />;
const QuestionsPage = ... |
$(document).ready(function() {
clickReg();
clickCancel();
logOut();
scheduleThings();
makeAppointments();
});
|
'use strict';
var pi = require( './../lib' );
console.log( pi );
|
/*
* Object to hold iTunes search query results.
* The result from apple is JSON format. This class will support pulling out
* specific attributes.
*/
var Album = require('./album').Album;
var Artist = require('./artist').Artist;
var Track = require('./track').Track;
var iError = require('./ierror').iError;
//T... |
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const Inte... |
// Generated on 2014-12-14 using generator-chrome-extension 0.2.11
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grun... |
import React from 'react';
import { compose, mapProps } from 'recompose';
import { withRouter } from '@ui/NativeWebRouter';
import BackgroundView from '@ui/BackgroundView';
import SavedPaymentReviewForm from '@ui/forms/SavedPaymentReviewForm';
import PaddedView from '@ui/PaddedView';
import { Title, Row, TinyButton, Ti... |
import { combineReducers } from 'redux';
import todoReducer from './todoReducer';
import userReducer from './userReducer';
const rootReducer = combineReducers({
todos: todoReducer,
user: userReducer
});
export default rootReducer;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.