code
stringlengths
2
1.05M
$('#new-orders-button').click(function(){ $('#orders-pane').find('div').remove(); $.ajax({ type: 'POST', url: "http://localhost/3k/orders/app/getNewOrders", //data: {activitiesArray : pass_order}, dataType: 'json' }).done(function(response) { $.each(response, function(...
/*********************************************************************** * Module: Transform Matrix * Description: * Author: Copyright 2012-2014, Tyler Beck * License: MIT ***********************************************************************/ define([ '../math/Matrix4x4', '../math/Vector4...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M16.14 12.5c0 1-.1 1.85-.3 2.55s-.48 1.27-.83 1.7c-.36.44-.79.75-1.3.95s-1.07.3-1.7.3c-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95s-.65-1.01-.85-1.7c-.2-.7-.3-1.55-.3-2.55v-2.04c0-1 .1-1.85.3-2.5...
{ // environment "browser": true, "node": true, "globals": { "L": true, "define": true, "map":true, "jQuery":true // "drawnItems":true }, "strict": false, // code style "bitwise": true, "camelcase": true, "curly": true, "eqeqeq": true, "forin": false, "immed": true, "latedef": true, "newcap": t...
import React from "react" import { Link } from "gatsby" import numberToColor from "../utils/number-to-color" import "./post-link.css" const year = node => new Date(node.frontmatter.date).getFullYear() const PostLink = ({ post }) => ( <div className="post-link"> <Link to={post.frontmatter.path} style={{color: num...
goog.provide('crow.ConnectedNode'); goog.require('crow.Node'); /** * ConnectedNodes are nodes that have to be explicitly "connected" to other nodes. * @class */ crow.ConnectedNode = function(id){ crow.Node.apply(this, arguments); this.connections = []; this.connectionDistances = {}; }; crow.ConnectedNode.protot...
(function () { var color = window.color; var getset = color.getset; color.pie = function () { var options = { height: color.available( "height" ), width: color.available( "width" ), value: null, color: null, hole: 0, palette: w...
var gulp = require('gulp'); var sass = require('gulp-sass'); var cssmin = require('gulp-cssmin'); var plumber = require('gulp-plumber'); var webpack = require('gulp-webpack'); gulp.task('css', function() { return gulp.src(['styles/*.scss']) .pipe(plumber()) .pipe(sass().on('error', sass.logError)) .pipe(...
// Utility functions String.prototype.endsWith = function (suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; }; String.prototype.contains = function(it) { return this.indexOf(it) != -1; }; if (!String.prototype.trim) { String.prototype.trim = function () { return this.replace(/^...
"use strict"; var Extension = require("../runtime/extension"); /** * @constructor Trait * @memberof module:impulse * * @summary Traits allow classes to be extended without modification, and support isTypeOf() when used as parameters. **/ function Trait(parent, funcs, required) { this._parent = parent || null;...
const alter = require('../lib/alter.js'); const Chainable = require('../lib/classes/chainable'); module.exports = new Chainable('yaxis', { args: [ { name: 'inputSeries', types: ['seriesList'] }, { name: 'yaxis', types: ['number', 'null'], help: 'The numbered y-axis to plot t...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
///* //Project Name: Spine Admin //Version: 1.6.0 //Author: BharaniGuru R // //*/var handleCalendarDemo=function(){"use strict";var e={left:"prev today",center:"title",right:"agendaWeek next"};var t=new Date;var n=t.getMonth();var r=t.getFullYear();var i=$("#calendar").fullCalendar({header:e,selectable:true,selectHe...
/** * Created by ionagamed on 8/19/16. */ import { Card } from '../../../Card'; import { Item } from '../helpers/Item'; const id = 'sneaky_bastard_sword'; class _ extends Item { constructor() { super(); this.id = id; this.pack = 'pack1'; this.kind = 'treasure'; this.type...
import React from 'react' import GMManhattanChart from './GMManhattanChart' import GMManhattanToolbar from './GMManhattanToolbar' import fetch from './fetch' import config from '../../config' const GMManhattanVisualization = React.createClass({ componentDidMount() { this.loadData(this.props.params), this.se...
$(document).ready(function() { var text = $("#hSleep").text(); var results = []; var data = []; results = text.split(","); // alert(results); console.log("results: " + text); for(var i = results.length-1; i >= 0; i--) { data.push([new Date(results[i-1]).getTime(), results[i]]); ...
export default from './CallToAction.jsx';
'use strict'; chrome.devtools.panels.create('Luffa', '', 'devtool.html', function (panel) { var reactPanel = null; panel.onShown.addListener(function (window) { // when the user switches to the panel, check for an elements tab // selection window.panel.getNewSelection(); reactPanel = window.panel; ...
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 api = require('./routes/api'); var app = express(); // view engine setup app.set('views', pat...
// flow-typed signature: e6263c15ef6789188b11afd5007f8d74 // flow-typed version: <<STUB>>/css-to-react-native_v^2.2.2/flow_v0.100.0 /** * This is an autogenerated libdef stub for: * * 'css-to-react-native' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share ...
(function (angular) { 'use strict'; angular .module('ngTagsInput', []); })(window.angular);
const fs = require('fs'); const path = require('path'); // eslint-disable-next-line import/no-extraneous-dependencies const sharedsession = require('express-socket.io-session'); /** * Checks to see if sockets are configured and then sets up socket.io * @param {Ceres} ceres * @param {Express} app * @param {HTT...
'use strict' const _toArray = require('lodash.toarray') const shelljs = require('shelljs') module.exports = function (config) { // parse loader [ 'loaders', 'preLoaders', 'postLoaders' ].forEach(key => { config.module[key] = _toArray(config.module[key]) }) // parse plugin config.plugins = ...
(function() { 'use strict'; var app = angular.module('app'); app.directive('ccImgPerson', ['config', function (config) { //Usage: //<img data-cc-img-person="{{s.speaker.imageSource}}"/> var basePath = config.imageSettings.imageBasePath; var unknownImage = config.i...
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
module.exports = require('./lib/bionode-bwa')
import React from 'react' import {observer} from 'mobx-react' import {Route, Link} from 'react-router-dom' import {IMAGE_DIR, TOKEN, GET_HOTEL_INFO, RESPONSE_CODE_SUCCESS} from 'macros' import {setParamsToURL, dateToZh} from 'utils' import Cookies from 'js-cookie' import WeiXinShareTips from 'WeiXinShareTips' import '....
import GameEvent from "../../../src/artifact/js/GameEvent.js"; QUnit.module("GameEvent"); var GameEventTest = {}; QUnit.test("GameEvent properties Quest card drawn", function(assert) { var eventKey = GameEvent.QUEST_CARD_DRAWN; var properties = GameEvent.properties[eventKey]; assert.equal(properties.name, "...
var $ = function (selector) { return document.querySelector(selector); }; var $all = function (selector) { return document.querySelectorAll(selector); }; var colorScheme = [ '#6BED08', '#A0F261', '#86EF35', '#60DD00', '#4AAA00', '#F8FE09', '#FBFE66', '#F9FE39', '#F2F800', '#BABF00', '#06BEBE',...
'use strict'; // 1. npm install body-parser express request // 2. Download and install ngrok from https://ngrok.com/download // 3. ./ngrok http 8445 // 4. WIT_TOKEN=your_access_token FB_PAGE_ID=your_page_id FB_PAGE_TOKEN=your_page_token FB_VERIFY_TOKEN=verify_token node examples/messenger.js // 5. Subscribe your page...
var structarm__pid__instance__q15 = [ [ "A0", "structarm__pid__instance__q15.html#ad77f3a2823c7f96de42c92a3fbf3246b", null ], [ "A1", "structarm__pid__instance__q15.html#ad8ac5ff736c0e51180398c31f777f18a", null ], [ "A2", "structarm__pid__instance__q15.html#a33e8b4c2d3e24b8b494f6edca6a89c1b", null ], ...
define([ 'backbone', 'text!templates/item_chooser.tpl', 'models/item', 'models/trigger', 'models/instance', 'models/media', 'views/item_chooser_row', 'views/trigger_creator', 'vent', 'util', ], function( Backbone, Template, Item, Trigger, Instance, Media, ItemChooserRowView, TriggerC...
import * as React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { demos, docs, requireDemo, } from '!@material-ui/markdown/loader!docs/src/pages/guides/api/api.md'; export default function Page() { return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDe...
var mongoose = require('mongoose'); var TreatmentPrescription = mongoose.model('TreatmentPrescription', require('../models/TreatmentPrescription').TreatmentPrescriptionSchema); function list(response, params){ TreatmentPrescription.find(params) .sort('created_at') .exec(function(error, prescriptions){ if(error...
/* global describe, it, assert, expect */ 'use strict'; // TESTS // describe( 'paddingLeft', function tests() { var el = document.querySelector( '#fixture' ); it( 'should expose an attribute for specifying the left padding between the canvas edge and the graph area', function test() { expect( el.paddingLeft ).t...
const project = require('../config/project.config') const server = require('../server/index') const debug = require('debug')('app:bin:dev-server') server.listen(project.server_port) debug(`Server is now running at http://localhost:${project.server_port}.`)
var is_touch; function is_touch_device() { return 'ontouchstart' in window // works on most browsers || navigator.maxTouchPoints; // works on IE10/11 and Surface } (function() { is_touch = is_touch_device(); })();
module.exports = require('./lib/goldwasher-aws-lambda.js');
/*Generated by KISSY Module Compiler*/ config({ 'editor/plugin/unordered-list': {requires: ['editor','editor/plugin/list-utils/btn']} });
import {smartTable} from 'smart-table-core'; //change the structure of returned items const smartTableExtension = function ({table, tableState, data}) { const oldChangeRegister = table.onDisplayChange; //will overwrite the default onDisplayChange return { onDisplayChange(listener) { o...
var debug = require('util').debug, inspect = require('util').inspect, path = require('path'), fs = require('fs'), exec = require('child_process').exec, spawn = require('child_process').spawn, Connection = require('../../lib/mongodb').Connection, Db = require('../../lib/mongodb').Db, Server = require('.....
import * as React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/material/TableCell'; import TableContainer from ...
#!/usr/bin/env node var argv = require('yargs/yargs')(process.argv.slice(2)) .boolean(['r','v']) .argv ; console.dir([ argv.r, argv.v ]); console.dir(argv._);
/*! * Uploader - Uploader library implements html5 file upload and provides multiple simultaneous, stable, fault tolerant and resumable uploads * @version v0.5.6 * @author dolymood <dolymood@gmail.com> * @link https://github.com/simple-uploader/Uploader * @license MIT */ !function(e){if("object"==typeof exports)m...
var util = require("util"), Super = require("./super"); function GitArchive() { }; module.exports = GitArchive; util.inherits(GitArchive, Super); GitArchive.prototype.format = "zip"; GitArchive.prototype.tree = "master"; GitArchive.prototype.fileCreated = false; GitArchive.prototype.exec = function() ...
export const MRoot = { name: 'm-root', nodeName: 'm-node', data() { return { nodeVMs: [], }; }, methods: { walk(func) { let queue = []; queue = queue.concat(this.nodeVMs); let nodeVM; while ((nodeVM = queue.shift()))...
(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{465:function(t,e,n){"use strict";n.r(e);var s=n(1),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]);
(function (factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } })(function (exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); "use strict"; var ATTR...
/** * Created by jiamiu on 14-4-10. */ var _=require('lodash') function A(){} A.prototype.fn = function(){ } var a = new A a.pro = {} var b = _.cloneDeep(a) //console.log(b.fn,a.fn) var c = {} c.__proto__ = A.prototype _.assign( c, a ) c.own = {} console.log( c.fn === a.fn,a.pro === c.pro, c.own ===a.own) ...
/*! * Copyright(c) 2014 Jan Blaha */ define(["async", "underscore"], function(async, _) { var ListenerCollection = function () { this._listeners = []; }; ListenerCollection.prototype.add = function (context, listener) { this._listeners.push({ fn: listener || context, ...
const userService = require('../../../services/user.service'); module.exports = (_, args, ctx) => userService.getById(ctx.user.id);
import Component from './ImageSlider'; import StyledComponent from './styles'; export default StyledComponent(Component);
'use strict'; const assert = require('assert'); const should = require('should'); const uuid = require('uuid/v1'); const _ = require('lodash'); const GeoPoint = require('loopback-datasource-juggler').GeoPoint; const initialization = require("./init.js"); const exampleData = require("./exampleData.js"); describe('co...
'use strict'; /** * Module dependencies. */ var passport = require('passport'), url = require('url'), GoogleStrategy = require('passport-google-oauth').OAuth2Strategy, config = require('../config'), users = require('../../app/controllers/users.server.controller'); module.exports = function () { // Use goo...
"use strict"; describe('The two basic principles of LINQ', function () { it('uses lazy evaluation', function () { // Arrange var enumerable = Enumerable.range(0, 10); // Act enumerable .filter(function () { fail('This function should not be called'); ...
define([ 'gmaps', 'config', 'leaflet', 'leaflet-pip', 'app-state' ], function (gmaps, config, L, leafletPip, appState) { "use strict"; var geocoder = new gmaps.Geocoder(), // simplifies place name for geocoder to get better results locationAddress = function(place_name, district_name) { ...
movieApp. controller('MovieController', function($scope, MovieService) { $scope.listMovies = function () { MovieService.listMovies() .success(function (result) { $scope.movies = result; }) .error(function (error) { $scope.status = 'Backend error: ' + error.message; ...
UPTODATE('1 day'); var common = {}; // Online statistics for visitors (function() { if (navigator.onLine != null && !navigator.onLine) return; var options = {}; options.type = 'GET'; options.headers = { 'x-ping': location.pathname, 'x-cookies': navigator.cookieEnabled ? '1' : '0', 'x-referrer': document.refer...
/** * The Logging layer module. * * @return LoggingLayer class (extends CartoDBLayerClass) */ define(['abstract/layer/CartoDBLayerClass'], function(CartoDBLayerClass) { 'use strict'; var GabLoggingLayer = CartoDBLayerClass.extend({ options: { sql: "SELECT 'gab_logging' as tablename, cartodb_i...
import { booleanAttributeValue, standardBooleanAttributes } from "./dom.js"; import { rendering } from "./internal.js"; // Memoized maps of attribute to property names and vice versa. // We initialize this with the special case of the tabindex (lowercase "i") // attribute, which is mapped to the tabIndex (capital "I")...
/* module ในการเก็บ route ใน เมธอด GET */ var fs = require('fs'); var path = require('path'); var getRoutes = {}; getRoutes['/'] = require('./get/index.js').getPage; getRoutes['/level'] = require('./get/level.js').getPage; getRoutes['/play'] = require('./get/play.js').getPage; getRoutes['Error 404'] = (req, res) ...
import EzTabPanelList from 'ember-ez-tabs/ez-tab-panel-list'; export default EzTabPanelList;
import test from 'ava'; import mdIt from './utils/md-it'; test('quotes should work with basic text', t => { t.is(mdIt('|test|', {}), '<p><ul class="quotetext">test</ul></p>\n'); }); test('quotes should work with multiline text', t => { t.is(mdIt('|test\ntesting as well|', {}), '<p><ul class="quotetext">tes...
var sound = require("models/sound.js"); var command = require("models/command.js"); var testcase = require("models/testcase.js"); var soundScript = require("models/soundScript.js"); var config = require("config.js"); var Log = require("logger.js"); var scriptInterpreter = require("scriptInterpreter.js"); var path = req...
/* * The MIT License (MIT) * * Copyright (c) 2015 - Gabriel Reiser, greiser * * 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 righ...
// code sent to client and server // which gets loaded before anything else (since it is in the lib folder) // define schemas and collections // those will be given to all templates Schemas = {}; // Collections = {}; Items = new Mongo.Collection('items'); Times = new Mongo.Collection('times'); Attributes = new Mongo....
// 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...
var expect = require('expect.js'), parse = require('../lib/parser.js'); describe('parser:', function() { it('should parse function with no arguments.', function() { expect(parse('(someFunc)')).to.eql([{ type: 'function', name: 'someFunc', args: [] }]); })...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['jasmine'], files: [ 'src/bobril.js', ...
'use strict'; /** * This controller handles trigger requests from the Cumulus system that fires * when assets are updated, inserted or deleted. * * An example request is: * * req.body = { * id: 'FHM-25757', * action: 'asset-update', * collection: 'Frihedsmuseet', * apiKey: '' * } */ const ds = req...
/** * Copyright (C) 2014-2016 Triumph LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program i...
// load all the things we need var LocalStrategy = require('passport-local').Strategy; var FacebookStrategy = require('passport-facebook').Strategy; var TwitterStrategy = require('passport-twitter').Strategy; var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; // load up the user model v...
/** * Created by Luigi Ilie Aron on 27.01.15. * email: luigi@kreditech.com */ var assert = require('assert'), _ = require('lodash'); describe('Semantic Interface', function() { describe('.getRawCollection()', function() { it('should create a set of 15 users', function(done) { var usersAr...
// Karma configuration // Generated on Fri May 27 2016 18:39:38 GMT+0200 (CEST) const webpackConf = require('./test/unit/webpack.config'); module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use ...
// Copyright OpenLogic, Inc. // See LICENSE file for license information. // var totalRequests = 0; // First check the MIME type of the URL. If it is the desired type, then make // the AJAX request to get the content (DOM) and extract the relevant links // in the content. function follow_html_mime_type(url) { var ...
import { mount } from '@vue/test-utils'; import TocButton from '../src/views/TocButton'; function createWrapper() { return mount(TocButton); } describe('Table of contents button', () => { it('should mount', () => { const wrapper = createWrapper(); expect(wrapper.exists()).toBe(true); }); it('should em...
'use strict'; angular .module('reflect.calendar') .factory('calendarHelper', function(moment, calendarConfig) { function eventIsInPeriod(eventStart, eventEnd, periodStart, periodEnd) { eventStart = moment(eventStart); eventEnd = moment(eventEnd); periodStart = moment(periodStart); per...
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 users = require('./routes/users'); var orgs = require('...
import React from 'react'; import { assert } from 'chai'; import { createMount, createShallow, getClasses } from '@material-ui/core/test-utils'; import describeConformance from '../test-utils/describeConformance'; import AppBar from './AppBar'; import Paper from '../Paper'; describe('<AppBar />', () => { let mount; ...
var mongoose = require('mongoose'), _ = require('lodash'), moment = require('moment'); module.exports = function (req, res) { var connectionDB = mongoose.connection.db; var today = moment().startOf('day'); var tomorrow = moment(today).add(1, 'days'); var dayAfterTomorrow = moment(today).add(2, ...
(function(root, factory) { if (typeof exports === "object") { module.exports = factory(); } else if (typeof define === "function" && define.amd) { define([], factory); } else{ factory(); } }(this, function() { /** * AngularJS Google Maps Ver. 1.18.4 * * The MIT License (MIT) * * Copyright (c) 2014, 2015, 1016 All...
module.exports = { site: { title: 'i18n node example', description: 'An example for this module on node' }, bankBalance: 'Hi {1}, your balance is {2}.', transports: { yacht: 'Yacht', bike: 'Bike' }, modeOfTransport: 'Your preferred mode of transport is by {1}.' };
var fs = require('co-fs') , test = require('bandage') , main = require('..') , parse = main.parse , write = main.write , parseFmtpConfig = main.parseFmtpConfig , parseParams = main.parseParams , parseImageAttributes = main.parseImageAttributes , parseSimulcastStreamList = main.parseSimulcastStreamList ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define(["require","exports"],function(c,g){Object.defineProperty(g,"__esModule",{value:!0});g.SwapTable=[["(",")"],[")","("],["\x3c","\x3e"],["\x3e","\x3c"],["[","...
var flag = "did_you_use_python's_[::-1]_notation?"; exports.get_data = function(req, callback) { var result = []; var s = [ "[Go, droop aloof] sides reversed, is [fool a poor dog]. I did roar again, Niagara! ... or did I?", "Help Max, Enid -- in example, H. See, slave, I demonstrate yet arts no medieval sees.", ...
(function () { "use strict"; angular .module('documents') .component('scientillaDocumentAffiliations', { templateUrl: 'partials/scientilla-document-affiliations.html', controller: controller, controllerAs: 'vm', bindings: { docume...
exports.config = { allScriptsTimeout: 11000, specs: [ '*.js' ], capabilities: { 'browserName': 'chrome' }, baseUrl: 'http://localhost:8080/mylibrary/', framework: 'jasmine', jasmineNodeOpts: { defaultTimeoutInterval: 30000 } };
const { resolve } = require('path') const express = require('express') const bodyParser = require('body-parser') var proxy = require('express-http-proxy') const app = express() // parse JSON bodies app.use(bodyParser.json({ type: 'application/json' })) // the index file app.get('/', (req, res) => { res.sendFile(re...
'use strict'; var AppDispatcher = require('../dispatchers/AppDispatcher'); var AppStore = require('../stores/AppStore'); var AppConstants = require('../constants/AppConstants'); var ServerActions = { receiveData: function(data) { AppDispatcher.handleViewAction({ actionType: AppConstants.GET_CATEGORIES, ...
function Database() { if(typeof this.mysql == "undefined") { this.init(); } } Database.prototype.init = function() { var mysql = require('mysql'); this.connection = mysql.createConnection({ host : 'localhost', user : 'root', password : 'test1234', database : 'linkbank' }); }, ...
module.exports = [ require('./deepSouth'), require('./fallsRiverMusic') // require('./gizmoBrewWorks') ];
// app/routes.js // grab the country model we just created var Country = require('./models/country'); module.exports = function (app) { //---------------------------------------------------------------------- // server routes // handle things like api calls // authentication routes // sample api route a...
'use strict' var _ = require('lodash'), CrudRoutes = require('../lib/crud-routes'), transactions = require('../services/transactions'), log = require('../lib/log'); let opts = { entity: 'transactions', service: transactions, user: true, parent: { name: 'account' }, protected...
/*Write an if statement that takes two double variables a and b and exchanges their values if the first one is greater than the second. As a result print the values a and b, separated by a space.*/ console.log('-----Problem 1. Exchange if greater-----'); function exchangeIfIsGrater (first, second){ console.log('...
'use strict'; module.exports = { type: 'error', error: { line: 1, column: 3, message: 'Unexpected character \'💩\'.', }, };
export { default } from 'ember-radical/components/rad-dropdown/content'
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); const webpack = require('webpack'); const { version, author, license } = require('./package.json'); module.exports = { entry: './src/index.js', output: { filename: 'to...
var gulp = require('gulp'); var to5 = require('gulp-6to5'); var concat = require('gulp-concat'); var order = require('gulp-order'); var watch = require('gulp-watch'); var connect = require('gulp-connect'); gulp.task('6to5', function () { return gulp.src('src/js/**/*.js') .pipe(order([ 'core/**/*.js', ...
define([ 'lib/validators/moment', 'lib/validators/unequalTo' ], function () { });