text
stringlengths
2
1.04M
const { resolve } = require('path'); const root = (path = '') => { return resolve('.', path); }; module.exports= { root }
export type User = { name: string; }; export default function demo (input: User): string { return input.name; }
const producer = require("../dataproducer"); //希尔排序 function shellSort(ary) { var n = ary.length; //计算分组增量 var stepInc = parseInt(n/2); // while(stepInc > 0) { for(var i = 0; i < stepInc; i++) { for( var j = i + stepInc; j < n; j += stepInc) { if(ary[j] < ary[j -...
import React from 'react' import { Link } from 'react-router-dom' import Exception from 'Components/Exception' export default () => ( <Exception type='500' style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> )
'use strict'; /** * Module dependencies. */ var passport = require('passport'); module.exports = function(app) { // User Routes var users = require('../../app/controllers/users.server.controller'); // Setting up the users profile api app.route('/api/users/me').get(users.me); app.route('/api/users').put(users....
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for yo...
const path = require('path'); module.exports = { dev: { filename: '[name].bundle.js', publicPath: '', pathinfo: true, chunkFilename: "[id].chunk.js", sourceMapFilename: '[file].map', path: path.resolve(__dirname, '../client') }, prodWebsite: { filenam...
function moduleController($scope, $http) { $scope.moduleInit = function() { this._init(); }; $scope.moduleInit.prototype = { _init: function() { this.getModule(); //获取模块列表 this.change_option(); //模块上传,列表切换 this.submit_module(); //上传模块 ...
// import the gql tagged template function const { gql } = require('apollo-server-express'); // create our typeDefs const typeDefs = gql` type Query { user: User } type User { _id: ID! username: String email: String password: String bookCount: Int savedBooks: [Book] } type Mutation { ...
var searchData= [ ['data_2emd_726',['data.md',['../data_8md.html',1,'']]], ['database_2ecpp_727',['Database.cpp',['../_database_8cpp.html',1,'']]], ['database_2eh_728',['Database.h',['../_database_8h.html',1,'']]], ['database_2emd_729',['database.md',['../database_8md.html',1,'']]], ['datamanager_2ecpp_730',[...
"use strict" var fs = require("fs"); var bundle = require("./bundle") var minify = require("./minify") var aliases = {o: "output", m: "minify", w: "watch", a: "aggressive"} var params = {} var args = process.argv.slice(2), command = null for (var i = 0; i < args.length; i++) { if (args[i][0] === '"') args[i] = JSON...
/*! formstone v0.8.26 [dropdown.js] 2015-11-01 | MIT License | formstone.it */
TC.control = TC.control || {}; if (!TC.Control) { TC.syncLoadJS(TC.apiLocation + 'TC/Control'); } TC.Consts.event.BEFOREFEATUREMODIFY = "beforefeaturemodify.tc"; TC.Consts.event.FEATUREMODIFY = "featuremodify.tc"; TC.Consts.event.FEATURESSELECT = "featuresselect.tc"; TC.Consts.event.FEATURESUNSELECT = "featuresun...
export default { isoName: 'de', nativeName: 'Deutsch', label: { clear: 'Leeren', ok: 'Ok', cancel: 'Abbrechen', close: 'Schließen', set: 'Setzen', select: 'Auswählen', reset: 'Zurücksetzen', remove: 'Löschen', update: 'Aktualisieren', create: 'Erstellen', search: 'Suche...
import "../styles/navbar.css"; const Navbar = () => { return ( <div className="navbar"> <div className="content"> <div className="brand item"> <a href="/" className=""> CoviData </a> </div> </div> </div> ); }; export default Navbar;
var jsm = require('../lib/jsmidgen.js'); console.log('Listing notes by MIDI pitches...'); for (var i=21; i<109; i++) { console.log(i, jsm.Util.noteFromMidiPitch(i)); } console.log('Done!'); console.log('Reference: http://newt.phys.unsw.edu.au/jw/notes.html');
Ext.define('Penggajian.view.transaksi.hitungpendapatan.PerhitunganPendapatanController', { extend: 'Ext.app.ViewController', alias: 'controller.hitungpendapatan' ,onShow:function(){ var refstore=Ext.getCmp('idhitungpendapatanlist').store; var app = Penggajian.getApplication(); ...
function solve(input){ let words = input.toUpperCase().split(/[\W+]/).filter(word => word.length > 0).join(', '); console.log(words); } solve('Hi, how are you?');
// @flow import { call, put } from 'redux-saga/effects' import { getToken } from 'containers/LoginModal/saga' import * as api from 'services/api' import type { Response } from 'services/api' import * as actions from './actions' export function* post(endpoint: string, data: Object): Generator<*, void, *> { const toke...
'use strict'; // Forms controller angular.module('forms').controller('ListFormsController', ['$rootScope', '$scope', '$stateParams', '$state', 'GetForms', 'CurrentForm', '$http', '$uibModal', 'myForms', '$window', function($rootScope, $scope, $stateParams, $state, GetForms, CurrentForm, $http, $uibModal, myForms, $wi...
CodeMirror.defineMode("plasm", function(conf, parserConf) { var ERRORCLASS = 'error'; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); } var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"); var singleDelimiters = new RegExp('^[\\(\\)\\[\\...
//# sourceMappingURL=589-63c3461962876bc2f223.js.map
jQuery(function($) { Vue.component('editable', { data: function() { return { editing: false, savedValue: '' } }, props: ['value', 'hide-trash'], template: ` <div class="editable" v-bind:class="{ editing: editing }"> <div v-if="!editing" v-on:mousedown="edit" class="value...
import _ from 'lodash'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg'...
var path = require('path'); var fs = require('fs'); module.exports = function (grunt) { grunt.registerTask('prefix', function () { var buildDir = path.resolve(__dirname, '..', 'build'); // Check whether build folder exists if (!fs.existsSync(buildDir)) { grunt.fail.fatal('Mixins folder does not exist.'); }...
// Copyright 2008 The Closure Library 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 requ...
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 applicable l...
import Form from '../form'; import dateSerialization from '../../core/utils/date_serialization'; import messageLocalization from '../../localization/message'; import devices from '../../core/devices'; import './ui.scheduler.recurrence_editor'; import './timezones/ui.scheduler.timezone_editor'; import '../text_area'; i...
describe('Add REP', () => { it('should create REP', () => { cy.visit('/rep/cadastro'); cy.get('#typeOrigin').click(); cy.get('ul:first-child>li:first-child').click(); cy.get('#numberOrigin').type('123'); cy.get('#foundation').click(); cy.get('ul:first-child>li:first-child').click();...
class AppError extends Error { constructor(statusCode, message, isOperational = true, stack = '') { super(message); this.statusCode = statusCode; this.isOperational = isOperational; if (stack) { this.stack = stack; } else { Error.captureStackTrace(this, this.constructor); } } } ...
define([ '../ThirdParty/when', './defined', './isDataUri', './loadBlob', './loadImage' ], function( when, defined, isDataUri, loadBlob, loadImage) { 'use strict'; var xhrBlobSupported = (function() { try { v...
/** * Galleria Flickr Plugin 2012-04-04 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global jQuery, Galleria, window */ Galleria.requires(1.25, 'The Flickr Plugin requires Galleria version 1.2.5 or later.'); // The script ...
import { attachComponent, detachComponent } from '../../utils/framework-delegate'; import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays'; import { getClassMap } from '../../utils/theme'; import { deepReady } from '../../utils/transition'; import { iosEnterAnimation } from './animations/ios.ente...
import * as p from '../../src'; test('many0 and doParse work together', () => { const parse = p.build(p.many0(p.doParse({ a: p.char('a'), b: p.char('b'), }, (result) => { return { a: result.a.getResult(), b: result.b.getResult(), } }))); const re...
exports.menu3 = (id, A187, tampilTanggal, whatsapp, youtube, tampilWaktu, instagram, nomer, aktif) => { return ` ❉──────────❉ *${F007}* ❉──────────❉ 📆 *${tampilTanggal}* 📌STATUS BOT AKTIF: *${aktif}* ╔════════════════ ║ *MENU3* ╠════════════════ ║╭──❉ *18+* ❉── ║│➸ _*!indohot*_ ║│➸ _*!cersex*_ ║│➸ ...
/* * This file is part of the ZombieBox package. * * Copyright © 2012-2021, Interfaced * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const fse = require('fs-extra'); const http = require('http'); const {URL} = require('url'); con...
import { TabView } from "./bookmark/TabView.js"; import { TabViewImport } from "./bookmark/TabViewImport.js"; import { TabViewExport } from "./bookmark/TabViewExport.js"; class Application { #tabViewImport = new TabView(new TabViewImport()); #tabViewExport = new TabView(new TabViewExport()); init() { thi...
'use strict' const Bleacon = require('bleacon') const startedAt = new Date().getTime() function isBean(beacon) { return beacon.uuid.match('^a495....c5b14b44b5121370f02d74de$') } function pad(str, len) { while (str.length < len) { str = '0' + str } return str } Bleacon.on('discover', (beacon) => { con...
// mojo/public/js/ts/bindings/tests/export3.test-mojom.externs.js is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @type { !number } */...
const STATE_ENUM = { HIDDEN: 0, SHOWN: 1 }; class DropdownMenu { constructor ({ select, dropdown, callback = () => {}, duration = 200 }) { this.TRIM_LENGTH = 6; this._select = select; this._dropdown = dropdown; this._options = [...this._dropdown.firstElementChi...
/*! * template-push <https://github.com/jonschlinkert/template-push> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; /* deps: mocha */ require('should'); var through = require('through2'); var verb = require('verb'); var push = require('./'); var verbPush = push(verb); ...
import _ from "lodash"; import React from "react"; import PropTypes from "prop-types"; import { Modal, Button, Glyphicon, OverlayTrigger, Tooltip } from "react-bootstrap"; import SelectionBasedComponent from "./selection_based_component"; import LocationChooserMap from "./location_chooser_map"; import SavedLo...
'use strict'; define({ setSlow: setSlow, isSlow: isSlow, addListener: addListener, }); var deviceIsSlow = false; var listeners = []; function setSlow() { deviceIsSlow = true; $('.hide-when-slow').hide(); $('.show-when-slow').show(); for (var i in listeners) { listeners[i](); } } function isSlow(...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Custom binding for the Permissions API. var binding = require('binding').Binding.create('permissions'); var Event = require('event_bindings').Eve...
import PropTypes from 'prop-types' import React, { Component } from 'react' import Footer from '../common/Footer' import 'semantic-ui-css/semantic.min.css' import '../../styles/global.scss' class DesktopContainer extends Component { render() { const { children } = this.props return ( <div className='...
const app = require('./app'); const port = process.env.PORT | 3333; app.listen(port, () => console.log(`Running at ${port}`))
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, 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 ri...
// Copyright 2019 Mathias Bynens. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- author: Mathias Bynens description: > Unicode property escapes for `General_Category=Unassigned` info: | Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests ...
// Generated by CoffeeScript 2.4.1 (function() { // Basic omniscient debugger define(['./base', 'bluebird'], function(Base, Bluebird) { var ODB, Promise, clearEntries, currentOdb, deleteEntries, dumpTraceValues, flushTraceLog, getCallGraphEntry, getCallGraphInfo, getContextDef, getEntry, getLambdaDef, getLatest...
import expect from 'expect'; import React from 'react'; import { DocumentRole } from '../../src/components/document/DocumentRole'; import { shallow } from 'enzyme'; describe('role documents component', () => { const props = { actions: { loadDoc: () => Promise.resolve(), loadRoleDocuments: () => Promi...
'use strict' var composestats = require('../') // var composestats = require('connect-composer-stats') var compose = require('connect-composer') // get new stats object var statsGlb = composestats() var statsMw = composestats() var statsFn = composestats() // to globally inject stats use: compose.options = { stats: s...
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : unary_expression.js * Created at : 2017-08-18 * Updated at : 2017-08-20 * Author : jeefo * Purpose : * Description : _._._._._._._._._._._._._._._._._._._._._.*/ // ignore:start /* globals */ /* exported */ // ignore:end var argument_handler = fu...
if ("serviceWorker" in navigator) { window.addEventListener("load", function () { navigator.serviceWorker.register("service-worker.js").then( function (registration) { console.log("ServiceWorker registration successful with scope: ", registration.scope); }, function (...
/** * TARA-Stat - Mikroteenus TARA statistika kogumiseks ja * vaatamiseks * * Veebirakenduse kogu kood on siinses failis. * * Node.js callback-de tõttu * on peamine töötsükkel asetatud MongoDB-ga ühenduse võtmise * callback-i sisse. Kõigepealt luuakse ühendus MongoDB-ga. Seejärel * käivitatakse Express vee...
import React, { useEffect, useState } from 'react'; import TodoForm from './TodoForm'; import TodoList from './TodoList'; import { getAllTodos } from '../services/todo.service'; const Todo = () => { const [todos, setTodos] = useState([]); const [isLoading, setIsLoading] = useState(false); useEffect(() => { ...
/*! * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ /** * Renders any kind of widget. If you have a widget and you want to have it rendered, use this directive. It will * display a name on top and the actual widget below. ...
import Vue from 'vue'; import Vuex from 'vuex'; import VuexDynamicModule from '@/plugins/vuex-dynamic-module'; import structure from './structure'; Vue.use(Vuex); Vue.use(VuexDynamicModule); const store = new Vuex.Store({ modules: { structure: structure } }); export default store;
var express = require('express'); var router = express.Router(); const sqlite3 = require('sqlite3').verbose(); // open the database let db = new sqlite3.Database('./database/salgozi.sqlite3', sqlite3.OPEN_READWRITE, (err) => { if(err) { console.error(err.message); } console.log('Connected to the salgozi datab...
const base64Decode = require('fast-base64-decode') const getRandomBase64 = require('./getRandomBase64') class TypeMismatchError extends Error {} class QuotaExceededError extends Error {} let warned = false function insecureRandomValues (array) { if (!warned) { console.warn('Using an insecure random number gener...
function setup() { console.log("Hello World!") } function draw() { }
fetch("https://bing-news-search1.p.rapidapi.com/news?safeSearch=Off&textFormat=Raw", { "method": "GET", "headers": { "x-bingapis-sdk": "true", "x-rapidapi-key": "02fcb00b00mshca77b871d58f815p1b82d4jsn385d5be92e0a", "x-rapidapi-host": "bing-news-search1.p.rapidapi.com" } }) .then(response => { console.log(resp...
/** * @license AngularJS v1.2.10-build.2155+sha.756c52d * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows...
/** * Please provide all your functions in this file. * Consider using extending built-in objects. */ "use strict"; /** * A URL PARSER * This function analyses an url. * Please refer to the "https://de.wikipedia.org/wiki/Uniform_Resource_Locator" */ function analyseUrl(pUrl) { let r = { host: null ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define('navodyDigitalFrontend', factory) : (factory()); }(this, (function () { 'use strict'; (function(undefined) { // Detection from https://github.com/Financial-Ti...
/* global describe, it */ describe( 'MD2Character', () => { it( 'is bundlable', () => { should.exist( Three['MD2Character'] ) } ) it( 'is instanciable', () => { should.exist( new Three['MD2Character']() ) } ) } )
$(document).on('change', '.tipo', function(e) { var tipo = $(e.currentTarget).val(); if (tipo == 0) { $('#areas').prop('disabled', true).trigger("chosen:updated"); $('#employees').prop('disabled', true).trigger("chosen:updated"); } else if (tipo == 1) { $('#areas').prop('disabled', f...
import request from 'supertest'; jest.setTimeout(100 * 1000); global.API_URL = 'http://localhost:3000'; global.request = request;
function Scope(name) { if (Scope.prototype.newScopeId === undefined) { var scopeId = 0, self = Scope.prototype; self.newScopeId = function() { return scopeId++; } self.toString = function() { return "Scope{" + this.name + "(" + this.id + ")}"; } } if (!(this instanceof Scope)) return new Sc...
import React from "react"; import { useGameContext } from "../../context/GameContext" function GameEnd() { const { gameState, updateGameState, playerState, setPlayerState, draggedCard, setDraggedCard, dealCards, setGameState } = useGameContext() const winningPlayer = () => { const p1Score = game...
const prettyBytes = require('pretty-bytes'); const observableSlim = require('observable-slim'); const data = require('../data/movies.json'); const mutate = require('./mutate-data'); let changeCount = 0; let maxMem = 0; function checkMem() { const mem = process.memoryUsage(); if (mem.rss > maxMem) maxMem = mem....
(function() { var DropTarget = kendo.ui.DropTarget, Draggable = kendo.ui.Draggable, span, targetElement, target, draggable; module("kendo.ui.DropTarget", { setup: function() { span = $("<span/>").appendTo(QUnit.fixt...
'use strict'; /** * @fileoverview Match suite descriptions to match a pre-configured regular expression * @author Alexander Afanasyev */ const astUtils = require('../util/ast'); const defaultSuiteNames = [ 'describe', 'context', 'suite' ]; function inlineOptions(context) { const pattern = new RegExp(context.o...
import React, { Component } from 'react'; import ReactDOM from 'react-dom' import update from 'immutability-helper'; import Swiper from 'react-id-swiper'; import SliderHStoreCapture from '../components/SliderHStoreCapture.js' import $ from 'jquery'; window.jQuery = window.$ = $; var ReactGA = require('react-ga'); Reac...
'use strict'; describe('Controller: AssetDeleteCtrl', function () { // load the controller's module beforeEach(module('clientApp')); var AssetDeleteCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); Asset...
/* * Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved. */ const snowflake = require('./../../lib/snowflake'); const async = require('async'); const assert = require('assert'); const connOption = require('./connectionOptions'); const testUtil = require('./testUtil'); const Util = require('./../../l...
var myKeyQueue = []; document.addEventListener("keydown", function(e) { var code = {key:(e.charCode !== 0 ? e.charCode : e.keyCode), shift:e.shiftKey}; myKeyQueue.push(code); processKeyQueue(); }); function processKeyQueue() { var key = myKeyQueue[0].key; var shift = myKeyQueue[0].shift; myKeyQ...
import PropTypes from 'prop-types' import styled from 'styled-components' import { Container, Divider, Grid } from 'semantic-ui-react' import classNames from 'classnames' const mID = 'separator' const Separator = ({ className, isRow, cssClass, id }) => ( <> {isRow ? ( <Grid.Row className={className}> ...
import React, { useState, useEffect } from "react"; //Redux import { createStore, combineReducers, applyMiddleware } from "redux"; import { Provider } from "react-redux"; import ReduxThunk from "redux-thunk"; import { composeWithDevTools } from "redux-devtools-extension"; //Reducer import { authReducer, cartReducer...
import React, {PureComponent} from 'react'; import {Card, Steps, List, Button, message, Row, Col, Modal, Tag, Input, Form, Divider, Badge, Alert} from 'antd'; import {connect} from 'dva'; import classNames from 'classnames'; import {fetchApiSync} from '../../../utils/rs/Fetch'; import {formatDate} from '../../../utils/...
// this is the only approach that was significantly faster than using // str.replace(/\/+$/, '') for strings ending with a lot of / chars and // containing multiple / chars. const batchStrings = [ '/'.repeat(1024), '/'.repeat(512), '/'.repeat(256), '/'.repeat(128), '/'.repeat(64), '/'.repeat(32), '/'.repe...
/* dhtmlxScheduler v.4.1.0 Stardard This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited. (c) Dinamenta, UAB. */ scheduler.config.year_x = 4; scheduler.config.year_y = 3;...
// META: title=EventSource: unknown fields and parsing fun var test = async_test() test.step(function() { var source = new EventSource("resources/message.py?message=data%3Atest%0A%20data%0Adata%0Afoobar%3Axxx%0Ajustsometext%0A%3Athisisacommentyay%0Adata%3Atest") source.onmessage = function(e...
// Copyright 2018-2021 Polyaxon, Inc. // // 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 applicable law or agre...
var utils = require('./utils'); var config; const { Cc, Ci, Cr, Cu } = require('chrome'); Cu.import('resource://gre/modules/Services.jsm'); const INSTALL_TIME = 132333986000; // Match this to value in applications-data.js function debug(msg) { // dump('-*- webapp-manifest.js: ' + msg + '\n'); } let io = Cc['@mozill...
const interval = setInterval(pop,100) function pop () { // Quick check if user clicked the button using a keyboard for (let i = 0; i < Math.floor((delay.delayTime.value/0.6)*30); i++) { // We call the function createParticle 30 times // As we need the coordinates of the mouse, we pass them as argument...
Main.dynamicallyLoadScript(Main.base_url + "/js/campaign-create.js"); $( document ).ready(function() { $('body').scrollspy({ target: '#nav-create-campaign' }); $('[data-spy="scroll"]').on('activate.bs.scrollspy', function () { $(".navbar-inverse .active").removeClass("active").parent().addClass("a...
let cart =[{ name: "Pacotinfo", amount: 2, value: 10.00 }]; function add(item){ cart.push(item); return cart; } function remove(nomeItem){ car = car.filter(produto => produto.name != nomeItem); return car; } function exist(nomeItem){ let itemExiste = car.find(produto => produto.name === nomeItem ? 1 : 0); ...
import React from 'react' import {Button, Panel} from 'react-bootstrap' import {ItemsList} from 'components/common' function InvoiceListItem ({id, customer, discount, total}) { return <Panel bsStyle='info' header={`Invoice ${id}`} footer={`Total price is $${total}`} > <p>Customer: {customer &&...
const { Report } = require('../models'); const fs = require('fs'); const GETallReports = async (req, res) => { try { const reports = await Report.findAll({ order: [ ['createdAt', 'DESC'] ] }); return res .status(200) .render('reports/allReports', { ...
var fs = require('fs'); var readline = require('readline'); var google = require('googleapis'); var googleAuth = require('google-auth-library'); // If modifying these scopes, delete your previously saved credentials // at ~/.credentials/calendar-nodejs-quickstart.json var SCOPES = ['https://www.googleapis.com/auth/cal...
'use strict'; var React = require('react') import css from 'components/AppHeader/AppHeader.css'; import shareImage from '!file?name=[name].[ext]!assets/share_img.png'; var ViewActions = require('actions/ViewActions') , HeaderMenu = require('components/AppHeader/HeaderMenu') , GenreHeader = require('components/Ap...
import Document, { Html, Head, Main, NextScript } from 'next/document' class MyDocument extends Document { render() { return ( <Html> <Head> <link href='https://fonts.googleapis.com/css2?family=Noto%20Sans%20HK&display=optional' rel='stylesheet' /> ...
function increment(selector) { let container = $(selector); let fragment = document.createDocumentFragment(); let textArea = $('<textarea>'); let incBtn = $('<button>Increment</button>'); let addBtn = $('<button>Add</button>'); let list = $('<ul>'); textArea.val(0); textArea.addClass('c...
define({wrap:"Aplauzt",verticalAlignment:"Vertikālā salāgošana"});
require('./dist/sample')
// Generated by BUCKLESCRIPT VERSION 4.0.5, PLEASE EDIT WITH CARE 'use strict'; var Spectacle = require("spectacle"); var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js"); function make(children) { return ReasonReact.wrapJsForReason(Spectacle.Fit, { }, children); } exports.make = make; /* spectacle ...
import React from "react" // import { rhythm, scale } from "../utils/typography" import { Link } from "gatsby" import Image from "./customImage.js" import P from "../p5/p5" const Header = () => { let header // if (path === rootPath) { header = ( <div id="header-box"> {/* <div className="home-header">...
import { equal } from "@ember/object/computed"; import Component from "@ember/component"; export default Component.extend({ planButtonSelected: equal("planTypeIsSelected", true), paymentButtonSelected: equal("planTypeIsSelected", false), actions: { selectPlans() { this.set("planTypeIsSelected", true);...
if( typeof module !== 'undefined' ) require( 'wTools' ); var _ = wTools; // Input element var got = _.arrayReplace( [ 1, 2, 3, 3, 4 ], 3, 4 ); logger.log( 'Two elements Replaced', got ) var got = _.arrayReplaceOnce( [ 1, 2, 3, 3, 4 ], 3, 4 ); logger.log( 'Two elements Replaced', got ) var got = _.arrayReplaceOnceSt...
/* This module runs the scripts from react-scripts (Create React App) and gives an opportunity to override the Webpack config by creating a "config-overrides.dev.js" or "config-overrides.prod.js" file in the root of the project. The config-override file should export a single function that takes a ...