code stringlengths 2 1.05M |
|---|
module.exports = function NullCache() {
this.get = function (key, cb) {
cb();
};
this.set = function (key, private, value, ttlMillis, cb) {
cb();
};
this.flush = function (cb) {
cb();
};
};
|
(function(){
var PersonService = function ($http){
var service = {};
service.getPersons = function (callback) {
$http.get('Persons/GetPersons/').success(function (responseData) {
callback(responseData.map(function (item) {
return {... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
/**
* The mongodb module implements all of the operations needed to interface our cms with mongo.
*
* @returns {{}}
*/
module.exports = (function(){
'use strict';
var db = {},
config = require('../config'),
event = require('../event'),
Strings = require('../strings'),
strings... |
/*
* NODE SDK for the KATANA(tm) Framework (http://katana.kusanagi.io)
* Copyright (c) 2016-2018 KUSANAGI S.L. All rights reserved.
*
* Distributed under the MIT license
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*
* @link ... |
'use strict';
const fs = require('fs');
const docs = process.argv[2] || './docs';
const out = process.argv[3] || './dist';
const marked = require('marked');
const renderer = new marked.Renderer();
renderer.heading = function(text, level, raw, slugger) {
if (this.options.headerIds) {
const id = this.options.head... |
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _sourceMapFixtures = require('source-map-fixtures');
var _ = require('../../');
var _2 = _interopRequireDefault(_);
var fixture = (0, _sourceMapFixtures.mapFile)('throws').require();
(0, _2['default'... |
'use strict';
angular.module('app')
.constant('MINERAL_TAGS_SET', [
'Bauxite',
'Copper',
'Diamond',
'Gold',
'Iron ore',
'Nickel',
'Phosphate -Precious stones (Jade)',
'Uranium'
]);
|
/**
* @hack 替换pixi的_renderWebGL用来支持 softClip
*/
/**
* Renders the object using the WebGL renderer
*
* @method _renderWebGL
* @param renderSession {RenderSession}
* @private
*/
PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession)
{
if (!this.visible || this.alpha <= 0) return;
if... |
const fs = require('fs')
const test = require('tape')
const GraphemeSplitter = require('../index')
function ucs2encode(array) {
return array.map( value => {
let output = '';
if (value > 0xFFFF) {
value -= 0x10000;
output += String.fromCharCode(value >>> 10 & 0x3FF | 0xD800);
value = 0xDC0... |
// Common modules
import '../../../common'
// Page modules
var ko = require('knockout')
var Model = require('../../../models/accommodation/listing')
ko.applyBindings(new Model())
|
//First View Stuff!!!!!
//VIEW//////////////////////////////////
//displayPlayerHand+
//displayDealerHand+
//winScreen+
//quitGame+
//displayNewScore+
window.onload = addListeners;
function addListeners(){
document.getElementById('play-btn').addEventListener("click", playBtn, false);
document.getEl... |
/* Allow namespace commentia to be defined elsewhere (mainly for passing config vars) */
window.commentia = window.commentia || {};
/* If no APIURL provided, default to root api.php */
window.commentia.APIURL = window.commentia.APIURL || "/api.php";
function ajax(url, callback, data, x) {
try {
x = new(this.XMLHttp... |
jQuery(document).ready(function() {
//VARIABLES
themeID = 0; //ONLY NEEDED IF WORKING ON THEME AND WANT TO RENDER LINKS w/THEME ID
brandCount = 0;
displayLimit = 10;
totalCount = 0;
searchTerm = $('#search-term').html(); //LOADS SEARCH TERM
systemLanguageDesk = $('#system_language').html(); //LO... |
angular.module("scripty11")
.factory("Item", function(filterFilter) {
var items = [
{id: 1, name: "Item 1", color: "red"},
{id: 2, name: "Item 2", color: "blue"},
{id: 3, name: "Item 3", color: "red"},
{id: 4, name: "Item 4", color: "white"}
];
... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const path = require('path');
const pkg = require('../../../package.json');
const Helper_1 = __importDefault(require("../Helper"));
const MyError_1 = __importDefault(r... |
var oc = {};
oc.instances = {};
oc.cloneObject = function(obj){
var result = {};
for (var key in obj) {
if (obj.hasOwnProperty(key)) result[key] = obj[key];
}
return result;
}
if(oc.std == null){
oc.std = {};
}
oc.std.ff = (function(){
function print(x){ console.log(x); }
function addAny(x,y){ return x + y... |
import React from 'react';
export default class PilotTripCard extends React.Component { //eslint-disable-line
render() {
const { detailedInfo, pilotStatus, totalTask, completedTask, pilotDistance } = this.props;
return (
<a onClick={detailedInfo} style={{ textDecoration: 'none', color: 'inherit' }}>
... |
// Manage imports of user emails from external providers
export const createMailImport = (data) => ({
url: 'mail/v4/importers',
method: 'post',
data,
});
export const getMailImports = () => ({
url: 'mail/v4/importers',
method: 'get',
});
export const getMailImport = (importID, params) => ({
ur... |
Template.toimenpiteetIndex.helpers({
kouvola: function () {
return Kunnat.find({kunta: "Kouvola"});
}
});
Template.toimenpiteetIndex.events = {
'click #btnRemove': function(e) {
e.preventDefault();
if (confirm("Haluatko varmasti poistaa tavoitteen?"))
Router.current().remove(this._i... |
$(function () {
$(".animsition").animsition({
inClass: 'zoom-in-sm',
outClass: 'zoom-out-sm',
inDuration: 1500,
outDuration: 800,
linkElement: '.animsition-link',
// e.g. linkElement : 'a:not([target="_blank"]):not([href^=#])'
loading: true,
loadingParentElement: 'body', //animsition wrapper eleme... |
angular.module('chatty')
.directive('embedContent', function($sce) {
return {
restrict: 'E',
templateUrl: 'embedContent/embedContent.html',
scope: {
url: '@',
type: '@'
},
controller: function($scope) {
... |
(function(ns, App) {
ns.Commands.RemoveNoteCommand = function(event) {
App.remove(event.get('data'));
}
})(this.ns, this.App); //dependencies |
(function() {
'use strict';
var _ = require('lodash');
var hooks = require('./hooks');
var plumber = require('gulp-plumber');
var Promise = require('bluebird');
var runner = require('./runner');
var vfs = require('vinyl-fs');
var write = process.stdout.write;
/**
* Promisify the execution of an o... |
var mongoose = require('mongoose'),
// slug = require('slug'),
// ub = App.require('/helpers/ub'),
InquiriesSchema = new mongoose.Schema({
created: {type:Number, default: Date.now()},
givenName: String,
familyName: String,
email: String,
phone: String,
message: String,
age: S... |
'use strict';
var assert = require('assert'),
path = require('path'),
helpers = require('yeoman-generator').test;
describe('HTML5 Boilerplate generator', function () {
before(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done... |
/* GET users listing. */
exports.list = function(req, res) {
res.send('Maka Paka');
}; |
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"Suravaram":{"normal":"Suravaram-Regular.ttf","bold":"Suravaram-Regular.ttf","italics":"Suravaram-Regular.ttf","bolditalics":"Suravaram-Regular.ttf"}}; |
/**
* Represents a class that loads UserInterface objects from some source for the authentication system.
*
* In a typical authentication configuration, a username (i.e. some unique
* user identifier) credential enters the system (via form login, or any
* method). The user provider that is configured with that aut... |
//~ name c499
alert(c499);
//~ component c500.js
|
import _ from 'lodash' // eslint-disable-line
import React, {PropTypes} from 'react'
import warning from 'warning'
import {Link} from 'react-router'
import {Grid, Row, Col, Glyphicon} from 'react-bootstrap'
import createModelDetailForm from '../components/create/ModelDetailForm'
export default function ModelDetail(pro... |
import test from 'ava';
import path from 'path';
import { transcludeString } from '../../src/hercule';
test.cb('should transclude with only required arguments', t => {
const input = 'The quick brown fox jumps over the lazy dog.';
const expected = 'The quick brown fox jumps over the lazy dog.';
transcludeString(... |
/*! Hammer.JS - v2.0.4 - 2014-09-28
* http://hammerjs.github.io/
*
* Copyright (c) 2014 Jorik Tangelder;
* Licensed under the MIT license */
(function(window, document, exportName, undefined) {
'use strict';
var VENDOR_PREFIXES = ['', 'webkit', 'moz', 'MS', 'ms', 'o'];
var TEST_ELEMENT = document.createElement('... |
/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
/* ================================================... |
/**
* Created by grest on 9/10/14.
*/
angular.module('ruchJow.user.removeAccountHandler', ['ruchJow.homepageActions', 'ipCookie', 'ruchJow.user.translations'])
.factory('ruchJowRemoveAccountHandler', ['$modal', '$http', 'ruchJowSecurity', function ($modal, $http, ruchJowSecurity) {
return {
h... |
#!/usr/bin/env node
var argv = require('minimist')(process.argv.slice(2));
if(argv.h || argv.help){
console.log("USE: ");
console.log(" -n number of messages to send. (optional) default 1000");
console.log(" -c number of concurrent messages to send. (optional) default 1");
process.exit();
}
var cp = require('c... |
/*jshint maxlen: 1000*/
/*global FileReader*/
(function (window) {
var EventEmitter = require('events').EventEmitter;
var PeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
var SessionDescription = window.RTCSessionDescription || window.mozRTCSession... |
"use strict";
angular.
module( "mwl.calendar" ).
directive( "mwlEventDisplay", [ "$compile", function ( $compile ) {
return {
restrict: "A",
scope: true,
link: function linkFunction ( scope, element, attrs ) {
var linkedDirective = attrs.mwlEventDisplay;
if( linkedDirective... |
module.exports = require('graphology-traversal');
|
'use strict';
var express = require('express');
var controller = require('./game.controller');
var config = require('../../config/environment');
var auth = require('../../auth/auth.service');
//var game_engine = require('./../../components/game_engine');
var router = express.Router();
//
router.post('/', auth.hasRol... |
var fs = require('fs');
var checksPath = __dirname+'/../checks/';
fs.readdirSync(checksPath).forEach(function(file){
if(file.substr(-3) === '.js'){
var type = file.substr(0, file.length-3);
exports[type] = require(checksPath + type);
}
}); |
// This service connects to our REST API
angular.module('RDash').factory("Data", function ($http) {
var serviceBase = '/';
var obj = {};
obj.get = function (q, external) {
var path = external ? q : serviceBase + q;
return $http.get(path).then(function (results) {
return results.data;
... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.createTable('Consultations', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
... |
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var ngAnnotate = require('gulp-ng-annotate');
var uglify = require('gulp-uglify');
var path = require('path');
var wrap = require('../lib/gulp-wrap-src.js');
var config = require('../../build-config.js');
var rename = require('../lib/gul... |
import assert from 'assert';
import '../src/prototypes';
import Combo from '../src/PricingRules/Combo';
const mockServices = {
priceList: {
p1: {
productName: 'P1',
price: 100
},
p2: {
productName: 'P2',
price: 200
},
p3: {
productName: 'P3',
price: 300
}... |
require(['src/web/blend','src/web/dialog/alert','src/web/Slider','src/web/Layer.js','src/web/LayerGroup.js'], function (blend, alert,slider,layer,layergroup) {
"use strict";
blend = blend||{};
//dialogs
blend.dialog = {};
blend.dialog.alert = alert;
//components
blend.compon... |
"format register";
(function(global) {
var defined = {};
// indexOf polyfill for IE8
var indexOf = Array.prototype.indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++)
if (this[i] === item)
return i;
return -1;
}
function dedupe(deps) {
var newDeps = [];
fo... |
var package,
urlVars = getUrlVars(),
ship, canvas, camera;
var killmail = new Killmail(urlVars["id"], function (k) {
try {
package = k.getKillmail();
console.log(k.getEFT())
console.log(package)
$(document).ready(function () {
getShip(package);
popula... |
import { h, Component } from 'preact';
import { Link } from 'preact-router/match';
import { shortDateFormatter } from '../../utils/formatting';
import { getVideoUrl, getPlaylistUrl, createReferrerUrl } from '../../utils/routing';
import MediaQuery from '../media-query';
import StreamingList, { StaticList } from '../s... |
var getUrls = require('get-urls')
var concat = require('concat-stream')
var Menu = require('terminal-menu')
var ttys = require('ttys')
var opn = require('opn')
module.exports = function () {
function setupMenu (items, width) {
var title = 'BEEP. SELECT URL, HUMAN.\n'
width = Math.max(width, title.length)
... |
function VerifyCtrl($http, $rootScope, $location) {
'ngInject';
// ViewModel
const vm = this;
var verificationData = $location.search().key;
vm.verifySent = false;
$http.get($rootScope.apiUrl + 'users/verificate?key=' + verificationData).success((data) => {
vm.verifySent = true;
if (data.result... |
"use strict";
// Generated, unfortunately. Edit original template in browser/templates/serverville_messages.ts.tmpl
var sv;
(function (sv) {
var JsonDataType;
(function (JsonDataType) {
JsonDataType.NULL = "null";
JsonDataType.BOOLEAN = "boolean";
JsonDataType.NUMBER = "number";
... |
/**
* User: kgoulding
* Date: 4/3/12
* Time: 11:12 PM
*/
(function () { // self-invoking function
SAS.Main = function () {
var _self = this;
//region private fields and methods
var _map;
/** @type SAS.PriorityList */
var _priorityList;
var _bubbleChart;
v... |
(function() {
/**
* App Actions
**/
function userActions(context) {
var dispatch = context.dispatch;
var getState = context.getState;
var notifyError = context.utils.notifyError;
var post = context.utils.post;
var get = context.utils.get;
var url = context.utils.url;
function log... |
'use strict';
var mql = require('./mql.js');
module.exports = {
mql: mql
};
|
import React from "react"
import { logsIcon } from "../icons"
const FeedbackTooltipContent = ({ url, onOpened }) => {
const openFeedbackPage = () => {
if (onOpened) {
onOpened()
}
window.open(url, `blank`, `noreferrer`)
}
return (
<>
<span style={{ marginRight: `5px` }}>How are we doi... |
import { PostTime } from "../PostTime/PostTime"
import { SharePost } from "../SharePost/SharePost"
import { Container, Title, About, PostDetails, AuthorImage } from "./styles"
const PostHeader = ({ post }) => {
return (
<Container>
<Title>{post.title}</Title>
<About>
<PostDetails>
... |
var
path = require('path'),
chai = require('chai'),
chaiAsPromised = require('chai-as-promised'),
Process = require('./../../../../../../lib/core/process').Process,
utils = require('./../../../utils')
chai.use(chaiAsPromised)
var
expect = chai.expect,
should = chai.should()
describe('browser.js', funct... |
"use strict";
/**
* Created by Junaid Anwar on 5/28/15.
*/
var winston = require('winston');
var logger = new(winston.Logger)();
logger.add(winston.transports.Console, {
level: 'verbose',
prettyPrint: true,
colorize: true,
silent: false,
timestamp: false
});
logger.stream = {
write: function(message, e... |
var irc = require('irc');
var server = require('./server/server');
var pouch = require('pouchdb');
var config = require('./config')
var dbLocation = (process.env.COUCHLOCATION || 'http://localhost:5984/irclog');
var db = new pouch(dbLocation);
var bot = new irc.Client(config.server, config.botName, {
channels: ... |
/*
* Template name: Kertas - Responsive Bootstrap 3 Admin Template
* Version: 1.0.0
* Author: VergoLabs
*/
function initValidation() {
$("#commentForm").validate();
// validate signup form on keyup and submit
$("#signupForm").validate({
rules: {
firstname: "required",
lastname: "required",
username:... |
'use strict';
/**
* Dependencies
*/
const gulp = require('gulp');
const copyAssets = require('./copy-assets');
const updateRedirects = require('./update-redirects');
const build = require('../build');
/**
* Export task
*/
module.exports = function watchAssets() {
gulp.watch(build.SRC_ASSETS, gulp.series(copyAss... |
{
expect(request.requestHeaders).toEqual(
utils.merge(defaults.headers.common, defaults.headers.get, {
"X-COMMON-HEADER": "commonHeaderValue",
"X-GET-HEADER": "getHeaderValue",
"X-FOO-HEADER": "fooHeaderValue",
"X-BAR-HEADER": "barHeaderValue"
})
);
done();
}
|
const gulp = require("gulp");
const source = require("vinyl-source-stream"); // Used to stream bundle for further handling
const buffer = require("vinyl-buffer");
const babelify = require("babelify");
const browserify = require("browserify");
const watchify = require("watchify");
const gutil = require("gulp-util");
con... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c... |
import React from "react";
import SeresTwoGrande from "../../utils/catalog/seres-2-grande";
import PatternPage from "../../components/pattern-page";
const SeresTwoGrandePage = () => (
<PatternPage pattern={SeresTwoGrande} />
);
export default SeresTwoGrandePage;
|
var chai = require('chai'),
should = chai.should(),
X = require('../build/x.test');
describe("X", function() {
it("Should be an Object", function() {
X.should.be.an('object');
});
it("Should be restful by default", function() {
X.restful.should.be.ok;
});
it("Should have a Version number", function() {
X... |
const lab = require("lab").script();
const code = require("code");
exports.lab = lab;
let Execute = require("../src/index");
lab.experiment("Loop array Test", () => {
lab.test("should return an array contain the result for all items of input array", () => {
let execute = new Execute();
let exec... |
/**
* Minim mathematics library for JavaScript.
*
* @link http://www.minimmaths.org/
* @copyright Copyright 2013 © MrAnchovy http://www.mranchovy.com/
* @license MIT http://opensource.org/licenses/MIT
* @namespace Minim
* @version 0.1.1-dev
**/
var Minim = {
/** Current version. */
VERSION... |
/**
* Meow speech bubble object.
*/
game.Meow = me.ObjectEntity.extend({
init: function(x, y, level) {
var settings = {};
settings.image = me.loader.getImage("meowyell");
settings.spritewidth = 24;
settings.spriteheight = 24;
this.parent(x, y, settings);
this.ren... |
/*
Slimbox v2.04 - The ultimate lightweight Lightbox clone for jQuery
(c) 2007-2010 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
/* Modified by Charly Le Prof (30 may 2012) charlyleprof2@gmail.com
- if vc == 0 vertical center for image
- if vc == 1 vertical center for image + caption
- if ir == ... |
/**
* @file Revoke a permission from a user to read data from another one
*/
'use strict'
let commander = require('commander'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
green = require('chalk').bold.green,
red = require('chalk').bold.red
commander
.command('revoke-permission <user> <permi... |
/**
* An example with a custom session store in mongoDB : mongoose-session
*/
// Load library
import sockpress from 'sockpress'
import mongoose from 'mongoose'
import mongooseSession from 'mongoose-session'
// Create new engine using mongoose session controller
const store = mongooseSession(mongoose)
const app = so... |
_gaq.push(['_trackPageview']);
// If awaiting activation
var waiting = true;
// If trusted exit, for exit confirmation
var trustedExit = false;
// Used to fade out subtitles after calculated duration
var subtitleTimer = false;
var subtitleVanishBaseMillis;
var subtitleVanishExtraMillisPerChar;
var subtitleHourlyTime... |
/**
* @class ForceDirectedNetwork
*
* Implements a force-directed network widget
*
* And here's an example:
*
* @example
* $("#div-id").ForceDirectedNetwork({
* minHeight : "300px",
* workspaceID : "workspace.1",
* token : "user-token-53"
* });
*
* @extends KBWi... |
//js todo/scripts/build.js
load("steal/rhino/rhino.js");
steal('steal/build').then('steal/build/scripts','steal/build/styles',function(){
steal.build('todo/scripts/build.html',{to: 'todo'});
});
|
import $ from "jquery"
import "bootstrap-sass"
$("#modal-result-form").on("show.bs.modal", function (event) {
const $button = $(event.relatedTarget)
const participantNames = $button.data("participant-names")
const appearanceIds = $button.data("appearance-ids")
const currentPoints = $button.data("current-points... |
const assert = require('assert');
const setup = require('../setup.js');
module.exports = () => {
describe('observeMany', () => {
it('fires once per set, however many properties change', () => {
const { component, target } = setup(`{foo} {bar}`, { foo: 1, bar: 2 });
const observed = [];
component.observeM... |
var uri=location.protocol+"//"+location.hostname+"/users/userMemesJSON?username="+$(".user-profile-userpage h2").text()+"&order=";var correctHash=["top","comments","date"];var fillTable=function(a){var b="";$.each(a,function(c,d){b+='<tr><td><a href="'+location.protocol+"//"+location.hostname+"/meme/"+d.Id+'">'+d.Title... |
(function () {
"use strict";
/**
* Keep track of all pointers and keys.
* @namespace HYPER.Input
*/
HYPER.Input = {};
/**
* Keep track of all pointers.
* @namespace HYPER.Input.Pointer
*/
HYPER.Input.Pointer = {
/**
* @property {array} point - Array ... |
import Vue from 'vue';
import SidebarMediator from '~/sidebar/sidebar_mediator';
import SidebarStore from '~/sidebar/stores/sidebar_store';
import SidebarService from '~/sidebar/services/sidebar_service';
import Mock from './mock_data';
describe('Sidebar mediator', () => {
beforeEach(() => {
Vue.http.interceptor... |
define({
"addTaskTip": "Adicione um ou mais filtros no widget e configure parâmetros para cada um deles.",
"enableMapFilter": "Remover filtro de camada pré-configurado do mapa.",
"newFilter": "Novo Filtro",
"filterExpression": "Expressão de filtro",
"layerDefaultSymbolTip": "Utilizar símbolo padrão da camada"... |
'use strict';
/**
* Module dependencies
*/
var fbMarketingsPolicy = require('../policies/fb-marketings.server.policy'),
fbMarketings = require('../controllers/fb-marketings.server.controller');
module.exports = function(app) {
// Fb marketings Routes
app.route('/api/fb-marketings').all(fbMarketingsPolicy.isAl... |
export const notify = (msg, style) => {
const $callout = $(`
<div class="callout ${style || ''}">
<p>${msg}</p>
</div>
`);
$('#notifications').append($callout);
window.setTimeout(() => $callout.remove(), 3000);
};
export const success = (msg) => notify(msg, "success");
export const info = (msg) => noti... |
/**
* @file Structure Builder
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
function StructureBuilder (structure) {
let currentModelindex = null
let currentChainid = null
let currentResname = null
let currentResno = null
let currentInscode = null
let currentHetero = null
let p... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var pkg = require('../package.json');
var argv = require('yargs').argv;
var browserSync = require('browser-sync');
var browserSyncSpa = require('browser-sync-spa');
var util = require('util');
var proxyMiddleware = r... |
const _delete = require('../delete'); // eslint-disable-line no-underscore-dangle
const AWS = require('aws-sdk-mock');
/* global describe it expect sinon before after */
describe('delete.handler', () => {
before(() => {
AWS.mock('DynamoDB.DocumentClient', 'delete', (params, callback) => {
callback(null);
... |
var expect = require('chai').expect
, Server = require('../../../../..')
, setup = require('../../../../setup')
, teardown = require('../../../../teardown')
, Constants = require('jsr-constants')
, OK = Constants.OK.toString()
, create = require('jsr-client')
, client
, sender;
describe('jsr-server (tc... |
/*jshint newcap:false*/
import Ember from "ember-metal/core"; // Ember.lookup
import jQuery from "ember-views/system/jquery";
// import {expectAssertion} from "ember-metal/tests/debug_helpers";
import { forEach } from "ember-metal/enumerable_utils";
import run from "ember-metal/run_loop";
import Namespace from "ember-r... |
/*!
* angular-loading-bar-fork v0.8.0
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2015 Wes Cruver
* License: MIT
*/
/*
* angular-loading-bar
*
* intercepts XHR requests and creates a loading bar.
* Based on the excellent nprogress work by rstacruz (more info in readme)
*
* (c) 20... |
exports.buildUAString = function buildUAString() {
var conf = require('../package.json');
return conf.name + ' / ' + conf.version;
};
|
var classstd_1_1net_1_1ip__address__base =
[
[ "ip_address_base", "dd/d9c/classstd_1_1net_1_1ip__address__base.html#acc822b61826c2365cfd77f103ba659e0", null ],
[ "ip_address_base", "dd/d9c/classstd_1_1net_1_1ip__address__base.html#a0b2564a1f6e2016bf1a6de8c41d88dc2", null ],
[ "getFamily", "dd/d9c/classstd_1... |
// Post schema
class Post {
comments: ?Array<Comment>;
content: string;
date: Date;
id: string;
image: ?string;
link: ?Object;
user: ?Object;
likes: number;
categories: Array<string>;
}
|
/**
* @license AngularJS v1.4.2-build.4069+sha.ad7200e
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngRoute
* @description
*
* # ngRoute
*
* The `ngRoute` module provides routing and deeplinking services ... |
/**
*
* ChatLoadMore
*
*/
import React, { PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import pallete from 'styles/colors';
import messages from './messages';
const Wrapper = styled.div`
display: flex;
justify-content: center;
align-items: cent... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.cal... |
import React, { PropTypes } from "react";
import Dialog from "rc-dialog";
import ErrorList from "../ErrorList";
import { connect } from "react-redux";
class BaseModal extends React.Component {
static propTypes = {
show: PropTypes.bool,
errorAddr: PropTypes.array,
closeBtnLabel: PropTypes.string,... |
/* globals module */
/**
* @module baasicApiHttp
* @description `baasicApiHttp` service is a core Baasic service that facilitates communication with the Baasic API. `baasicApiHttp` service is based on Angular '$http' service. For more information please visit online angular [documentation](https://docs.angularjs.org... |
// foucs時のerr処理
$('.form-group input').focus(function() {
if($(this).val() != '') {
$(this).parent().removeClass('has-error');
$(this).next('.text-danger').hide();
}
}).blur(function() {
if($(this).val() == '') {
$(this).parent().addClass('has-error');
$(this).next('.text-danger').show();
}
if($(this... |
function draw_red(region) {
var geo = region.geometries[1].coordinates;
var array = [];
for (var j=0; j<geo.length; j++) {
var coords = geo[j];
if (coords.length > 1) {
var polygonCoords = [];
for(var i=0; i<coords.length; i++) {
polygonCoords.push([coords[i][1], coords[i][0]]);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.