text stringlengths 2 1.04M |
|---|
/**
* Disallows space before `()` or `{}` in anonymous function expressions.
*
* Type: `Object`
*
* Values: `"beforeOpeningRoundBrace"` and `"beforeOpeningCurlyBrace"` as child properties.
* Child properties must be set to `true`.
*
* #### Example
*
* ```js
* "disallowSpacesInAnonymousFunctionExpression": {
... |
var Token = {
AT_RULE: 'at-rule', // e.g. `@import`, `@charset`
AT_RULE_BLOCK: 'at-rule-block', // e.g. `@font-face{...}`
AT_RULE_BLOCK_SCOPE: 'at-rule-block-scope', // e.g. `@font-face`
COMMENT: 'comment', // e.g. `/* comment */`
NESTED_BLOCK: 'nested-block', // e.g. `@media screen{...}`, `@keyframes animati... |
// Screen sizes
export const screen = {
xs: 500,
sm: 768,
md: 1024,
lg: 1600,
get xsMin() {
return this.xs;
},
get xsMax() {
return this.sm - 1;
},
get smMin() {
return this.sm;
},
get smMax() {
return this.md - 1;
},
get mdMin() {
return this.md;
},
get mdMax() {
r... |
const webpack = require("webpack");
const path = require("path");
const isProduction = process.env.NODE_ENV === "production";
const plugins = [
new webpack.DefinePlugin({
"process.env": { NODE_ENV: JSON.stringify(isProduction ? "production" : "development") }
})
];
if (isProduction) {
plugins.push(
new ... |
function fileNameWithoutExtension(fileName) {
var array = fileName.split(".");
if(array.length > 1) {
array.pop();
return array.concat();
} else {
return fileName;
}
}
function findKeyFramesRule(animationName) {
var sheets = document.styleSheets;
var ruleType = window.CSSRule.KEYFRAMES_RULE;
... |
/**
* @name exports
* @summary TestScriptSetupActionAssert Class
*/
module.exports = class TestScriptSetupActionAssert {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, ... |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --expose-wasm --expose-gc --verify-heap
load("test/mjsunit/wasm/wasm-module-builder.js");
const verifyHeap = gc;
let globalCounter = 1000000... |
this.Gws_Memo_Message=function(){function t(){}return t.render=function(){$(".list-head .search").on("click",function(){$(".gws-memo-search").animate({height:"toggle"},"fast")}),$(".gws-memo-search .reset").on("click",function(){$(".gws-memo-search input[type=text]").val(""),$(".gws-memo-search input[type=checkbox]").v... |
require('should');
const transpile = require('../../build/createTranspiler')();
const Identifier = require('../../build/classes/Identifier');
const Return = require('../../build/classes/Return');
describe('transpilers/returnStmt', () => {
it('should transpile the return of an expression', () => {
transpile(Retu... |
/**
* @param {number} n
* @return {string}
*/
const countAndSay = function (n) {
let data = '1';
for (let i = 1; i < n; ++i) {
let newData = '';
let ch = data[0];
let pos = 0;
let count = 1;
while (pos < data.length) {
++pos;
while (pos < data.l... |
import {IoBoolean} from './boolean.js';
export class IoSwitch extends IoBoolean {
static get Style() {
return /* css */`
:host {
position: relative;
width: calc(1.5 * var(--io-item-height));
}
:host:before {
display: inline-block;
box-sizing: border-box;
position: absolu... |
/*!
* Qoopido.js library v3.4.5, 2014-7-15
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,n,r,i,s,l){"use strict";function o(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e... |
const { watch, src, dest, parallel } = require('gulp');
const replace = require('gulp-replace');
const less = require('gulp-less');
const minifyCSS = require('gulp-csso');
const concat = require('gulp-concat');
const rename = require('gulp-rename');
const pkg = require('./package.json');
function compileCss() {
r... |
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module html-support/converters
*/
import { toWidget } from 'ckeditor5/src/widget';
import {
setViewAttributes,
mergeViewElementAt... |
module.exports = function findCategory (path) {
var categoryRegex = /(objects|people|documents)/g;
var match = categoryRegex.exec(path);
if (match) {
return match[1];
}
}; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=parameter.js.map |
import $ from '../../core/renderer';
import Widget from '../widget/ui.widget';
import ContextMenu from '../context_menu';
import DiagramCommandsManager from './diagram.commands_manager';
import DiagramMenuHelper from './ui.diagram.menu_helper';
import DiagramBar from './diagram.bar';
import { getDiagram } from './dia... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// This benchmark tests the speed of array reads for a small array.
function sum(array) {
var sum = 0;
var i = 0;
whil... |
/*
** AnalogClock ~ Analog Clock for OBS Studio
** Copyright (c) 2021 Dr. Ralf S. Engelschall <rse@engelschall.com>
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restrict... |
'use strict';
const Router = require('express').Router;
const jsonParser = require('body-parser').json();
const ErrorHandler = require('../lib/error_handler');
const User = require('../models/user');
const BasicHTTP = require('../lib/basic_http');
const authzn = require('../lib/authorization');
const jwt_auth = requir... |
export default function({ store, redirect }) {
// If the user is not authenticated
var status = store.state.auth.user.status;
if (status == 'accessUser') {
return redirect("/auth/student/profile");
}
if (status == 'accessProfessor') {
return redirect("/auth/professor/profile");
}
} |
tinymce.addI18n('it', {
'YouTube Tooltip' : "YouTube",
'YouTube Title' : "Inserisci un video di Youtube",
'Youtube URL' : 'Condividi URL',
'Youtube ID' : 'http://youtu.be/xxxxxxxx o http://www.youtube.com/watch?v=xxxxxxxx',
'width' : 'Larghezza',
'height' ... |
/**
* Copyright 2016 Google Inc. 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 applic... |
function validateCompleteForm(objForm,strErrorClass){
return _validateInternal(objForm,strErrorClass,0);
};
function validateStandard(objForm,strErrorClass){
return _validateInternal(objForm,strErrorClass,1);
};
function _validateInternal(form,strErrorClass,nErrorThrowType){
var strErrorMessage="";var objFirstError=nu... |
/****************************************************************************************************
* PARTIAL FILE: component_host_binding_slots.js
****************************************************************************************************/
import { Component, HostBinding, Input, NgModule } from '@angular/... |
import React from 'react'
import { graphql } from 'gatsby'
import Img from 'gatsby-image'
import Seo from '../components/seo'
import Header from '../components/header'
import Layout from '../components/layout'
//import Header from "../components/header"
function ImageAttr(inputElem, defaultElem) {
if (inputElem =... |
import fetch from 'node-fetch';
import Nylas from '../src/nylas';
import NylasConnection from '../src/nylas-connection';
import Resource from '../src/models/resource';
jest.mock('node-fetch', () => {
const { Request, Response } = jest.requireActual('node-fetch');
const fetch = jest.fn();
fetch.Request = Request... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var bin_1 = require("../../bin");
function handleHostOption(incoming) {
var host = incoming.get("host");
var listen = incoming.get("listen");
if (host && listen) {
if (host !== listen) {
return [
... |
export default function ({ boardId }) {
return JSON.stringify({
id: `TASK_DELETED__${boardId}`,
type: 'subscription_start',
query: `
subscription Task {
Task(filter: {
mutation_in: [DELETED]
node: {
board: {
id: "${boardId}"
}
}
}){
mutation
previousValues ... |
/*!
* ${copyright}
*/
/*
* Provides constants for key codes. Useful in the implementation of keypress/keydown event handlers.
*/
sap.ui.define(['jquery.sap.global', 'sap/ui/events/KeyCodes'],
function(jQuery, KeyCodes) {
"use strict";
/**
* Enumeration of key codes.
*
* @enum {int}
* @public
* @since... |
import React from 'react';
import { createStackNavigator, createAppContainer } from 'react-navigation';
import HomeScreen from './src/screens/Home';
import MovieChatScreen from './src/screens/MovieChat';
const AppNavigator = createStackNavigator(
{
Home: HomeScreen,
MovieChat: MovieChatScreen
},
{
i... |
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
} |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
/********************************************************* {COPYRIGHT-TOP} ***
* Licensed Materials - Property of IBM
* 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63
*
* (C) Copyright IBM Corporation 2016, 2017
*
* All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or disclosure
* restrict... |
import React from 'react';
import { spy } from 'sinon';
import { mount, shallow } from 'enzyme';
import { assert, expect } from 'chai';
import MUIDataTable from '../src/MUIDataTable';
import TableFilterList from '../src/components/TableFilterList';
import TablePagination from '../src/components/TablePagination';
import... |
var questions = [
"What is your name?",
"What is your fav hobby?",
"what is your preferred programming languate?"
];
var answers = [];
function ask(i){
process.stdout.write(`\n\n\n ${questions[i]}`);
process.stdout.write(" > ");
}
process.stdin.on('data',function(data){
answers.push(data.to... |
import React, { useContext } from "react";
import DataBody from "./DataBody";
import "../styles/DataTable.css";
import DataAreaContext from "../utils/DataAreaContext";
export default DataTable; |
const Validator = require("validator");
const isEmpty = require("is-empty");
module.exports = function validateSignIn(data) {
let errors = {};
data.email = !isEmpty(data.email) ? data.email : "";
data.password = !isEmpty(data.password) ? data.password : "";
if (Validator.isEmpty(data.email)) {
errors.ema... |
module.exports = {
name: 'combat',
description: 'Test versus appropriate skill, includes critical hits and fumbles',
args: true,
execute(message, args) {
message.channel.send('Not implemented yet!');
},
}; |
const ipfsClient = require("ipfs-http-client");
const { AppError } = require("../utils/errors.util");
let ipfsGlobalNode = null;
function createIPFSNode() {
return ipfsClient.create({ host: "localhost", port: 5001, protocol: "http" });
}
/**
* @returns IPFS Node
*/
function getIPFSNode() {
if (ipfsGlobalNode =... |
"use strict";
exports.__esModule = true;
exports.postIndexingMetaSetup = postIndexingMetaSetup;
exports.ensureEmptyFilterCache = ensureEmptyFilterCache;
exports.intersectNodesByCounter = intersectNodesByCounter;
exports.unionNodesByCounter = unionNodesByCounter;
exports.getNodesFromCacheByValue = exports.ensureIndexBy... |
export default {
state: {
isLoad : true,
phrases : {
sing_in : 'Sing in',
email : 'Email',
password : 'Password',
try : 'TRY'
},
langs : ['en'],
lang : 'en'
},
mutations: {
setLoad (state, isload) {
... |
/* API Version - 1.3.13 */
/**
* Drum pads are features of special Bitwig Studio controllers (currently only the Bitwig Drum Machine instrument),
* and are also shown as sub-channels in the mixer panel.
*
* Instances of drum pad bank are configured with a fixed number of pads/channels and represent an excerpt
* ... |
import React from 'react';
import { shallow,configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import App from "../../app/App";
it('renders without crashing', () => {
configure({ adapter: new Adapter() });
shallow(<App />);
}); |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
/** PURE_IMPORTS_START .._.._Observable,.._.._observable_if PURE_IMPORTS_END */
import { Observable } from '../../Observable'
import { _if } from '../../observable/if'
Observable.if = _if
// # sourceMappingURL=if.js.map |
(function() {
'use strict';
/* mock data ------------------------------- */
// default session query
let query = {
length: 50, // page length
start : 0, // first item index
facets: 1, // facets
sorts : [ [ 'fp', 'asc' ] ],
fields: [ 'pr', 'tipv61-term', 'tipv62-term', 'fp', 'lp', '... |
import React, {Component} from 'react';
export default class DashboardMiddle extends Component{
render(){
return (
<div className="right_col" role="main">
<div className="page-title">
<div className="col-md-12 ">
<div className="title_left ">
<h... |
// createTables.js
//
// create the required DynamoDB tables (if they do no exists)
// for the beginning it should be good enough just to create
// the tables from AWS console
var config = require('../../config');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB();
if (!config.AWS.usingLambda) {
AWS.... |
/**
* DevExtreme (core/dom_adapter.js)
* Version: 18.2.5
* Build date: Wed Jan 23 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var _typeof = "function" === typeof Symbol && "symbol" === ... |
/**
* @license
* Copyright 2016 Google 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 ... |
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { IndexRoute, Route, Router, browserHistory } from 'react-router';
import {AdminPage, RightsTab, FeaturesTab, TagsTab, TechTab, Tec... |
'use strict';
const request = require('../../test-helpers/context').request;
const assert = require('assert');
describe('req.charset', () => {
describe('with no content-type present', () => {
it('should return ""', () => {
const req = request();
assert('' === req.charset);
});
});
describe(... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { StateProvider } from "./StateProvider.js";
import Reducer, {initialState } from "./Reducer";
ReactDOM.render(
<React.StrictMode>
<StateProvider in... |
const findersKeepers = require('./findersKeepers');
describe('Finders Keepers - Create a function that looks through an array (first argument) and returns the first element in the array that passes a truth test (second argument).', () => {
it('should return a num', () => {
expect(
findersKeepers([1, 3, 5, ... |
import { PipelineRequest, logger } from '@shopgate/pwa-core';
import * as pipelines from '../../constants/Pipelines';
import * as actions from '../../action-creators/user';
/**
* Logout the current user.
* @return {Function} A redux thunk.
*/
export default function logout() {
return (dispatch) => {
dispatch(... |
const fs = require('fs')
const http = require('http')
const port = Number(process.argv[2])
const file = process.argv[3]
const server = http.createServer((req, res) => {
res.writeHead(200, { 'content-type': 'text/plain' })
fs.createReadStream(file).pipe(res)
})
server.listen(port) |
import styled from '@helpscout/hsds-react/components/styled'
import Switch from '@helpscout/hsds-react/components/Switch'
const SwitchUI = styled(Switch)`
margin: 3px 0;
.c-Switch__backdrop:not(.is-checked) {
background: none;
box-shadow: 0 0 0 1px #bbb inset;
}
`
export default SwitchUI |
/*global module, require*/
module.exports = require('./src/api-errors-config'); |
const path = require('path');
const express = require('express')
const http = require('http')
const moment = require('moment');
const socketio = require('socket.io');
require('dotenv').config();
const PORT = process.env.PORT || 3000;
const app = express();
const server = require('http').Server(app);
const io = module... |
const RuntimeException = Jymfony.Component.DependencyInjection.Exception.RuntimeException;
const ParameterNotFoundException = Jymfony.Component.DependencyInjection.Exception.ParameterNotFoundException;
const ParameterCircularReferenceException = Jymfony.Component.DependencyInjection.Exception.ParameterCircularReference... |
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 = Reflect.decorate(d... |
const Player = require('../lib/Player.js');
const Potion = require('../lib/Potion.js');
jest.mock('../lib/Potion.js');
test('creates a player object', () => {
const player = new Player('Dave');
expect(player.name).toBe('Dave');
expect(player.health).toEqual(expect.any(Number));
expect(player.strength).toEqua... |
import React from "react";
import { Link } from "react-router-dom";
import Auth from "../utils/auth";
import { useStoreContext } from "../utils/GlobalState";
const NavTabs = () => {
const [state, dispatch] = useStoreContext();
return (
<div>
<nav className="navbar navbar-dark ">
<div className="c... |
var env = process.env.ENV || "dev";
var serverCfg = require('../config/server.config')();
jasmine.getEnv().defaultTimeoutInterval = 5000;
describe("MongoDB - Mongoose", function() {
it("is there a server running", function(done) {
var mongoose = require('mongoose');
mongoose.connect(serverCfg.db.dbD... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Optional = void 0;
const absent_1 = require("./absent");
const present_1 = require("./present");
class Optional {
static absent() {
return absent_1.Absent.withType();
}
static of(item) {
return new present_1... |
const wrapper = promise => (
promise
.then(response => ({ response, error: null }))
.catch(error => ({ error, response: null }))
);
export default wrapper; |
var Q = require('q');
var _ = require('lodash');
var http = require('http');
var send = require('send');
var url = require('url');
var cp = require('child_process');
// Get the remote of a given repo
function gitURL(path) {
var d = Q.defer();
cp.exec("git config --get remote.origin.url", {
cwd: pat... |
import React from "react";
import styled from "styled-components";
import SubmitButton from "./SubmitButton";
import { theme, mq } from "../../constants/theme";
const { button, colors } = theme;
const IconButton = styled(SubmitButton).attrs()`
${button.iconAndText}
&::before {
display: none;
@media scre... |
'use strict';
const chai = require('chai');
const ruleModule = require('./../../../src/rules/no-tilde-version-devDependencies');
const lint = ruleModule.lint;
const ruleType = ruleModule.ruleType;
const should = chai.should();
describe('no-tilde-version-devDependencies Unit Tests', function() {
context('a rule typ... |
var gulp = require('gulp'),
gulpCopy = require('gulp-copy'),
closureCompiler = require('gulp-closure-compiler'),
gulpWebpack = require('gulp-webpack');
///////////////////////////////////////////////////////////jetiny
gulp.task('jtp', function(){
return gulp.src([])
.pipe(gulpWebpack({
entry:... |
var _react=require('react');var _react2=_interopRequireDefault(_react);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var
PropTypes=_react2['default'].PropTypes;
/**
* React Native's layout system is based on Flexbox and is powered both
* on iOS and Android by an open source pr... |
const botConf = require("../botConfig/defaults.json")
module.exports = {
config: {
name: "config",
aliases: ["conf"],
description: `Shows or edits bot configuration
Usage: ***${botConf["prefix"]}config [show / edit] <all / setting> (<new value>)***
Aliase... |
import Nav from 'react-bootstrap/Nav'
import Navbar from 'react-bootstrap/Navbar'
import Container from 'react-bootstrap/Container'
import { Link } from 'react-router-dom'
import logo from '../logo.svg'
const Header = () => (
<Navbar bg="light" expand="lg">
<Container>
<Navbar.Brand as={Link} to={"/"}>
... |
/* @flow */
class AggregatorRef {
context: string;
name: string;
id: string;
revision: ?string;
constructor(context: string, name: string, id: string, revision: ?string) {
this.context = context;
this.name = name;
this.id = id;
this.revision = revision;
}
}
export default AggregatorRef; |
const discord = require("discord.js");
const client = new discord.Client();
const fetch = require("node-fetch");
require("dotenv").config();
client.on("ready", () => {
console.log(`${client.user.tag} is up and ready!`);
});
client.on("message", async (msg) => {
try{
let query = msg.content.split(" ");
if (que... |
/**
* @version 0.11
* https://coinomi.github.io/bip39-monero/
*
*
* let mnemonic = ''
* let results = await BlocksoftKeys.discoverAddresses({ mnemonic, fullTree: false, fromIndex: 0, toIndex: 1, currencyCode: ['XMR'] })
* console.log('r', results['XMR'][0])
*/
import MoneroUtils from './ext/MoneroUtils'
import ... |
// Use D3 fetch to read the JSON file
function dropdown() {
d3.json("./samples.json").then(data => {
var sampleName = data.names;
// console.log(sampleName)
var dataid = d3.select("#selDataset")
sampleName.forEach((sampleid)=>{
dataid.append("option")
.text(sampleid)
.pr... |
๏ปฟ/*! jQuery UI - v1.9.2 - 2012-11-30
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button... |
import React from 'react';
import './style.scss';
import Helmet from './helmet';
import Navbar from './navbar';
import Footer from './footer';
import AboutBody from '../components/about_body';
const AboutComp = ({ children }) => (
<div>
<Helmet />
<Navbar />
<AboutBody />
<Footer />
</div>
);
export defaul... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "return" token can not be used as identifier
es5id: 7.6.1.1_A1.16
description: Checking if execution of "return=1" fails
flags: [negative]
---*/
return = 1; |
define({landingOverView:"Panoramica",landingHelp:"Guida",landingProductDiscribe:"Creare applicazioni e pagine Web visualmente con il trascinamento della selezione. Scegliere gli strumenti con i quali interagire con i dati 2D e 3D. Costruire esperienze adattive mobili e interattive per il proprio pubblico.",landingLearn... |
/// <reference types="Cypress" />
context('Assertions', () => {
beforeEach(() => {
cy.visit('/axes')
})
describe('Axes Tests', () => {
it('[render] axes rendered', () => {
cy.get('g.x-axis').should('have.length', 1)
cy.get('g.y-axis').should('have.length', 1)
})
it('[render] axis ha... |
import { GET_ERRORS } from '../actions/types';
const initialState = {
msg: {},
status: null,
};
export default function (state = initialState, action) {
switch (action.type) {
case GET_ERRORS:
return {
msg: action.payload.msg,
status: action.payload.stat... |
/*
* Copyright 2011-2019 Dell Inc. or its subsidiaries. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* or in ... |
// import React, {Component} from 'react'
// import {connect} from 'react-redux'
// import {withRouter, Redirect} from 'react-router-dom'
// import {postUser} from '../store/user'
// import GuestCheckoutForm from './guest-checkout-form'
// class GuestCheckoutEntry extends Component {
// constructor(props) {
// s... |
'use strict';
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.status(200).send('Hello, world!');
});
var server = app.listen(process.env.PORT || '8080' , function () {
console.log('App listening on port %s', server.address().port);
}); |
import Link from 'next/link';
import { useRouter } from "next/router"
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/solid'
function PaginationButtons() {
const router = useRouter();
const startIndex = Number(router.query.start) || 0;
return (
<div className="flex max-w-lg justify-betwee... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
window.onload = function() {
//getReimbursementsByEmployeeId(sessionStorage.getItem("2"));
getAllReimbursements();
};
async function getAllReimbursements() {
const reimbursements = await fetch("http://localhost:9000/reimbursements/2", {
method: "GET",
credentials: "include",
mode: "... |
!function r(n,e,t){function i(u,f){if(!e[u]){if(!n[u]){var c="function"==typeof require&&require;if(!f&&c)return c(u,!0);if(o)return o(u,!0);throw new Error("Cannot find module '"+u+"'")}var l=e[u]={exports:{}};n[u][0].call(l.exports,function(r){var e=n[u][1][r];return i(e?e:r)},l,l.exports,r,n,e,t)}return e[u].exports... |
"use strict";
const app = require("../app");
const PORT = process.env.PORT || 3000;
//..์ผ๋ก ํ ์์น์ธ www.js์์ ์์ ํด๋๋ก ๋ค์ด๊ฐ ๊ทธ ์์ ์๋ app์ด๋ผ๋ ํ์ผ์ ์ฐพ์๋
app.listen(PORT, () => {
console.log("์๋ฒ ๊ฐ๋");
});
/*์ด๊ฑฐ ์คํ ์ํค๋ ค๋ฉด ํฐ๋ฏธ๋์์ node app.js๋ฅผ ์คํ ์ํค๋ ๊ฒ์ด ์๋
node ./bin/www.js๋ฅผ ์คํ ์์ผ์ผ ํจ. >> ์ด๊ฒ๋ ๊ฐํธํ ์ํฌ ์ ์์
*/
/*
๊ฐํธํ ํ๋ ๋ฐฉ๋ฒ
ํฐ๋ฏธ๋์์ npm init... |
/**
* Title Brackets
* URL https://codility.com/programmers/task/brackets/
*
* Author Norman Gamage <norman.gamage@gmail.com>
* Version 1.1
* Last Update 2016 Jul 01
*/
function solution(S) {
if (S.length < 1) { return 1; }
if (S.length < 2) { return 0; }
var i, stack... |
import { useState } from 'react';
import Link from 'next/link';
import Actions from './actions';
import Menu from './menu';
import sidebarMenu from '@/config/menu/sidebar-static';
import { useWorkspaces } from '@/hooks/data';
import { useWorkspace } from '@/providers/workspace';
import { MenuIcon } from '@heroicons/re... |
import Modal from 'flarum/components/Modal';
import Button from 'flarum/components/Button';
import Stream from 'flarum/utils/Stream';
import WebsiteInputComponent from './WebsiteInputComponent';
export default class SocialButtonsModal extends Modal {
oninit(vnode) {
super.oninit(vnode);
this.butto... |
/** @constructor */
ScalaJS.c.scala_util_Try$ = (function() {
ScalaJS.c.java_lang_Object.call(this)
});
ScalaJS.c.scala_util_Try$.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_util_Try$.prototype.constructor = ScalaJS.c.scala_util_Try$;
ScalaJS.c.scala_util_Try$.prototype.apply__Lscala_Funct... |
import React, { Component } from "react";
import { Link, withRouter } from "react-router-dom";
import TextFieldGroup from "../common/TextFieldGroup";
import TextAreaFieldGroup from "../common/TextAreaFieldGroup";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import { addExperience } from ".... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Upload, Icon, Modal } from 'antd'
import { Cookie } from 'utils'
import styles from './UploadFile.less'
const getFileList = (files) => {
if (Array.isArray(files)) {
return files.map((item, key) => {
const urlArr = item.ful... |
macDetailCallback("70b3d58ec000/36",[{"a":"Dorfstr. 15 Werneck DE 97440","o":"Rudy Tellert","d":"2016-11-27","t":"add","s":"ieee","c":"DE"}]); |
window.bookSummaryJSON = "<p>To the forest on the shore of the Kingdom of the Isles, the orphan Pug came to study with the master magician Kulgan. But though his courage won him a place at court and the heart of a lovely princess, he was ill at ease with the normal ways of wizardry. Yet Pug's strange sort of magic woul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.