code stringlengths 2 1.05M |
|---|
/**
* Kanban HTML Fill functions
* jtm@hi.is Univercity of Iceland
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
**/
;(function($){
$.extend(Kanban.prototype, {
/*
* HTML fill functions
* */
fill_user : function(user, cls, draggable, click_callback) {
var kanban = thi... |
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
buildlist = require('../util/buildlist');
gulp.task('word-list', function () {
gulp.src('wordlists/**/*')
.pipe(buildlist('wordlist.js'))
.pipe(gulp.dest('./build'));
}); |
'use strict';
module.exports = {
port: 443,
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/whacksomeone',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.css',
],
js: [
'public/lib/a... |
const request = require('request');
const logger = require('../../log/log');
const ruleEngine = require('../../rule/rule.engine');
const ruleParser = require("../../rule/rule.parser");
var _swaggerTmplSet = {};
function load(url, mappings) {
return new Promise(function (resolve, reject) {
request(url, f... |
/**
* AJAX File Upload
* http://github.com/davgothic/AjaxFileUpload
*
* Copyright (c) 2010-2013 David Hancock (http://davidhancock.co)
*
* Thanks to Steven Barnett for his generous contributions
*
* Licensed under the MIT license ( http://www.opensource.org/licenses/MIT )
*/
;(function ($) {
$.fn.AjaxFileUp... |
import { HttpBackend } from '../services/index';
export class HttpBackendStub extends HttpBackend {
hasInMemoryData() { return true; }
enforceData(data){ }
loadData(async) { return [ 'a', 'b', 'c' ]; }
}
|
$('#country_b').relevantDropdown({
change: function(new_text){
$("#country_b").trigger('change');
}
});
$('#country_s').relevantDropdown();
|
d3 = require("d3")
d3hive = require("./d3hive")
exports.create = function create(el, state) { render(el, state.data) }
exports.destroy = function destroy(el) {}
exports.update = function update(el, state) {}
var cfg = {
innerRadius: 18,
border: 22,
trackLabelSpace: 40,
taskradius: ... |
var Twitter = require("twit"),
Promise = require("bluebird"),
config = require("../../../config").twitter;
module.exports = function(context) {
return new Promise(function(resolve, reject) {
var twitter = new Twitter({
consumer_key: config.consumerKey,
consumer_secret: confi... |
//--------------------------------------------------------------------------------------------------------
// Mercer Evolution - Core v3.0 - Data Table JS
// DATE - June 3, 2015
// AUTHOR - Doug Fraize, Matthew Holmes
//----------------------------------------------------------------------------------------------------... |
{
[NaN, Math.sqrt(-1), Infinity - Infinity, 0 / 0].forEach(v => {
jestExpect(v).toBeNaN();
expect(() => jestExpect(v).not.toBeNaN()).toThrowErrorMatchingSnapshot();
});
}
|
/* eslint-env jasmine */
'use babel'
import Valhalla from '../lib/valhalla'
import ValaProvider from '../lib/provider'
import ScopeManager from '../lib/scopes'
import TypeFinder from '../lib/types'
import * as fs from 'fs'
import * as path from 'path'
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to ... |
module.exports = function (grunt)
{
grunt.util.linefeed = '\n';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
project: {
files: [{
expand: true,
cwd: 'src/',
... |
const p = require('../patterns.service.js')
const y = require('yup')
module.exports = y.object({
name: y
.string()
.required()
.trim()
.matches(p.isTitle, p.messages.isTitle),
value: y.mixed().required()
})
|
/* AlloyTouch
* By AlloyTeam http://www.alloyteam.com/
* Github: https://github.com/AlloyTeam/AlloyTouch
* MIT Licensed.
*/
/*; (function () {*/
import Transform from './transform';
(function () {
var lastTime = 0;
var vendors = ['webkit', 'moz'];
for (var x = 0; x < vendors.length && !window.reques... |
module.exports = require('material-ui/Chip');
|
'use strict';
var express = require('express');
var mongoose = require('mongoose');
var unitsRoutes = require('./routes/units_routes');
mongoose.connect(process.env.MONGO_URI || 'mongodb://localhost/unitsapp_development');
var app = express();
var router = express.Router();
unitsRoutes(router);
app.use('/api/v1', ... |
import React, { Component, PropTypes } from 'react';
import Message from './Message';
import CircularProgress from 'material-ui/CircularProgress';
import Card from 'material-ui/Card';
import connectToStores from 'alt-utils/lib/connectToStores';
import ChatStore from '../stores/ChatStore';
import List from 'material-ui/... |
var Twitter = require('twode'),
_ = require('underscore'),
CronJob = require('cron').CronJob;
config = require('./lib/config'),
fs = require("fs"),
readFile = fs.readFileSync("./data/FY2016Q1.json", "UTF-8"),
q1 = JSON.parse(readFile),
counter = 0,
twit = new Twitter({
consumer_k... |
define([], function() {
return {
CreatedOnLabel: "Created on ",
ChangedOnLabel: "Changed on ",
RefreshLabel: "Refresh",
LoadingLabel: "Loading...",
"PropertyPaneDescription": "List sites user has permissions, Include SharePoint Sites, Office365 Groups, OneDrive, Add-Ins App Sites",
"BasicGroup... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'hr', {
button: 'Predlošci',
emptyListMsg: '(Nema definiranih predložaka)',
insertOption: 'Zamijeni trenutne sadržaje',
optio... |
var expect = require("chai").expect;
var Item = require('../lib/clases/Item');
var UtilMath = require('../lib/clases/UtilMath');
var LinkedList = require('../lib/clases/LinkedList');
var UtilLinkedList = require('../lib/clases/UtilLinkedList');
describe('UtilLinkedList', function () {
describe('getNon()', function ... |
'use strict';
module.exports = ThisPlugin;
function ThisPlugin() {}
ThisPlugin.prototype.install
= function(less, manager) {
require("./main")(less, manager);
require("./for")(less, manager);
};
|
/// <reference path="/app/_references.js" />
/// <reference path="services.js" />
'use strict';
describe('service', function() {
beforeEach(module('app.services'));
describe('version', function() {
it('should return current version', inject(function(version) {
expect(version).toEqual('0.1... |
import * as Transmitter from 'transmitter';
describe('Model serialization', function() {
class Model {
constructor(tr, value) {
this.valueNode = new Transmitter.Nodes.ValueNode();
this.valueNode.set(value);
if (tr != null) this.valueNode.init(tr);
}
}
function createSerializeModelChan... |
function _PAYMENT(settings) {
var defaults = {
api: '/site/api/cs/payments/',
logged: false,
initPayground: function() { return $("#payground"); },
hooks: {}
};
this.email_reg = new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3... |
chrome.extension.onRequest.addListener ( function ( request, sender, sendResponse ) {
var users = new Users ();
var highlightColours = new HighlightColours ();
if ( request.method === 'getData' ) {
sendResponse ( {
users: users.getAll (),
highlightBackgroundColour: highlightColours.getBackgroundColour (),
... |
function addGlobalConst(name, value) {
Object.defineProperty(global, name, {value: value})
}
addGlobalConst('addGlobalConst', addGlobalConst)
addGlobalConst('express', require('express'))
addGlobalConst('_', require('lodash'))
addGlobalConst('Promise', require('bluebird'))
addGlobalConst('fs', Promise.promisifyAll(r... |
/**
* index.js
*
* This file only exports all modules out of this folder for better import
* using ecmascript6 module syntax
*/
module.exports = {
pull: require('./pull'),
inquire: require('./inquire'),
removal: require('./removal'),
move: require('./move'),
finish: require('./finish'),
error: require... |
(function(){
'use strict';
angular.module('smartsys', ['ngResource',
'ngMessages',
'ui.router',
'ui.bootstrap',
'ngAnimate',
'pascalprecht.translate',
'ngCookies',
'ngSanitize',
'satellizer',
'uiGmapgoog... |
class Type {
constructor(type_params) {
this.id = type_params.id;
this.name = type_params.name;
this.about = type_params.about;
this.instruction = type_params.instruction;
this.teas = type_params.teas;
}
}
function getCurrentTypeId() {
let path = window.location.pathname.split('/');
return parseInt(path... |
'use strict';
// Negocios controller
angular.module('negocios').controller('NegociosController', ['$scope', '$stateParams', '$location', 'Authentication', 'Negocios',
function($scope, $stateParams, $location, Authentication, Negocios) {
$scope.authentication = Authentication;
// Create new Negocio
$scope.creat... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var NavigationArrowBack = createClass({
displayName: 'NavigationArrowBack',
render: function render() {
return React.createElement(
SvgIcon,
t... |
(function(window, factory) {
if (typeof define === 'function' && define.amd) {
define([], function() {
return factory();
});
} else if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = factory();
} else {
(window.LocaleData || (... |
;(function ($, window, document, undefined) {
"use strict"; //jsHint
var pluginName = "autocompleteChoiceInput",
defaults = {
minLength: 2, // starts autocomplete after count of chars
maxItems: 10, // max autocompleted items
... |
/**
*
* FIGURE: generator
*
*
*
* DESCRIPTION:
* -
*
*
* API:
* -
*
*
* NOTES:
* [1]
*
*
* TODO:
* [1]
*
*
* HISTORY:
* - 2014/05/12: Created. [AReines].
*
*
* DEPENDENCIES:
* [1]
*
*
* LICENSE:
*
*
* Copyright (c) 2014. Athan Reines.
*
*
* AUTHOR:
* Athan Reines. athan@nodeprime.com. 2014.
*
*
*/
(funct... |
import React from 'react';
import { assert } from 'chai';
import {
createMount,
createShallow,
describeConformance,
getClasses,
} from '@material-ui/core/test-utils';
import Icon from './Icon';
describe('<Icon />', () => {
let mount;
let shallow;
let classes;
before(() => {
mount = createMount({ s... |
export default from './Drawer'
|
import 'react-native';
import React from 'react';
import Index from '../src/index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
var crypto = require('crypto'),
fs = require('fs'),
sys = require('sys');
var args = (function (argv) {
var ret = {};
var zReplace = function(z){
return z[1].toUpperCase()
};
argv.slice(2).forEach (function (e) {
if (e[0] == '-') {
var _ = e.slice(1).split('=');
ret[_[0].replace(/-[a-z]/g, ... |
// Just put a list of server that can be reach for connexion, one will be randomly choice
// and will server us until it die and another is choose
// Example: ['192.168.56.101:6768', '192.168.56.102:6768', '192.168.56.103:6768', '192.168.56.104:6768'];
// by default it will take the hostname of your HTTP server with t... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { currentYear } from '../actions/app';
import Footer from '../components/Footer.js';
const mapStateToProps = (state) => {
return {
currentYear: state.app.currentYear
};
}
const mapDispatchToProps = (dispatch) => {
... |
/** 测试页 **/
/** 所需的各种插件 **/
import React, { useState, useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useLocation, Link, Outlet } from "react-router-dom";
/** 所需的所有资源 **/
import { Modal, Form, Button, message, Input } from "antd";
import { UserOutlined, KeyOutlined } from "@... |
/**
* Created by martynuk on 05.03.16.
*/
(function() {
$(".panel").on("show.bs.collapse hide.bs.collapse", function(e) {
if (e.type=='show'){
$(this).addClass('active');
}else{
$(this).removeClass('active');
}
});
}).call(this);
|
require( [ 'require', 'views/hud/widget', 'models/itemtype', 'editor/npc', 'editor/itemtype' ], function( require ) {
var widget = require( 'views/hud/widget' );
var ItemType = require( 'models/itemtype' );
var itemTypeEditor = require( 'editor/itemtype' );
var NPCEditor = require( 'editor/npc' );
... |
#!/usr/bin/env node
const httpProxy = require('http-proxy');
const execSync = require('child_process').execSync;
const format = require("util").format;
const fs = require('fs');
const path = require('path');
const tls = require('tls');
const https = require('https');
if (!execSync) {
console.log("execSync() is mi... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var mongooseUniqueValidator = require('mongoose-unique-validator');
var schema = new Schema({
name: {type: String, required: true, unique: true},
shortName: {type: String, required: true, unique: true},
password: {type: String, required: tru... |
(function (window) {
var Muuri = window.Muuri;
var idList = utils.idList;
QUnit.module('Grid methods');
QUnit.test('filter: should return the instance', function (assert) {
assert.expect(1);
var container = utils.createGridElements();
var grid = new Muuri(container);
var teardown = function (... |
import { ValidationError } from '../validation_error';
const camelCaseTest = RegExp('^[a-z][a-zA-Z0-9]*$');
export function FieldsAreCamelCased(context) {
return {
FieldDefinition(node, key, parent, path, ancestors) {
const fieldName = node.name.value;
if (!camelCaseTest.test(fieldName)) {
c... |
'use strict';
angular.module('ummWordRiverTeam1Iteration1App')
.config(function ($stateProvider) {
$stateProvider
.state('admin', {
url: '/admin',
templateUrl: 'app/admin/admin.html',
controller: 'AdminCtrl'
});
}); |
var assert = require('assert');
var fs = require('fs');
var _ = require('underscore');
var parser = require('../../backend/services/htmlparser');
describe('Html Parser', function () {
it('Should parse html', function (done) {
fs.readFile('testAssets/wiki.html', function (err, html){
if (err)
... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import OpenPOEmailDateTimeRange from '../../../../components/rpt/production/OpenPOEmail/OpenPOEmailDateTimeRange';
import * as Actions from '../../../../actions/rpt/production/Actions';
function mapStateToProps(state) {
return {
P... |
import { Then, When } from 'cucumber';
const signinSteps = require(__srcdir + '/steps/signin/signinSteps.js');
let sSteps = new signinSteps(__wdriver);
When(/^open the signin page$/, {timeout: 15000}, async () => {
await sSteps.openContext(sSteps.signinPage.urlCtx);
});
Then(/^the sign in page is loaded$/, async... |
declare class NeDB {
constructor(config: Object): NeDB;
persistence: {
setAutocompactionInterval: (millis: number) => void;
}
}
declare module 'nedb' {
declare module.exports: typeof NeDB
}
|
'use strict';
var deprecatedTagNames = 'acronym,applet,basefont,bgsound,big,blink,center,command,content,dir,element,font,frame,frameset,image,isindex,keygen,listing,marquee,multicol,nextid,nobr,noembed,plaintext,shadow,spacer,strike,tt,xmp'.split(','),
expect = require('expect.js'),
tagNames = require('../..... |
$(function() {
/*
Razões para mudar de estado:
-Post;
-Mudança de página;
-Página do Topo;
-Categoria;
-Busca;
*/
});
|
Perks.before.insert(function (id, doc) {
doc.createdAt = new Date();
});
//DATATABLES https://github.com/aldeed/meteor-tabular
//TabularTablesGladiators = {};
//Meteor.isClient && Template.registerHelper('TabularTablesGladiators', TabularTablesGladiators);
TabDT.Perks = new Tabular.Table({
'searching': true,
'leng... |
// this sets up console.log to append to the textarea with id="console"
var textarea = document.getElementById("log");
textarea.value = '';// empty it
var origLog = console.log;
console.log = function(msg) {
origLog(msg);
textarea.value += msg+'\n';
};
//var seedlink = require('seisplotjs-seedlink');
// this glob... |
Ext.define("Greyface.store.BlacklistDomainStore",{
extend: "Ext.data.Store",
model: "Greyface.model.BlacklistDomainModel",
autoLoad:true,
autoSync: true,
remoteSort:true,
remoteFilter:true,
pageSize:100,
sorters: [
{
property: "domain",
direction: "ASC"
... |
import React from 'react'
/**
* SimpleModal is the basic dialog window with a primary and a cancel button.
*/
export default class SimpleBootstrapModal extends React.Component {
static propTypes = {
/**
* Title of the modal dialog
*/
title: React.PropTypes.string.isRequired,
/**
* Labe... |
'use strict';
module.exports = function(env) {
return require(`./webpack.${env}.js`)
} |
//@tag dom,core
//@define Ext.DomQuery
//@define Ext.core.DomQuery
//@require Ext.env.Feature
/**
* @class Ext.DomQuery
* @alternateClassName Ext.core.DomQuery
* @extend Ext.dom.Query
* @singleton
*
* Provides functionality to select elements on the page based on a CSS selector. Delegates to
* document.querySel... |
var express = require('express');
var router = express.Router();
module.exports = function (auth, voice, weather, logger) {
// Users API
router.get('/users/:user_id', function (req, res) {
auth.routeGetUser(req.params.user_id, req, res);
});
// Voice API
router.get('/voice/phrases/:vhash', voice.rout... |
import "./papaparse.es.js";
//These are in lieue of the import statements
let {FormInputBaseComponent} = apogeeapp;
/** This is a simple custom component example. */
export default class CSVComponent extends FormInputBaseComponent {
constructor(member,modelManager,instanceToCopy,keepUpdatedFixed) {
super(... |
/**
* # redis.js
*
* This is the configuration for Redis
*
*/
'use strict';
/**
* ## Imports
*
*/
var Redis = require('redis'),
Config = require('../config'),
redisClient = {};
/**
* ## The connect string for the dev environment
*
*/
var connection_string = Config.redis;
/**
*
* ## The connect str... |
/******************************************************************************
* Copyright © 2013-2016 The Nxt Core Developers. *
* *
* See the AUTHORS.txt, DEVELOPER-AGREEMENT.txt and LICENSE.txt files at *
... |
import $$ from 'slot';
import $$tabs from 'widget/tabs';
import R from 'ramda';
import $$queryObj from '../../query-obj';
import virtualDom from 'virtual-dom';
import $$dropdown from 'widget/dropdown';
import $$searchDropdown from 'widget/search-dropdown';
import constStore from 'store/const-store';
import storeSubject... |
var hn_parser = require('./app/parser.js');
|
import express from 'express';
import { Service } from './services/service';
import { SessionService } from '../../components/session/services/session';
module.exports = (app) => {
let router = express.Router();
router.get('/users', Service.query);
router.post('/users', Service.create);
router.route('/users/:u... |
var Rx = require('rx-lite');
function User (socket) {
this._socket = socket;
this._observables = {};
this.id = this._socket.id;
this.name = 'Anonymous';
}
User.prototype.send = function (message, data) {
this._socket.emit(message, data);
};
User.prototype.observe = function (message) {
if (this._observables[m... |
//"use strict";
StacksightMeteor = {
stackNode: function(){
var appId = Meteor.call('stacksightSessionUp');
var stacknode = Npm.require('stacksight')({
user: settings.meanDevToken,
appId: appId,
allow: true
});
stacknode.session.up();
retur... |
// test_calls.js
// -------------
var myObject = {
myMethod: function() {
return 42;
}
};
console.assert(myObject.myMethod() === 42);
console.assert(myObject["myMethod"]() === 42);
console.assert(myObject["my" + "Method"]() === 42);
|
var EventListener = function () {
this.events = [];
};
EventListener.prototype.get = function (prop) {
return 'EventListener';
};
EventListener.prototype.on = function (event, fn) {
this.events[event] = this.events[event] || [];
this.events[event].push(fn);
};
EventListener.prototype.fire = function (event,... |
/**
* Created by FDD on 2016/11/13.
*/
'use strict';
define(['index','broadcastNameEnum','panelService','ngDialog'],
function (index,broadcastNameEnum,panelService,ngDialog) {
index.directive('panel', ['panelService','ngDialog',function (panelService,ngDialog) {
return {
restrict: 'EA',
re... |
var Router = Ember.Router.extend(); // ensure we don't share routes between all Router instances
Router.map(function() {
this.route('component-test');
this.route('helper-test');
this.route("gpu", {path: "/gpu/:id"});
});
export default Router;
|
import { seek } from './seek.js';
import { getKeyframes } from '../renderer/animation.js';
export function resize() {
const cw = this.video.clientWidth;
const ch = this.video.clientHeight;
const vw = this.video.videoWidth || cw;
const vh = this.video.videoHeight || ch;
const sw = this._.scriptRes.width;
co... |
// Copyright 2007 The Closure Library Authors. 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
//
// Unl... |
UserModel={
isLogged:mvvm.changeable(_User.username==""?false:true),
username:mvvm.changeable(_User.username),
setUsername:function(username){
if(username=="")this.isLogged(false);
else this.isLogged(true);
this.username(username);
},
id:null,
fullName:_User.full... |
$(document).ready(function(){$("#form").submit(function(){$("#loader-login").show();$("button[type='submit']").attr("disabled","disabled");updateLocation($(this).serialize())});google.maps.event.addDomListener(window,"load",initialize)});function updateLocation(b){$.post(addressUpdateLocation,b,function(a){a.state&&($(... |
module.exports = function (eb, botName) {
//Every x seconds try to move...
var directions = ['U', 'D', 'L', 'R'];
// console.log(botName);
eb.send("org.mmog2048:register", {"name": botName}, function (res) {
var token;
var moveAvailable = true;
if (res) {
// console.log("Received token: " + ... |
import amp from 'sound/synth/amp';
export default({audio_context}) => {
const gain = amp({audio_context});
return {
connect({input}) {
gain.connect({input});
},
assign(instrument) {
instrument.connect({input:gain});
},
get gain(){
return gain.gain;
}
};
}
|
// Polyfills for SSR
export const isSSR = typeof window === 'undefined'
export const HTMLElement = isSSR ? Object : window.HTMLElement
export const File = isSSR ? Object : window.File
|
/**
Publishes key and mouse events that occur on the parent {{#crossLink "Scene"}}Scene{{/crossLink}}'s {{#crossLink "Canvas"}}Canvas{{/crossLink}}.
## Overview
<ul>
<li>Each {{#crossLink "Scene"}}{{/crossLink}} provides an Input on itself as a read-only property.</li>
</ul>
<img src="../../../assets/images/In... |
/* ========================================================================
* Bootstrap: collapse.js v3.3.6
* http://getbootstrap.com/javascript/#collapse
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/boo... |
version https://git-lfs.github.com/spec/v1
oid sha256:e39aca4b3658ac06b06e09406d75e47c85bef1138dea33f0ff06386b650b4340
size 71127
|
version https://git-lfs.github.com/spec/v1
oid sha256:a0a36cc046e656f48e78dec243b50f19ee05cf208ddfcb2add933db437ea6a9d
size 4547
|
import React from 'react'
import {connect} from 'react-redux'
import QuestionList from './question-list'
import API from '../client-model/API'
export default connect(
storeState => storeState,
dispatch => ({API: new API(dispatch)})
)(
class Event extends React.Component {
constructor(props) {
super(pro... |
import React from 'react';
import { signout } from '../auth/actions';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import Logo from './Logo';
import './App.css';
function Header({ signout }) {
return (
<header className="clearfix">
<Logo />
<div id="signout">
... |
/*
* Copyright (c) 2017. MIT-license for Jari Van Melckebeke
* Note that there was a lot of educational work in this project,
* this project was (or is) used for an assignment from Realdolmen in Belgium.
* Please just don't abuse my work
*/
define(function (require) {
require('../coord/geo/geoCreator');
... |
import { fork } from 'redux-saga/effects'
import auth from './auth'
import groups from './groups'
import subscriptions from './subscriptions'
import tags from './tags'
export default function* rootSaga() {
yield fork(auth)
yield fork(groups)
yield fork(subscriptions)
yield fork(tags)
}
|
// calculates all of the price including weight for shipment and exchnage from USD to EGP
function calculate (price, weight, customsRate){
price = parseInt(price, 10);
var exchangeRate = 7.0;
var shipment = Math.floor(weight * 2) * 9.0 + 12.0;
var customs = customsRate * price;
console.log(price, shipment, custo... |
import Api from '../helpers/api'
const api = new Api('data_entries')
api.post()
api.get()
api.put()
api.del()
api.expose(exports)
|
var crypto = require('crypto'),
config = require('../config');
var check = require('validator').check,
sanitize = require('validator').sanitize;
var models = require('../models'),
Person = models.Person,
Topic = models.Topic;
var controllers;
var helpers = require('../helpers');
var words = {
name: '用户',
... |
!function () {
'use strict';
var Class = require('ee-class')
, util = require('util')
, path = require('path')
, exec = require('child_process').exec
, fs = require('fs')
, path = require('path')
, asyncMethod = require('async-method');
... |
"use strict";
var Hello = function Hello() {
babelHelpers.classCallCheck(this, Hello);
return {
toString() {
return 'hello';
}
};
};
var Outer =
/*#__PURE__*/
function (_Hello) {
function Outer() {
var _this;
babelHelpers.classCallCheck(this, Outer);
var Inner = {
[_this = ba... |
var searchData=
[
['game_2ecs',['Game.cs',['../_game_8cs.html',1,'']]],
['gamedemopassenger57_2ecs',['GameDemoPassenger57.cs',['../_game_demo_passenger57_8cs.html',1,'']]]
];
|
'use strict';
/**
* @ngdoc service
* @name showScheduleApp.navSvc
* @description
* # navSvc
* Factory in the showScheduleApp.
*/
angular.module('showScheduleApp')
.factory('navSvc', function($rootScope, $location, airdaySvc) {
// Simple position flags
var position = {
settings: fa... |
'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... |
/***
* A control to add a Column Picker (right+click on any column header to reveal the column picker)
*
* USAGE:
*
* Add the slick.columnpicker.(js|css) files and register it with the grid.
*
* Available options, by defining a columnPicker object:
*
* var options = {
* enableCellNavigation: true,
* c... |
var gulp = require('gulp');
var watch = require('gulp-watch');
var clean = require('gulp-clean');
var browserify = require('gulp-browserify');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var connect = require('gulp-connect');
var livereload = require('g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.