text stringlengths 2 1.05M |
|---|
import React, { useState, useRef } from "react";
const Events = (props) => {
const [ counter, setCounter ] = useState(props.counter);
const handleClick = () => {
setCounter(counter + 1);
fetch("/putEvents", {
method : "PUT",
body : JSON.stringify({
id : props.id
}),
hea... |
/**
* Copyright IBM Corp. 2016, 2020
*
* 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 _24 = {
"elem": "svg",
"attrs": {
"xmlns": "http:/... |
/********************************************
* REVOLUTION 5.4.6.4 EXTENSION - PARALLAX
* @version: 2.2.3 (17.05.2017)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
!function(a){"use strict";function e(a,b){a.lastscrolltop=b}var b=jQuery.fn.revolutio... |
'use strict'
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
const expect = chai.expect
const sinon = require('sinon')
const sinonChai = require('sinon-chai')
chai.use(chaiAsPromised)
chai.use(sinonChai)
const proxyquire = require('proxyquire').noCallThru()
const files = require('../lib... |
function oceanwpWooCategoriesWidget(){"use strict";$j(".woo-dropdown-cat .product-categories").each(function(){var e='<i class="fa fa-angle-down"></i>';$j(this).find("li").has(".children").has("li").prepend('<div class="open-this">'+e+"</div>"),$j(this).find(".open-this").on("click",function(){$j(this).parent().hasClas... |
import CSSRuleSet from '../internal/CSSProcessor.js'
const defaultFontSize = 12;
const defaultFontFamily = "'Roboto', sans-serif";
const buttonWidth = 44;
const input_and_button_borderBottomWidth = 2;
const tablePadding = 5;
const width = 'var(--width)';
const themeColor = 'var(--theme-color)';
const borderRadius = 'v... |
import axios from 'axios'
import util from 'common/js/util'
const io = axios.create({withCredentials: true})
io.interceptors.request.use((config) => {
let token = window.localStorage.getItem('token') || util.cookie.get('token')
if (token) config.headers['X-token'] = token
return config
}, (error) => {
return Pr... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
import React, { Component } from "react";
import { Platform,
Dimensions,
StyleSheet,
FlatList, } from "react-native";
import AsyncStorage from "@react-native-community/async-storage";
import Post from "./Post";
import ServiceAPI from "../services/ServiceAPI";
import Notify from "../api/Not... |
(function() {
var module;
module = angular.module('docflow.ui.client', ['docflow.config', 'docflow.ui.utils', 'docflow.ui.httpListener', 'docflow.ui.actions']);
module.factory('$docflowClient', [
'$docflowActions', '$docflowUtils', '$docflowConfig', '$http', '$rootScope', '$document', '$q', (function($docfl... |
import { axiosInstance } from './axios';
class AuthService {
login(userData) {
return axiosInstance
.post("/api/auth/login", userData)
.then((response) => {
// if (response.data.accessToken) {
// localStorage.setItem("user", JSON.stringify... |
'use strict';
exports.__esModule = true;
var _vue = require('vue');
var _vue2 = _interopRequireDefault(_vue);
var _dom = require('custom-e-ui/lib/utils/dom');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var nodeList = [];
var ctx = '@@clickoutsideContext';
var ... |
/*
* Reference: https://circleci.com/ja/blog/custom-docker-02/
*/
const express = require('express');
const router = express.Router();
const graphqlHTTP = require('express-graphql');
const schema = require('./schema');
const resolvers = require('./resolvers');
router.use(
'/',
graphqlHTTP({
schema,
roo... |
import { sites } from '@/database/dexie/services/index.js';
import axios from 'axios';
import parser from 'fast-xml-parser';
const zy = {
ports: 44444, // 端口号
xmlConfig: {
// XML 转 JSON 配置
trimValues: true,
textNodeName: '_t',
ignoreAttributes: false,
attributeNamePrefix: '_',
parseAttributeValue: true,
... |
module.exports = {
development: {
host: "localhost",
username: "root",
password: "123456789",
port: 3308,
database: "SubscriptionsDb",
dialect: "mysql"
},
production: {
host: "localhost",
username: "root",
password: "123456789",
port: 3308,
database: "SubscriptionsDb",
... |
/*
* 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")... |
import Resource from 'ember-api-store/models/resource';
import { denormalizeId, denormalizeIdArray } from 'ember-api-store/utils/denormalize';
export default Resource.extend({
type: 'lbConfig',
defaultCertificate: denormalizeId('defaultCertificateId','certificate'),
certificates: denormalizeIdArray('certi... |
/**
* Copyright IBM Corp. 2019, 2020
*
* 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.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
/**
* @file videojs-http-streaming.js
*
* The main file for the HLS project.
* License: https://github.com/videojs/videojs-http-streaming/blob/master/LICENSE
*/
import document from 'global/document';
import window from 'global/window';
import PlaylistLoader from './playlist-loader';
import Playlist from './playli... |
const visit = require(`unist-util-visit`);
const parseOptions = require(`./parse-options`);
const loadLanguageExtension = require(`./load-prism-language-extension`);
const highlightCode = require(`./highlight-code`);
const addLineNumbers = require(`./add-line-numbers`);
const commandLine = require(`./command-line`);
... |
function generator$legend_of_zelda$korok_kokiris(type) {
var nm1 = ["", "", "", "", "b", "d", "br", "dr", "gr", "g", "h", "k", "l", "m", "r", "tr", "t"];
var nm2 = ["a", "e", "i", "o", "u"];
var nm3 = ["c", "g", "gn", "gm", "k", "kl", "l", "v", "ld", "lm", "ll", "m", "md", "n", "nd", "r", "rn", "s", "sn", "sm", "sr"... |
const { inherits } = require('util')
const Mocha = require('mocha')
const Base = Mocha.reporters.Base
const after = require('./after')
const readConfig = require('./readConfig')
const getReporterClass = require('./getReporterClass')
function MultiReporter (runner, options) {
const [majorVersion] = Mocha.prototype.ve... |
import axios from 'axios'
const baseUrl = '/api/fighters'
const getAll = async () => {
const res = await axios.get(`${baseUrl}`)
return res.data
}
const getOne = async (name) => {
const res = await axios.get(`${baseUrl}/${name}`)
return res.data
}
export default {
getAll,
getOne,
}
|
// Copyright 2015, EMC, Inc.
'use strict';
module.exports = {
friendlyName: 'Clear the System Event Log',
injectableName: 'Graph.ClearSEL.Node',
tasks: [
{
label: 'clearsel',
taskName: 'Task.Obm.Node.ClearSEL'
}
]
};
|
function Node (data) {
this.data = data;
this.next = null;
}
function SinglyLinkedList () {
this.head = null;
this.tail = null;
this.numberOfValues = 0;
}
SinglyLinkedList.prototype.add = function (data) {
var node = new Node(data);
if (!this.head) {
this.head = node;
this.tail = node;
} else ... |
/*
* 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... |
export {default} from './ButtonWithOptions.js';
|
const fontDetect = require('./detector');
const mmCharacterRange = /[\u1000-\u109F]/;
const library = {};
/** Syllable Libarary **/
library.syllable = {
zawgyi: [
[/([\u1000-\u1021\u1023-\u1027\u1029\u102a\u104c-\u104f\u1086\u108f-\u1092])/g, '\u200B$1'],
[/([\u1031][\u103b\u107e-\u1084]|[\u1031\u103b\u107e... |
defineSuite([
'Scene/createTileMapServiceImageryProvider',
'Core/Cartesian2',
'Core/Cartographic',
'Core/DefaultProxy',
'Core/GeographicProjection',
'Core/GeographicTilingScheme',
'Core/getAbsoluteUri',
'Core/loadImage',
'Core/loadWithXhr'... |
/*
Implements functionality for virtual Rover Coder training sessions on the HTML5 canvas.
Author: Nicos Kasenides (nkasenides@uclan.ac.uk)
Date: 21-Dec-2019
*/
import {Position2D} from "./Position2D.js";
import {Rover} from "./Rover.js";
import {GameGrid} from "./GameGrid.js";
import {Direction} from "... |
import axios from 'axios'
export function request(config) {
//创建实例
const instance = axios.create({
baseURL: 'http://123.207.32.32:8000/api/w1',
// baseURL: 'http://106.54.54.237:8000/api/w1',
timeout: 5000,
//POST请求
headers: { 'Content-Type': 'application/x-www-form-urll... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[73,4],{JjdP:function(e,n,t){"use strict";t.r(n);var r=t("9og8"),o=t("WmNS"),a=t.n(o),s=t("LtsZ"),i="import React from 'react';\nimport { Button, Col, Form, Input, Row, Table, Select } from 'antd';\nimport { WrappedFormUtils } from 'antd/lib/form/Form';\nimport ... |
module.exports = {
extends: ['./shared/core.js', './shared/typescript.js', './shared/prettier.js'],
plugins: ['node'],
env: { node: true },
rules: {
'no-buffer-constructor': 'warn',
'node/no-path-concat': 'warn',
},
};
|
// TODO: Test drag-and-drop in the layout
import {
DIMENSION_ID_DATA,
DIMENSION_ID_PERIOD,
DIMENSION_ID_ASSIGNED_CATEGORIES,
AXIS_ID_COLUMNS,
AXIS_ID_FILTERS,
getFixedDimensions,
getDynamicDimensions,
} from '@dhis2/analytics'
import {
expectDimensionModalToBeVisible,
clickDimensi... |
import {Linking} from 'react-native';
import moment from 'moment';
import _ from 'underscore';
import lodashGet from 'lodash/get';
import ExpensiMark from 'expensify-common/lib/ExpensiMark';
import Str from 'expensify-common/lib/str';
import Onyx from 'react-native-onyx';
import ONYXKEYS from '../../ONYXKEYS';
import *... |
/* jshint indent: 2 */
import DataTypes from 'sequelize';
import Model from '../sequelize';
const Mess_Option = Model.define('mess_option', {
login_id: {
type: DataTypes.STRING(50),
allowNull: false,
defaultValue: '',
},
month: {
type: DataTypes.STRING(20),
allowNull: false,
defaultValue... |
/* *
*
* (c) 2010-2019 Paweł Dalek
*
* Volume By Price (VBP) indicator for Highstock
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../parts/Globals.js';
import U from '../parts/Utilities.js';
var arr... |
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify)
const opts = {
icons: {
iconfont: 'mdi', // default - only for display purposes
},
theme: {
themes: {
light: {
primary: '#b7131c',
seconda... |
var searchData=
[
['gender',['Gender',['../namespace_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k.html#af90c47dbff13aa2ea62d189f4445896ba019ec3132cdf8ee0f2e2a75cf5d3e459',1,'HP::HPTRIM::SDK']]],
['gendersalutation',['GenderSalutation',['../namespace_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k.html#af90c47dbff13aa2ea62d189f4445896badefcab608c80... |
/**
* Created by jiachenpan on 16/11/18.
*/
export function isvalidUsername(str) {
const valid_map = ['admin', 'editor']
return valid_map.indexOf(str.trim()) >= 0
}
/* 合法uri*/
export function validateURL(textval) {
const urlregex = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9... |
var webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
module.exports = {
entry: {
'budget-tool': __dirname + '/lib/index.js',
'budget-tool.min': __dirname + '/lib/index.js'
... |
/**
* 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.
*
* @flow
*/
// Export all exports so that they're available in tests.
// We can't use export * from in Flow for some reason.
expor... |
const modify = require('modifyjs')
/**
* ReactiveCollection is a reactive collection. Each updates
* made on its content triggers a notification.
* Notifications are sent through a subscription mecanism.
*
* @class ReactiveCollection
*/
class ReactiveCollection {
constructor (name) {
this._name = name
t... |
import React from 'react'
import styled from 'styled-components'
import { space, color } from 'styled-system'
const Icon = ({
size,
...props
}) => (
<svg
{...props}
viewBox='0 0 24 24'
width={size}
height={size}
fill='currentcolor'
>
<path d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6... |
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
const mergeTwoLists = require('../../problems/linked_list/0021_merge_two_sorted_lists')
function ListNode(val, next) {
this.val = val === undefined ? 0 : val
this.next = next === undefined ? null : next
}
test('0021 mergeTwoLists test 01', () => {
// todo
})
test('0021 mergeTwoLists test 02', () => {
// todo... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
var t = readline();
while (t--) {
var n = readline();
var a = readline().split(' ').map(Number);
var o = 0, e = 0;
for (var i = 0; i < n; i++)
if (i % 2 !== a[i] % 2)
i % 2 ? o++ : e++;
print(o !== e ? -1 : o);
} |
/*
* Copyright 2018 Cognitive Scale, 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 b... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { Container, Header, AsideContainer, Main } from "./styles";
import SideBar from "../../components/sideBar/sideBar";
import EquipCateg from "../../components/equipCateg/equipCateg";
class ListarEquipamentos extends Component {
... |
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.mome... |
/*!
Material Components for the Web
Copyright (c) 2018 Google Inc.
License: Apache-2.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory)... |
'use strict'
/**
* Enumeration of module instrumentation types.
*
* @private
* @readonly
* @enum {string}
*/
var MODULE_TYPE = {
/** Utility/generic module, such as pooling libraries. */
GENERIC: 'generic',
/** Database module, such as the MongoDB or MySQL drivers. */
DATASTORE: 'datastore',
/** Mess... |
import Path from 'path';
import StringHelper from '../utils/string-helper';
import ExtensionConfig from './extension-config';
import timeSequence from '../utils/time-sequence';
import SearchScore from '../utils/search-score';
import PinYin from '../utils/pinyin';
import Store from '../utils/store';
export const TYPES ... |
class IpLoadBalancerTaskPreviewCtrl {
constructor ($uibModalInstance, task) {
this.$uibModalInstance = $uibModalInstance;
this.task = task;
}
dismiss () {
this.$uibModalInstance.dismiss();
}
}
angular.module("managerApp").controller("IpLoadBalancerTaskPreviewCtrl", IpLoadBalanc... |
//>>built
define("gridx/tests/support/data/TestData",[],function(){
var _1=9973;
var _2=function(_3){
var a=8887;
var c=9643;
var m=8677;
_1=(a*_1+c)%m;
var _4=Math.floor(_1/m*_3);
return _4;
};
var _5="0,1,2,3, ,4,5,6,7, ,8,9,a,b, ,c,d,e,f, ,g,h,i,j, ,k,l,m,n, ,k,o,p,q, ,r,s,t,u, ,v,w,x,y, ,z".split(",");
var _6=funct... |
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*
* parameters = {
* color: <hex>,
* emissive: <hex>,
* opacity: <float>,
*
* map: new THREE.Texture( <Image> ),
*
* specularMap: new THREE.Texture( <Image> ),
*
* alphaMap: new THREE.Texture( <Image... |
const express = require('express');
const connectDB = require('./config/db');
const app = express();
// Connect Database
connectDB();
app.get('/',(req,res) => res.send('API Running'));
// Init Middleware
app.use(express.json({extended: false}));
// Define Routes
app.use('/api/users',require('./routes/api/users'));... |
// Copyright (c) TotalSoft.
// This source code is licensed under the MIT license.
const { messagingHost } = require('./messagingHost')
const {
correlation,
dispatcher,
exceptionHandling,
} = require('./middleware')
const { SubscriptionOptions } = require('@totalsoft/message-bus')
module.exports = {
messaging... |
const X=1<<0;
const Y=1<<1;
const LOCATIONS=[
{
name:['Vaniville Town','Bourg Croquis','Escissia','Borgo Bozzetto','Pueblo Boceto'],encounters:[
[650,,'trade'],
[653,,'trade'],
[656,,'trade']
]
},{
name:['Aquacorde Town','Quarellis','Aquarellia','Rio Acquerello','Pueblo Acuarela'],encounters:[
[650,,'starte... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["label-off"] = factory(r... |
import React from "react";
import { NavLink } from "react-router-dom";
import routes from "../../routes";
import s from "./Navigation.module.css";
const Navigation = () => {
return (
<header className={s.header}>
<nav>
<NavLink to={routes.home} className={s.link_home}>
HOME
</NavL... |
import styled from "styled-components/macro";
import {useEffect} from "react";
import Sphere from "./Sphere.js"
export default function NewQuoteButton({getNewQuote, color}) {
useEffect(() => {
document.getElementById("new-quote").style.background = color;
},);
const getNewQuoteAndColorChange = ()... |
import test from "ava";
import problem092 from "../problems/092.js";
test("Problem 92", (t) => t.is(problem092(), "Problem 92 solution is: 8581146"));
|
/*
* Button component. It provides interfaces for all types
* of the buttons.
*/
import React from "react";
import styled from "styled-components";
import { bool, string } from "prop-types";
const Button = ({ as, label, children, ...props }) => {
const isIcon = children?.type?.displayName === "Icon";
return (... |
const composeAPI = require( '@helixnetwork/core').composeAPI;
const prepareForTangleWithLocalPow = require('@helixnetwork/pow').prepareForTangleWithLocalPow
let m = require('@helixnetwork/converter').asciiToTxHex
const { provider } = require('./conf-env.js')
const helix = composeAPI({
provider
})
// Depth or how... |
"use strict";
const { Managers, Utils } = require("@arkecosystem/crypto");
const utils = require("./utils");
const testUtils = require("../../../../lib/utils/test-utils");
const { delegates } = require("../../../../lib/utils/testnet");
const { TransactionFactory } = require('../../../../../helpers/transaction-factory'... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
//penggunaan barcode -----------------------------------
//sensus.filterRenderAfter : function(){
// barcodeSensus.loading();
// },
// declare jzebra di penatausahaan.php genToolbarAtas()
var BarcodeCls = function(params_){
this.params=params_;
this.onscan = 0;
this.name = '';//barcode';
this.kode = ''... |
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["settings-WebmasterTools-vue"],{c1c8:function(t,i,e){},e57a:function(t,i,e){"use strict";e("c1c8")},ead6:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"aioseo-webmaster-tools"},[e(... |
import { DrawMode } from "../../base/PolyList";
import PolyListRenderer from "../PolyListRenderer";
import VertexBuffer, { BufferTarget } from "./VertexBuffer";
export default class WebGLPolyListRenderer extends PolyListRenderer {
constructor(renderer,polyList) {
super(renderer,polyList);
}
init(... |
import React from 'react';
import { shallow } from 'enzyme';
describe('(Component) Nav', function() {
it('should exist', function() {
});
});
|
/**
* Jasmine
*
* Includes: jasmine-html
*/
define(['jquery', 'jasmine_boot'],
function($, jasmine) {
window.jasmine.onJasmineLoad = window.onload;
window.onload = null;
return window.jasmine;
});
|
const http = require('http');
const app = require('./app');
const port = process.env.PORT || 8080;
const server = http.createServer(app);
server.listen(port, () => {
console.log(`Listening on: http://localhost:${port}/api/v1`);
}); |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'font', 'bn', {
fontSize: {
label: 'সাইজ',
voiceLabel: 'Font Size',
panelTitle: 'সাইজ'
},
label: 'ফন্ট',
panelTitle: 'ফন্... |
/**
* @memberof gdjs
* @class fileSystem
* @static
* @private
*/
gdjs.fileSystem = {};
/**
* Get the path to 'Desktop' folder.
* @param {gdjs.RuntimeScene} runtimeScene The current scene
* @return {string} The path to the desktop folder
*/
gdjs.fileSystem.getDesktopPath = function(runtimeScene)... |
import React, { useState } from "react";
import "./authenticate.css";
import { addUser } from "../services/user.service";
import { withRouter, Redirect } from "react-router-dom";
import SignIn from "../components/sign-in/login";
import SignUp from "../components/sign-up/register";
// Authenticate
const Authenticate = (... |
var gecoRegistryControllers = angular.module("gecoRegistryControllers",[]);
/*****
REGISTRY
***/
gecoRegistryControllers.controller('CompanyCtrl',["$scope","$http",'LoginFactory',function($scope,$http,LoginFactory){
$scope.loginuser = LoginFactory.checklogin();
GECO_validator.startupvalidator();
$scope.companysa... |
const {
GraphQLString,
GraphQLList,
GraphQLNonNull,
GraphQLInputObjectType,
} = require('graphql');
const CodeScalar = require('../scalars/code.scalar.js');
const UriScalar = require('../scalars/uri.scalar.js');
/**
* @name exports
* @summary Subscriptionchannel Input Schema
*/
module.exports = new GraphQLInput... |
async function loginFormHandler(event) {
event.preventDefault();
const username = document.querySelector('#login-username-input').value.trim();
const password = document.querySelector('#login-password-input').value.trim();
console.log("clicked the button");
if (username && password) {
con... |
var ghpages = require('gh-pages');
ghpages.publish('build', {
remote: 'my',
repo: 'git@github.com:wangchungeng/walletconnect-example.git',
}, function(err) {
console.log('deploy:', err)
}); |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
!function(e){function t(t){for(var n,o,s=t[0],u=t[1],i=t[2],l=0,p=[];l<s.length;l++)o=s[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(f&&f(t);p.length;)p.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t... |
/* This file is generated by createIcons.js any changes will be lost. */
import createIcon from '../createIcon';
const MailBulkIcon = createIcon({
name: 'MailBulkIcon',
height: 512,
width: 576,
svgPath: 'M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 ... |
/**
* PixelNode_Input_WebSocket_Client
*
* Ported fadecandy example
*
* --------------------------------------------------------------------------------------------------------------------
*
* @author Amely Kling <mail@dwi.sk>
*
*/
/* Includes
* ==============================================================... |
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate-v2');
const additionalReportSchema = new mongoose.Schema(
{
content: {
type: String,
required: true,
},
},
{
timestamps: true,
}
);
const emergencySchema = new mongoose.Schema(
{
creator: {
type: mongoose.T... |
import React from "react";
import AvatarLinks from "./AvatarLinks";
import { Link } from "gatsby";
import siteConfig from "../../../data/SiteConfig";
import logo from "../../../data/logo.png";
/** @jsx jsx */
import { Styled, jsx } from "theme-ui";
const BigAvatar = props => {
const { avatar } = siteConfig;
retu... |
const Dev = require("../models/Dev");
const parseStringAsArray = require("../utils/parseStringAsArray");
module.exports = {
async index(request, response) {
const { latitude, longitude, techs } = request.query;
const techsLinted = parseStringAsArray(techs);
let devs = await Dev.find({
... |
'use strict';
const assert = require('assert');
it('throws after timeout', () => {
setTimeout(() => {
throw new Error('Exception in delayed function');
}, 10);
});
|
/**
* @format
*/
import {AppRegistry} from 'react-native';
import FetchExample from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => FetchExample);
|
(function(angular){
'use strict';
var module = angular.module('certification');
module.controller('CourseClassesController', ['$scope', '$window', 'Evaluation', 'CourseClassesService',
function($scope, $window, Evaluation, CourseClassesService) {
// Handle Certification:
//... |
import { createRequire } from 'module'
import { validateYear } from '../lib/validation/year.js'
const require = createRequire(import.meta.url)
const assert = require('assert')
describe('Year validation', () => {
it('should not return anything for non-integer input', () => {
// arrange
const yearArgument = '... |
// NOTES - follows first-first highlight method, block is locked after highlight, different from SyntaxHl
Prism.languages.autohotkey = {
'comment': [
{
pattern: /(^|\s);.*/,
lookbehind: true
},
{
pattern: /(^\s*)\/\*[^\r\n]*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,
lookbehind: true,
... |
/*!
* Enable double-click-to-edit functionality.
*/
( function () {
if ( Number( mw.user.options.get( 'editondblclick' ) ) !== 1 ) {
// Support both 1 or "1" (T54542)
return;
}
if ( mw.config.get( 'wgAction' ) !== 'view' ) {
// Only trigger during view action.
return;
}
$( function () {
$( '#mw-conte... |
'use strict';
import { Mat4 } from '../math/Mat4.js';
function planeNormalize(plane) {
var t = 1.0 / Math.sqrt(plane[0] * plane[0] + plane[1] * plane[1] + plane[2] * plane[2]);
plane[0] *= t;
plane[1] *= t;
plane[2] *= t;
plane[3] *= t;
}
/**
* Frustum object, part of the camera object.
* @clas... |
import React, { Component } from 'react';
import { Text, View, TouchableWithoutFeedback } from 'react-native';
import PropTypes from 'prop-types';
import Icon from '../Icon/Icon';
import Ripple from '../Ripple/Ripple';
import withTheme from '../../Theme/withTheme';
import styles from './Checkbox.styles';
class Checkb... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'elementspath', 'hu', {
eleLabel: 'Elem utak',
eleTitle: '%1 elem'
} );
|
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you 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... |
require('dotenv').config()
let PORT = process.env.PORT
let MONGODB_URI = process.env.MONGODB_URI
if (process.env.NODE_ENV === 'test') {
MONGODB_URI = process.env.TEST_MONGODB_URI
}
module.exports = {
PORT,
MONGODB_URI,
} |
'use strict';
jest.mock('@mapbox/polyline', () => {
return {
encode: jest.fn(() => 'mock polyline')
};
});
const polyline = require('@mapbox/polyline');
const staticService = require('../static');
const tu = require('../../test/test-utils');
let service;
beforeEach(() => {
var client = tu.mockClient();
c... |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANTY; wi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.