code stringlengths 2 1.05M |
|---|
import React, { Component, PropTypes } from 'react';
import { Image } from 'react-bootstrap';
require('./styles.scss');
class SocialBar extends Component {
constructor(props) {
super(props);
}
render() {
const { icon, url } = this.props;
return (
<a href={url} target="_blank">
... |
'use strict';
describe('heroList', function(){
//Load module that contains the heroList component
beforeEach(module('heroList'));
describe('HeroListController', function(){
it('should create a `heroes` model with 6 heroes', inject(function($componentController){
var ctrl = $componentController('heroList');
... |
// to be used if new modules are added to MSF.
Mamoru.Sync.allModules = function(){
var moduleFixtures = {
exploit: 'module.exploits',
post: 'module.post',
auxiliary: 'module.auxiliary',
payload: 'module.payloads',
encoder: 'module.encoders',
nop: 'module.nops',
}... |
document.getElementById('input_search').onfocus = function () {
document.getElementById('search').classList.add('activeSearch');
};
document.getElementById('input_search').onblur = function () {
document.getElementById('search').classList.remove('activeSearch');
};
try {
window.$ = window.jQuery = require('jqu... |
/// <reference path="lib/jquery-2.0.3.js" />
define(["httpRequester"], function (httpRequester) {
function getStudents() {
var url = this.url + "api/students/";
return httpRequester.getJSON(url);
}
function getMarksByStudentId(studentId) {
var url = this.url + "api/students/" + st... |
/**
* WhatsApp service provider
*/
module.exports = {
popupUrl: 'whatsapp://send?text={title}%0A{url}',
popupWidth: 600,
popupHeight: 450
}; |
var path = require('path'),
HtmlReporter = require('protractor-html-screenshot-reporter');
exports.config = {
chromeDriver: 'node_modules/chromedriver/bin/chromedriver',
// seleniumAddress: 'http://localhost:4444/wd/hub',
// Boolean. If true, Protractor will connect directly to the browser Drivers
... |
/**
* format currency
* @ndaidong
**/
const {
isNumber,
} = require('bellajs');
const formatCurrency = (num) => {
const n = Number(num);
if (!n || !isNumber(n) || n < 0) {
return '0.00';
}
return n.toFixed(2).replace(/./g, (c, i, a) => {
return i && c !== '.' && (a.length - i) % 3 === 0 ? ',' + c... |
import React from 'react'
import PropTypes from 'prop-types'
import FormGroup from '../forms/FormGroup'
import InputColor from '../forms/InputColor'
const ColorStackOption = ({ label, name, value, definitions, required, onChange, error }) => {
// default value may be null
if (value === null) {
value = ''
}
... |
const td = require('testdouble');
const expect = require('../../../../helpers/expect');
const RSVP = require('rsvp');
const Promise = RSVP.Promise;
const adbPath = 'adbPath';
const deviceUUID = 'uuid';
const apkPath = 'apk-path';
const spawnArgs = [ad... |
app.config(function ($routeProvider, $locationProvider) {
"use strict";
$routeProvider.when('/',
{
controller: 'HomeController',
templateUrl: '/static/apps/main/views/home.html',
resolve: {
tasks: function (TaskService) {
return Tas... |
import React from 'react';
import { getCategoryGroups } from '../selectors/categoryGroups';
import { getCategoriesByGroupId } from '../selectors/categories';
import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems';
import { getTransactionsSumUpT... |
'use strict';
module.exports = {
db: 'mongodb://localhost/equinix-test',
port: 3001,
app: {
title: 'Equinix - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callbac... |
import { injectReducer } from '../../../../store/reducers'
export default (store) => ({
path: 'admin/positions/add',
/* Async getComponent is only invoked when route matches */
getComponent (nextState, cb) {
/* Webpack - use 'require.ensure' to create a split point
and embed an async module loader (... |
'use strict';
var fetchUrl = require('fetch').fetchUrl;
var packageInfo = require('../package.json');
var httpStatusCodes = require('./http.json');
var urllib = require('url');
var mime = require('mime');
// Expose to the world
module.exports.resolve = resolve;
module.exports.removeParams = removeParams;
/**
* Reso... |
"use strict"
var o = require("ospec")
var m = require("../../render/hyperscript")
o.spec("hyperscript", function() {
o.spec("selector", function() {
o("throws on null selector", function(done) {
try {m(null)} catch(e) {done()}
})
o("throws on non-string selector w/o a view property", function(done) {
try... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["choose_file"] = factory();
else
root["c... |
function move(Restangular, $uibModal, $q, notification, $state,$http) {
'use strict';
return {
restrict: 'E',
scope: {
selection: '=',
type: '@',
ngConfirmMessage: '@',
ngConfirm: '&'
},
link: function(scope, element, attrs) {
... |
let mongoose = require('mongoose');
let URL = process.env.MONGO_URL || 'localhost';
let USER = process.env.MONGO_USR || '';
let PASSWORD = process.env.MONGO_PWD || '';
mongoose.connect(`mongodb://${USER}:${PASSWORD}@${URL}`); //TODO doens't work for localhost
console.log(`Connecting to ${URL}...`);
let db = mongoose.... |
define([], function() {
return Backbone.View.extend({
tagName: "a",
className: "projectlink",
attributes: {
href: "#"
},
template: _.template("<%- name %>"),
events: {
"click": "toggleSelection"
},
initialize: function() {
this.listenTo(this.model, "change:selected", function(m, selected) {
... |
'use strict';
(function() {
describe('HomeController', function() {
//Initialize global variables
var scope,
HomeController,
myFactory;
// Load the main application module
beforeEach(module(ApplicationConfiguration.applicationModuleName));
beforeEach(inject(function($controller, $rootScope)... |
/** @file This file contains the functions to adjust an existing polygon. */
/**
* Creates the adjusting event
* @constructor
* @param {string} dom_attach - The html element where the polygon lives
* @param {array} x - The x coordinates for the polygon points
* @param {array} y - The y coordinates for t... |
'use strict';
module.exports = {
images: {
files: [
{
cwd : 'src/assets/img/',
src : '**/*',
dest : '.build/img/',
flatten : false,
expand : true
}
]
},
config: {
file... |
// Write a program that extracts from a given text all palindromes, e.g. "ABBA", "lamal", "exe".
function findPalindromes(input) {
var words = input.replace(/\W+/g, ' ').replace(/\s+/, ' ').trim().split(' '),
palindromes = [],
length = words.length,
currentWord,
i;
for (i = 0;... |
// 19. Write a JavaScript function that returns array elements larger than a number.
//two agrs - an array and a number to be larger than
function isGreater(arr, num) {
//set up an array to contain the results
var resultArray = [];
//iterate through based on length of the arr
for(var i = 0; i < arr.length; i++... |
'use strict';
const signup = require('./signup');
const handler = require('feathers-errors/handler');
const notFound = require('./not-found-handler');
const logger = require('./logger');
module.exports = function() {
// Add your custom middleware here. Remember, that
// just like Express the order matters, so err... |
'use strict';
var form = $('[name="uploadForm"]');
exports.getForm = function() {
return form;
};
exports.setDetails = function(url, id) {
form.element(by.model('inputText')).sendKeys(url);
form.element(by.model('snapshotId')).sendKeys(id);
};
exports.submit = function() {
form.element(by.css('[ng-c... |
module.exports = {
'resulting promise should be immediately rejected' : function(test) {
var promise = promiseModule.reject('error');
test.ok(promise._status === -1);
test.done();
},
'resulting promise should be rejected with argument if argument is not a promise' : function(test) {... |
'use strict';
require('mocha');
const assert = require('assert');
const Generator = require('..');
let base;
describe('.task', () => {
beforeEach(() => {
base = new Generator();
});
it('should register a task', () => {
const fn = cb => cb();
base.task('default', fn);
assert.equal(typeof base.ta... |
import containers from './containers'
import ui from './ui'
import App from './App'
module.exports = {...containers, ...ui, App} |
'use strict';
// Production specific configuration
// =================================
module.exports = {
// Server IP
ip: process.env.OPENSHIFT_NODEJS_IP ||
process.env.IP ||
undefined,
// Server port
port: process.env.OPENSHIFT_NODEJS_PORT ||
process.env.PORT |... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const repl = require('repl');
const program = require('commander');
const esper = require('..');
const Engine = esper.Engine;
function enterRepl() {
function replEval(cmd, context, fn, cb) {
engine.evalDetatched(cmd).then(function(result) {
cb(null, r... |
const express = require('express');
const router = express.Router();
const queries = require('../db/queries');
const knex = require('../db/knex.js');
const request = require('request');
router.get('/clear', (req, res, next) => {
queries.clearStationsTable((results) => {
console.log(results);
});
res.redirect... |
version https://git-lfs.github.com/spec/v1
oid sha256:8b2c75ae8236614319bbfe99cee3dba6fa2183434deff5a3dd2f69625589c74a
size 391
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rx_1 = require("rx");
/* tslint:enable */
function cache(callback) {
var cached$ = this.replay(undefined, 1);
var subscription = cached$.connect();
callback(function () { return subscription.dispose(); });
return cached$;
}... |
var chai = require('chai');
var should = chai.should();
var pictogramResponse = require('../../../lib/model/response/pictogramResponse');
describe('pictogramResponse model test', function () {
var id = 'id';
var category = 'category';
var url = 'url';
it('should create model', function (done) {
var pict... |
"use strict";
/**
* @license
* Copyright 2017 Google Inc. 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.apache.org/licenses/LICENSE-2.0
*
* Unless... |
import React from "react";
import { useResponse } from "@curi/react-dom";
import NavLinks from "./NavLinks";
export default function App() {
let { response } = useResponse();
let { body: Body } = response;
return (
<div>
<NavLinks />
<Body response={response} />
</div>
);
}
|
import { Tween } from '../core';
import { mat4 } from '../math';
export class MatrixTween extends Tween {
action() {
for (let i = 0; i < this.from.length; i++) {
this.object[i] = this.from[i] + this.current_step * (this.to[i] - this.from[i]);
}
}
pre_start() {
super.pre_start();
this.fro... |
import React from 'react';
import MobileTearSheet from './MobileTearSheet';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import ActionInfo from 'material-ui/lib/svg-icons/action/info';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-u... |
module.exports = function Boot(game) {
return {
preload: function(){
game.load.image('mars', '/assets/images/mars.png');
},
create: function(){
//This is just like any other Phaser create function
console.log('Boot was just loaded');
this.mars = game.add.sprite(0, 0, 'mars');
... |
var topics = require('../data').topics;
console.log(topics);
var result = topics.filter(function (topic) { //filter renvoie les 'true'
return topic.user.name === 'Leonard'; //? true : false;
});
var result2 = topics.filter(topic=>topic.user.name === 'Leonard');
var titles = topics.map(function (topic) {
retu... |
StatsGopher.PresenceMonitor = function PresenceMonitor (opts) {
opts = opts || {};
this.statsGopher = opts.statsGopher;
this.key = opts.key;
this.send = this.executeNextSend;
this.paused = false;
}
StatsGopher.PresenceMonitor.prototype = {
ignoreNextSend: function () {
},
queueNextSend: function () {
... |
app.service('operacoes', function() {
this.somar = function(valor1, valor2) {
return valor1 + valor2;
}
this.subtrair = function(valor1, valor2) {
return valor1 - valor2;
}
});
|
function paddAppendClear() {
jQuery('.append-clear').append('<div class="clear"></div>');
}
function paddWrapInner1() {
jQuery('.wrap-inner-1').wrapInner('<div class="inner"></div>');
}
function paddWrapInner3() {
jQuery('.wrap-inner-3').wrapInner('<div class="m"></div>');
jQuery('.wrap-inner-3').prepend('<div c... |
/* globals $ */
const modals = window.modals;
const footer = window.footer;
const notifier = window.notifier;
const admin = window.admin;
((scope) => {
const modalLogin = modals.get("login");
const modalRegister = modals.get("register");
const helperFuncs = {
loginUser(userToLogin) {
co... |
(function () {
'use strict';
angular
.module('patients')
.controller('PatientsListController', PatientsListController);
PatientsListController.$inject = ['PatientsService'];
function PatientsListController(PatientsService) {
var vm = this;
vm.patients = PatientsService.query();
}
})();
|
// Polyfills
// (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here)
// import 'ie-shim'; // Internet Explorer
// import 'es6-shim';
// import 'es6-promise';
// import 'es7-reflect-metadata';
// Prefer CoreJS over the polyfills above
require('core-js');
require('zone.js/dist/zone... |
'use strict';
//Setting up route
angular.module('shop-list').config(['$stateProvider',
function($stateProvider) {
// Shop list state routing
$stateProvider.
state('detail-product', {
url: '/detail-product/:productId',
templateUrl: 'modules/shop-list/views/detail-product.client.view.html'
}).
state('pr... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
module.exports = function (grunt) {
// Define the configuration for all the tasks
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec',
... |
import {
createEllipsisItem,
createFirstPage,
createLastItem,
createNextItem,
createPageFactory,
createPrevItem,
} from 'src/lib/createPaginationItems/itemFactories'
describe('itemFactories', () => {
describe('createEllipsisItem', () => {
it('"active" is always false', () => {
createEllipsisIte... |
/**
* App
*/
'use strict';
// Base setup
var express = require('express');
var app = express();
var path = require('path');
var bodyParser = require('body-parser');
var logger = require('morgan');
var mongoose = require('mongoose');
var config = require('./config');
var routes = require('./routes/index');
var val... |
$(document).ready(function(){
'use strict';
//Turn off and on the music
$("#sound-control").click(function() {
var toggle = document.getElementById("sound-control");
var music = document.getElementById("music");
if(music.paused){
music.play();
$("#sound-control").attr('src', 'img/ljud_pa.png');
... |
/*
* Manifest Service
*
* Copyright (c) 2015 Thinknode Labs, LLC. All rights reserved.
*/
(function() {
'use strict';
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Service
function loggerService() {
/* jshint validthis: true */
this.logs = [];
/**
... |
export { default } from './src/layout-container.vue';
|
/*
*@author jaime P. Bravo
*/
$(document).ready(function () {
//forms general
function sendDataWithAjax(type, url, data) {
return $.ajax({
type: type,
url: url,
data: data,
dataType: 'json',
beforeSend: function () {
console... |
var LedgerRequestHandler = require('../../helpers/ledgerRequestHandler');
/**
* @api {post} /gl/:LEDGER_ID/add-filter add filter
* @apiGroup Ledger.Utils
* @apiVersion v1.0.0
*
* @apiDescription
* Add a filter for caching balances. This will speed up balance
* requests containing a matching filters.
*
* @... |
/*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... |
// @flow
/* **********************************************************
* File: Footer.js
*
* Brief: The react footer component
*
* Authors: Craig Cheney, George Whitfield
*
* 2017.04.27 CC - Document created
*
********************************************************* */
import React, { Component } from 'react';
import ... |
/**
* Auction collection
*/
'use strict';
var Model = require('../models/auction_model.js');
var Collection = require('tungstenjs/adaptors/backbone').Collection;
var AuctionCollection = Collection.extend({
model: Model
});
module.exports = AuctionCollection; |
// Regular expression that matches all symbols in the Devanagari Extended block as per Unicode v6.0.0:
/[\uA8E0-\uA8FF]/; |
// All code points in the `Hatran` script as per Unicode v10.0.0:
[
0x108E0,
0x108E1,
0x108E2,
0x108E3,
0x108E4,
0x108E5,
0x108E6,
0x108E7,
0x108E8,
0x108E9,
0x108EA,
0x108EB,
0x108EC,
0x108ED,
0x108EE,
0x108EF,
0x108F0,
0x108F1,
0x108F2,
0x108F4,
0x108F5,
0x108FB,
0x108FC,
0x108FD,
0x108FE,
0... |
/*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.co... |
import React, {Component, PropTypes} from 'react';
import * as actions from './ForumAction';
import ForumPage from './ForumPage';
class ForumContainer extends Component {
constructor(props) {
super(props);
this.state = {
questions: []
};
this.postQuestion = this.postQues... |
((bbn)=>{let script=document.createElement('script');script.innerHTML=`<div :class="['bbn-iblock', componentClass]">
<input class="bbn-hidden"
ref="element"
:value="modelValue"
:disabled="disabled"
:required="required"
>
<div :style="getStyle()">
<div v-for="(d, idx) in sou... |
import {StringUtils} from "../node_modules/igv-utils/src/index.js"
class Locus {
constructor({chr, start, end}) {
this.chr = chr
this.start = start
this.end = end
}
contains(locus) {
return locus.chr === this.chr && locus.start >= this.start && locus.end <= this.end
}... |
(function () {
'use strict';
var app = angular.module('app');
// Collect the routes
app.constant('routes', getRoutes());
// Configure the routes and route resolvers
app.config(['$routeProvider', 'routes', routeConfigurator]);
function routeConfigurator($routeProvider, routes) {
... |
import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout: layout,
classNames: ['kit-canvas-scroller'],
canvasStyle: Ember.computed('parentView.canvasStyle', function() {
return this.get('parentView').get('canvasStyle');
}),
numberOfItems: Ember.computed('parent... |
function test() {
for(var i=1; i<3; i++) {
console.log("inner i: " + i);
}
console.log("outer i: " + i);
}
function last() {
const PI = 3.1415926;
console.log(PI);
}
// test();
last();
|
'use strict';
module.exports = {
controller: function (args) {
this.config = _.merge({
salvar: _.noop,
publicar: _.noop,
descartar: _.noop,
visualizar: _.noop,
editar: _.noop
}, args);
},
view: function (ctrl) {
var salvarView = '';
if (ctrl.config.salvar !== _.noo... |
/*
The parser for parsing US's date format that begin with month's name.
EX.
- January 13
- January 13, 2012
- January 13 - 15, 2012
- Tuesday, January 13, 2012
*/
var moment = require('moment');
require('moment-timezone');
var Parser = require('../parser').Parser;
va... |
'use strict';
import React, {PureComponent} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import withMaterialTheme from './styles/withMaterialTheme';
import {withMeasurementForwarding} from './util';
import * as typo from './styles/typo';
import shades from './styles/shades';
/**
* Section headin... |
import { onChange, getBits } from '../state'
import { inputWidth, centerInputs } from './inputs'
const $bits = document.getElementById('bits')
const setBitsWidth = width => {
$bits.style.width = inputWidth(width)
centerInputs()
}
const setBitsValue = value => {
setBitsWidth(value.length)
$bits.value = value
... |
var plugin = require("./plugin");
module.exports = function(PluginHost) {
var app = PluginHost.owner;
/**
* used like so:
* --external-aliases privateapi,privateAPI,hiddenAPI
* or
* -ea privateapi,privateAPI
*/
app.options.addDeclaration({ name: 'external-aliases', short: 'ea' });
/**
* used l... |
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
Karma = require('karma').Server;
var paths = {
scripts: {
src: ['src/**/*.js'],
dest: 'dist',
file: 'mention.js'
},
styles: {
src: ['src/**/*.scss'],
dest: 'dist',
file: 'mention.css'
},
example: {
scrip... |
import { StyleSheet } from 'react-native'
const s = StyleSheet.create({
flexRowAround: {
flexDirection: 'row',
justifyContent: 'space-around',
},
dot: {
height: 7,
width: 7,
borderRadius: 3.5,
},
green: {
color: '#50d2c2',
},
flexWrap: {
flexWrap: 'wrap',
},
textCenter: {
... |
exports.CLI = require(__dirname + '/lib/cli');
exports.Events = require(__dirname + '/lib/events'); |
'use strict';
!function($) {
/**
* OffCanvas module.
* @module foundation.offcanvas
* @requires foundation.util.keyboard
* @requires foundation.util.mediaQuery
* @requires foundation.util.triggers
* @requires foundation.util.motion
*/
class OffCanvas {
/**
* Creates a new instance of an off-canvas wrappe... |
var Dispatcher = require('flux').Dispatcher;
var assign = require('object-assign')
var AppDispatcher = assign(new Dispatcher(), {
handleViewAction: function(action) {
this.dispatch({
actionType: 'VIEW_ACTION',
action: action
});
},
handleServerAction: function(action) {
this.dispatch({
... |
$(document).ready(function(){
//enable the return time input and dropdown
$("#round").change(function() {
if(this.checked) {
console.log("Return data field open!");
$("#rD").removeClass('ui disabled input').addClass('ui input');
$("#rY").removeClass('ui disabled inp... |
(function(){
angular.module('list-products', [])
.directive('productInfo', function() {
return {
restrict: 'E',
templateUrl: 'partials/product-info.html'
}
})
.directive('productForm', function() {
return {
restrict: 'E',
templateUrl: 'partials/product-for... |
angular.module('material.animations')
.directive('inkRipple', [
'$materialInkRipple',
InkRippleDirective
])
.factory('$materialInkRipple', [
'$window',
'$$rAF',
'$materialEffects',
'$timeout',
InkRippleService
]);
function InkRippleDirective($materialInkRipple) {
return function(scope, element, attr... |
var boletesPinya = $.merge($.merge($.merge($("#cDB").find("path"), $("#cB4").find("path")), $("#cB3").find("path")), $("#cB2").find("path"));
var boletesTronc = $.merge($.merge($("#cB4").find("path"), $("#cB3").find("path")), $("#cB2").find("path"));
var usedTweets = {};
$(document).ready(function () {
$.each(b... |
var sc1 = {
//funhouse mirror
setup:function(){
// videoSetup();
tree = new TREE();
tree.generate({
joints: [5,3,1,10],
divs: [1],
start: [0,0,2,0],
angles: [0,Math.PI/2,1],
length: [20,15,4,1],
rads: [1,2,1,3],
width: [1,2,2,1]
});
scene.add(tree);
tree.position... |
'use strict';
// 頑シミュさんの装飾品検索の結果と比較しやすくする
function simplifyDecombs(decombs) {
return decombs.map(decomb => {
let torsoUp = Object.keys(decomb).map(part => decomb[part]).some(comb => {
if (comb == null) return false;
return comb.skills['胴系統倍加'] ? true : false;
});
let... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "billbee"); |
// Generated by CoffeeScript 1.6.3
/*!
@author Branko Vukelic <branko@brankovukelic.com>
@license MIT
*/
var _this = this;
if (typeof define !== 'function' || !define.amd) {
this.require = function(dep) {
return (function() {
switch (dep) {
case 'jquery':
return _this.jQuery;
def... |
'use strict'
module.exports = function (config) {
if (!process.env.COOKING_PATH) {
return
}
const rootPath = process.env.COOKING_PATH.split(',')
config.resolve = config.resolve || {}
config.resolveLoader = config.resolveLoader || {}
config.resolve.modules = (config.resolve.root || []).concat(rootPath... |
var xhrGet = function (url, callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = callback;
xhr.send();
}; |
/*jslint browser: true*/
/*global Tangram, gui */
map = (function () {
'use strict';
var locations = {
'Yangon': [16.8313077,96.2187007,7]
};
var map_start_location = locations['Yangon'];
/*** Map ***/
var map = L.map('map',
{"keyboardZoomOffset" : .05, maxZoom: 20 }
);
... |
var height = window.innerHeight;
// console.log(height);
var main = document.getElementById('main');
var btn = document.getElementById("btn");
main.style.height = height + 'px';
btn.style.top = (height-90) + 'px';
document.getElementById('usr_name').onkeydown = function(e) {
e = e || event;
if(e.keyCode === 13) {
b... |
/*
* default/mouse-push-button.js
*/
"use strict";
var Q = require('q'),
Button = require('./../../button');
var MousePushButton = function (options) {
Button.prototype.constructor.call(this, options);
this.delay = options.delay > 0 ? options.delay : 0;
this.g = null;
if(typeof options.g === 'f... |
const industry = [
{
"name": "金融",
"children": [
{ "name": "银行" },
{ "name": "保险" },
{ "name": "证券公司" },
{ "name": "会计/审计" },
{ "name": "其它金融服务" }
]
},
{
"name": "专业服务",
"children": [
{ "name": "科研/教育" },
{ "name": "顾问/咨询服... |
onst bcrypt = require('bcrypt-nodejs');
const crypto = require('crypto');
console.log('start');
bcrypt.genSalt(10, (err, salt) => {
bcrypt.hash('passwd', salt, null, (err, hash) => {
console.log(hash);
});
});
|
'use strict'
const { spawn } = require('@malept/cross-spawn-promise')
const which = require('which')
function updateExecutableMissingException (err, hasLogger) {
if (hasLogger && err.code === 'ENOENT' && err.syscall === 'spawn mono') {
let installer
let pkg
if (process.platform === 'darwin') {
in... |
import Ember from 'ember';
export default Ember.Object.extend({
animate($element, effect, duration) {
},
finish($elements) {
}
});
|
// validate and import user arguments
(function(args){
for (_i = 0; _i < args.length; _i += 1) {
// import arguments if defined, else defaults
_settings[args[_i]] = options && options[args[_i]] ? options[args[_i]] : defaults[args[_i]];
// validate data types
if(typeof _settings[args[_i]] !== "number") {
thr... |
import MailPreview from '../components/MailPreview.vue';
import icons from "trumbowyg/dist/ui/icons.svg";
import "trumbowyg/dist/ui/trumbowyg.css";
import "trumbowyg/dist/trumbowyg.js";
import "./trumbowyg-snippets-plugin.js";
$.trumbowyg.svgPath = icons;
window.remplib = typeof(remplib) === 'undefined' ? {} : window... |
var baseSortedIndex = require('./_baseSortedIndex');
/**
* This method is like `_.sortedIndex` except that it returns the highest
* index at which `value` should be inserted into `array` in order to
* maintain its sort order.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The sorted array t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.