code stringlengths 2 1.05M |
|---|
var winston = require('winston');
winston.loggers.add('http_access',{
file: {
filename: process.cwd()+'/logs/http_access.log'
}
});
winston.loggers.add('newUsers',{
file: {
filename: process.cwd()+'/logs/newUsers.log'
}
});
winston.loggers.add('notifies',{
file: {
filename: process.cwd()+'/... |
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import auth from './auth';
export default combineReducers({
router: routerReducer,
auth,
});
|
import reducer from '../../src/reducers/NavigationReducer';
import * as types from '../../src/actions/types';
describe('navigation reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {})).toEqual(
{
leftClicked: false,
rightClicked: false,
curre... |
// custom marker for selected restaurant
var plainMarker = L.icon({
iconUrl: './leaflet-0.8-dev/images/marker-icon.png',
iconSize: [18, 30],
iconAnchor: [9, 30],
});
var starMarker1 = L.icon({
iconUrl: './leaflet-0.8-dev/images/marker-star1.png',
iconSize: [18, 30],
iconAnchor: [9, 30],... |
// pageObjectExample1.js
// This is a simple page object pattern example that does the following:
// open page
// verify copyright
// fill in search form and submit
// wait for results on results page
// verify results
// Page objects are used to provide another layer of abstraction between
// the page information a... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPost, deletePost } from '../actions';
class PostsShow extends Component {
componentDidMount() {
const { id } = this.props.match.params;
this.props.fetchPost(id);
}
onDe... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
module.exports = function(app) {
// User Routes
var users = require('../controllers/users.server.controller');
// Setting up the users profile api
app.route('/api/users/me').get(users.me);
app.route('/api/users').put(users.upda... |
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
/**
* Webpack Plugins
*/
const AddAssetHtmlPlugin = require('add-asset-html-webpack-plugin');
cons... |
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react/lib/ReactTestUtils';
import { Home } from './home';
describe('home', () => {
var props, result;
beforeEach(() => {
props = {
auth: {
authenticated: true
},
application: {
started: t... |
module.exports = {
data: {
badguys: []
},
methods: {
generate_badguys: function () {
var amount = 1000
// generate code here
this.badguys = null // replace null with an array of objects
// this will be the structure of the generated code
// this is temporary data (more li... |
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
module.exports = function(config){
config.set({
basePath : '../',
files : [
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
exclude : [
'app/lib/angular/angular-loader... |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
var debug = grunt.option('env') !== 'production';
grunt.config('env.' + grunt.option('env'), true);
grunt.config('clean', ['./client/build']);
grunt.config('browserify', {
options: {
debug: debug,
watch: true
},
... |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
... |
const { expect } = require('chai');
const path = require('path');
const output = require('./output');
describe('Webpack -> Output', () => {
it('Builds the output object', () => {
const BUILD = 'BUILD';
const BUNDLE = 'BUNDLE';
const ROOT = '../ROOT';
const VENDOR = false;
const configuration = {... |
import defprotocol from '../defprotocol'
import Function from '../types/Function'
const IPersistentStack = defprotocol({
peek: Function,
pop: Function,
push: Function
})
export default IPersistentStack
|
'use strict';
var path = require('path');
module.exports = function (config, storages) {
config.port = process.env.MEDIA_SERVICE_PORT || 80;
config.autoRestart = true;
config.progressive = true;
config.metadata = false;
config.quality = 90;
config.webp = true;
// access control
config.enableAccessCo... |
function EditWorksCtrl($scope, QuoteService) {
QuoteService.findOrCreateForWorks($scope);
$scope.remove = function(idx) {
$scope.utils.remove($scope.editing.works, idx);
$scope.qot.initRowNumbers($scope.editing.works);
$scope.qot.updateWorksTotal($scope, $scope.editing);
}
$scope.add = function(i... |
var assert = require('chai').assert;
var user = require('../util/models/user');
var util = require('./rest-builder-util');
var putObj = {
key: 'value'
};
var putData = {
q: putObj
};
describe('RestBuilder', function() {
describe('definePut', function() {
util.setUp();
describe('no processors', functio... |
'use strict';
angular.module('myApp.list-downloading', [
'ngRoute'
])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/list-downloading', {
templateUrl: 'list-downloading/list-downloading.html',
controller: 'ListDownloadingCtrl'
});
}])
.controller('ListDownloadingCtrl', ['$rootScop... |
$(document).ready(function(){
$('.page-add-gallery .form-colors [data-toggle="buttons"] .btn-color').click(function(){
if($(this).hasClass('active')) {
// alert('active');
}else {
if($('.page-add-gallery .form-colors [data-toggle="buttons"] .active').length >= 3) {
event.stopPropagation();... |
import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
model() {
return this.store.query('order', {
filter: { simple: { active: false } }
});
},
renderTemplate(controller, mod... |
import { combineReducers } from 'redux'
import {
FETCH_NEWS,
FETCH_NEWS_FULFILLED,
FETCH_NEWS_REJECTED
} from '../actions/news'
import {
FETCH_STORY,
FETCH_STORY_REJECTED,
FETCH_STORY_FULFILLED
} from '../actions/story'
import { CLOSE_DIALOG } from '../actions/dialog'
const isFetching = (state = false, acti... |
"use strict";
/* globals AccountsAnonymous, AccountsMultiple, Hook */
Accounts.registerLoginHandler("anonymous", function(options) {
if (!options || !options.anonymous || Meteor.userId()) {
return undefined;
}
var newUserId = Accounts.insertUserDoc(options, {});
return {
userId: newUserId
};
});
Ac... |
import React, { Component } from 'react'
import BodySection1 from './BodySection1'
import BodySection2 from './BodySection2'
import BodySection3 from './BodySection3'
import { Link } from 'react-router'
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Parallax } from 'react-parallax';
class Body ex... |
'use strict';
var fs = require('fs');
var path = require('path');
function numFiles(dir, items, callback) {
var total = items.length;
var files = 0;
var completed = 0;
if (total === 0) {
callback(null, 0);
}
items.forEach(function(item) {
fs.stat(path.join(dir, item), function(err, stats) {
... |
/**
* Created by intelligrape on 11/3/16.
*/
describe('Unit : MediaPlayerPluginWidget Home Controller', function () {
beforeEach(module('MediaPlayerPluginWidget'));
var $controller, $scope, WidgetHome, $routeParams, Buildfire,rootScope;
beforeEach(inject(function (_$controller_, _$rootScope_, _Buildfir... |
module.exports = (Bluebird) => {
Bluebird.prototype.spread = function spread(fn) {
return this.all().then(results => fn(...results));
};
} |
const types = require('./packages/mjml-core/lib/types/type.js')
const enumtype = types.initializeType('enum(top,left,center)')
const colortype = types.initializeType('color')
const booleantype = types.initializeType('boolean')
const unittype = types.initializeType('unit(px,%){1,3}')
const stringtype = types.initialize... |
Calendula.addLocale("it",{months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortDayNames:["Do","Lu","Ma","Me","Gi","Ve","Sa"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],today:"Oggi",firstWeekday:1}); |
$(function () {
// There is a class name set on the nav-item that is the same as path
// else assume we are on startpage
currentpageclass = window.location.pathname.replace(/^\/|\/$/g, "");
// If no path then assume we are on startpage
if (currentpageclass == "") {
$('.startsida')... |
define(['../string/typecast', '../lang/isString', '../lang/isArray', '../object/hasOwn'], function (typecast, isString, isArray, hasOwn) {
/**
* Decode query string into an object of keys => vals.
*/
function decode(queryStr, shouldTypecast) {
var queryArr = (queryStr || '').replace('?', '').split('... |
"use strict";
module.exports = {
array: require('./array'),
debug: require("./debug"),
livereload: require("./livereload"),
log: require("./log"),
module: require("./module"),
regexp: require("./regexp")
};
|
var listen = require('./client/display.js').listen
var $ = require('jquery')
$(() => {
listen()
})
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
name: 'attribute-sets',
connection: 'default',
useAuth: true,
useACL: true,
useBuildInEndPoints: ['list', 'read', 'create', 'edit', 'delete'],
schema: {
title: {
type: 'strin... |
import * as CES from 'ces';
import * as BABYLON from '../lib/babylon';
import { c_light } from '../components/c_light';
/**
* ...
* @author Brendon Smith
* http://seacloud9.org
* LightWeight 3D System Design engine
*/
export class e_light{
constructor(_defaults = null){
this._defaults = _defaults == null ? thi... |
export function assertIsString(x, name) {
if (typeof x !== "string") {
throw new Error(`Expected ${name} to be a string, got ${x}.`);
}
}
export function assertIsNonEmptyString(x) {
if (typeof x !== "string" || x.length === 0) {
throw new Error(`Expected a non-empty string, got ${x}`);
}
}
export func... |
{
("use strict");
var HTMLElement = scope.wrappers.HTMLElement;
var registerWrapper = scope.registerWrapper;
var unwrap = scope.unwrap;
var rewrap = scope.rewrap;
var OriginalHTMLImageElement = window.HTMLImageElement;
function HTMLImageElement(node) {
HTMLElement.call(this, node);
}
HTMLImageE... |
'use strict';
import Immutable from 'immutable';
export default {
DEFAULT_STATE: Immutable.fromJS({
channels: [],
activeChannel: null,
users: [],
user: null,
messages: []
})
/*
DEFAULT_STATE: Immutable.fromJS({
channels: [
{id: 1, name: 'channel 1'},
{id: 2, name: 'channel 2... |
var should = require('should')
var Store = require('../../../store/postgres')
describe('Postgres: UUID Key', function() {
var store
var database = 'uuid_key_test'
before(function(next) {
this.timeout(5000)
beforePG(
database,
[
'CREATE EXTENSION IF NOT EXISTS \\"uuid-ossp\\"',
... |
var searchData=
[
['root_279',['root',['../structbwRTree__t.html#ad4566d3fdd23ac4918104d23c77a7ddb',1,'bwRTree_t']]],
['rootoffset_280',['rootOffset',['../structbwRTree__t.html#aa3e57a494e0c45d56dca1de0939e8197',1,'bwRTree_t']]],
['runningwidthsum_281',['runningWidthSum',['../structbwWriteBuffer__t.html#a395634c6... |
/**
* Extensions provide means of extending the page controllers with additional
* managed state and logic.
*
* An extension has access to the current route parameters, specify the
* resources to load when the page is loading or being updated, may intercept
* event bus events and modify the state of the page just... |
const fp = require('lodash/fp')
const { handleActions } = require('redux-fp')
module.exports = handleActions({
SET_SOCKET_CLIENT: ({ payload: { socket } }) =>
fp.set(['socketClients', socket.id], socket),
UNSET_SOCKET_CLIENT: ({ payload: { socket } }) =>
fp.unset(['socketClients', socket.id]),
SET_SOCKE... |
version https://git-lfs.github.com/spec/v1
oid sha256:ceb6c3cd7166befa772ac603351dea546ba4ae40384834f19111fac325627715
size 24214
|
(function(){
angular
.module('app.answer')
.controller('answerController', answerController);
answerController.$inject = ['$stateParams','$firebaseObject'];
function answerController($stateParams, $firebaseObject){
var vm = this;
vm.id = $stateParams.id;
vm.addVote = addVote;
... |
/* ========================================================================
* Bootstrap: modal.js v3.1.0
* http://getbootstrap.com/javascript/#modals
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstra... |
var gulp = require('gulp');
var revOrig = require('./../index.js');
gulp.task('revOrig-default', function (argument) {
gulp.src('test.html')
.pipe(revOrig())
.pipe(gulp.dest('./dist'));
});
gulp.task('revOrig-withBase', function (argument) {
gulp.src('test.html')
.pipe(revOrig({
base: 'assets/'
}))
.pi... |
import React from 'react';
const ReactComponenta1 = () => <h2> Hello </h2>;
const ReactComponenta2 = () => <input />;
const ReactComponenta3 = () => <button>Add Me</button>;
const allBox = [
{
uid: 'a1',
title: 'Box-1',
content: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.... |
require("coffee-script/register");
module.exports = require("./machina.coffee"); |
import React, { Component, PropTypes } from 'react';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class Column extends Component {
static propTypes = {
children: PropTypes.any,
style: PropTypes.object,
className: PropTypes.string,
isMultilin... |
import { createAction } from 'redux-actions'
import { NAME } from './constants'
import shop from 'api/shop'
const RECEIVE_PRODUCTS = `${NAME}/RECEIVE_PRODUCTS`
const receiveProducts = createAction(RECEIVE_PRODUCTS)
const getAllProductsAsync = () => (dispatch) =>
shop.getProducts(products => {
dispatch(re... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var WorkSchema = Schema({
name: {
type: String,
required: true
},
desc: {
type: String,
required: true
},
photo: [String],
tag: [String],
pubDate: {
type: Date,
default: Date.now,
required: true
},
id: Schema.Types.... |
class LocalstorageController {
/*@ngInject*/
constructor($location, persistenceService) {
this.$location = $location;
this.persistenceService = persistenceService;
this.initData();
}
initData() {
this.localStorageAsText = this.persistenceService.export();
}
imp... |
/*
* (C) Copyright 2014-2017 Markus Moenig <markusm@visualgraphics.tv>.
*
* This file is part of Visual Graphics.
*
* Visual Graphics is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either versio... |
data = [{"t":0,"command":"create goroutine","name":"main"},
{"t":370879,"command":"create goroutine","name":"handler #6","parent":"main"},
{"t":375939,"command":"create goroutine","name":"handler #5","parent":"main"},
{"t":422330,"command":"create goroutine","name":"handler #11","parent":"main"},
{"t":478234,"command":... |
/**
* Property graph processing engine
*
* To use this processor engine, load the module, and call the `run()` function
* with the appropriate configuration setting like the following sample shows:
* var engine = require('proper');
* engine.run( getConfiguration() );
*
*/
(function() {
var verbose... |
describe('Optimistic Cache', function () {
var $q = null;
var $rootScope = null;
var optimisticCache = null;
beforeEach(module('rt.optimisticcache'));
beforeEach(inject(function ($injector) {
$q = $injector.get('$q');
$rootScope = $injector.get('$rootScope');
optimisticCach... |
const fs = require("fs");
const path = require("path");
const https = require("https");
const url = require("url");
const replace = require("replace-in-file");
module.exports = () => {
let cssPath = path.join(process.cwd(), "./node_modules/antd/dist/antd.css");
const options = {
files: ["node_modules/antd/dist... |
const webpack = require('webpack');
const SpriteLoaderPlugin = require('svg-sprite-loader/plugin');
module.exports = {
entry: {
app: './src/js/main.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: [/node_module/],
use: {
loader: 'babel-loader',
option... |
module.exports = function(mongoose) {
var Comment = new mongoose.Schema({
userId: { type: String },
firstName: { type: String },
lastName: { type: String },
comment: { type: String },
date: { type: Date } // When the comment was added
});
var Like = new mongoose.Schema({
userId: { type: Str... |
/**
* Gen 1 mechanics are fairly different to those we know on current gen.
* Therefor we need to make a lot of changes to the battle engine for this game simulation.
* This generation inherits all the changes from older generations, that must be taken into account when editing code.
*/
exports.BattleScripts = {
i... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "keyserv_solutions"); |
"use strict";
(function (socket_path, thread_id) {
var socket = io(socket_path)
, thread_id = 6
, commentLists = []
, commentBox;
socket.emit('comment/list', {thread_id: thread_id});
socket.on('user', function (user) {
var comments = [];
var submitCallback = function (replyTo, body) {
... |
/**
* <http://stackoverflow.com/a/5158301>
*/
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
} |
var path = require('path');
var webpack = require('webpack');
var writeStats = require('./utils/writeStats');
var notifyStats = require('./utils/notifyStats');
var assetsPath = path.resolve(__dirname, '../static/dist');
var host = 'localhost';
var port = parseInt(process.env.PORT) + 1 || 3001;
module.exports = {
dev... |
'use strict';
const _ = require('lodash');
const EntityHelper = require('../entity_helper');
const ExpenseClaim = require('../../entities/accounting/expenseclaim')
.ExpenseClaim;
const ExpenseClaims = EntityHelper.extend({
constructor: function(application, options) {
EntityHelper.call(
this,
appl... |
// ==UserScript==
// @name SteamGifts GA input
// @description Adds input on top menu where you can enter 5characters of GA id and it will open the GA page for you.
// @author Bladito
// @version 1.0.0
// @homepageURL https://greasyfork.org/en/users/55159-bladito
// @match https://www.steamg... |
'use strict';
(function(module) {
function MyProject (proj) {
for (let keys in proj) {
this[keys] = proj[keys]
}
}
MyProject.allProjects = [];
MyProject.prototype.toHtml = function() {
var htmlTemplate = $('#template').html();
var template = Handlebars.compile(htmlTemplate);
return... |
var dir_647e010a77631e7624f52ccf2ba3318e =
[
[ "html", "dir_04014538701d9c618e4a0af4f034e730.html", "dir_04014538701d9c618e4a0af4f034e730" ]
]; |
import React from 'react';
import Comment from './comment';
export default class CommentList extends React.Component {
render() {
var commentNodes = this.props.data.map(function(comment){
return (
<Comment author={comment.author} key={comment.id}>
{comment.text}
</Comment>
)... |
import HalAdapter from "ember-data-hal-9000/adapter";
import DS from "ember-data";
import Ember from "ember";
import config from "../config/environment";
let accessToken;
export function setAccessToken(token) {
accessToken = token;
}
export function getAccessToken() {
return accessToken;
}
export default HalAda... |
export default {
el: {
colorpicker: {
confirm: 'Qabul qilish',
clear: 'Tozalash'
},
datepicker: {
now: 'Hozir',
today: 'Bugun',
cancel: 'Bekor qilish',
clear: 'Tozalash',
confirm: 'Qabul qilish',
selectDate: 'Kunni tanlash',
selectTime: 'Soatni tanlash... |
$(function() {
var widgets = [];
var currentWidget = 0;
function updateWidgets() {
$.ajax({
url: '/widgets.json',
}).success(function(result) {
widgets = result;
iterate();
}).always(function(result) {
setTimeout(updateWidgets, 2000);
});
}
updateWidgets();
functio... |
const path = require('path')
const execa = require('execa')
const logger = require('./lib/logger')
const { exampleAppsToRun } = require('./lib/paths')
const { createBundle } = require('./lib/bundle')
const bundle = createBundle()
const executeTest = (projectPath) => {
// we change current directory
process.chdi... |
/* global phantom, exports, require, console */
(function () {
'use strict';
exports.resolveUrl = function (url, verbose) {
var fs = require('fs');
// assume http if no protocol is specified
// and we're not looking at a local file
if (!url.match(/:\/\//)) {
if (!fs.exists(url)) {
u... |
'use strict';
var gaModule = require('./gaModule'),
gaConfig = require('./gaConfig'),
gaSettingsConstant = require('./gaSettingsConstant'),
gaProvider = require('./gaProvider');
gaModule
.config(gaConfig)
.constant('$gaSettings', gaSettingsConstant)
.provider('$ga', gaProvider);
module.export... |
/**
* Easy reference for key codes
*/
var KEYS = {
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
W: 87,
A: 65,
S: 83,
D: 68,
R: 82
}; |
(function() {
'use strict';
/**
* [BetService Serves the application with resources data and calculate result]
*
*/
function BetService($http, betHelper) {
var _self = this;
/*
* Public function
* Gets resource file data.txt to be processed
* Returns promise
*/
_self.getResourceFile = funct... |
export default function($scope, Seasons, $state){
"ngInject";
$scope.Seasons = Seasons;
$scope.selectSeason = function(season){
Seasons.setSelectedSeason(season)
$state.reload();
}
}
|
/*
* The MIT License (MIT)
* Copyright (c) 2020 Karl STEIN
*/
import { ERROR_FIELD_FORMAT } from '../errors';
import FieldError from './FieldError';
class FieldFormatError extends FieldError {
constructor(field, format, path) {
super(field, path, ERROR_FIELD_FORMAT);
this.format = format;
this.messag... |
/*global Raphael:true */
var impact = function (data) {
'use strict';
var COL_WIDTH = 100,
COL_SEP = 50,
UNIT_HEIGHT = 10,
PATH_SEP = 3,
colLblAttr = {font: '9px "Arial"', stroke: 'none', fill: '#aaa'},
pathLblAttr = {font: '9px "Arial"', stroke: 'none', fill: '#fff'},
... |
var Popover = ReactBootstrap.Popover;
var ButtonToolbar = ReactBootstrap.ButtonToolbar;
var OverlayTrigger = ReactBootstrap.OverlayTrigger;
var Button = ReactBootstrap.Button
var popoverInstance = (
<div style={{ height: 180 }}>
<ButtonToolbar>
<OverlayTrigger trigger="click" placement="left" overlay={<Po... |
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. 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
* ... |
/* ========================================================================
* MZUI: doc.js
* https://github.com/easysoft/mzui
* ========================================================================
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
* ================================================================... |
export const error = (msg) => ({ error: msg })
export const success = (data) => ({ response: data })
|
/*********************************************
* app-src/js/ycalendar.js
* YeAPF 0.8.63-106 built on 2019-07-11 09:42 (-3 DST)
* Copyright (C) 2004-2019 Esteban Daniel Dortta - dortta@yahoo.com - MIT License
* 2018-05-30 11:21:04 (-3 DST)
* First Version (C) August 2013 - esteban daniel dortta - dortta@yahoo.com
*... |
define([
'./script/dbpediaQuery',
'./script/dbpediaQueryArea',
'./script/dbpediaQueryDump',
'./script/dbpediaSvc',
'./script/dbpImgHistory',
'./script/dbpImgSearch',
'./script/dbpKey',
'./script/dbpSpecies',
'./script/dbpFungi'
],
function(){}) |
import React from 'react';
import { Link } from 'react-router';
import Breadcrumbs from 'components/Breadcrumbs';
class FilesPage extends React.Component {
constructor(props) {
super(props);
}
renderBreadcrumbs(breadcrumbs) {
//console.log(breadcrumbs);
if (Array.isArray(breadcrumbs)) {
return... |
const mongoose = require('mongoose');
const childSchema = new mongoose.Schema({ subName: String });
module.exports = childSchema;
|
// @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router';
import { connect } from 'react-redux';
import { Button, Header, Icon, Menu, Modal, Segment, Table } from 'semantic-ui-react';
import AccountsCustomJson from '../components/Accounts/Cu... |
const gulp = require('gulp');
const browserify = require('browserify');
const babelify = require('babelify');
const source = require('vinyl-source-stream');
const watchify = require('watchify');
const webserver = require('gulp-webserver');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
co... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
var lastName = root,
namespace = 'allColors.ideaColorThemes.netbeans8'.split('.');
for... |
var searchData=
[
['paperfigures',['PaperFigures',['../class_paper_figures.html',1,'']]],
['parameter',['Parameter',['../class_parameter.html',1,'']]],
['pathway',['Pathway',['../class_pathway.html',1,'']]],
['pdfutil',['PdfUtil',['../class_pdf_util.html',1,'']]],
['physicalobject',['PhysicalObject',['../clas... |
(function() {
window.Glow = {
flash: function(type, message) {
return $(document).trigger('glow:flash', {
type: type,
message: message
});
}
};
$(document).ajaxComplete(function(evt, xhr, options) {
var message, type;
type = xhr.getResponseHeader('X-Message-Type');
... |
export default {
uiv: {
datePicker: {
clear: 'Törlés',
today: 'Ma',
month: 'Hónap',
month1: 'január',
month2: 'február',
month3: 'március',
month4: 'április',
month5: 'május',
month6: 'június',
month7: 'július',
month8: 'augusztus',
month9: '... |
// @flow
export default ( siteInformation: Object ) => '/graphql'
|
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var app = express();
//Añadir el módulo de MongoDB
var mon... |
var ConfigManager = require('./components/config_manager');
var RenderEngine = require('./components/render_engine');
var OrientationManager = require('./components/orientation_manager');
var Network = require('./components/network');
var LocalStream = require('./components/local_stream');
var DepthRender = require('./... |
'use strict';
/* The following tests are copied from WPT. Modifications to them should be
upstreamed first. Refs:
https://github.com/w3c/web-platform-tests/blob/ed4bb727ed/url/urltestdata.json
License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html
*/
module.exports =
[
"# Based on http... |
const util = require('util');
const moment = require('moment');
const mysql = require('mysql2');
const Base = require('db-migrate-base');
const Promise = require('bluebird');
let log;
let type;
let internals = {};
const MysqlDriver = Base.extend({
init: function (connection) {
this._escapeDDL = '`';
this._e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.