text
stringlengths
2
1.04M
/*** * The goal of this file is to show How to use http functions; * * * How to run this example: * 1. node http-1.js * 2. http://localhost:5005/ */ const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('Hi, My name is ...
const DynamoDB = require('../libs/dynamodb-lib'); const { success, failure } = require('../libs/response-lib'); module.exports.byId = (event, context, callback) => { const user = event.pathParameters; // quick validation if (typeof user.id !== 'string') { console.error('Error: validation failed'); callb...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Shared/Layout.vue?vue&type=script&lang=js&": /*!***************************************************************************************************...
'use strict'; const _ = require('lodash'); const dirTree = require('directory-tree'); const paths = require('../paths'); const TEMPLATES_BASE_DIRECTORY = paths.content.templates.path; const TEMPLATES_MODULE_DIRECTORY = paths.content.templates.modulesPath; function mapChildren(children) { children = children.map((...
'use strict'; const Homey = require('homey'); const Driver = require('../../lib/driver.js'); class HomematicDriver extends Driver { onInit() { super.onInit(); this.capabilities = []; this.homematicTypes = ['HM-SwI-3-FM']; this.log(this.homematicTypes.join(','), 'has been inited');...
import React, {Component} from 'react'; import Moment from 'moment'; import Image from '../common/Image'; import GBLink from '../common/GBLink'; class CVVModal extends Component { render() { return ( <div className="modalWrapper"> <div className="center"> <img className="pciImage" src='...
export default { name: 'bs', weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), weekStart: 1, weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), mo...
(function() { function timecode() { return function(seconds) { var seconds = Number.parseFloat(seconds); if (Number.isNaN(seconds)) { return '-:--'; } var wholeSeconds = Math.floor(seconds); var minutes = Math.floor(whole...
/* * users-limit-test.js: Tests for Cloud Database users within an instace * * (C) 2010 Charlie Robbins, Ken Perkins, Ross Kukulinski & the Contributors. * MIT LICENSE * */ var should = require('should'), async = require('async'), hock = require('hock'), http = require('http'), helpers = require('../../h...
const INITIAL_STATE = { sections: [ { title: "hats", imageUrl: "https://i.ibb.co/cvpntL1/hats.png", id: 1, linkUrl: "shop/hats" }, { title: "jackets", imageUrl: "https://i.ibb.co/px2tCc3/jackets.png", id: 2, linkUrl: "shop/jackets" }, { title: ...
module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', // A map from regular expressions to module names that allow to stub out resources with a single module moduleNameMapper: { '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|css)$': '<rootDir>/__mocks__/fileMock...
import React from 'react'; import { useField } from 'formik'; import FormError from './../components/common/FormError'; import Input from './../components/common/Input'; const FormInput = ({ ariaLabel, name, type, placeholder }) => { const [field, meta] = useField(name); return ( <> <Input ...
import React from 'react'; import OptionBarNbItems from './option_bar_nb_items'; import OptionBarNbPage from './option_bar_nb_page'; import OptionBarLocation from './option_bar_location'; const OptionBar = props => { return ( <div> <div>{props.nbGooders} Gooders</div> <OptionBarNbItems actual...
const input = document.querySelector('.creditCardInput') const btn = document.querySelector('.btn') const message = document.querySelector('.message') const isCreditCardNumberValid = (cardNumber) => { // parametreyi stringe dönüştürüyorum let str = cardNumber.toString() // string içerisindeki bütün tir...
var hljs = window.hljs; var demoCode = document.getElementById('demo-code'); var toggleBox = document.getElementById('toggle-box'); var frameSet = document.getElementById('frameset'); var hamburgerMenu = document.getElementById('hamburger-menu'); var tree = document.getElementById('menu'); window.onload = function ()...
import React, { Component, PropTypes } from 'react'; const styles = require('./style.scss'); export default class Track extends Component { static propTypes = { progress: PropTypes.number.isRequired, onTrackChange: PropTypes.func, simple: PropTypes.bool, showExpanded: PropTypes.bool, style: Prop...
/* Pretty handling of time axes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Set axis.mode to "time" to enable. See the section "Time series data" in API.txt for details. */ (function($) { var options = { xaxis: { timezone: null, // "browser" for local to the client or time...
const { Pool, Client } = require('pg'); process.env.PRODUCTION || require('dotenv').config(); const pool = new Pool({ user: process.env.PG_USER, password: process.env.PG_PASSWORD, host: process.env.PG_HOST, database: process.env.PG_DATABASE, port: process.env.PG_PORT }); pool.connect((err, client, release) ...
/* eslint-disable */ // @ts-nocheck /** * generated by free-swagger * @see https://www.npmjs.com/package/free-swagger * @title Uber API * @description Move your app forward with the Uber API * @version 1.0.0 * @date 2016-12-22 07:36 **/ import axios from "axios"; /** * @description User Profile **/ export c...
var Rx = require('rx'), Observable = Rx.Observable, Subject = Rx.Subject, Scheduler = Rx.Scheduler; QUnit.module('Time'); var __ = 'Fill in the blank'; asyncTest('launching an event via a scheduler', function () { var state = null; var received = ''; var delay = 0; // Fix this value Scheduler.def...
import React from "react" import { Link } from "gatsby" const PostLink = ({ post }) => ( <div> <Link to={post.frontmatter.path}> {post.frontmatter.title} ({post.frontmatter.hashtags.length}) </Link> </div> ) export default PostLink
const Discord = require('discord.js') const CurrencySystem = require("currency-system"); const cs = new CurrencySystem; exports.run = async (client, message, args) => { let thing = args[0].value if (!thing) return message.reply('Please provide item number') if (isNaN(thing)) return message.reply('Please pro...
'use strict'; requireApp('communications/ftu/js/customizers/customizer.js'); requireApp('communications/ftu/js/customizers/wallpaper_customizer.js'); requireApp('communications/ftu/js/customizers/support_contacts_customizer.js'); requireApp('communications/ftu/test/unit/mock_navigator_moz_settings.js'); suite('Suppor...
import React, { Component } from "react"; import { View, StyleSheet, TextInput, TouchableOpacity, Text, FlatList } from "react-native"; import { Avatar, ListItem, Icon } from "react-native-elements"; import db from "../config"; export default class SearchScreen extends Component { constructor(props) { ...
import {NavController, NavParams, Page} from 'ionic/ionic'; import {SessionDetailPage} from '../session-detail/session-detail'; import {DataService} from '../service/data'; @Page({ templateUrl: 'app/speaker-detail/speaker-detail.html', }) export class SpeakerDetailPage { constructor(nav: NavController, navParams: ...
const router = require("express").Router(); const controller = require('../controllers/UsersSchema.controller.js'); router.get("/", controller.getAllDocuments); router.post("/", controller.createDocument); module.exports = router;
import path from 'path'; import identity from 'lodash/identity'; import getComponents from '../getComponents'; xdescribe('getComponents', () => { it('should return an object for components', () => { const result = getComponents(['Foo.js', 'Bar.js'], { configDir: path.resolve(__dirname, '../../../test'), getEx...
import { CART_ADD_ITEM, CART_FETCH_SHIPPING_ADDRESS, CART_REMOVE_ITEM, CART_SAVE_SHIPPING_ADDRESS, CART_SAVE_PAYMENT_METHOD, } from "../constants/cartConstants"; export const cartReducer = ( state = { cartItems: [], shippingAddress: {} }, action ) => { switch (action.type) { case CART_ADD_ITEM: ...
export default ({props, state}) => { const path = `workspace.links.${props.id}.locked` state.set(path, !state.get(path)) }
const { buildTree } = require('../../scripts/problem-utils'); module.exports = [{ input : [buildTree([1, 2, 3, null, 5])], output : ['1->2->5', '1->3'] }];
Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */
const pricingInfo = [ { checkList: [ { title: 'Lorem ipsum ' }, { title: 'Lorem ipsum dolor sit ametaa' }, { title: 'Lorem ipsum dolor' } ], description: 'Lorem ipsum dolor sit amet, consectetur', recommended: false, price: '$ 399', title: 'Package One' }, { checkList...
const { exec, spawn } = require('child_process'); const { stderr } = require('process'); exec('node src/modules/console.js', (error, stdout, stderr) => { if (error) { console.error(error); return false; }; console.log(stdout) }); let process = spawn('ls', ['-la...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
var Board = require("../board"); var Animation = require("../animation"); var Expander = require("../expander"); var Fn = require("../fn"); var converter = require("color-convert"); var priv = new Map(); var Controllers = { DEFAULT: { initialize: { value: function(opts) { RGB.colors.forEach(functi...
import React from "react" import { graphql } from "gatsby" import StyledLink from "../components/styledLink" import Layout from "../components/layout" import SEO from "../components/seo" import { rhythm } from "../utils/typography" class StuffPage extends React.Component { render() { const { data } = this.prop...
function my_function530(){ //63756821848308387493570023835524iFBzVjAldjFEYyPBVEaLREkJtspdKjhc } function my_function575(){ //67020673123808667999814124622648wVDKAUkDkkkSeXeZBTknjzYyfArDAywX }
module.exports = `const mongoose = require("mongoose"); const { Schema } = mongoose; const userSchema = new Schema({ googleId: String, name: String, email: String }); mongoose.model("users", userSchema);`
import React from "react"; import { Row, Container} from 'reactstrap'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/material/TableCell'; import TableContainer from '@mui/material/TableContainer'; import TableRow from '@mui/material/TableRow'; impo...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/auth/ResetPassword/Index.vue?vue&type=script&lang=js&": /*!*************************************************************************...
import createSvgIcon from './utils/createSvgIcon.js'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M7 7v2H5V7h2zm-2 6v-2h2v2H5zm0 2h2v2H5v-2zm14 2H9v-2h10v2zm0-4H9v-2h10v2zm0-4H9V7h10v2z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { d: "M3 5...
import List from "./List"; import MesosSummaryUtil from "../utils/MesosSummaryUtil"; import StateSummary from "./StateSummary"; class SummaryList extends List { constructor(options = {}) { super(...arguments); this.maxLength = options.maxLength || null; } add() { super.add(...arguments); if (th...
const TemplatePath = require("./TemplatePath"); class TemplateGlob { static normalizePath(...paths) { if (paths[0].charAt(0) === "!") { throw new Error( `TemplateGlob.normalizePath does not accept ! glob paths like: ${paths.join( "" )}` ); } return TemplatePath.addLe...
'use strict'; module.exports = { baseUrl: "https://api.deepai.org" //baseUrl: "http://localhost:8000" // for dev }
/** * Generate random chart data */ var chartData1 = []; function generateChartData() { var firstDate = new Date(); firstDate.setDate( firstDate.getDate() - 500); firstDate.setHours( 0, 0, 0, 0 ); for ( var i = 0; i < 500; i++ ) { var newDate = new Date( firstDate ); newDate.setDate( newDate.getDate...
//// [memberVariableDeclarations1.ts] // from spec class Employee { public name: string; public address: string; public retired = false; public manager: Employee = null; public reports: Employee[] = []; } class Employee2 { public name: string; public address: string; public retired: bo...
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true // @downlevelIteration: true var a; var x, y, z, a1, a2, a3; var ref, ref1; ref1 = (ref = a, ref), x = ref1.x, y = ref1.y, z = ref1.z, ref1; var ref2, ref3; ref3 = _sliced_to_array((ref2 = _sliced_to_array(a, 0),...
const nodemailer = require('nodemailer') module.exports = nodemailer.createTransport({ host: "smtp.mailtrap.io", port: 2525, auth: { user: "e434df61520396", pass: "cb6586f63be113" } });
const Model = require('./Model'); class GroomerMedia extends Model { constructor() { super(); this.tableName = 'groomer_medias'; this.validationSchema = { type: 'object', required: ['groomer_id', 'url'], properties: { groomer_id: { type: 'string', oneOf: { k...
const constants = require("./constants"); function getDefaultCurrentUrlContainsTheString(string) { return `current URL contains the string '${string}'.`; } function getDefaultCurrentUrlDoesNotContainStringMessage(string) { return `current URL does not contains the string '${string}'.`; } function getDefaultCurre...
// A command has an arbitrary name, a regex or pattern, // and a script as a minimum. // regex A regex to match against // objects An array of matches in the regex (see wiki) // script This will be run on a successful match // attName If there is no script, then this attribute on the...
var completionSpec = { name: "firebase", description: "CLI Interface for Google Firebase", // args: {}, subcommands: [ { name: "login", description: "login to firebase", options: [ { name: ["-h", "--help"], description: "output usage info", }, { ...
/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
const axios = require("axios"); const crypto = require("crypto"); const path = require("path"); const Web3Eth = require("web3-eth"); require("dotenv").config({ path: `.env`, }); const graphql = require("gatsby"); const { createRemoteFileNode } = require("gatsby-source-filesystem"); const url = process.env.GATSBY_ETH...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html const { join } = require('path'); const { constants } = require('karma'); module.exports = () => { return { basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], ...
import styled from 'styled-components'; import pallete from 'styles/colors'; const LevelTag = styled.div` display: inline-block; margin-left: 0.08rem; padding: 0 0.08rem; color: ${pallete.white}; font-size: 0.24rem; border-radius: 0.04rem; background-color: ${pallete.text.yellow} `; export default Level...
// // build task definitions // // run any task with "yarn build ${taskName}" // const livereload = require('gulp-livereload'); const { createTask, composeSeries, composeParallel, detectAndRunEntryTask, } = require('./task'); const createManifestTasks = require('./manifest'); const createScriptTasks = require('...
/* Написать функцию fetchCountryData, которая использует apiUrl + текущее значение input для составления запроса. Формат полного url таков: https://restcountries.eu/rest/v2/name/имя-страны С помощью fetch сделать запрос по составленому адресу. Обязательно обработать вариант с ошибкой запроса ис...
import service from '../api/album-service' export function getRecentAlbums() { return service().then((albums) => { return albums .reverse() .slice(0, 2) .map(({ title }) => title); }); }
export * from './onPageScroll' export * from './onReachBottom'
// https://prettier.io/docs/en/options.html module.exports = { // 尾后逗号 trailingComma: 'none', tabWidth: 2, // 结尾分号 semi: true, // Use single quotes instead of double quotes. singleQuote: true, // Change when properties in objects are quoted. quoteProps: 'consistent', bracketSpacing: true, bracket...
import React, {useEffect} from 'react'; import {Alert, View} from 'react-native'; import { setJSExceptionHandler, setNativeExceptionHandler, } from './src/error-handler'; import {defaultTitle} from 'crashy/src/config'; import {sendLog} from 'crashy/src/send-error'; const Crashy = ({children, options}) => { use...
'use strict'; define( ["angular", "OPrime", "libs/oprime/services/CouchDB"], function(angular, OPrime, CouchDBServices) { console.log("Loading Activity.services"); /* Services */ /* * TODO requires a view to users' activity feeds so that these can be * generated, and add a check box so they...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.4.1_A7_T2; * @section: 15.10.4.1; * @assertion: The [[Prototype]] property of the newly constructed object is set to the original RegExp prototype object, the one that...
import * as types from '../../mutation-types' import lazyLoading from './lazyLoading' // import admin from './admin's // import tools from './tools' // import design from './design' // defaults // import charts from './charts' // import uifeatures from './uifeatures' // import components from './components' // import ...
import React, { Component } from 'react' import moment from 'moment' import config from '../../data/SiteConfig' export default class Comments extends Component { constructor(props) { super(props) this.initialState = { submitting: false, comments: [], newComment: { name: '', ...
/** * Returns a string with the formatted updatedAt date, in format dd/mm-yyyy * @param {obj} caseObj * */ export const formatUpdatedAt = (updatedAt) => { if (updatedAt && updatedAt !== '') { const date = new Date(updatedAt); return `${date.getDate()}/${date.getMonth() + 1}-${date.getFullYear()}`; } re...
import React, { Component } from 'react'; import { Checkbox, ControlLabel, FormControl, FormGroup } from 'react-bootstrap'; class SizeChooser extends Component { render() { const { hasGaugeAdjustments, originalImage, onHasGaugeAdjustmentChange, onStitchesHighChange, onStitchesWideCh...
import realtimeQueue from './queue'; import _ from 'lodash'; const RealtimeProcessor = function (io) { this.io = io; // pick up the product-rating:added event and publish to clients realtimeQueue.process('product-rating:added', (job, done) => { console.log('Broadcasted Event: product-rating:added'); thi...
var db = require('../../config/database'); var dbFunc = require('../../config/db-function'); var menuModel = { getAll: getAll, addOne: addOne, updateOne: updateOne, deleteOne: deleteOne, getById: getById, getAllByIdMenu: getAllByIdMenu, deleteAllByIdMenu: deleteAllByIdMenu, addByIdRela:...
import axios from 'axios' import dayjs from 'dayjs' class SheetApi { constructor() { this.apiBase = 'https://sheets.googleapis.com/v4/spreadsheets/1iQaK7yERA2tIfcz2Tl1OHibjoq4ZRZXqK-EYx7pj-e0/values' this.macroApiBase = 'https://script.googleusercontent.com/macros/echo' this.cache = {} } // デー...
const SERVICE_NAME = 'age-levels'; import backend from "@/lib/backend"; export default axios => ({ find(data){ return backend(axios, `${SERVICE_NAME}`).find(data); } });
import Head from 'next/head' import MarkdownSample from '../components/MarkdownSample.mdx' export default function Index() { return ( <div className="antialiased text-gray-900"> <Head> <title>Tailwind CSS Typography</title> </Head> <div className="px-4 py-10 max-w-3xl mx-auto sm:px-6 sm...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([],function(){"use strict";var M={};M.render=function(r,c){r.write('<ul class="sapUiMsgList"');r.writeControlData(c);r.write(">");for(var i=c.aMessages.len...
const connection = require('../../dbPromised.js'); const Discord = require('discord.js'); module.exports = { name: 'balance', description: 'Check your current 🍥 or that from others.', aliases: ['bal', '🍥', 'currency', 'cur', '$'], guildOnly: true, execute(message, args) { async functio...
exports.help = { name: 'help', description: 'Лист команд, позволяет узнать более подробную информацию о каждой команде.', aliases: ['commands', 'h'], usage: [{ type: 'text', opt: 1, name: 'название команды' }], dm: 1, tier: 0, cooldown: 2, }; const { readdirSync, lstatSync } = require('fs'), tiers = { '-3': ...
"use strict"; // defaults look to the docker-machine on OSX var config = { host: 'localhost', port: '5432', user: 'storage', password: 'storageGCTOR', database: 'storage' }; if (process.env.PGHOST != null) { config.host = process.env.PGHOST; } if (process.env.PGPORT != null) { config.port = parseInt(pro...
//# sourceMappingURL=public.js.map
import test from 'tape-promise/tape'; // import {COORDINATE_SYSTEM, Viewport, WebMercatorViewport} from 'deck.gl'; import {gl} from '@deck.gl/test-utils'; import {picking, project32} from '@deck.gl/core'; import {Transform, Buffer} from '@luma.gl/core'; import VS from '../../../../modules/layers/src/path-layer/path-la...
const myString = "Leanring JavaScript"; const myFirstNumber = 3; const myBolean = true; const myNull = null; let myUndefined; myUndefined = "Learning more JavaScript in class"; var oldStyle = "This is the way we used to do it."; let newChangingStyle = "This allows you to declare a variable that can be changed"; const...
(my["webpackJsonp"] = my["webpackJsonp"] || []).push([["pages/extend-view/tabs/tabs"],{ /***/ 698: /*!**********************************************************************************!*\ !*** D:/work/uniapp/ThorUI/main.js?{"page":"pages%2Fextend-view%2Ftabs%2Ftabs"} ***! \*****************************************...
describe("FrequencyGraph", () => { const FrequencyGraph = Visualize.FrequencyGraph; describe("construct()", () => { let visual = new FrequencyGraph(); document.body.appendChild(visual.canvas); expect(visual).to.be.ok; expect(visual.canvas).to.be.ok; expect(visual.analyse...
var data = { "body": "<path d=\"M31 10V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h23a2 2 0 0 0 2-2zM6 4h23v6H6z\" class=\"clr-i-outline clr-i-outline-path-1\" fill=\"currentColor\"/><path d=\"M33 6h-1v6.29l-13.3 4.25a1 1 0 0 0-.7 1V19h-2v14a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V19h-2v-.73L33.3 14a1 1 0 0 0 .7-1V7a1 1 0 0...
import useSWR from 'swr' import axios from 'axios' import vLog from '../plugins/logger' export const ax = axios export const $axios = axios.create({ baseURL: 'https://some-domain.com/api/', timeout: 60000, headers: { // 'X-Custom-Header': 'foobar' }, withCredentials: false, // responseType: 'json', ...
import { primaryColor } from 'assets/jss/material-kit-pro-react.js'; const styles = theme => ({ sliderDetailContainer: { padding: '24px 30px', }, showDetailLeft: { float: 'left', marginBottom: '10px', fontSize: '1rem', lineHeight: '20px', color: theme.palette.text.secondary, fontWeigh...
// Copyright 2016 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import ActionEmptyPrompt from './ActionEmptyPrompt'; export default ActionEmptyPrompt;
module.exports={viewBox:'0 0 400 512',d:'M324 319.8h-13.2v34.7c-24.5 23.1-56.3 35.8-89.9 35.8-73.2 0-132.4-60.2-132.4-134.4 0-74.1 59.2-134.4 132.4-134.4 35.3 0 68.6 14 93.6 39.4l62.3-63.3C335 55.3 279.7 32 220.7 32 98 32 0 132.6 0 256c0 122.5 97 224 220.7 224 63.2 0 124.5-26.2 171-82.5-2-27.6-13.4-77.7-67.7-77.7zm-12....
layui.define([ 'form', 'laydate', 'table' ], function(exports) { var form = layui.form; var laydate = layui.laydate; var table = layui.table; var functionTable = null; var view ={ init:function(){ this.initTable(); this.initSearchForm(); this.initToolBar(); window.dataReload = function(){ Lib....
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); mongoose.Promise = require('bluebird'); var book = require('./routes/book'); var app = express(); app.engin...
const models = require('./models') const Promise = require('bluebird') const url = require('url') const requestPromise = require('request-promise') const i18n = require('i18n') const stripe = require('stripe')(process.env.STRIPE_KEY) const SendMail = require('./modules/mail/mail') i18n.configure({ directory: process...
const environment = {...window.environment, client: true, server: false}; //delete window.environment; Object.freeze(environment); export default environment;
/* Script that requests QTUM/BTC price to the Consumer contract */ const url = require('url'); const rpcURL = process.env.ETH_RPC; const qtumAccount = url.parse(rpcURL).auth.split(":")[0] // assume: node 8 or above const ora = require("ora") const parseArgs = require("minimist") const qtum = require("qtumjs-eth") ...
import { isElectronRenderer, isBrowser } from 'wherearewe' import { transport as nodeTransport } from './transport.node.js' import { transport as browserTransport } from './transport.browser.js' export function transport () { // In electron-renderer we use the browser transport if (isElectronRenderer || isBrowser)...
var searchData= [ ['lconv',['lconv',['../db/d9f/locale_8h.html#d8/dba/structlconv',1,'']]], ['ldiv_5ft',['ldiv_t',['../dc/d9c/stdlib_8h.html#d2/dfe/structldiv__t',1,'']]], ['ll_5fhead',['ll_head',['../df/d5e/group__linkedlist-_c.html#d4/d48/structll__head',1,'']]], ['lldiv_5ft',['lldiv_t',['../dc/d9c/stdlib_8h....
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); import 'jquery'; import initMessages from './block/messages.js'; $(fun...
function CoreHeaderPanel() {} module.exports = CoreHeaderPanel; CoreHeaderPanel.prototype.view = __dirname; CoreHeaderPanel.prototype.init = function () { /** * Controls header and scrolling behavior. Options are * `standard`, `seamed`, `waterfall`, `waterfall-tall`, * `waterfall-medium-tall`, `sc...
module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, node: true }, extends: 'standard', globals: { __static: true }, plugins: [ 'html' ], 'rules': { "indent": ["off", 2], 'semi': 0, "space-before-fun...
/* * The Original Code is Mozilla Universal charset detector code. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 2001 * the Initial Developer. All Rights Reserved. * * Contributor(s): * António Afonso (an...
(function() { function recipes(checked) { return checked.map(item => RECIPES[item]); } // addCheckboxes that put meals in the mealContainer to the left of recipes in // the recipeContainer. function addCheckboxes(mealContainer, recipeContainer) { checkboxList( recipeContainer, checked => makeMeal(mealCont...