code stringlengths 2 1.05M |
|---|
// Init express server
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var server = require('http').Server(app);
server.listen(3000);
console.log("started listenning on port 3000");
// Subscribe to lexa's router stream and update the LED accordingly
// var onoff = requir... |
// fetch() polyfill for making API calls.
import 'whatwg-fetch';
// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
import objectAssign from 'object-assign';
Object.assign = objectAssign;
|
!function e(n,r,t){function o(a,u){if(!r[a]){if(!n[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var f=r[a]={exports:{}};n[a][0].call(f.exports,function(e){var r=n[a][1][e];return o(r?r:e)},f,f.exports,e,n,r,t)}return r[a].exports... |
// getPostsParameters gives an object containing the appropriate find and options arguments for the subscriptions's Posts.find()
getPostsParameters = function (terms) {
var maxLimit = 200;
// console.log(terms)
// note: using jquery's extend() with "deep" parameter set to true instead of shallow _.ext... |
// ==UserScript==
// @name Kiss Simple Infobox hider
// @description Hides the infobox on kissanime.com, kisscartoon.me and kissasian.com player sites
// @include https://kissanime.ru/Anime/*/*
// @include https://kimcartoon.to/Cartoon/*/*
// @include https://k... |
'use strict';
const fs = require('fs');
const Q = require('q');
const exec = require('child_process').exec;
const searchpaths = ["/bin/xset"];
class XSetDriver {
constructor(props) {
this.name = "Backlight Control";
this.devicePath = "xset";
this.description = "Screensaver control via Xwi... |
var fs = require("fs");
var longStr = (new Array(10000)).join("welefen");
while(true){
fs.writeFileSync("1.txt", longStr);
} |
/**
* Copyright (c) 2011 Bruno Jouhier <bruno.jouhier@sage.com>
*
* 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,
... |
/*
* Copyright 2016 Joyent, Inc., All rights reserved.
*
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DropdownMenuItemType;
(function (DropdownMenuItemType) {
DropdownMenuItemType[DropdownMenuItemType["Normal"] = 0] = "Normal";
DropdownMenuItemType[DropdownMenuItemType["Divider"] = 1] = "Divider";
DropdownMenuItemType[DropdownM... |
/**
* Export exceptions
* @type {Object}
*/
module.exports = {
Schema: require('./Schema'),
Value: require('./Value')
}
|
// flow-typed signature: da1b0a6922881fd3985864661b7297ce
// flow-typed version: <<STUB>>/babel-eslint_v^10.0.3/flow_v0.113.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work wit... |
var express = require('express');
var userRouter = express.Router();
var passport = require('passport');
var Model = require('../models/user');
var authenticate = require('./auth');
/* GET all the users */
exports.getAll = function(req, res, next) {
Model.Users.forge()
.fetch({ columns: ['_id', 'username', '... |
import Float from 'ember-advanced-form/components/float';
export default Float;
|
document.getElementsByTagName('body')[0].style.overflow = 'hidden';
window.scrollTo(70, 95); |
var url = args.url;
var limit = args.limitl;
var defaultWaitTime = Number(args.wait_time_for_polling)
uuid = executeCommand('urlscan-submit-url-command', {'url': url})[0].Contents;
uri = executeCommand('urlscan-get-result-page', {'uuid': uuid})[0].Contents;
var resStatusCode = 404
var waitedTime = 0
while(resStatusCo... |
import User from '../models/user.model';
import Post from '../models/post.model';
import UserPost from '../models/users_posts.model';
import fs from 'fs';
import path from 'path';
/**
* Load user and append to req.
*/
function load(req, res, next, id) {
User.get(id)
.then((user) => {
req.user = user; // eslint-... |
define(function (require) {
require('plugins/timelion/directives/expression_directive');
const module = require('ui/modules').get('kibana/timelion_vis', ['kibana']);
module.controller('TimelionVisParamsController', function ($scope, $rootScope) {
$scope.vis.params.expression = $scope.vis.params.expression ||... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MP... |
(function() {
'use strict';
angular.module('newApp')
.controller('newAppCtrl', newAppCtrl);
function newAppCtrl() {
}
})();
|
let upath = require('upath'),
through2 = require('through2'),
paths = require('../../project.conf.js').paths,
RegexUtil = require('../util/RegexUtil');
module.exports = class StreamReplacer {
constructor(replacements = {}) {
this.replacements = replacements;
}
/**
* Add a transf... |
/**
* WebCLGLVertexFragmentProgram Object
* @class
* @constructor
*/
WebCLGLVertexFragmentProgram = function(gl, vertexSource, vertexHeader, fragmentSource, fragmentHeader) {
this.gl = gl;
var highPrecisionSupport = this.gl.getShaderPrecisionFormat(this.gl.FRAGMENT_SHADER, this.gl.HIGH_FLOAT);
this.precision = (hi... |
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
interval: 200,
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: false,
newcap: true,
noarg: ... |
//borrowed from stefanocudini bootstrap-list-filter
(function($) {
$.fn.btsListFilterContacts = function(inputEl, options) {
var searchlist = this,
searchlist$ = $(this),
inputEl$ = $(inputEl),
items$ = searchlist$,
callData,
callReq; //last callData execution
function tmpl(str, data) {
retu... |
/*!
* jquery.initialize. An basic element initializer plugin for jQuery.
*
* Copyright (c) 2014 Barış Güler
* http://hwclass.github.io
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* http://docs.jquery.com/Plugins/Authoring
* jQuery authoring guidelines
*
* Launch : July 201... |
/**
* utility library
*/
var basicAuth = require('basic-auth');
var fs = require('fs');
/**
* Simple basic auth middleware for use with Express 4.x.
*
* @example
* app.use('/api-requiring-auth', utils.basicAuth('username', 'password'));
*
* @param {string} username Expected username
* @param {string}... |
version https://git-lfs.github.com/spec/v1
oid sha256:5f5740cfcc24e2a730f7ea590ae0dc07d66d256fd183c46facf3fdfeb0bd69d2
size 3654
|
version https://git-lfs.github.com/spec/v1
oid sha256:467bccdb74ef62e6611ba27f338a0ba0c49ba9a90ef1facb394c14de676318cf
size 1150464
|
version https://git-lfs.github.com/spec/v1
oid sha256:4f8b1998d2048d6a6cabacdfb3689eba7c9cb669d6f81dbbd18156bdb0dbe18f
size 1880
|
import React from 'react'
import { FormControl } from 'react-bootstrap'
import './@FilterListInput.css'
const FilterListInput = ({onFilter, searchValue}) => {
let handleFilter = e => {
onFilter(e.target.value)
}
return (<FormControl className='FilterListInput' type='text' defaultValue={searchValue} placehold... |
/*!
* ear-pipe
* Pipe audio streams to your ears
* Dan Motzenbecker <dan@oxism.com>
* MIT Licensed
*/
"use strict";
var spawn = require('child_process').spawn,
util = require('util'),
Duplex = require('stream').Duplex,
apply = function(obj, method, args) {
return obj[method].apply(obj, args... |
/**
* @description - The purpose of this model is to lookup various Drinking activities for a user
*/
var baseModel = require('./base');
var Drink;
Drink = baseModel.Model.extend({
tableName: 'drink'
});
module.exports = baseModel.model('Drink', Drink); |
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
'jsx': true
},
},
globals: {
enz: true,
xhr_calls: true,
},
plugins: [
'react'
],
extends: 'react-app',
rules: {
'semi': [2, 'never'],
// allow paren-le... |
define(['jquery'], function ($) {
if (!Array.prototype.reduce) {
/**
* Array.prototype.reduce polyfill
*
* @param {Function} callback
* @param {Value} [initialValue]
* @return {Value}
*
* @see http://goo.gl/WNriQD
*/
Array.proto... |
ml.module('three.scenes.Fog')
.requires('three.Three',
'three.core.Color')
.defines(function(){
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*/
THREE.Fog = function ( hex, near, far ) {
this.color = new THREE.Color( hex );
this.near = ( near !== undefined )... |
/**
* @file Generate ico image files.
* @memberof module:ci/tasks
* @function icoTask
* @param grunt
* @param {object} config - Task configuration.
* @param {function} callback - Callback when done.
*
*/
"use strict";
var ico = require('../../lib/commands/ico');
module.exports = function (grunt, config, call... |
'use strict';
const path = require('path')
const webpack = require('webpack')
const pkg = require('./package.json')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const WebpackNotifierPlugin = require('webpack-notifier')
var paths = {
dist: path.join(__dirname, 'dist'),
src: path.join(__dirname, 'sr... |
var EcommerceProductsEdit = function () {
var handleImages = function() {
// see http://www.plupload.com/
var uploader = new plupload.Uploader({
runtimes : 'html5,html4',
browse_button : document.getElementById('tab_images_uploader_pickfiles'), // you can pass in i... |
var dotBeautify = require('../index.js');
var fs = require('fs');
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var setup = 'function start (resp)\
{\
resp.writeHead(200, {"Content-Type": "text/html"\
});\
fs.readFile(filename, "utf8", function(err, data) {\
if (e... |
function Block() {
this.isAttacked = false;
this.hasShip = false;
this.shipType = "NONE";
this.attackable = true;
this.shipSize = 0;
this.direction = "no"
}
function Ship(x,y,direction,size){
this.x = x;
this.y = y;
this.direction = direction;
this.size = size;
this.win = fa... |
import Ember from 'ember';
export default Ember.Component.extend({
colorMap: {
running: 'green',
waiting: 'orange',
terminated: 'red'
},
getStatusByName(name) {
let retval = null;
Ember.$.each(this.get('containerStatuses'), (i, containerStatus) => {
if (name === containerStatus.name) {... |
define(function() {
var TramoView = Backbone.View.extend({
tagName: 'tr',
template: _.template($('#tramo-tmpl').html()),
events: {},
initialize: function() {},
render: function(index) {
$(this.el).html(this.template(this.model.toJSON()))
.add... |
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/'],
moduleNameMapper: {
'^@/(.... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.bitcoin = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bc',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80,
};
exports.regtest = {
messagePrefix:... |
import React from 'react';
import PropTypes from 'prop-types';
import './index.css';
const TemplateWrapper = ({children}) => <div>{children()}</div>;
TemplateWrapper.propTypes = {
children: PropTypes.func,
};
export default TemplateWrapper;
|
'use strict';
describe('Purchases E2E Tests:', function () {
describe('Test purchases page', function () {
it('Should report missing credentials', function () {
browser.get('http://localhost:3000/purchases');
expect(element.all(by.repeater('purchase in purchases')).count()).toEqual(0);
});
});
... |
(function(){
function render (context, points) {
console.log ('render called');
var angle = 0,
center = new Point3D (400,400,400);
return function () {
context.clearRect(0,0,800,600);
if (points.length < 1000) {
points.push (randomPoint... |
version https://git-lfs.github.com/spec/v1
oid sha256:59e6f2fa6c70c504d839d897c45f9a84348faf82342a31fb5818b1deb13861fa
size 294301
|
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex('coffee').del()
.then(function () {
// Inserts seed entries
return knex('coffee').insert([
{
id: 1,
name: 'Three Africas',
producer_id: 1,
flavor_profile: 'Fruity, ra... |
'use strict';
var express = require('express'),
router = express.Router(),
Post = require('../models/post');
module.exports = function (app) {
app.use('/', router);
};
router.get('/', function (req, res, next) {
var posts = [new Post({
"title": "dummy posty"
}), new Post()];
res.render('index', {
... |
"use strict";
const express = require('express');
const router = express.Router();
const quoteCtrl = require('../controllers/quote.js');
//returns an array of stocks that potentially match the query string
//no result will return an empty string
router.get('/quote/:quote', quoteCtrl.quote);
module.exports = router; |
var Blasticator = function() {
var init = function() {
registerSettings();
};
var showDialogue = function() {
new ModalDialogue({
message:'This will destroy EVERYTHING. FOREVER.',
buttons:[{
label:'Keep my data',
role:'secondary',
autoClose:true
},{
lab... |
(function ()
{
window.AgidoMockups = window.AgidoMockups || {};
AgidoMockups.icons = AgidoMockups.icons || {};
AgidoMockups.icons.underline = new Kinetic.Group({name: "underlineIcon", width: 18, height: 20});
AgidoMockups.icons.underline.add(new Kinetic.Text({text: "U", fill: '#000', fontSize: 20, fontS... |
(function() {
var myPromise = new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition((pos) => {
resolve(pos);
})
});
function parsePosition(pos) {
return {
lat: pos.coords.latitude,
lon: pos.coords.longitude
}
}
... |
module.exports = function(grunt) {
grunt.initConfig({
// package.json is shared by all examples
pkg: grunt.file.readJSON('../../package.json'),
// Uglify the file at `src/foo.js` and output the result to `dist/foo.min.js`
//
// It's likely that this task is preceded by a `grunt-contrib-concat` t... |
'use strict';
angular.module('adsApp').controller('AdminTownsController', ['$scope', '$rootScope', 'catalog', 'config', 'notify',
function ($scope, $rootScope, catalog, config, notify) {
$rootScope.pageTitle = 'Towns';
var usersConfig = config.users;
var townsParams = {
start... |
/**
* @providesModule Case
*/
const DOM = require('DOM');
var Case = (function () {
/**
* A Case is a test against an element.
*/
function Case (attributes) {
return new Case.fn.init(attributes);
}
// Prototype object of the Case.
Case.fn = Case.prototype = {
constructor: Case,
init: fun... |
/*!
* Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0)
* Copyright 2013-2017 Start Bootstrap
* Purchase a license to use this theme at (https://wrapbootstrap.com)
*/
/*!
* Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0)
* Copyright 2013-2017 Start Bootstrap
* Purchase a licen... |
import pagination from '@admin/store/modules/paginationStore'
import {HTTP} from '@shared/config/api'
const state = {
clientList: []
}
const getters = {
getClientList: state => state.clientList
}
const mutations = {
set(state, {type, value}) {
state[type] = value
},
delete(state, {id}) {
... |
import "cutaway"
import { assert, report } from "tapeless"
import createPlayer from "./main.js"
const { ok, notOk, equal } = assert
try {
createPlayer()
} catch (e) {
ok
.describe("will throw sans video input")
.test(e, e.message)
}
const source = document.createElement("video")
source.src = ""
const {... |
class dximagetransform_microsoft_maskfilter {
constructor() {
// Variant Color () {get} {set}
this.Color = undefined;
}
}
module.exports = dximagetransform_microsoft_maskfilter;
|
/**
* Calculates the radius of the Hill Sphere,
* for a body with mass `m1`
* @param {Number} m1 Mass of the lighter body
* @param {Number} m2 Mass of the heavier body
* @param {Number} a Semi-major axis
* @param {Number} e Eccentricity
* @return {Number} Hill Sphere radius
*/
function hillSphere( m1, ... |
var httpRequester = (function() {
var makeHttpRequest = function(url, type, data) {
var deferred = $.Deferred();
$.ajax({
url: url,
type: type,
contentType: 'application/json',
data: data,
success: function(resultData) {
def... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCopy extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="144,416 144,400 144,112 112,112 112,448 352,448 352,416 160,416 "></polygon>
<g>
<path d="M325.3,64H160v... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import User from './User';
import Loading from '../../components/Icon/Loading';
import './InterestingPeople.less';
import steemAPI... |
var pagerun = require('pagerun');
// set for debug
// pagerun.modulesRoot = '../';
pagerun.mode = 'test';
// pagerun.loadNpmPlugin('httpresponse');
pagerun.loadNpmPlugin('httpsummary');
pagerun.loadNpmPlugin('httperror');
pagerun.loadNpmPlugin('htmlhint');
pagerun.loadNpmPlugin('jserror');
pagerun.loadNpmPlugin('page... |
'use strict';
$(function() {
$.material.init();
$('#libraries').btsListFilter('#searcher', {
itemChild: 'h3',
resetOnBlur: false
});
$('#searcher').focus();
});
|
/**
* Copyright 2016 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
/**
* Allows to instantiate a mock implementations of {@link AxStorage}, compatible to the "axStorage" injection.
*
* @module widget_services_storage_mock
*/
import { create as createGlobalStorageMock } from './st... |
import {appendHtml, combine} from './../util';
const ELEMENT_NAMES = {
frameName: 'text-frame',
messageName: 'text-message',
indicatorName: 'text-indicator'
};
let createElements = (container, names) => {
const elements = '\
<div class="text-frame" id="' + names.frameName + '">\
<span class="text-me... |
//= require sencha_touch/sencha-touch
//= require_directory ./sencha_touch/app
//= require_tree ./sencha_touch/app/models
//= require_tree ./sencha_touch/app/stores
//= require_tree ./sencha_touch/app/controllers
//= require_tree ./sencha_touch/app/views
|
;(function() {
function ToerismeApp(id, parentContainer) {
this.API_URL = 'https://datatank.stad.gent/4/toerisme/visitgentevents.json';
this.id = id;
this.parentContainer = parentContainer;
this.loadData = function() {
var that = this;
var xhr = new XMLHttpRequest();
xhr.ope... |
module.exports = "module-one-A-model";
|
$(function () {
'use strict';
const notificationType = {
success: 'Success',
error: 'Error',
info: 'Info'
},
notificationTypeClass = {
success: 'toast-success',
info: 'toast-info',
error: 'toast-error'
};
function initSignalR... |
/**
* Ensures that the callback pattern is followed properly
* with an Error object (or undefined or null) in the first position.
*/
'use strict'
// ------------------------------------------------------------------------------
// Helpers
// -------------------------------------------------------------------------... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The Date.prototype.getMinutes property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
es5id: 15.9.5.20_A3_T1
description: Checking ReadOnly attribute
---... |
module.exports = function(sails) {
var Agenda = require('agenda'),
util = require('util'),
_ = require('lodash'),
os = require("os"),
agenda = new Agenda()
agenda.sails = sails;
var stopServer = function() {
agenda.stop(function() {
console.log("agenda stopped");
});
... |
export class NewForm {
update() {
}
}
|
var grunt = require('grunt');
var fs = require('fs');
var gruntTextReplace = require('../lib/grunt-match-replace');
var replace = function (settings) {
return gruntTextReplace.replace(settings);
};
exports.textReplace = {
'Test error handling': {
setUp: function (done) {
grunt.file.copy('test/text_f... |
var sourceFolder = 'src',
destFolder = 'public',
configFolder = 'config';
module.exports = {
folders: {
source: sourceFolder,
dest: destFolder
},
files: {
scripts: [
`${sourceFolder}/js/utils.js`,
`${sourceFolder}/js/sprites/weapon.js`,
... |
module.exports = {
server: {
host: '0.0.0.0',
port: 3000
},
database: {
host: '158.85.190.240',
port: 27017,
db: 'hackathon',
username: 'administrator',
password: 'hunenokGaribaldi9'
}
}; |
'use strict';
/* istanbul ignore next */
/* eslint-disable no-console */
/**
* Handle failures in the application by terminating.
* @param {Exception} err - Exception to handle.
*/
module.exports = (err) => {
console.log(err);
console.log(err.stack);
process.exit(-1);
};
|
__history = [{"date":"Sun, 30 Mar 2014 19:01:57 GMT","sloc":70,"lloc":24,"functions":1,"deliveredBugs":0.13739293667703853,"maintainability":55.96019418981483,"lintErrors":0,"difficulty":6.375}] |
import Omi from 'omi/dist/omi'
import { CellsTitle, Cells, CellHeader, CellBody, CellFooter } from '../cell'
Omi.makeHTML('CellsTitle', CellsTitle);
Omi.makeHTML('Cells', Cells);
Omi.makeHTML('CellHeader', CellHeader);
Omi.makeHTML('CellBody', CellBody);
Omi.makeHTML('CellFooter', CellFooter);
export default class Li... |
/**
@module ember-flexberry-gis
*/
import Ember from 'ember';
/**
Class implementing base stylization for markers.
@class BaseMarkerStyle
*/
export default Ember.Object.extend({
/**
Gets default style settings.
@method getDefaultStyleSettings
@return {Object} Hash containing default style settin... |
(() => {
'use strict';
angular.module('RestTestApp')
.config(($urlRouterProvider, $locationProvider) => {
$locationProvider.html5Mode(true);
})
.config(function(RestTestStateConfigProvider) {
RestTestStateConfigProvider.initialize();
});
})();
|
/* *
* The MIT License
*
* Copyright (c) 2015, Sebastian Sdorra
*
* 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... |
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
/... |
"use strict";
var CropTouch = (function () {
function CropTouch(x, y, id) {
this.id = id || 0;
this.x = x || 0;
this.y = y || 0;
this.dragHandle = null;
}
return CropTouch;
}());
exports.CropTouch = CropTouch;
//# sourceMappingURL=cropTouch.js.map |
(function () {
'use strict';
angular
.module('Debug', ['pullrefresh']);
})();
|
module.exports = function(knex) {
describe('Transactions', function() {
it('should be able to commit transactions', function(ok) {
var id = null;
return knex.transaction(function(t) {
knex('accounts')
.transacting(t)
.returning('id')
.insert({
f... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
CreateDeployment
Create a RightScale Deployment.
*/
var CreateDeployment = function(session) {
/*
Create a new instance of the CreateDeployment Choreo. A TembooSession object, containing a valid
set o... |
var path = require('path');
var webpack = require('webpack');
var _ = require('lodash');
var baseConfig = require('./base');
// Add needed plugins here
var BowerWebpackPlugin = require('bower-webpack-plugin');
var config = _.merge({
entry: [
'webpack-dev-server/client?http://127.0.0.1:8000',
'webpack/hot/o... |
/*eslint-env mocha*/
/*
* mochify.js
*
* Copyright (c) 2014 Maximilian Antoni <mail@maxantoni.de>
*
* @license MIT
*/
'use strict';
var assert = require('assert');
var fs = require('fs');
var run = require('./fixture/run');
var sandbox = require('./fixture/sandbox');
describe('node', function () {
it('passe... |
var http = require('http')
var https = require('https')
var corsify = require('corsify')
var collect = require('stream-collector')
var pump = require('pump')
var iterate = require('random-iterate')
var limiter = require('size-limit-stream')
var eos = require('end-of-stream')
var flushHeaders = function (res) {
if (r... |
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users');
var centers = require('../../app/controllers/centers');
// Centers Routes
app.route('/centers')
.get(centers.list)
app.route('/centers')
.get(centers.create)
app.route('/centers/:centerId')
.get(centers.r... |
(function(){$(document).ready(function(){$(".joindin").each(function(){var e=$(this);var t=e.attr("href");var n=parseInt(t.substr(t.lastIndexOf("/")+1));$.getJSON("https://api.joind.in/v2.1/talks/"+n+"?callback=?",function(t){var n=t.talks[0].average_rating;if(n>0){e.after(' <img src="/images/ji-ratings/rating-'+n+'.gi... |
const path = require('path')
const merge = require('webpack-merge')
const webpack = require('webpack')
const baseWebpackConfig = require('./webpack.base.config')
const ExtractTextPlugin = require("extract-text-webpack-plugin")
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
function resolve (di... |
export default {
html: `
<p>42</p>
<p>42</p>
`,
async test({ assert, component, target }) {
await component.updateStore(undefined);
assert.htmlEqual(target.innerHTML, '<p>undefined</p><p>42</p>');
await component.updateStore(33);
assert.htmlEqual(target.innerHTML, '<p>33</p><p>42</p>');
await compon... |
// extglyde
//
// Glyde Glue Plugin
// (c)2015 by Cylexia, All Rights Reserved
//
// Version: 1.15.0625
//
// MIT License
var ExtGlyde = {
GLUE_STOP_ACTION: -200,
plane: null, // Canvas
resources: null,
styles: null,
buttons: null,
keys: null,
button_sequence: [],
timers: null,
timer_manager:... |
import React from 'react';
import { applyRouterMiddleware, Router, Route } from 'dva/router';
import { useScroll } from 'react-router-scroll';
import App from '@/app/App';
function RouterConfig({ history }) {
return (
<Router history={history} render={applyRouterMiddleware(useScroll())}>
<Route path="/" c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.