code
stringlengths
2
1.05M
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pastefromword', 'pt-br', { confirmCleanup: 'O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação ant...
module.exports={title:"Bulma",slug:"bulma",svg:'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Bulma icon</title><path d="M11.25 0l-6 6 -1.5 10.5 7.5 7.5 9 -6 -6 -6 4.5 -4.5 -7.5 -7.5Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1]},source:"https://github.com/jgthms/b...
var assert = require('assert') var UINT32 = require('..').UINT32 describe('and method', function () { describe('0&1', function () { it('should return 0', function (done) { var u = UINT32(0).and( UINT32(1) ) assert.equal( u.toNumber(), 0 ) done() }) }) describe('1&2', function () { ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _rest = require('./internal/rest'); var _rest2 = _interopRequireDefault(_rest); var _initialParams = require('./internal/initialParams'); var _initialParams2 = _interopRequireDefault(_initialParams); function _interopRequireDefau...
/* * Copyright (c) 2013-2014 Chukong Technologies Inc. * * 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, mod...
CKEDITOR.plugins.setLang("autoembed","en-au",{embeddingInProgress:"Trying to embed pasted URL...",embeddingFailed:"This URL could not be automatically embedded."});
// ramda.js // https://github.com/CrossEye/ramda // (c) 2013-2014 Scott Sauyet and Michael Hurley // Ramda may be freely distributed under the MIT license. // Ramda // ----- // A practical functional library for Javascript programmers. Ramda is a collection of tools to make it easier to // use Javascr...
/** * @fileoverview Rule to spot scenarios where a newline looks like it is ending a statement, but is not. * @author Glen Mailer * @copyright 2015 Glen Mailer */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------...
YUI.add('color-base', function (Y, NAME) { /** Color provides static methods for color conversion. Y.Color.toRGB('f00'); // rgb(255, 0, 0) Y.Color.toHex('rgb(255, 255, 0)'); // #ffff00 @module color @submodule color-base @class Color @since 3.8.0 **/ var REGEX_HEX = /^#?([\da-fA-F]{2})([\da-fA-F]{2})([\da...
/** * @license AngularJS v1.3.10 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; var $sanitizeMinErr = angular.$$minErr('$sanitize'); /** * @ngdoc module * @name ngSanitize * @description * * # ngSanitize * * The `ngSanitize` module p...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisa...
YUI.add('escape', function(Y) { /** Provides utility methods for escaping strings. @module escape @class Escape @static @since 3.3.0 **/ var HTML_CHARS = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#x27;', '/': '&#x2F;', '`': '&#x60;' },...
import React, {useState} from 'react'; import { ScrollView, StyleSheet, Text, TouchableOpacity, Platform, Linking, } from 'react-native'; import AutoHeightWebView from 'react-native-autoheight-webview'; import { autoHeightHtml0, autoHeightHtml1, autoHeightScript, autoWidthHtml0, autoWidthHtml1,...
"use strict"; import clear from "rollup-plugin-clear"; import resolve from "rollup-plugin-node-resolve"; import commonjs from "rollup-plugin-commonjs"; import typescript from "rollup-plugin-typescript2"; import screeps from "rollup-plugin-screeps"; let cfg; const dest = process.env.DEST; if (!dest) { console.log(...
import { timeout as d3_timeout } from 'd3-timer'; export function uiFlash(context) { var _flashTimer; var _duration = 2000; var _iconName = '#iD-icon-no'; var _iconClass = 'disabled'; var _text = ''; var _textClass; function flash() { if (_flashTimer) { _flashTimer...
"use strict"; const http_1 = require("http"); const WebSocketServer = require("ws"); const express = require("express"); const dgram = require("dgram"); const readUInt64BE = require("readuint64be"); const buffer_1 = require("buffer"); const _ = require("lodash"); // Health Insurrance: process.on("uncaughtException", fu...
var parseString = require('xml2js').parseString; module.exports = function(req, res, next){ if (req.is('xml')){ var data = ''; req.setEncoding('utf8'); req.on('data', function(chunk){ data += chunk; }); req.on('end', function(){ if (!data){ return next(); } parseSt...
"use strict"; var CustomError = require('custom-error-instance'); var inventory = require('./inventory'); var menu = require('./menu'); var OrderError = CustomError('OrderError'); module.exports = function() { var done = false; var factory = {}; var store = {}; /** ...
const test = require('tape') const helpers = require('../test/helpers') const bindFunc = helpers.bindFunc const unary = require('./unary') test('unary helper', t => { const f = bindFunc(unary) const err = /unary: Argument must be a Function/ t.throws(f(undefined), err, 'throws with undefined') t.throws(f(nu...
export const DEFAULTS = { API_BASE_URI: 'http://localhost:3000/axway', granularity: 'monthly', startDate: '2010-01-01', cacheExpirySeconds: 300//5 minutes }; export class Settings { /** * @param {string} setting * @returns {*} */ getSetting(setting) { return DEFAULTS[set...
'use strict'; var DB = require('./lib/database'); var rc_util = require('./lib/utility.js'); var modelsFactory = require('./lib/models.js'); var selective = require('./program').selective; var Promise = require('bluebird'); module.exports = function(dbUrl, commander, lastCrawl) { return new Promise(function(resolve,...
import {takeEvery} from 'redux-saga' import {call, put, take, fork, select, cancel} from 'redux-saga/effects' import * as Actions from './actions/actions' let ws = null const getUsername = state => state.username function* createWebSocket(url) { ws = new WebSocket(url) let deferred, open_deferred, close_def...
import React from 'react'; const isArray = x => Array.isArray(x); const isString = x => typeof x === 'string' && x.length > 0; const isSelector = x => isString(x) && (startsWith(x, '.') || startsWith(x, '#')); const isChildren = x => /string|number|boolean/.test(typeof x) || isArray(x); const startsWith = (string, sta...
/** * Created by Stefan on 9/19/2017 */ /** * Created by Stefan Endres on 08/16/2017. */ 'use strict' var http = require('http'), https = require('https'), url = require('url'), util = require('util'), fs = require('fs'), path = require('path'), sessions = require('./sessions'), EventE...
'use strict'; import path from 'path'; import webpack, { optimize, HotModuleReplacementPlugin, NoErrorsPlugin } from 'webpack'; export default { devtool: 'eval-cheap-module-source-map', entry: [ 'webpack-hot-middleware/client', './app/js/bootstrap' ], output: { path: path.join(__dirname, 'dist'), filename...
'use strict'; var expect = chai.expect; function run(scope,done) { done(); } describe('SendCtrl', function(){ var rootScope, scope, controller_injector, dependencies, ctrl, sendForm, network, timeout, spy, stub, mock, res, transaction, data; beforeEach(module("rp")); beforeEach(inject(function($rootSc...
"use strict"; (function (ConflictType) { ConflictType[ConflictType["IndividualAttendeeConflict"] = 0] = "IndividualAttendeeConflict"; ConflictType[ConflictType["GroupConflict"] = 1] = "GroupConflict"; ConflictType[ConflictType["GroupTooBigConflict"] = 2] = "GroupTooBigConflict"; ConflictType[ConflictTyp...
export default function applyLocationOffset(rect, location, isOffsetBody) { var top = rect.top; var left = rect.left; if (isOffsetBody) { left = 0; top = 0; } return { top: top + location.top, left: left + location.left, height: rect.height, width: r...
KB.component('task-move-position', function (containerElement, options) { function getSelectedValue(id) { var element = KB.dom(document).find('#' + id); if (element) { return parseInt(element.options[element.selectedIndex].value); } return null; } function get...
const AES = require('./aesjs'); function encrypt(text, key) { key = new TextEncoder().encode(key); const textBytes = AES.utils.utf8.toBytes(text); const aesCtr = new AES.ModeOfOperation.ctr(key); const encryptedBytes = aesCtr.encrypt(textBytes); return AES.utils.hex.fromBytes(encryptedBytes); } function dec...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../../isSameWeek/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../_lib/convertToFP/index.js'); var _index4 = _interopRequireDefault(_index3); function _interopRequireDefault(obj)...
angular.module('EggApp', ['ngRoute'], function($routeProvider) { $routeProvider .when('/', { templateUrl: '/app/view/search.html', controller: 'SearchController' }) .when('/show/:id', { templateUrl: '/app/view/show.html', controller: 'ShowContr...
var Phaser = require('phaser-unofficial'); /** * Wall class. * @param {object} game * @param {number} x * @param {number} y */ Wall = function (game, x, y) { Phaser.Sprite.call(this, game, x, y, 'paddle'); this.game.physics.arcade.enable(this); this.width = 200; this.height = this.game.world.boun...
exports.definition = { /** * Add custom methods to your Model`s Records * just define a function: * ```js * this.function_name = function(){ * //this == Record * }; * ``` * This will automatically add the new method to your Record * * @class Definition * @name Custom Record Me...
/* ---------------------------------- * PUSH v2.0.0 * Licensed under The MIT License * inspired by chris's jquery.pjax.js * http://opensource.org/licenses/MIT * ---------------------------------- */ !function () { var noop = function () {}; // Pushstate cacheing // ================== var isScrolling; ...
/***************************************************** * Copyright (c) 2014 Colby Brown * * This program is released under the MIT license. * * For more information about the MIT license, * * visit http://opensource.org/licenses/MIT * *************************************...
import { exec, getById } from "../database/database"; import Gender from "../entities/gender"; export default class GenderController { constructor() {} static getById(id, as_object = true) { let gender = null; let results = getById(id, ` SELECT t1.id, t1.identifier as name FR...
'use strict'; var format = require('util').format , scripts = require('./scripts') , loadScriptSource = require('./load-script-source') // Ports: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp function ignore(cb) { ...
/* eslint no-console: 0 */ 'use strict'; const fs = require('fs'); const mkdirp = require('mkdirp'); const rollup = require('rollup'); const nodeResolve = require('rollup-plugin-node-resolve'); const commonjs = require('rollup-plugin-commonjs'); const uglify = require('rollup-plugin-uglify'); const src = 'src'; con...
function checkHeadersSent(res, cb) { return (err, results) => { if (res.headersSent) { if (err) { return cb(err) } return null } cb(err, results) } } exports.finish = function finish(req, res, next) { const check = checkHeadersSent.bind(null, res) if (req.method === 'GET')...
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure(); var testCase = require('../deps/nodeunit').testCase, debug = require('util').debug, inspect = require('util').inspect, nodeunit = require('../deps/nodeunit'), gleak = require('../tools/glea...
const createImmutableEqualsSelector = require('./customSelectorCreator'); const compare = require('../util/compare'); const exampleReducers = require('../reducers/exampleReducers'); /** * Get state function */ const getSortingState = exampleReducers.getSortingState; const getPaginationState = exampleReducers.getPagi...
var stream = require('readable-stream') var util = require('util') var fifo = require('fifo') var toStreams2 = function(s) { if (s._readableState) return s var wrap = new stream.Readable().wrap(s) if (s.destroy) wrap.destroy = s.destroy.bind(s) return wrap } var Parallel = function(streams, opts) { if (...
const App = require('./spec/app'); module.exports = config => { const params = { basePath: '', frameworks: [ 'express-http-server', 'jasmine' ], files: [ 'lib/**/*.js' ], colors: true, singleRun: true, logLevel: con...
"use strict"; let fs = require("fs") , chalk = require("chalk"); module.exports = function(name) { let file = process.env.CONFIG_PATH + "initializers/" + name; if (!fs.existsSync(file + ".js")) console.log(chalk.red("\tInitializer", name + ".js not found, add it on /config/initializers")); return require(file...
"use strict"; // Controller function Avatar(app, req, res) { // HTTP action this.action = (params) => { app.sendFile(res, './storage/users/' + params[0] + '/' + params[1]); }; }; module.exports = Avatar;
"use strict"; var Response = (function () { function Response(result, childWork) { this.result = result; this.childWork = childWork; } return Response; }()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Response; //# sourceMappingURL=response.js.map
Package.describe({ name: 'craigslist-utils', summary: 'Npm Craigslist-utils packaged for Meteor.' }); Npm.depends ({ 'craigslist-utils': '0.0.7' }); Package.on_use(function (api) { api.add_files('craigslist-utils.js', ['server']); api.export('CL'); }); Package.on_test(function (api) { api.use('craigsl...
'use strict'; import Application from '../../core/Application.js'; import Action from '../../core/Action.js'; describe('Action', () => { var app; var action; class ChildAction extends Action { get name() { return 'ChildAction'; } } beforeEach(() => { app = new...
$(document).ready(function() { $('#mostrar_menu').click(function() { $('#sidebar-wrapper').toggle(300); }); });
const { app, BrowserWindow } = require('electron'); const {ipcMain} = require('electron'); // shared to-do list data global.sharedData = { itemList: [ { id: 0, text: "First meet up with David Lau on 5th July", isCompleted: true }, { id: 1, ...
function generalAttack(attacker, receiver, weaponBonus){ //Weapon bonus of one means attacker gets bonus, 0 = neutral, and -1 = penalty if(attacker.attack > receiver.defense){ if(weaponBonus == 1){ receiver.health = receiver.health - ((attacker.attack + 2) - receiver.defense); }else if(weaponBonus == -1){ r...
var draw = SVG('mainPage'); var energyBar = draw.rect(0,5).move(0,598) .fill({ color: '#cc0', opacity: '1' }) .stroke({ color: '#fff', width: '1', opacity: '0.6'}); var port = 25550; var images = "http://"+document.location.hostname+":"+port+"/game/images/"; var localPlayers = new Array(); var localBullets = new A...
goog.provide('gmf.DisplayquerygridController'); goog.provide('gmf.displayquerygridDirective'); goog.require('gmf'); goog.require('ngeo.CsvDownload'); goog.require('ngeo.GridConfig'); /** @suppress {extraRequire} */ goog.require('ngeo.gridDirective'); goog.require('ngeo.FeatureOverlay'); goog.require('ngeo.FeatureOverl...
var expect = chai.expect; describe("sails", function() { beforeEach(function() { }); afterEach(function() { }); it('should not fail', function() { expect(true).to.be.true; }); });
// external imports import axios from 'axios' import { Base64 } from 'js-base64' import path from 'path' import fm from 'front-matter' // local imports import zipObject from '../zipObject' import decrypt from '../decrypt' /** 从github调用并在本地缓存期刊内容,返回Promise。主要函数: * getContent: 调取特定期刊特定内容。如获取第1期“心智”子栏目中第2篇文章正文:getConten...
export default { navigator: { doc: 'Docs', demo: 'Demo', started: 'Get Started' }, features: { userExperience: { title: 'Optimize Experience', desc: 'To make scroll more smoothly, We support flexible configurations about inertial scrolling, rebound, fade scrollbar, etc. which could o...
/* @flow */ import assert from 'assert'; import { CONVERSION_TABLE } from './06-export'; import type { Unit, UnitValue } from './06-export'; // We didn't cover any edge cases yet, so let's do this now export function convertUnit(from: Unit, to: Unit, value: number): ?number { if (from === to) { return value; ...
$(document).ready(function () { // add classes to check boxes $('#id_notify_at_threshold').addClass('form-control'); $('#id_in_live_deal').addClass('form-control'); $('#id_is_subscription').addClass('form-control'); });
import React, { Component } from 'react'; export default React.createClass({ getInitialState: function () { return { title: '', body: '' }; }, handleChangeTitle: function (e) { this.setState({ title: e.target.value }); }, handleChangeBody: function (e) { this.setState({ body: e.target.value });...
export default { '/': { component: require('./components/NowPlayingView'), name: 'NowPlaying' } }
/** Copyright (c) 2007 Bill Orcutt (http://lilyapp.org, http://publicbeta.cx) 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,...
Ext.provide('Phlexible.users.UserWindow'); Ext.require('Ext.ux.TabPanel'); Phlexible.users.UserWindow = Ext.extend(Ext.Window, { title: Phlexible.users.Strings.user, strings: Phlexible.users.Strings, plain: true, iconCls: 'p-user-user-icon', width: 530, minWidth: 530, height: 400, minH...
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
/* * Copyright (c) 2013 Algolia * http://www.algolia.com/ * * 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,...
'use strict'; angular.module('rvplusplus').directive('initFocus', function() { return { restrict: 'A', // only activate on element attribute link: function(scope, element, attrs) { element.focus(); } }; });
/** * @arliteam/arli v0.2.1 * https://github.com/arliteam/arli * * Copyright (c) Mohamed Elkebir (https://getsupercode.com) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; exports.__esModule = true; /** * ...
import external from '../../../externalModules.js'; import getNumberValues from './getNumberValues.js'; import parseImageId from '../parseImageId.js'; import dataSetCacheManager from '../dataSetCacheManager.js'; import getImagePixelModule from './getImagePixelModule.js'; import getOverlayPlaneModule from './getOverlayP...
import Tablesaw from '../../dist/tablesaw'; console.log( "this should be the tablesaw object: ", Tablesaw );
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
(function(){ ///////////////////////////////////////////////////////////////////////// // // // client/helpers/config.js // // // //////////...
/** * Vector */ (function() { var global = this, nspace = global.Util, Exception = global.Exception, math = global.mathjs(); /** * * @type Vector * @param {Array} basis The basis vectors, ordered correctly, orthonormal and complete */ var Vector = nspace.Vector = function(basis...
'use strict'; export default function routes($routeProvider) { 'ngInject'; $routeProvider.when('/new_component', { template: '<about></about>' }); $routeProvider.when('/new_component/:somethingToPrint', { template: '<about></about>' }); }
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'firehon', environment: environment, contentSecurityPolicy: { 'connect-src': "'self' wss://*.firebaseio.com" }, firebase: 'https://firehon.firebaseio.com/', baseURL: '/', locationType: 'auto', Ember...
'use strict'; angular.module('springangularwayApp') .config(function ($stateProvider) { $stateProvider .state('configuration', { parent: 'admin', url: '/configuration', data: { roles: ['ROLE_ADMIN'], pageTit...
var path = require('path') var webpack = require('webpack') // Phaser webpack config var phaserModule = path.join(__dirname, '/node_modules/phaser-ce/') var phaser = path.join(phaserModule, 'build/custom/phaser-split.js') var pixi = path.join(phaserModule, 'build/custom/pixi.js') var p2 = path.join(phaserModule, 'buil...
define([ 'base/Module', './show/Controller' ],function(Module, ShowController){ var mod = Module('HeaderModule', {autoStart: false}); var API = { showHeader: function() { var controller = new ShowController({ region: mod.kernel.headerRegion }); ...
export function pluralize(count, word) { return count === 1 ? word : word + 's'; } export function classNames(...args) { // based on https://github.com/JedWatson/classnames let classes = ''; args.forEach(arg => { if (arg) { const argType = typeof arg; if (argType === 'string' || argType === '...
'use babel'; //showSearch import FoldNavigatorView from './fold-navigator-view'; import fuzzaldrinPlus from 'fuzzaldrin-plus'; import _ from 'lodash'; import { CompositeDisposable } from 'atom'; export default { config: { autofold: { title: 'Autofold on open', description: 'Au...
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * -------------------------------------------------------------...
Marker = function({ settings, rad }) { const long = settings.longMarker ? 'protractor-extension-marker-long' : ""; this.theta = rad - Math.PI / 2; this.phi = settings.phi; this.settings = settings; this.node = document.createElement('div'); this.node.className = `protractor-extension-marker ${...
"use strict"; import React from 'react' import Course from '../partials/Course.js' import Modal from '../partials/Modal.js' import MetricModal from '../partials/MetricModal.js' export default class Courses extends React.Component { constructor(props) { super(props); this.state = { course: props.cours...
import Vue from 'vue' import Kanban from './components/kanban-app.vue' import store from './store.js' new Vue({ el: '#app', store, render: h => h(Kanban) })
import {observable, runInAction, computed, action, reaction, autorun} from "mobx"; import LynlpApi from "../common/lynlp-api" import _ from "lodash"; class EntityExtractStore { @observable isFetching = false; @observable currentItem = '图形展示'; @observable entity = {}; @action fetchData(content) { this.isFetchin...
(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{499:function(t,e,s){"use strict";s.r(e);var a=s(0),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-an...
'use strict'; const async = require('async'); const getApp = require('../utils/utils.js').getApp; module.exports = function(Worker) { //Worker.validatesPresenceOf('title'); Worker.upsertItem = (data, cb) => { let res = {}; getApp(Worker) .then((app) => { if (!!!data.person) cb({errCode: 'ERR...
import { combineReducers } from 'redux' import auth from './auth' import watt from './watt' import locations from './locations' export default combineReducers({ auth, watt, locations })
'use strict'; require('./components/dropdown'); require('./components/active-link');
/** * Copyright (c) 2014, 2017, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; /* Copyright 2013 jQuery Foundation and other contributors Released under the MIT license. http://jquery.org/license */ define(["ojs/ojcore","jquery","ojdnd","ojs/ojlistview"],funct...
/* eslint-env mocha */ 'use strict' const chai = require('chai') chai.use(require('dirty-chai')) const expect = chai.expect const parallel = require('async/parallel') const createNode = require('./utils/create-node.js') const echo = require('./utils/echo') describe('ping', () => { let nodeA let nodeB before((...
'use strict'; angular.module('articles').controller('ArticlesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Articles', function($scope, $stateParams, $location, Authentication, Articles) { $scope.authentication = Authentication; $scope.create = function() { var article = new Articles(...
require('..').config({namespace:'NVM'}) .read({}) .on('read', function(ENV){ console.log(JSON.stringify(ENV, null, 4)); });
const express = require("express"); const app = express(); app.set('port', (process.env.PORT || 3000)); const getData = require('./src/server/api/getData'); const setup = require('./src/server/api/setupApi'); app.engine('html', require('ejs').renderFile); app.set('view engine', 'html'); app.use('/assets', express.st...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Category Schema */ var CategorySchema = new Schema({ name: { type: String, default: '', required: 'Please fill Category name', trim: true }, created: { ...
var searchData= [ ['index',['index',['../d8/d33/structsvm__sample.html#a008f6b24c7c76af103e84245fb271506',1,'svm_sample']]], ['initlibirwls',['initLIBIRWLS',['../d4/d54/pythonmodule_8c.html#abe9b02ef8b3dff171684f855d6819d13',1,'initLIBIRWLS(void):&#160;pythonmodule.c'],['../d0/da7/pythonmodule_8h.html#abe9b02ef8b3d...
module.exports = { options: { templateCompilerPath: 'bower_components/ember/ember-template-compiler.js', handlebarsPath: 'bower_components/handlebars/handlebars.js', preprocess: function (source) { return source.replace(/\s+/g, ' '); }, templateName: function (sourceFile) { /* These are how templa...
module.exports = api => { api.cache(true); return { presets: [ [ '@babel/preset-env', { targets: { node: '12' } } ] ] }; };
'use strict'; function UserListController(userList) { var vm = this; console.log('UserListController'); vm.userList = userList; } module.exports = UserListController;
import log from 'log'; import Ember from 'ember'; import {registerComponent} from 'ember-utils'; import layout from './confirm-toolbar.hbs!'; export var RheaConfirmToolbar = Ember.Component.extend({ layout, tagName: '', actions: { confirm: function(opID) { this.sendAction('confirm'); }, cance...
/** * 乘法操作符 */ define( function ( require, exports, modules ) { var kity = require( "kity" ); return kity.createClass( 'MultiplicationOperator', { base: require( "operator/binary-opr/left-right" ), constructor: function () { var ltr = new kity.Rect( 0, 20, 43, 3, 3 ).fill( "...