code
stringlengths
2
1.05M
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
'use strict'; (function() { // Ratings Controller Spec describe('Ratings Controller Tests', function() { // Initialize global variables var RatingsController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the ...
/* global require, module */ 'use strict'; const articles = require('../libs/articles_display'); var express = require('express'); const router = express.Router(); /** GET List of articles. */ router.get('/', displayList); router.get('/tag/:tag', displayList); function displayList(req, res) { let tag = req.params...
/** * == Language == * Additions to JavaScript's "standard library" and extensions to * built-in JavaScript objects. **/ var Abstract = { }; /** section: Language * Try **/ /** * Try.these(function...) -> ? * - function (Function): A function that may throw an exception. * * Accepts an arbitrary number ...
"use strict"; const glob = require("glob"); const fs = require("fs-extra-promise"); const path = require("path"); const jconv = require("jconv"); const remote = require('remote'); const dialog = remote.require('dialog'); class Util { /** * 非同期glob */ static globAsync(pattern, options) { return new Prom...
/*global define*/ define(function () { 'use strict'; function maExportToCsvButton ($stateParams, Papa, notification, entryFormatter, ReadQueries) { return { restrict: 'E', scope: { entity: '&', label: '@', }, template: '<b...
window.Lizard = { 'Config': { 'locale': 'zh-cn', }, }; $(".select2-tags").select2({ tags: true, }); var timeAgoItems = $('.timeago'); for(var i=0; timeAgoItems.length; i++) { var time_str = timeAgoItems[i].innerHTML; timeAgoItems[i].innerHTML = moment(time_str).locale(Lizard.Config.locale)...
import Immutable from 'immutable'; import lodash from 'lodash'; import UserRecord from 'redux/models/users'; export const STATE = { USER_LOAD: '@@autolib/user/USER_LOAD', USER_SUCCESS: '@@autolib/user/USER_SUCCESS', USER_FAIL: '@@autolib/user/USER_FAIL', }; const initialState = { users: Immutable.List(), lo...
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib' /** * A feed can contain a user element. */ function FeedUser(props) { const { children, className, content } = props const classes = c...
/********************************************************* * * * Developed by CJC Automatisering. * * MIT License, copyright (c) 2014 MediaLab Amsterdam * * * *******************...
/* globals google */ /* eslint-disable no-unused-vars */ import { config } from '../config'; import MediatorEvents from '../enums/mediatorEvents'; import MediatorEventModel from '../models/mediatorEventModel'; export default class AbstractPinStrategy { generateMultiplePins( pinsArray, pinType, holidayType ) { ...
const ajaxRequester = (() => { class Requester { _sendAjax(method, url, options) { options = options || {}; const headers = options.headers || {}, data = options.data || {}, contentType = options.contentType || 'application/json'; const promise = new Promise((resolve, reject) => { $.ajax(url, ...
define('async@0.0.0/async.js', [], function(require, exports, module){ exports.load = function (callback) { require.async('./relative', function (relative) { callback(relative); }); }; }, { map: { './relative': 'async@0.0.0/relative.js' }, main: true });
/** * The base model error * * @author Jelle De Loecker <jelle@elevenways.be> * @since 1.1.0 * @version 1.1.0 * * @param {String} message */ const ModelError = Function.inherits('Alchemy.Error', 'Alchemy.Error.Model', function Model(message) { Model.super.call(this, message); });
import React from "react"; import PropTypes from "prop-types"; import ReadoutItemIconStyle from "./components/ReadoutItemIconStyle"; import Icon from "components/Icon/index"; ReadoutItemIcon.propTypes = { children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]), iconBorderStyle: PropTypes.string, ico...
var requestify = require('requestify'); var baseURL = "https://accounts-app.bullethq.com/api/v1"; var USERNAME = ""; var PASSWORD = ""; exports.initialize = function(email, key, companyId) { USERNAME = email + (companyId ? ":" + companyId : ""); PASSWORD = key; }; exports.listAllInvoices = function(next) { get("/...
/** * Created by FrogAhn on 2017-05-30. */ var db = require('mongoose'); var Schema = db.Schema; var register = new Schema({ serialNo: {type: Number, required: true} }) module.exports = db.model('register',register);
/** * Notification model */ 'use strict'; var locator = require('node-service-locator'); var q = require('q'); var moment = require('moment-timezone'); var BaseModel = locator.get('base-model'); /** * Notification model class * * @constructor * @param {object} model DB row used as source for this instance ...
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const program = require('commander'); const TmdbScript = require('../src/TmdbScript'); const {STEP} = require('../src/Constants'); program .version('1.0.9') .option('-c, --config', 'A file path to the json config file.') .option('-t, --transfer...
/** * Created by crossApp on 16/8/8. */ var MenuViewController = ca.CAViewController.extend({ ctor: function () { this._super(); }, viewDidLoad: function() { this.getView().setColor(ca.CAColor4B.CLEAR); this.menuList = []; this.menuList.push("CrossApp"); this....
(function() { 'use strict'; angular.module('myWeb').component('work', { controllerAs: 'vm', controller: function () { var vm = this; vm.works = [ { id: 0, title: "Software Engineer II", company: "Cis...
import Component from 'react-pure-render/component' import React from 'react' export default class EventsNav extends Component { constructor(props) { super(props) } render() { return ( <nav className="main-nav"> <ul> <li className="active"><a>Vše</a></li> <li><a>Konce...
var polyhash = require('../').Polyhash; var bermuda_triangle = [ [ 25.774252, -80.190262 ], [ 18.466465, -66.118292 ], [ 32.321384, -64.75737 ] ]; var hashes = polyhash(bermuda_triangle, 5); console.dir(hashes); console.log(hashes.length);
'use strict'; var React = require('react'); var PureRenderMixin = require('react-addons-pure-render-mixin'); var SvgIcon = require('../../svg-icon'); var ImagePhotoFilter = React.createClass({ displayName: 'ImagePhotoFilter', mixins: [PureRenderMixin], render: function render() { return React.createElemen...
"use strict"; var fs = require('fs'), path = require('path'), _ = require('lodash'); function DataStore(filename) { this.filename = filename; } DataStore.prototype.setup = function(program) { if ( this._program !== program ) { this._program = program; this.setFile(program.config || path.join(process.env['HOM...
import assert from "assert"; import OptionManager from "../lib/transformation/file/options/option-manager"; import Logger from "../lib/transformation/file/logger"; import path from "path"; describe("option-manager", () => { describe("memoisePluginContainer", () => { it("throws for babel 5 plugin", () => { ...
"use strict"; var express = require('express'); var router = express.Router(); var mysql = require('mysql'); var crypto = require('crypto'); var http = require('http'); var title = "OpenBI"; var OK = { result: "ok" }; var ERROR = { result: "error" }; var pool = mysql.createPool({ host : "localhost", user :...
import { View, StatusBar, StyleSheet } from 'react-native'; import { StackNavigator } from 'react-navigation'; import { Provider } from 'react-redux'; import React from 'react'; // eslint-disable-next-line import/default import Expo from 'expo'; import DashboardDetector from './src/components/DashboardDetector'; impo...
version https://git-lfs.github.com/spec/v1 oid sha256:89a85ecbea76cd076c0379f491c65cc97ce830d1202820d680cb8b62ff7aa123 size 5957
import DS from 'ember-data'; import Ember from 'ember'; export default DS.Model.extend({ name: DS.attr(), description: DS.attr(), insertedAt: DS.attr("date"), tasks: DS.hasMany('task'), collaborators: DS.hasMany('collaborator'), taskStatuses: Ember.computed(function(){ return[ new Ember.Object({...
'use strict'; var Book = require('./book.model'); var Tag = require('../tag/tag.model'); var ErrCode = require('../../util/errcode'); var _ = require('lodash'); exports.getAll = function (req, res) { var searchParam = {}; if (req.params.id) { searchParam.tag = req.params.id; } Book .find(searchParam) ...
'use strict'; (function () { var optionButton = document.querySelector("#add-option"); var createButton = document.querySelector("#submit"); var options = document.querySelector("#options"); var opt = 3; optionButton.addEventListener('click', function(){ var i = document.createElement("...
(function () { "use strict"; var componentConfig = { bindings: { barcode: "<", isEstimate: "<", showDeleteImageOnModal: "<", allowSelection: "<", }, templateUrl: "js/work-orders/order-images-list-component.template.html", controller: [ "$scope", "$stateParams", ...
(function() { 'use strict'; /* * The grouped column chart is used to compare a series of data elements grouped * along the xAxis. This chart is often useful in conjunction with a stacked column * chart because they can use the same data series, and where the stacked column highlights * the sum of the d...
'use strict'; module.exports = function emailDateHeader(d){ if (!(d instanceof Date)) d = new Date(); d = ('' + d) .replace(/[a-z]+(\s[a-z]+)\s([0-9]+)(.+)/i, '$2$1$3') .replace(/[a-z]+([-+])|\s+\([a-z]+\)/ig, '$1'); return { name: 'Date', value: d, toString: function(){ return this.n...
/** * Created by chkui on 2017/5/22. */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.post = exports.get = exports.net = undefined; var _util = require('./util'); var _serverNetwork = require('./lib/net/serverNetwork'); var _serverNetwork2 = _interopRequireDefault(_serve...
var wf = WF(); wf.TMP = {}; // GET CURRENT NODE VERSION var nv = getNodeVersion(); // REQUIRE STD Object global.cluster = require('cluster'); global.os = require('os'); global.child_process = require('child_process'); global.exec = child_process.exec; global.spawn = child_process.spawn; global.execFile = child_proce...
module.exports = "ullo";
/* (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
export default (state = 'Express Beer', action = {}) => { switch (action.type) { case 'HOME': return 'Express Beer - Home'; case 'Products': return 'Express Beer - Produtos'; default: return state; } }; const capitalize = str => str.replace(/-/g, ' ').replace(/\b\w/g, l => l.toUpper...
/** * @overview * Mongoose configuration. */ import logger from 'winston'; /** * @description * Connect to the MongoDB database and log its events. * * @export * @param {any} mongoose - The mongoose module. * @param {string} uri - The MongoDB connection URI. */ export default async function configureMongo(m...
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. // For the complete reference: // http://docs.ckeditor.com/#...
app.controller('CommentController', ['$scope', '$timeout', 'Amared', function($scope, $timeout, Amared){ $scope.comments = []; $scope.allComments = []; $scope.subreddit = 'all'; $scope.Search = ''; $scope.maxLength = 100; $scope.getRecentComments = function(){ Amared.recentComments($scope.subreddit, f...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { SyncWaterfallHook, SyncHook, SyncBailHook } = require("tapable"); const { ConcatSource, OriginalSource, PrefixSource, RawSource, CachedSource } = require("webpack-sources"); const Compilation...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = setISOWeek; var _index = require('../toDate/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../getISOWeek/index.js'); var _index4 = _interopRequireDefault(_index3); function _interopRe...
/* */ 'use strict'; Object.defineProperty(exports, "__esModule", {value: true}); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi...
require('babel-core/register'); require('./motor_test');
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var arrowLeftThick = exports.arrowLeftThick = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M18 11h-7.244l1.586-1.586c.781-.781.781-2.049 0-2.828-.781-.781-2.047-.781-2.828 0l-6.414 6.414 6.414 6.414c.39.391.90...
//GENOME function GeeFuTuReferenceSource(source) { this.source = source; this.uri = source.uri; } GeeFuTuReferenceSource.prototype.fetch = function (chr, min, max, pool, callback) { var thisB = this; var url = this.uri + '?chr=' + chr + '&min=' + min + '&max=' + max; var req = new XMLHttpRequest(...
module.exports = function * appInit(beyo) { beyo.__app = beyo.__app || {}; this.__app = this.__app || {}; beyo.__app['default'] = true; this.__app['default'] = true; return "app"; }
import React from "react"; import PropTypes from "prop-types"; class Hello extends React.Component { static staticMethod() { return 42; } render() { return <div>{Object.keys(this.props)}</div>; } } Hello.propTypes = { count: PropTypes.number, title: PropTypes.string }; Hello.de...
'use strict'; const Antecons = require('../lib/antecons'), nock = require('nock'), expect = require('chai').expect; describe('Tracking', () => { let antecons; const tracking = { tracking_type: 'click', page_item: 'beer', referral_item: 'soda' }; beforeEach(() => { antecons = new Antecons(...
/** * angular-strap * @version v2.3.8 - 2016-04-05 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict';angular.module('mgcrea.ngStrap.aside').run(['$templateCache'...
'use strict'; /** * Module dependencies. */ var chaptersPolicy = require('../policies/chapters.server.policy'), chapters = require('../controllers/chapters.server.controller'); module.exports = function (app) { // Chapters collection routes app.route('/api/chapters').all(chaptersPolicy.isAllowed) ...
(function () { 'use strict'; angular .module('myApp') .controller('appController', ['$scope', '$rootScope', 'DataService', '$state', '$cookies', function($scope, $rootScope, DataService, $state, $cookies){ $rootScope.App = $scope.App = window.App; DataService...
Molecule.module('Molecule.Map', function (require, p) { var Sprite = require('Molecule.Sprite'); function Map(_game) { this.game = _game; this.canvas = []; this.context = []; this.name = null; this.visible = true; this.sprites = []; this.molecules = []; ...
import { map } from 'lodash/map'; const cartReducer = (state = { cart: [], products: [ { id: 1, productName: 'item1', price: 20 }, { id: 2, productName: 'item2', price: 30 }, { id: 3, productName: 'item3', price: 50 }, { id: 4, productName: 'item4', price: 40 }, { id: 5, productName: 'item5', p...
/* Tested against Chromium build with Object.observe and acts EXACTLY the same, though Chromium build is MUCH faster Trying to stay as close to the spec as possible, this is a work in progress, feel free to comment/update Specification: http://wiki.ecmascript.org/doku.php?id=harmony:observe Built usi...
(function() { function latestTracksChart() { return { restrict: 'EA', templateUrl: './app/components/dashboard/dashboard.charts/latest_tracks/latest_tracks.directive.html', controller: 'LatestTracksChartCtrl', controllerAs: 'vm' } } angular.m...
'use strict'; const BaseEmbed = require('./BaseEmbed.js'); /** * Generates daily deal embeds */ class DarvoEmbed extends BaseEmbed { /** * @param {Genesis} bot - An instance of Genesis * @param {DailyDeal} deal - The deal to be included in the embed */ constructor(bot, deal) { super(); this.co...
var $ = require('jquery'); var moment = require('moment-timezone'); var util = { ListPop: function(keyval, list, _key) { var key = _key || "id"; for (var i=0; i<list.length; i++) { var li_el = list[i]; if (li_el[key] == keyval) { list.pop(i); } ...
// @flow strict // Please remember to update also the TypeScript test files that can // be found under `/typings/tests` please. Thanks! 🤗 import * as React from 'react'; import { Manager, Reference, Popper } from '..'; export const Test = (): React.Node => ( <Manager> {/* $FlowExpectedError: empty children */...
const { execSync } = require('child_process') const gitStatus = exec('git status --porcelain').stdout if (gitStatus) { console.error('Git working directory not clean. Please commit all chances to release a new package to npm.') console.error('Git status:', gitStatus) process.exit(2) } var versionIncrement = pr...
/** * Wheel, copyright (c) 2020 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ exports.MODULE_TABS = 89; exports.TABS_SET_HIDDEN = 0; exports.TABS_SET_DISABLED = 1; exports.TABS_SET_X = 2; exports.TABS_SET_Y = 3...
require.ensure([], function(require) { require("./38.async.js"); require("./76.async.js"); require("./152.async.js"); require("./304.async.js"); }); module.exports = 305;
import Ember from 'ember'; import ResetScrollMixin from '../mixins/reset_scroll'; export default Ember.Route.extend(ResetScrollMixin, { meta: Ember.inject.service(), model(params) { return this.store.findRecord('proposal', params.proposal_id); }, setupController(controller, model) { this._super(control...
const path = require("path"); const merge = require("webpack-merge"); const baseWebpackConfig = require("./webpack.base.conf"); module.exports = merge(baseWebpackConfig, { entry: { index: "./example/src/index.js" }, output: { path: path.resolve(__dirname, "../example/dist"), publicPath: "example/dist...
var gulp = require('gulp'); module.exports = function () { return gulp.src('./front/fonts/**/*').pipe(gulp.dest('./statics/fonts')); };
// gulp var gulp = require('gulp'); // plugins var connect = require('gulp-connect'), jshint = require('gulp-jshint'), uglify = require('gulp-uglify'), minifyCSS = require('gulp-minify-css'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'), autoprefixer = require('gulp-autoprefixer'), ...
'use strict'; angular.module('eMarketApp').directive('shoppingCart', function(User, Helper) { return { templateUrl: 'views/shoppingCart.html', restrict: 'E', scope: {}, replace: true, controller: function($scope, Product, CartInfo) { $scope.setItem = function(cartProduct) { var cop...
$(function(){ var datatable = $('#ranking_table'); $('#ranking_chart').height(datatable.height()); var chart = initChart(getJSON(datatable)); }); function getJSON(datatable) { var json = {'values': []} datatable.find('tbody tr').each(function(){ var tr = $(this); var label = $(tr.find('td.ranking_cod...
var Component, React; React = require('react'); /** * The is a component to test the document generation */ Component = React.createClass({ displayName: 'Component', }); module.exports = Component;
jestExpect(big).not.toBeGreaterThanOrEqual(small);
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
'use strict'; // Sysusers controller angular.module('sysusers').controller('SysusersController', ['$scope', '$stateParams', '$location', 'Authentication', 'Sysusers', function($scope, $stateParams, $location, Authentication, Sysusers) { $scope.authentication = Authentication; // Create new Sysuser $scope.creat...
version https://git-lfs.github.com/spec/v1 oid sha256:cdd37d9cc4648597c57b81a38ab5e7c2bb4ea7d46e19a6a29aa876f58844ffec size 101522
version https://git-lfs.github.com/spec/v1 oid sha256:0969a47b90c38132bafeba743714f54ea8954ea98bca3a019e4a45087677f8f1 size 1518
version https://git-lfs.github.com/spec/v1 oid sha256:d351b33622f3afe8336cf65e4ce705f9ee8fea6ef59f8d7bab1209f41240e9b6 size 39037
import Rx from 'rx' import view from './page404-view' const Page404 = () => { const view$ = Rx.Observable.just(view()); return { DOM: view$ } }; export default Page404
import { Meteor } from 'meteor/meteor'; import Busboy from 'busboy'; import { RocketChat } from 'meteor/rocketchat:lib'; RocketChat.API.v1.addRoute('assets.setAsset', { authRequired: true }, { post() { const busboy = new Busboy({ headers: this.request.headers }); const fields = {}; let asset = {}; Meteor.wra...
describe('$location decorator', function() { beforeEach(module('ionic.decorator.location')); describe('.hash()', function() { it('should find .scroll-content and set scrollTop=0', inject(function($location, $timeout, $rootScope) { var scroll = { scrollTop: 5 }; spyOn(document, 'querySelector').an...
var gulp = require('gulp'); var connect = require('gulp-connect'); gulp.task('default', function () { connect.server( {root:'src', port:8888, middleware:function(){ return [ (function () { var url = require('url'); var proxy = require('proxy-middleware'); var options = url.parse('http://loc...
/** * 后端用户管理列表页面 * Created by y27chen on 2016/10/30. */ import AdminBasePage from "../../joshua-admin-base-page"; import Dialog from "../../component/dialog"; export default class UserTablePage extends AdminBasePage { init() { let table = this; $(".ui.admin.user.lock").on("click", function () { ...
(function() { 'use strict'; angular .module('vmsFrontend') .factory('project', project); /** @ngInject */ function project( $log, $q, projectEndpoint, alertMessage) { var service = { getById: getById, getAll: getAll, getManagedProjectList: getManagedProjectList, ...
import HomeRoute from './Home'; import StandardLayout from 'layouts/StandardLayout' export const createRoutes = (store) => { return ({ path: '', childRoutes: [ { path: '', component: StandardLayout, childRoutes: [ HomeRoute(store), ] } ] }) }; exp...
//1. <!DOCTYPE> 声明位于文档中的最前面,处于 <html> 标签之前。告知浏览器以何种模式来渲染文档。
import _JSXStyle from "styled-jsx/style"; export default class { render() { return <div className={_JSXStyle.dynamic([ [ "1a8c0e5c60018729", [ a[b], -1 * (c || 0), d ] ] ...
import React, { Component } from 'react'; import moment from 'moment'; import { curator_page } from './globals'; const TermsOfUse = () => ( <div className="container"> <div className="terms-of-use-box panel-gray"> <div className="row"> <div className="col-sm-12"> ...
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleLoading = () => ( <Input loading icon='user' placeholder='Search...' /> ) export default InputExampleLoading
import utils from 'osg/utils'; import Manipulator from 'osgGA/Manipulator'; import { mat4 } from 'osg/glMatrix'; import { vec2 } from 'osg/glMatrix'; import { vec3 } from 'osg/glMatrix'; import { quat } from 'osg/glMatrix'; import FirstPersonManipulatorDeviceOrientationController from 'osgGA/FirstPersonManipulatorDevic...
import { BaseTool } from './BaseTool'; import globals from '../globals' import bresenham from 'bresenham' export class PencilTool extends BaseTool { constructor(ctx) { super(ctx) } draw(pos, color) { this.ctx.fillStyle = color this.ctx.fillRect(pos.x, pos.y,1,1); } onLeftMouseDown(pos) { thi...
/** @constructor */ ScalaJS.c.scala_collection_TraversableView$$anon$1 = (function() { ScalaJS.c.java_lang_Object.call(this) }); ScalaJS.c.scala_collection_TraversableView$$anon$1.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_collection_TraversableView$$anon$1.prototype.constructor = ScalaJS...
/*! linguistics-db 06-12-2014 */ RegExp.quote=function(a){return(a+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},jQuery().ready(function(a){a(document).foundation()});
import assert from 'assert'; import CrossValidate from '../../src/cross-validate'; import NeuralNetwork from '../../src/neural-network'; import LSTMTimeStep from '../../src/recurrent/lstm-time-step'; describe('CrossValidate', () => { describe('.train()', () => { class FakeNN extends NeuralNetwork { constru...
/** * Range Field Directive */ angular.module('AioCamera').directive('rangeField', [ '$window', 'VIEW_PATH', function ($window, VIEW_PATH) { return { restrict: 'E', replace: true, templateUrl: VIEW_PATH + '/Form/range-field.html', controller: 'RangeF...
/** * Bootstrap 3 templates */ Form.template = _.template('\ <form class="form-horizontal" role="form">\ <div data-fieldsets></div>\ <% if (submitButton) { %>\ <button type="submit" class="btn"><%= submitButton %></button>\ <% } %>\ </form>\ '); Form.Fieldset.template ...
/* eslint global-require: 0 */ import React from "react"; import { ActionSheet, Button, Toast, Icon } from "antd-mobile"; import PropTypes from "prop-types"; //import styled from 'styled-components'; //import ChatBot from '../react-simple-chatbot/dist/react-simple-chatbot'; import ChatBot from "react-simple-chatbot"; ...
/*------------------------------------------------------------------ Imports ------------------------------------------------------------------*/ const fs = require('fs'); const gulp = require('gulp'); const chalk = require('chalk'); const watchify = require('watchify'); const babelify ...
__history = [{"date":"Mon, 06 Jul 2015 01:38:04 GMT","sloc":122,"lloc":64,"functions":9,"deliveredBugs":0.7746944694953412,"maintainability":67.29745499843429,"lintErrors":[],"difficulty":17.407894736842106}]
module.exports = function(grunt) { var cfg= { local: require('./local.json'), package: '', theme: 'default' }; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), cfg: cfg, 'sftp-deploy': { 'css': { auth: cfg.local.sftpAu...