text stringlengths 2 1.04M |
|---|
const httpStatus = require('http-status');
class ExtendableError extends Error {
constructor({
message, errors, status, isPublic, stack,
}) {
super(message);
this.name = this.constructor.name;
this.message = message;
this.errors = errors;
this.status = status;
this.isPublic = isPublic;
... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
const HTTPS_PORT = 8443;
const fs = require('fs');
const https = require('https');
const WebSocket = require('ws');
const WebSocketServer = WebSocket.Server;
// Yes, TLS is required
const serverConfig = {
key: fs.readFileSync('key.pem'),
cert: fs.readFileSync('cert.pem'),
};
// ----------------------------------... |
import React from 'react';
const JobSetStateContext = React.createContext(null);
export default JobSetStateContext; |
var searchData=
[
['igraph',['IGraph',['../classg_sparse_1_1_i_graph.html#a49f79b460e4166da28dd0f188bd0e34e',1,'gSparse::IGraph']]],
['igraphreader',['IGraphReader',['../classg_sparse_1_1_i_graph_reader.html#adc903c78e5b76aebca391b2b07ec81d7',1,'gSparse::IGraphReader']]],
['igraphwriter',['IGraphWriter',['../clas... |
// @flow strict
import produce from "immer";
import * as common from "../common";
/**
* Let this declare the way for well typed records for outputs
*
* General organization is:
*
* - Declare the in-memory type
* - Declare the nbformat type (exactly matching nbformat.v4.schema.json)
* - Declare the messag... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
const render = Component => {
ReactDOM.render(<Component/>, document.getElementById('app'));
}
render(App);
if (module.hot) {
module.hot.accept('./containers/App', () => {
const NextApp = require('./co... |
var React = require('react')
var api = require('./api')
var divStyle = {
whiteSpace: 'nowrap'
};
var Deploy = React.createClass({
getInitialState: function() {
return {
stdout: '',
stderr: '',
error: null,
message: '',
status: 'initial',
};
},
handleSubmit: function(e) {... |
/*
CryptoJS v3.0
code.google.com/p/crypto-js
(c) 2009-2012 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
/**
* ISO 10126 padding strategy.
*/
CryptoJS.pad.Iso10126 = {
pad: function (data, blockSize) {
// Shortcut
var blockSizeBytes = blockSize * 4;
// Cou... |
n1 = 90
if(n1 >= 20 && n1 <= 90){
console.log(`Numero ${n1} esta entre 20 e 90`)
}
else{
console.log(`Numero ${n1} nao esta entre 20 e 90`)
} |
import React from 'react'
import renderer from 'react-test-renderer'
import StateLinks from '~components/pages/state/state-links'
describe('Components : Pages : State : State links', () => {
it('renders correctly', () => {
const tree = renderer
.create(
<StateLinks
stateName="California"
... |
//THIS CLASS is RESPONSIBLE FOR LOGGING AND HANDLING THE WARNINGS AND THE ERRORS.
//THE METHODS CURRENTLY IMPLEMENTED WILL BE UPDATED i.e. made template driven or tree view driven - AFTER THE DISCUSSION - 08/02/2015
(function(){
NETWORK.Logger = function(svg, edgesmessage){
this.errorMessages = [];
this.warningMe... |
import React, { Component } from "react";
class reactComponents extevjnds Component {
state = {
aMemVal: "",
tMemVal: "",
spanStyles: {
margin: 10
},
isbtnRamUsage: 0,
btnRamUsage: {
color: " #fff",
backgroundColor: "#28a745",
borderColor: "#28a745",
borderRadius... |
// ```
// user.model.js
// (c) 2016 David Newman
// blackshuriken@hotmail.com
// user.model.js may be freely distributed under the MIT license
// ```
// */app/models/user.model.js*
// ## User Model
// Note: MongoDB will autogenerate an _id for each User object created
// Grab the Mongoose module
const mongoose= req... |
// Copyright 2021, University of Colorado Boulder
// Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly.
import Shape from '../../../../kite/js/Shape.js';
import creativeCommonsNcJpString from './creativeCommonsNcJpString.js';
export default new Shape( creativeCommonsNcJpString ); |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-b9203099.js');
va... |
// Regular expression that matches all symbols in the High Private Use Surrogates block as per Unicode v9.0.0:
/[\uDB80-\uDBFF]/; |
e.namedCodepoints=t}),e("simple-html-tokenizer/helpers",["exports"],function(e){"use strict";function t(e){return e instanceof Array?e:[e]}function r(e){return/[\t\n\f ]/.test(e)}function n(e){return/[A-Za-z]/.test(e)}function i(e){return/[A-Z]/.test(e)}function s(e){for(var t=0;t<e.length;t++){var r=e[t];delete r.firs... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (v... |
module.exports = require('./src/DateUtils'); |
import { createSelector } from 'reselect';
import config from './GradientsConfig';
const sliceSelector = state => state[config.sliceName];
export const templateGradientsSelector = createSelector(sliceSelector, (slice) => {
return slice.templateGradients;
});
export const getSelectedGradientIdSelector = createSelect... |
/**
* Hilo 1.4.1 for standalone
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/ |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _generateHelpUrl = _interopRequireDefault(require("@sanity/generate-help-url"));
var _u... |
//# sourceMappingURL=phone-functions.min.js.map |
/*
* @Author: detailyang
* @Date: 2016-02-18 12:43:02
* @Last modified by: detailyang
* @Last modified time: 2016-03-13T02:59:43+08:00
*/
import koarouter from 'koa-router';
import convert from 'koa-convert';
import koaBody from 'koa-body';
import controllers from '../../controllers';
const koabody = koaBody({... |
import React, { Fragment } from "react";
import { Route, Switch, Redirect } from "react-router-dom";
import { NotificationContainer } from "react-notifications";
import session from "lib/session";
import Component from "lib/component";
import { Navbar } from "components/navbar";
import { Terminal } from "components/ter... |
// 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 agreed to in writing, software
// distributed un... |
module.exports = {
bottom: 'Bottom',
top: 'Top',
bot: 'Bot',
} |
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {logout} from '../store'
import {Icon} from 'semantic-ui-react'
import './navbar.css'
const Navbar = ({handleClick, isLoggedIn}) => (
<div className="nav-bar">
<h1>Guitar Solo Finder</h1>
<Icon inverted si... |
import React, { Component, Fragment } from 'react';
import { Switch, Route, Redirect, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import * as actions from './store/actions';
import asyncComponent from './hoc/asyncComponent';
// COMPONENTS
import Layout from './layout/Layout';
import Ca... |
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import { ProductCard, Grid } from './ProductCard';
import { shuffle } from 'weighted-shuffle';
import styled from '@emotion/styled';
import { css } from '@emotion/react';
import Tippy from '@tippyjs/react';
import 'tippy.js/dist/tippy.css'; // op... |
import { watch, OpenShiftWatchEvents } from './openshiftServices';
import { middlewareTypes } from '../redux/constants';
import { FULFILLED_ACTION } from '../redux/helpers';
import {
buildServiceInstanceCompareFn,
buildServiceInstanceResourceObj,
DEFAULT_SERVICES
} from '../common/serviceInstanceHelpers';
import ... |
/**
* https://leetcode-cn.com/problems/last-stone-weight/
*
* 1046. 最后一块石头的重量
*
* Easy
*
* 56ms 98.88%
* 34.2mb 100.00%
*/
const lastStoneWeight = stones => {
stones.sort((x, y) => x - y);
while(stones.length > 1) {
const last1 = stones.pop();
const last2 = stones.pop();
if (last1 !== last2)... |
/**
* @license AngularJS v1.4.3
* (c) 2010-2015 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:
*
* var exampleMinEr... |
function* a() {
yield* yield* 1;
} |
const data = { inventory: {} };
const API_ADDR = "http://localhost:3000";
const addItem = (itemName, quantity) => {
const currentQuantity = data.inventory[itemName] || 0;
data.inventory[itemName] = currentQuantity + quantity;
fetch(`${API_ADDR}/inventory/${itemName}`, {
method: "POST",
headers: { "Cont... |
module.exports = {
preset: '../../../jest.preset.js',
coverageDirectory: '../../../coverage/apps/services/xroad-collector',
displayName: 'services-xroad-collector',
} |
/*! art-template@4.10.1 for browser | https://github.com/aui/art-template */
!function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.template = t() : e.template = t()
}(this, f... |
// -*- mode:javascript -*-
const { URL } = require ('url')
const path = require('path')
const axios = require('axios')
const puppeteer = require('puppeteer')
const mkdirp = require('mkdirp')
const moment = require('moment')
const outputdir = 'screenshots'
const rooturl = 'http://localhost:5000'
con... |
import clientSchema from "../forms/client";
import clientNotesSchema from "../forms/clientNote";
import task from "../forms/task";
// import timesheet from "../forms/timesheet";
export default {
menus: [
{
name: "Task Manager",
icon: "list-task",
routerLink: "/AllTasks",
active: true,
... |
const graphqlPlugin = {
requestDidStart (requestContext) {
console.log(`Request Started! Query: \n`);
return {
// fires whenever apollo server will parse a GraphQl
// request to create its associated document AST
parsingDidStart(requestContext) {
... |
module.exports = {
mount: {
public: '/',
src: '/_dist_',
},
plugins: [
'@snowpack/plugin-svelte',
'@snowpack/plugin-dotenv',
"@snowpack/plugin-typescript",
[
'@snowpack/plugin-run-script',
{cmd: 'svelte-check --output human', watch: '$1 --watch', output: 'stream'},
],
],
... |
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,s=0,l=[];s<t.length;s++)i=t[s],o[i]&&l.push(o[i][0]),o[i]=0;for(u in a)Object.prototype.hasOwnPro... |
export const navItems = [
{
title: "About Me",
route: "/about"
},
{
title: "Work Experience",
route: "/work"
},
{
title: "Course Experience",
route: "/course"
},
{
title: "Keyboard Content",
route: "/keyboard"
},
{
t... |
$("a").click(function () {
var link = $(this).attr('href');
if (!link) {
return false;
};
$.ajax({
type: "POST",
url: '/add-views-'+ web_id +'.html',
dataType: "json",
data: {
},
success: function (res) {
console.log(link)... |
process.env.NODE_ENV = 'test';
let chai = require('chai');
let should = require('chai').should();
chai.use(require('chai-fs'));
let rewire = require('rewire');
let parser = require('xml2js').parseString;
let moment = require('moment');
let fs = require('fs');
let path = require('path');
let filemanager = rewire('../a... |
;(function ($) {
"use strict";
function _ready() {
$('form.purchase-course').submit(function () {
var $button = $('button.purchase-button', this),
$view_cart = $('.view-cart-button', this);
$button.removeClass('added').addClass('loading');
$.ajax({
url : $('input[name="_wp_http_referer"]', this... |
// browserify browser-support.js -t [ babelify --presets [ es2015 ] ] | uglifyjs > min/text2jsvar.min.js
window.text2jsvar = require('./text2jsvar'); |
/**
* BootstrapValidator (http://bootstrapvalidator.com)
*
* A jQuery plugin to validate form fields. Use with Bootstrap 3
*
* @version v0.4.3-dev
* @author https://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license MIT
*/
(function($) {
var BootstrapValidator =... |
/**
* Utilities for testing retryable writes.
*/
var RetryableWritesUtil = (function() {
/**
* Returns true if the error code is retryable, assuming the command is idempotent.
*
* TODO SERVER-34666: Expose the isRetryableCode() function that's defined in
* src/mongo/shell/session.js and use it... |
integration.on('init',function(){
integration.params.plr_CacheConsent = true;
}); |
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class IndexController extends Controller {
@tracked showHello = false;
@action
toggleHello() {
this.showHello = !this.showHello;
}
} |
/**
* Amazon Elastic Compute Cloud
* <fullname>Amazon Elastic Compute Cloud</fullname> <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.... |
import{A as L,bC as _,ba as $,a0 as o,B as s,a1 as c,a6 as r,D as p,ap as d,ab as m,K as a,w as y,H as i,J as l,ae as u,ad as k}from"./vendor.5879c5ca.js";/* empty css *//* empty css *//* empty css */import{I as b,_ as j}from"./index.aeb7d9f7.js";import{articleList as g,action... |
import React from "react";
import "./style.css";
function Nav() {
return (
<nav className="navbar navbar-dark bg-dark">
<a className="navbar-brand" href="/">
Make-A-Meal Recipe Finder
</a>
</nav>
);
}
export default Nav; |
import WebDataRocks from 'WebDataRocks'
import { barcn } from '@/views/industryStudio/presentation/ch'
// 加载透视表
export function setrept(id) {
var report = new WebDataRocks({
container: '#' + id,
// toolbar: true,
// beforetoolbarcreated: this.toolbars,
global: {
localization: barcn
},
he... |
/*!
* VisualEditor DataModel MWTemplateModel class.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* MediaWiki template model.
*
* @class
* @extends ve.dm.MWTransclusionPartModel
*
* @constructor
* @param {ve.dm.MWTransclusion... |
/*!
* Copyright 2018 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
const axios = require('../../utils/axios');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const response = await axios({
method: 'get',
url: 'https://www.gamersky.com/news/',
headers: {
Referer: 'https://www.gamersky.com/news/',
},
});
co... |
module.exports = {
entry: "./resources/public/js/compiled/out/index.js",
output: {
path: __dirname + "/resources/public/js/compiled",
filename: "cljs_weather.js"
}
} |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
... |
import React from 'react'
import { css } from '@emotion/core'
import InfoMap from './InfoMap'
import QueryHomePage from '../queries/homePage'
const IndexMap = () => {
const { tituloDeMapa, parrafoDeMapa } = QueryHomePage()
return (
<section className="container spaceSectionDown">
<h2
... |
import React from 'react'
import styled from 'styled-components'
import Flex from '../Flex'
import Box from '../Box'
const Root = styled.div([], {
width: '100vw',
height: '100vh'
})
const SplitRight = ({ children }) => {
const [a, ...rest] = React.Children.toArray(children.props.children)
return (
<Root>... |
var fields = [];
const FIELD_SIZE = 3;
const fieldBody = document.getElementById('fieldBody');
var winFields = [];
for (var i = 1; i <= FIELD_SIZE; i++) {
fields[i - 1] = [];
let a = document.createElement("tr");
a.id = `fieldRow${i}`
fieldBody.appendChild(a);
for (var j = 1; j <= FIELD_SIZE; j++) {... |
'use strict';
projectsModule.factory('statsService', ['$http', '$q', 'baseUrl',
function statsService($http, $q, baseUrl) {
function getStatistics() {
var deferred = $q.defer();
$http.get(baseUrl + 'api/statistics')
.success(function (data) {
de... |
module.exports = {
loadRequest: {
context: (req, res, next) =>{
if(!req.ctx) req.ctx = {}
next()
},
},
loadHeaders: {
accessToken: (key) => (req, res, next) =>{
let bearerToken = req.headers[key]
if(bearerToken) {
if(... |
/* global module, inject, _, chai */
"use strict";
var utils = hqImport('icds_reports/js/spec/utils');
var pageData = hqImport('hqwebapp/js/initial_page_data');
describe('Underweight Children Directive', function () {
var $scope, $httpBackend, $location, controller, controllermapOrSectorView;
pageData.regi... |
/*jslint node: true */
/*jslint browser: true */
if (typeof module !== 'undefined' && module.exports) {
var Globals = require('../globals.js');
var Hex = require('./hex.js');
}
var Country = function(id) {
this._id = id;
this._hexIds = [];
this._ownerId = -1;
this._numDice ... |
import React from 'react';
import { Link } from 'react-router-dom';
import { renderToHtml } from '../../services';
import { GuideSectionTypes } from '../../components';
import {
EuiCode,
EuiPanel,
EuiText,
EuiCallOut,
} from '../../../../src/components';
import {
_EuiSplitPanelOuter,
_EuiSplitPanelInner... |
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import { Button, Box } from 'rebass'
import { UNSET } from './constants'
import { checkIsValid } from './logic'
import Answer from './Answer'
export const Question = props => {
const {
answerType,
answers,
bad,
good,
cor... |
Mozilla/4.0 (compatible; MSIE Version; Operating System) |
'use strict'
require('dotenv').config();
const express = require('express');
const app = express();
const PORT = process.env.PORT;
app.use(express.static('./public'));
app.get('/', (request, response) => response.send('index'));
app.get('/hello', (request, response) => {
response.status(200).send('<h1>Hello</h... |
// Randomized index testing with initial btree constructed using btree builder.
// Also uses large strings.
Random.setRandomSeed();
t = db.test_index_check10;
function doIt( indexVersion ) {
t.drop();
function sort() {
var sort = {};
for( var i = 0; i < n; ++i ) {
sort[ fields[ ... |
import express from "express";
import {
getUsersReceipts,
getReceipt,
createReceipt,
updateReceipt,
deleteReceipts,
} from "../controllers/receiptController.js";
import { protect } from "../middleware/authMiddleware.js";
const router = express.Router();
router
.route("/")
.get(protect, getUsersReceipts)
... |
app.service("areaService", function ($http) {
this.getAll = function () {
var req = $http.get(uri+'/api/area/getAll');
return req;
};
this.getJefe = function (area) {
var req = $http.get(uri+'/api/area/getJefe/'+area);
return req;
};
}); |
import React from "react";
// STYLES
import { FilterContainerStyle } from "../styles/FilterContainerStyle";
import { filterContainer } from "../styles/Variants";
import { motion, AnimatePresence } from "framer-motion";
function FilterContainer({ filterBy, setFilterBy }) {
// Removing Filter Value
const removeFilt... |
//********** Unknown **********/
var userInput;
var username;
userInput = 5; // Fine
userInput = "Steven"; // Fine
username = userInput; // TypeError - type unknown is not assignable to type string.
// However, if you first perform a check, TypeScript will interpret this assignment as being deliberate and will not erro... |
// utils
function clsGen(o){
var cls = [];
if(!!o){
cls.push(o.type);
if(!!o.pos){
cls.push('r'+o.pos[0][0]);
cls.push('c'+o.pos[0][1]);
cls.push('s'+o.pos.length);
if(o.pos.length >1){
if(o.pos[0][1] == o.pos[1][1]){
cls.push('v'); //vertical
}
}
... |
const http = require("http");
const Path = require("path");
const fs = require("fs");
var server = http.createServer(function (req, res) {
let fileName;
let url;
let subIndex = req.url.indexOf('?');
if (subIndex != -1) {
url = req.url.substring(req.url.indexOf('?'), 0)
} else {
url ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _create = require("babel-runtime/core-js/object/create");
var _create2 = _interopRequireDefault(_create);
var _stringify = require("babel-runtime/core-js/json/stringify");
var _stringify2 = _interopRequireDefault(_stringify);
var _... |
alert("Welcome to my website"); |
try{a()}catch(b){c(b)}finally{d(e)} |
// flow-typed signature: 088b07b761affa89a9094938fedb34af
// flow-typed version: <<STUB>>/babel-plugin-module-resolver_v4.0.0/flow_v0.116.1
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-module-resolver'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encour... |
//>>built
define("dojox/gfx/VectorText","dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/loader dojo/_base/xhr ./_base dojox/xml/DomParser dojox/html/metrics ./matrix".split(" "),function(u,C,n,H,D,k,E,F,v){var G=function(a){var b;D.get({url:a,sync:!0,load:function(a){b=a}});return b};u.getObject("dojox.... |
const CocoaDialogError = require('./Core/CocoaDialogError');
if (process.platform !== 'darwin') {
throw new CocoaDialogError('cocoaDialog only works on macOS.');
}
const CheckBox = require('./Dialog/CheckBox');
const DropDown = require('./Dialog/DropDown');
const FileSave = require('./Dialog/FileSave');
const FileSe... |
module.exports = function solveSudoku(matrix) {
const checkEmpty = (matrix) => {
for ( let row=0; row<9; row++ ) {
for ( let col=0; col<9; col++ ) {
if ( matrix[row][col] === 0 ) {
return [row, col];
}
}
}
return null;
}
const isValid = (matrix, n... |
/**
* @since 2016-07-18 10:16
* @author vivaxy
*/
'use strict';
var loadResourceAsArrayBuffer = function (src, callback) {
var xhr = new XMLHttpRequest();
xhr.responseType = 'arraybuffer';
xhr.addEventListener('progress', function (event) {
console.log(src, event.loaded + '/' + event.total);
... |
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!! Note about datasources !!!!!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// Normally in a production app one would
// gather data from a 'datasource'. This
// data is gathered through the Domo client
// included by adding `domo = require('ryuu.js');`
// to the ... |
// bind the on-change event for the input element (triggered when a file
// is chosen)
$(document).ready(function () {
$("#upload-file-input").on("change", uploadFile);
});
/**
* Upload the file sending it via Ajax at the Spring Boot server.
*/
function uploadFile() {
$.ajax({
url: "/upload",
... |
const mysql = require('mysql2');
require('dotenv').config();
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
// Your MySQL username
user: 'root',
// Your MySQL password
password: process.env.DB_PASS,
database: 'employee_trackerdb'
});
connection.connect((err) => {
if (err) th... |
//// [emitClassDeclarationWithConstructorInES6.ts]
class A {
y: number;
constructor(x: number) {
}
foo(a: any);
foo() { }
}
class B {
y: number;
x: string = "hello";
_bar: string;
constructor(x: number, z = "hello", ...args) {
this.y = 10;
}
baz(...args): string;
... |
import '../editor/editor.api.js';
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
/*
Language: MIPS Assembly
Author: Nebuleon Fumika <nebuleon.fumika@gmail.com>
Description: MIPS Assembly (up to MIPS32R2)
Website: https://en.wikipedia.org/wiki/MIPS_architecture
Category: assembler
*/
export default function(hljs) {
//local labels: %?[FB]?[AT]?\d{1,2}\w+
return {
name: 'MIPS Assembly',
... |
/*can-stache-moment@1.0.0#mTimeFromNow*/
define(function (require, exports, module) {
var moment = require('moment');
module.exports = function mTimeFromNow(date, noSuffix) {
var d = new Date(date.isComputed ? date() : date);
return moment(d).fromNow(noSuffix);
};
}); |
'use strict';
exports.keys = '123456';
exports.middleware = ['reply'] |
// Copyright 2018 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... |
'use strict';
module.exports = {
url: 'https://pehprado.netlify.com',
title: 'pehprado Blog',
subtitle: 'Desenvolvedor Backend na SELIA Full Commerce.',
copyright: '© All rights reserved.',
disqusShortname: '',
postsPerPage: 4,
googleAnalyticsId: 'UA-73379983-2',
menu: [
{
label: 'Articles',
... |
import Vue from 'vue';
import VueI18Next from "@panter/vue-i18next";
let singleton;
export class Language {
constructor() {
const backend = this.backend = require('electron').remote.require('./settings').init(); // eslint-disable-line no-undef
const i18n = backend.i18n;
Vue.use(VueI18Next);
this.vi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.