code stringlengths 2 1.05M |
|---|
var searchData=
[
['parent',['parent',['../structcrap_1_1_square_world_cube.html#adf6b00d13203e191b4056f3e64f51582',1,'crap::SquareWorldCube']]],
['passedtime',['passedTime',['../structcrap_1_1_task_manager_1_1s___task_info.html#aeb218208ca06a73ac808eefb1b151a65',1,'crap::TaskManager::s_TaskInfo']]],
['path',['pa... |
module.exports = {
API: 'https://www.devrant.io/api'
}
|
// Action types
export const CALCULATOR_WRITE_TEXT = 'CALCULATOR_WRITE_TEXT'
export const CALCULATOR_BACKSPACE = 'CALCULATOR_BACKSPACE'
export const CALCULATOR_CLEAR_TEXT = 'CALCULATOR_CLEAR_TEXT'
export const FUNCTION_BOX_SET_POSITION = 'FUNCTION_BOX_SET_POSITION'
export const PARAMETRIC_FUNCTION_SET_EQUATION = 'PAR... |
/**
* Function that returns default values.
* Used because Object.assign does a shallow instead of a deep copy.
* Using [].push will add to the base array, so a require will alter
* the base array output.
*/
'use strict';
const path = require('path');
const srcPath = path.join(__dirname, '/../src'); // 项目源文件目录地址
... |
Meteor.subscribe('isslocation');
Meteor.subscribe('isscomputer');
//Subscribe to Solar Data
Meteor.subscribe('1Avoltage_isssolar'),
Meteor.subscribe('1Bvoltage_isssolar'),
Meteor.subscribe('2Avoltage_isssolar'),
Meteor.subscribe('2Bvoltage_isssolar'),
Meteor.subscribe(... |
'use strict';
// Constants
const BTC = require('../currencies/btc');
const BTCA = require('../currencies/btca');
const BTCB = require('../currencies/btcb');
// Dependencies
const merge = require('lodash.merge');
// Fabric Types
const Actor = require('../types/actor');
const Entity = require('../types/entity');
const... |
/* @flow */
/**
* @example
* Sample Usage (XML View)
*
* @description
* This element must be used with the <code>ui5.viz.Chart</code> control and was designed to work best in XML views and in combination with data binding.
*
* @type {xml} Markdown code type.
* @code
* <Chart>
* <!-- tbd -->
* </Chart>
*/... |
// export as default, when the module
// itself represents the function
// export default function(a, b) {
// return a + b;
// }
// equivalent to previous example
// function suma(a, b) {
// return a + b;
// }
// export { suma as default };
// // When we don't use default, the module
// // is exported as an... |
/**
* Run the business logic for completing
* a repo job from the job queue
*/
RepoJobStrategy = (function (githubConnection) {
var _issueCommand = new GetRepoIssuesCommand();
/**
* Execute this strategy on the given
* repo job object. Will add jobs for
* any new issues found
*
* @param job Objec... |
/*
* Utilities
Utility functions
*/
var fs, logger;
require('sugar');
fs = require('fs');
logger = require('aitutils').aitutils.logger;
exports.Utilities = {
dateSid: function() {
return Date.create().format("{yyyy}{MM}{dd}{HH}{mm}{ss}{fff}");
},
checkExtension: function(path, ext) {
if (path.end... |
var map, lat,lon;
function initialize() {
lat = 42.69;
lon = 23.32;
var serviceCenters = $(".service-centers");
var mapOptions = {
zoom: 15,
center: new google.maps.LatLng(lat, lon),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document... |
todoApp.controller('todoCrl', ['$scope', 'Todos', function ($scope, Todos) {
$scope.isLoaded = false;
// Todo text field
$scope.todoText = '';
// Query all todos
$scope.todos = Todos.query();
$scope.todos.$promise.then(function() {
$scope.isLoaded = true;
});
// Adds todo
... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.2-master-71674b0
*/
!function(t,n,i){"use strict";n.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$animate","$rootElement","$window","$log","$$rAF","$document",function(t,n,i,... |
function mkbRSS(conf) {
// Get filled by the rssreader for the share buttons
var social = {
urls: [],
titles: [],
descriptions: []
};
// Get the data
$.get(conf.request_url, function (data) {
var rssContainer = $(conf.container);
var rssHolder = $(conf.holder);
var first = true;
... |
$(function() {
handleLogin();
});
function toggleInputViews($val) {
var $form = $('#loginForm');
var $inputs = $form.find('input, select, button, textarea');
// enable inputs for editing
$inputs.prop('disabled', $val);
}
function showErrorAlert($msg) {
var $alertDiv = $('#login-alert');
... |
var _ = require('lodash');
module.exports = function(length){
return function(value){
return (_.isString(value) && (value.length <= length)) || ("This field must be less than " + length + " characters");
};
};
|
var eat = require('eat');
var User = require(__dirname + '/../models/user');
var handleError = require(__dirname + '/handle_error');
var EventEmitter = require('events').EventEmitter;
var ee = new EventEmitter();
var user;
module.exports = exports = function(req, res, next) {
var encryptedToken = req.headers.token |... |
angular
.module('app.core')
.service('LoggerApi', LoggerApi);
function LoggerApi(Api) {
var api = Api.all('logger');
var service = {
log: log
};
return service;
function log(level, args) {
return api.all(level).post(args);
}
}
|
import React, { Component, PropTypes } from 'react'
import createStyles from 'react-styles-provider'
@createStyles({
author: {
fontSize: 12,
fontWeight: 400,
fontStyle: 'italic',
paddingBottom: 15,
},
})
export default class Author extends Component {
render() {
const {styles, children, url} ... |
var ShowViewCommand = require('../../workspace/showViewCommand');
var ModuleListView = require('../list/moduleListView');
/**
* @constructor
* @struct
* @param {!ViewModelContext} context
*/
function ModuleDetailViewModel(context) {
'use strict';
/**
* @type {!ModuleDetailViewModel}
*/
var s... |
import React, { Component } from 'react'
import { Route, Switch } from 'react-router'
import { Link } from 'react-router-dom'
export default class IconApi extends Component {
constructor(props) {
super(props)
this.state = {
}
}
render() {
return (
<div>
... |
angular.module('admin42')
.filter('datetime', function(appConfig) {
return function(input, emptyValue, format, timezone) {
if (angular.isUndefined(emptyValue)) {
emptyValue = "-";
}
if (angular.isUndefined(format)) {
format = appConfig.defa... |
/**
* Created by gatomulesei on 8/22/2017.
*/
'use strict';
angular.module('myApp.admissionsPage')
.factory("admissionsPageFactory", ["$rootScope", "$http", "$cookies", "$location", "$uibModal", function($rootScope, $http, $cookies, $location, $uibModal) {
var getPatient = function(id) {
v... |
import PropTypes from 'prop-types';
export default {
article_id: PropTypes.number,
article_pretty_rating: PropTypes.string,
article_rating: PropTypes.string,
article_rating_num: PropTypes.number,
article_title: PropTypes.string.isRequired,
article_url: PropTypes.string.isRequired,
assignment_all_statuses... |
$(function () {
var reports = {};
reports.modal = {
show_e0_approve: function () {
$('#mdl_e0_for_approve').modal({
keyboard: false,
backdrop: 'static'
});
},
hide_e0_approve: function () {
$('#mdl_e0_for_app... |
/**
* Created by Utilisateur on 25/01/2017.
*/
import React, { Component } from 'react';
import _ from 'lodash';
import { Text, View, TouchableOpacity, StyleSheet } from 'react-native';
import { observer } from 'mobx-react/native';
import IconFA from 'react-native-vector-icons/FontAwesome';
import IconIO from 'react... |
var Q = require('q');
var messageQueue = require('./messageQueue');
/**
* Creates a new connection. A connection represents a path of communication
* between a remote client and a local set of objects accessible by that client
* and which the client has specifically instantiated.
* @param data application specific... |
var maxview = 60; //the maximum field of view of the camera
var minview = 10; //the minimum field of view of the camera
var target1 : Transform; //the shape your looking at
var maxOffset = 1; //the maximum offset to look at the top of the shape
var minOffset = 0; //the normal Y offset
var Offset = ... |
'use strict';
var express = require('express');
var bodyParser = require('body-parser');
var stripe = require("stripe")("sk_test_J9KoKBvf1HZRzAUIq6gicW3K");
var app = express();
app.use(bodyParser());
app.set('view engine', 'jade');
app.set('views', __dirname + './public/views');
app.post('/charge', function(req, r... |
import Control from 'can-control';
const map = new Control({
define: {
Type: Control
}
});
Control();
new Control();
Control.prototype.say = function(){};
function speak(MyControl) {};
const say = function(MyControl) {};
Object.assign({}, Control);
const secondMap = new Control({
MyControl: Control
});
|
/**
* @preserve tableExport.jquery.plugin
*
* Copyright (c) 2015,2016 hhurz, https://github.com/hhurz/tableExport.jquery.plugin
* Original work Copyright (c) 2014 Giri Raj, https://github.com/kayalshri/
*
* Licensed under the MIT License, http://opensource.org/licenses/mit-license
*/
(function ($) {
$.fn.exte... |
/** layout for poasts **/
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { useStaticQuery, graphql } from 'gatsby';
import { PostArticle } from './article';
import Header from './header';
import PostData from './postdata';
import { device } from './device... |
var dir_638e0f8752c67108b82e0bc5d3767717 =
[
[ "lasertracker.h", "lasertracker_8h.html", "lasertracker_8h" ],
[ "sensor.h", "sensor_8h.html", "sensor_8h" ],
[ "totalstation.h", "totalstation_8h.html", "totalstation_8h" ]
]; |
version https://git-lfs.github.com/spec/v1
oid sha256:7e2773c35bd57991e858587552cc60830dc4a1bdb70bb63a4ecdbde2e9116868
size 19603
|
'use strict';
import EmailService from './mail.service';
import NovaContaMail from './template/nova.conta.mail';
import RedefiniSenhaMail from './template/redefinir.senha.mail';
import EventInformeMail from './template/event.informe.mail';
export function sendMailNovoConta(req, user) {
try {
let novaContaMail = ... |
var InputService = Class.create(EventEmitter.prototype, {
keymap: {
'W': 'forward',
'A': 'left',
'S': 'back',
'D': 'right',
'space': 'fire',
'E': 'use',
'Q': 'query'
},
initialize: function(keys) {
this._keys = new THREEx.KeyboardState();
this.keymap = _.extend(this.keymap, key... |
Package.describe({
name: "angular",
summary: "Everything you need to use AngularJS in your Meteor app",
version: "1.3.3",
git: "https://github.com/Urigo/angular-meteor.git",
documentation: "../../README.md"
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@1.2.0.1');
api.imply([
'angular-m... |
/*
* grunt-plum
*
* Copyright (c) 2015 Jason Bellamy
* Licensed under the MIT license.
*/
import test from 'plum-test';
const plum = (grunt) => {
grunt.registerMultiTask('plum', 'Grunt plugin to build and run visual regression tests against plum stylesheets.', function () {
const done = this.async()... |
define(['kinetic', 'config', 'globalConstants'], function (Kinetic, config, Constant) {
'use strict';
// Kinetic setup
var stage = new Kinetic.Stage({
container: 'game-container',
width: config.screen.width,
height: config.screen.height
});
// Setting background layer
var backgroundLayer = new Kinetic.Lay... |
(function (chaiJquery) {
// Module systems magic dance.
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// NodeJS
module.exports = chaiJquery;
} else if (typeof define === "function" && define.amd) {
// AMD
define(function () {
return... |
// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function (grunt) {
'use strict';
// Load Grunt tasks declared in the package.json file
require('load-grunt-tasks')(grunt);
// Configure Grunt
grunt.initConfig({
yeoman: {
// Configurable... |
#!/usr/bin/env node
var http = require('http'),
cluster = require('cluster'),
numCPU = 1, //Math.floor(require('os').cpus().length / 2),
env = process.env.NODE_ENV || 'development',
i = 0,
stamp = new Date().getTime();
// Make sure we always have at least 2 workers.
if (numCPU < 2) { numCPU = 2; }... |
var Stream = require('stream');
var inherits = require('inherits');
var Config = require('../misc/Config.js');
var now = require('../misc/now.js');
var jsonUtil = require('../misc/jsonUtil.js');
var defaultConfig = new Config({
logTimestamp: true,
logUpdates: true,
logSpeed: true,
logRewrites: true,
logValues: f... |
function RuntimeConnection(connection) {
this.connection = connection;
this.disconnected = false;
this.listeners = [];
this.disconnectListeners = [];
this.connection.onMessage.addListener((evt) => {
this.listeners.forEach(listener => listener(evt));
});
this.connection.onDisconnect.addListener(() =>... |
'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... |
import { modes } from './constants';
export const defaultTool = {
typable: false,
nextMode: modes.SELECT,
lastMode: modes.SELECT,
resetMode: modes.SELECT,
nextTool: 'move',
resetTool: 'move',
resizable: true,
content: '',
width: 5,
height: 1,
xOffset: 0,
yOffset: 0,
options: []... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var util = require('util'); /* jshint ignore:line */
var TwiML = require('./TwiML'); /* jshint ignore:line */
/* jshint ignore:start *... |
'use strict';
class HashError extends Error {
constructor(task, newHash) {
super(arguments);
Error.captureStackTrace(this, HashError);
this.message = `Wrong md5sum for changeset "${task.name}". Current value is ${newHash}`;
}
}
class IllegalTaskFormat extends Error {
constructor() {
... |
$(document).ready(function() {
var api = "https://api.darksky.net/forecast/";
var apikey = "4bbdcd70dd87abdccc8c39ef54f2bdf0";
var locArray = [];
var url;
$("#degF").addClass("inactive");
$("#degF").on("click", function(){
if ($("#degF").hasClass("inactive")){
$("#degF").removeClass("inactive")... |
var app = angular.module("iDo", [
"ngRoute",
"xeditable",
"ngMaterial"
]);
app.config(['$routeProvider',
function ($routeprovider) {
$routeprovider.
when('/GuestList', {
templateUrl: 'app/gue... |
// Generated on 2016-08-08 using generator-angular 0.15.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
/*************************************************************
*
* MathJax/localization/diq/diq.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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 cop... |
'use strict';
function loadStates(states, stateProvider) {
for(var state in states) {
stateProvider.state(state, states[state]);
}
}
var stringMenuStates = {
'company': {
url: '/company',
menu: 'Company'
},
'company.about': {
url: '/about',
menu: 'About Us'
}
};
//simple traverse base... |
function B() {
this.name = 'b';
}; |
'use strict';
var REGISTRATION_KEY = '@@any-promise/REGISTRATION',
spawn = require('child_process').spawn,
expectedImpl,
globalRegistration = true
if(process.env.BROWSER){
it('Promises/A+ tests in browser', function(done){
this.timeout(60000)
zuul('browser.js', done)
})
} else if(process.env.B... |
"use strict";
var largestContinousSum = require("../lib/continouslargestsum.js");
describe("Largest Continous Sum", function() {
it("should return 5 for [5]", function() {
largestContinousSum([5]).should.equal(5);
});
it("should return 50 for [1, 2, 10, 20, 15, 2]", function() {
largestContinousSum([1, 2, 10... |
'use strict';
var expect = require('chai').expect;
if (!process.env.CUSTOMERIO_ID || !process.env.CUSTOMERIO_KEY) {
throw new Error('Set CUSTOMERIO_ID and CUSTOMERIO_KEY in your env.');
}
describe('the customerio-client module', function() {
var CustomerIO;
beforeEach(function() {
CustomerIO = require('.... |
import {createSelector} from "reselect";
export const getPricesSelector = ( state ) => state.prices;
export const getPriceForItemSelector = createSelector( [getPricesSelector, ( _, props ) => props.name],
( prices, name ) => {
... |
/**
* This plugin replaces all strings based on the selected text layer
* Scope: current page
*
* Florian Schulz Copyright 2014, MIT License
*/
@import '../../inventory.js'
var onRun = function (context) {
// old school variable
doc = context.document;
selection = context.selection;
if (select... |
module.exports = {
template: '<div></div>',
data: function () {
return {
x: undefined
};
},
ready: function () {
document.body.addEventListener('mousemove', this.drag);
var parent = this.$el.parentNode, defaultCursor = parent.style.cursor;
this.$el.add... |
import React from 'react';
export default class Header {
render() {
return (
<div className='row'>
<h4 className='text-center'>Insert Job List Here</h4>
</div>
);
}
};
|
const utils = require('../../utils.js')
exports.getPromptsHeading = (config) => { }
exports.prePrompts = (config) => { }
exports.getPrompts = (config) => {
function anchorPoints () {
let foundAnchorPoints = utils
.findAnchorPoints(config, '<!-- Element insertion point -->')
.filter(e => e.info.bas... |
(function () {
'use strict';
angular
.module('coffee')
.controller('MenuController', MenuController)
/** @ngInject */
function MenuController() {
var vm = this;
vm.pageName = '咖啡菜单';
vm.bannerImg = { "background-image": "url(assets/images/banner-menu.jpg)" }
}
}());
|
var LINEBREAK = "\n";
var TRACE_INDICATOR = 'at ';
/**
* Extract failure information from a failed mocha spec log.
*
* @param {String[]} log
*
* @return {Object} output
* @return {String} output.backtrace
* @return {String} output.details
*/
module.exports = function(logEntry) {
var lines;
var result = {}... |
/**
* @file
* Файл библиотеки javascript модуля kvantstudio.
*/
var $jQuery = jQuery.noConflict();
$jQuery(document).ready(function() {
(function($) {
/* Инициализация zoom для ссылок изображений. */
if ($.isFunction($().zoom)) {
$('a.zoom')
.zoom({
url: $('a.zoom').attr("href"),
})... |
__history = [{"date":"Fri, 12 Jul 2013 08:56:54 GMT","sloc":396,"lloc":162,"functions":25,"deliveredBugs":2.794808409441603,"maintainability":71.47546740114488,"lintErrors":51,"difficulty":38.85714285714286}] |
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within ... |
version https://git-lfs.github.com/spec/v1
oid sha256:89800dd3d1eeee063759a2bc1fd6e79fe46d131c005c7730bcb2123d901071e6
size 3423
|
'use strict';
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 ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
'use strict';
/**
* Module dependencies
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Travel documents Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/travel-docum... |
var x = require("babel-core/register");
var gulp = require( "gulp" );
var webpack = require( "webpack-stream" );
var sourcemaps = require( "gulp-sourcemaps" );
var rename = require( "gulp-rename" );
var uglify = require( "gulp-uglify" );
gulp.task( "build", function() {
return gulp.src( ["src/clairendex.js"] )
.pip... |
/**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* completely built.
*/
build_dir: 'dev',
compile_dir: 'd... |
config = {};
// What port should this API run on?
config.port = {{ port }};
// Set this to something unique. It'll be used to encrypt JWT payloads.
config.jwtSecret = '{{ jwtSecret }}';
// Mailgun setup:
config.mailgunApiKey = '{{ mailgunApiKey }}';
config.mailgunDomain = '{{ mailgunDomain }}';
module.exports = config... |
require('distraught').cronServer({
crons: [{
name: 'Console.log `tick` every 5 seconds',
cronTime: '*/5 * * * * *',
onTick: () => {
console.log('tick'); // eslint-disable-line
},
}],
});
|
import React, { PropTypes } from 'react';
import previewStyle from './defaultPreviewStyle';
export default function SelectPreview({ value }) {
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
}
SelectPreview.propTypes = {
value: PropTypes.string,
};
|
var dq = require('dq')
, stats = require('./stats')
//this is shitty code
var me = module.exports
var PREFIX = 'wq'
me.WorkerQueue = WorkerQueue
me.create = function (params, callback) {
if (!params.name) throw new Error('You must pass a name to the create() function.')
if (params.name === 'system') throw ne... |
/**
* @author GJS <1353990812@qq.com>
*
* GJS reserves all rights not expressly granted.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 GJS
*
* 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
* t... |
'use strict';
angular.module('core').controller('HomeController', ['$scope', '$http', 'Authentication', 'Users', 'UserTool', 'uiGmapGoogleMapApi',
function($scope, $http, Authentication, Users, UserTool, uiGmapGoogleMapApi) {
// This provides Authentication context.
$scope.authentication = Authentication;
$sc... |
var gulp = require('gulp'),
sass = require('gulp-sass'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'),
embedlr = require('gulp-embedlr'),
connect = require('connect');
gulp.task('clean', function(){
return gulp.src(['build/*'], {read:false})
... |
'use strict';
module.exports = {
db: 'mongodb://localhost/gestao-de-processos-test',
port: 3001,
app: {
title: 'Gestão de Processos - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/call... |
import propertiesReader from 'properties-reader';
export default class PropertiesService {
constructor() {
this.properties = propertiesReader('./application.properties');
}
get(propertyName) {
return this.properties.get(propertyName);
}
} |
import React, { PropTypes } from 'react'
const Nav = () => (
<header className='sans-serif'>
<div
className='cover bg-left bg-center-l'
style={{
backgroundImage: 'url(/assets/images/bg.jpg)'
}}>
<div className='bg-black-80 pb5 pb6-m pb7-l'>
<nav className='dt w-100 mw8 c... |
var express = require('express');
var formidable = require('formidable');
var jwt = require('jsonwebtoken');
var fs = require('fs');
var config = require('../config.js');
var path = require('path');
var media_model = require('../models/media.js');
var media = express.Router();
media.get('/:id', fu... |
'use strict';
// Configuring the Articles module
angular.module('xtasklists').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'tasks', 'xtasklists', 'dropdown', '#');
Menus.addSubMenuItem('topbar', 'xtasklists', 'list tasks', 'tasklists');
Menus.addSubMenuItem('topbar', '... |
/* import Collision */ var Collision = require('./../../../../app/js/model/physics/Collision');
/* import Box */ var Box = require('./../../../../app/js/model/geometry/shape/Box');
/* import Circle */ var Circle = require('./../../../../app/js/model/geometry/shape/Circle');
/* import Segment */ var Segment = require('.... |
$(document).ready(function(){
$('#attachmentName').change(function(){
$('#_attachmentName').val($('#attachmentName').val());
});
});
|
const console = {
log: print
};
//const EventEmitter = require('events');
const rxlib = 'rxjs.5.0.0.min.js';
//const { Observable, Subject } = require(rxlib);
//const rxObj = require(rxlib);
//const Observable = rxObj.Observable;
//const Subject = rxObj.Subject;
console.log('Observable:');//, Observable);
conso... |
var webpack = require('webpack')
module.exports = {
entry: [
// 'webpack-dev-server/client?http://localhost:2017',
// 'webpack/hot/only-dev-server',
'./src/main.js'
],
output: {
filename: 'bundle.js',
path: __dirname + '/dist',
publicPath: 'http://localhost... |
// trigger-then.js 0.1.1
// (c) 2013 Tim Griesser
// trigger-then may be freely distributed under the MIT license.
// Exports the function which mixes `triggerThen`
// into the specified `Backbone` copy's `Events` object,
// using the promise-lib's "all" implementation provided
// in the second argument.
(... |
var Twit = require('./node_modules/twit');
var stationsearch = require("./lib/stationsearch")();
var settings = require('./lib/settings.js');
var T = new Twit({
consumer_key: settings.consumer_key
, consumer_secret: settings.consumer_secret
, access_token: settings.access_token
, access_... |
console.log('vcf.js loaded :-) !');
// this will come handy if you're hosting this form GDrive
// find . -name "Icon*" -exec rm -f '{}' +
// about VCFs:
// one page: http://vcftools.sourceforge.net/VCF-poster.pdf
// get variant summary: jQuery.get('https://www.googledrive.com/host/0BwwZEXS3GesiTjlHSmlOcEJaeDA/vcf/vari... |
// ==========================================================================
// Element utils
// ==========================================================================
import { toggleListener } from './events';
import is from './is';
// Wrap an element
export function wrap(elements, wrapper) {
// Convert `el... |
const spawnSync = require('cross-spawn').sync
const path = require('path')
const scriptPath = path.resolve(__dirname, '../crow-scripts-lint.js')
const runScript = (path) => spawnSync('node', [ scriptPath ], { cwd: path })
const fixturePath = (name) => path.resolve(__dirname, '../__fixtures__', name)
require('./to-run... |
({
mustDeps: [
{block: 'i-bem', elems: ['dom']}
]
})
|
/* global it expect */
import React from 'react';
import { Link } from 'react-router-dom';
import { shallowWithIntl } from '../../utils/intlEnzymeHelper';
import FrontPage from '../FrontPage';
import GlobalLeaderBoards from '../GlobalLeaderBoards';
const mockBase = () => ({
bindToState: () => {},
removeBinding: ... |
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const nock = require('nock');
chai.use(chaiAsPromised);
const should = chai.should();
const config = require('./config');
describe('Payoneer Module', function() {
before(function() {
nock.disableNetConnect();
});
afterEach(fu... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
/**
* Created by cljin on 2016/3/28.
*/
var fs=require('fs');
fs.readFile('input', function (err,data) {
if(err)return console.log(err.toString());
console.log(data.toString());
})
var events=require('events');
var eventEmitter=new events.EventEmitter();
eventEmitter.on('e', function () {
console.log('事... |
import { actions as notifActions } from 'redux-notifications';
import { currentBackend } from 'Backends/backend';
import { createAssetProxy } from 'ValueObjects/AssetProxy';
import { getAsset, selectIntegration } from 'Reducers';
import { getIntegrationProvider } from 'Integrations';
import { addAsset } from './media';... |
var chai = require('chai');
var chaihttp = require('chai-http');
chai.use(chaihttp);
var expect = chai.expect;
process.env.MONGOLAB_URI = 'mongodb://localhost/auth_test';
require(__dirname + '/../server');
var mongoose = require('mongoose');
var User = require(__dirname + '/../models/user');
var eatAuth = require(__dir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.