text stringlengths 2 1.04M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TimeoutError_1 = require("./TimeoutError");
const utils_1 = require("./utils");
class PendingOperation {
constructor(timeoutMillis) {
this.timeoutMillis = timeoutMillis;
this.deferred = utils_1.defer();
this.p... |
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// by SatriaThemes
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(function($) {
// start function mobile navigation
mobile_nav = function(){
var mb;
jQuery('#menu-btn').on( "click", function() {
var iteration = $(this).... |
import React from 'react';
import { List, Image, Button } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import moment from 'moment';
import styled from 'styled-components';
import profilePic from '../assets/profileimg.jpg';
const JobListItem = ({ emp, job, handleClicks }) => {
return (
<Lis... |
/*! For license information please see 2.43400975.chunk.js.LICENSE.txt */
//# sourceMappingURL=2.43400975.chunk.js.map |
var express= require('express');
var app = express();
var mongoose = require('mongoose');
var request = require('request');
var bodyParser = require('body-parser');
app.use( bodyParser.json() ); // to support JSON-encoded bodies
app.use(bodyParser.urlencoded({ // to support URL-encoded bodies
extended: true... |
#!/usr/bin/env node
"use strict";
const mysql = require("mysql");
const database = {};
var mysqlDatabase;
database.startup = (databaseConnObj) => {
let data = {
host : databaseConnObj.host,
port : databaseConnObj.port,
user : databaseConnObj.user,
password : databaseConn... |
var debug_log = require('debug')('express-mysql-session:log')
var debug_error = require('debug')('express-mysql-session:error')
var MySQLConnectionManager = require('mysql-connection-manager')
var session = require('express-session')
var defaultOptions = {
checkExpirationInterval: 900000,// How frequently expired ses... |
import {useState} from 'react';
const ShoppingForm = (props) => {
const [item,setItem] = useState({
type:"",
count:0,
price:0
})
const onChange = (event) => {
setItem({
...item,
[event.target.name]:event.target.value
})
}
const onSubmit = (event) => {
event.preventDefault();
props.addToL... |
/*
* /MathJax/localization/ast/ast.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* 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/... |
import axios from 'axios';
import qs from 'qs';
import { validateOptions } from './utils';
const api = axios.create({
baseURL: 'https://dadosabertos.camara.leg.br/api/v2',
});
export const get = async (
endpoint,
options,
availableOrderFields = [],
availableOptions = []
) => {
if (validateOptions(availab... |
const data = {
name: "en-GI",
identity: {
language: "en",
territory: "GI"
},
territory: "GI",
numbers: {
symbols: {
decimal: ".",
group: ",",
list: ";",
percentSign: "%",
plusSign: "+",
minusSign: "-",
... |
const dotenv = require("dotenv");
const { EMAIL } = require("../constants");
dotenv.config();
const emailApi = process.env.EMAIL_API;
const sgMail = null;
function sendEmail(recipient, sender, subject, body) {
const text = "";
const msg = { to: recipient, from: sender, subject, text, html: body };
sgMail... |
import { StyleSheet } from 'react-native';
import AppStyles from 'src/config/styles';
const styles = StyleSheet.create({
rounded: {
width: 40,
height: 40,
borderRadius: 20,
backgroundColor: AppStyles.colors.inactiveGreyColor,
justifyContent: 'center',
alignItems: 'ce... |
var randomlinks = [];
randomlinks[0]="https://github.com/TheAwesomeCoder05/MusicComp-v2/tree/release";
randomlinks[1]="https://cdn.jsdelivr.net/npm/musiccomp-discord-bot/";
randomlinks[2]="https://unpkg.com/musiccomp-discord-bot/";
function randomlink(){
window.open(randomlinks[Math.floor(Math.random()*randomlinks.l... |
/*! Built with http://stenciljs.com */ |
/**
*
* @title 基础示例4
* @description 清空功能:不使用form表单
*
*/
import React, { Component } from 'react';
import {RefTreeWithInput} from'../../src/index.js';
import '../../src/index.less'
import { Button, Form } from 'tinper-bee';
import request from './request';
class Demo4 extends Component {
constructor() {
... |
import React from 'react';
import { RefreshControl } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import moment from 'moment';
import { JSONPath } from 'jsonpath-plus';
import {
Container,
Content,
Text,
Spinner,
Button,
Icon,
View
} from 'native-base';
import ... |
const gm = require('gm')
gm('./coding.jpg')
.resize(20)
.write('r.jpg', function (err) {
err && console.log(err)
}); |
'use strict'
const express = require('express')
const app = express()
const config = require('./config.json')
const login = require('./routers/login')
const register = require('./routers/register')
const railway = require('./routers/railway')
const payment = require('./routers/payment')
const gov = require('./routers/g... |
import React from 'react';
import { useFormik } from 'formik';
import Button from '../../../components/button';
import FormGroup from '../../../components/form/formGroup';
import Input from '../../../components/form/input';
import ErrorText from "../../../components/form/error";
const validate = values => {
const er... |
/*
Copyright ONECHAIN 2017 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 applicable law or agreed to in w... |
import React from "react";
import { StyleSheet, View, TouchableOpacity, Text } from "react-native";
import PropTypes from "prop-types";
const styles = StyleSheet.create({
container: {
paddingVertical: 6,
paddingHorizontal: 8,
borderRadius: 16
},
text: {
fontSize: 13,
fontWeight: "bold",
c... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import CommonIcon from '_c/common-icon'
import { showTitle } from '@/libs/util'
export default {
components: {
CommonIcon
},
methods: {
showTitle (item) {
return showTitle(item, this)
},
showChildren (item) {
return item.children && item.children.lengt... |
/**
* 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.
*
* @generated SignedSource<<ea8314acb1da617adcbdc7dc67fc5c47>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disable ... |
(function(g){var window=this;var g3=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+e},h3=function(a,b){var c=a.currentStyle?a.currentSt... |
/*
* Copyright 2021 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const tap = require('tap')
const utils = require('@newrelic/test-utilities')
const formatFactory = require('../../lib/createFormatter')
const { sink, once } = require('pino/test/helper')
const API ... |
// Public API for node-inspector embedders
var url = require('url');
var path = require('path');
exports.buildInspectorUrl = buildInspectorUrl;
exports.buildWebSocketUrl = buildWebSocketUrl;
/**
* Build a URL for loading inspector UI in the browser.
* @param {string|undefined} inspectorHost as configured via --web-... |
import { API } from '../api'
// 查询蜂窝热力图
export const energyView = params => {
return hyNetWork.post(API.energyView, params).then(res => res.data)
}
export const energyLoadRank = params => {
return hyNetWork.get(API.energyLoadRank, params).then(res => res.data)
}
export const energyTypeDistributed = params =>... |
function Availability(datesString) {
this.datesString = datesString;
};
Availability.datesToArray = function(datesString) {
return datesString.split(' ');
};
Availability.dateConversion = function(date) {
date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
return date.toISOString()... |
import { sequelize, DataTypes, Model } from "../config/sequelize";
class status_donations extends Model {}
status_donations.init(
{
id_status_donations: {
type: DataTypes.INTEGER,
primaryKey: true,
allowNull: false,
autoIncrement: true,
},
na... |
/**
* element-ui组件主题
*
* tips:
* 1. 此处只包含element-ui组件主题
* 2. 要达到整站主题修改效果, 请确保[import './element-[#17b3a3]/index.css']当前主题色与[/src/assets/scss/_variables.scss]文件中[$--color-primary]属性值一致
*/
import './element-#3e8ef7/index.css' // 当前主题色
export default {
list: [
'#3e8ef7', // 蓝色
'#997b71', // 棕色
'#0bb2... |
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
* 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.
... |
/*
@adobe/react-spectrum-workflow (c) by Adobe
@adobe/react-spectrum-workflow is licensed under a
Creative Commons Attribution-NoDerivatives 4.0 International License.
You should have received a copy of the license along with this
work. If not, see <http://creativecommons.org/licenses/by-nd/4.0/>.
*/
import React fro... |
const path = require('path')
const {
normalizePath
} = require('@dcloudio/uni-cli-shared')
const {
getPageSet,
getJsonFileMap,
getChangedJsonFileMap
} = require('@dcloudio/uni-cli-shared/lib/cache')
// 主要解决 extends 且未实际引用的组件
const EMPTY_COMPONENT = `Component({})`
const usingComponentsMap = {}
function ana... |
const {BaseDao, init} = require('./interfaces/base')
init()
class Playlist extends BaseDao {
constructor (dados) {
super('playlist')
if (!dados) return;
this.id = (dados._id || '')
this.favorite = (dados.favorite || false)
this.url = (dados.url || '')
this.songs = (dados.songs || [])
}
}
... |
/**
* @fileoverview Rule to check if a call to _.indexOf === 0 should be a call to _.startsWith
*/
'use strict'
/**
* @fileoverview Rule to check if a call to _.indexOf === 0 should be a call to _.startsWith
*/
//------------------------------------------------------------------------------
// Rule Definition
//--... |
(function(global) {
'use strict';
var fabric = global.fabric || (global.fabric = { }),
extend = fabric.util.object.extend,
min = fabric.util.array.min,
max = fabric.util.array.max;
if (fabric.Group) {
return;
}
/**
* Group class
* @class fabric.Group
* @extends fabric.Object... |
'use strict';
const jwtDecode = require('jwt-decode');
module.exports = function JwtDecoderToolComponent() {
this.getHtml = () => {
return `<!-- jwt decoder -->
<style>
textarea#jwt-decoder-input {
resize: vertical;
font-size: 1em;
height: 20vh;
}
#jwt-decoder-decoded-header,... |
import {describe, it, expect} from 'test_lib/test_lib';
import {Foo, Bar} from './foo';
// TODO: Does not work, as dart does not support renaming imports
// import {Foo as F} from './fixtures/foo';
import * as fooModule from './foo';
import * as exportModule from './export';
import {Type} from 'facade/lang';
export... |
/*
* 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"); you may no... |
import { AProject } from './connectors';
const Resolvers = {
Query: {
aproject(_, args) {
return AProject.find({ where: args });
},
},
};
export default Resolvers; |
export * from '@styled-icons/boxicons-regular/ListUl'; |
class IDRError {
badInput (details) { // super
const err = {}
err.error = 'BAD_INPUT'
err.message = 'Parameters were invalid'
err.details = details
return err
}
orgDne (shortname) { // super
const err = {}
err.error = 'ORG_DNE'
err.message = `The organization '${shortname}' design... |
import React from 'react'
const Contact = (props) => (
<section id="contact">
<div className="inner">
<section className="split">
<section>
<div className="contact-method">
<span className="icon alt fa-envelope"></span>
<h3>Z... |
class VigenereCipheringMachine {
constructor(isDirect) {
if (isDirect === true || typeof isDirect === 'undefined') {
this.isDirect = true
} else {
this.isDirect = false
}
this.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
}
loopKey(message, key) {
l... |
import assert from 'assert';
import { createModel } from '../src/model';
describe('Testing Models', () => {
it('should create empty model with no defaults', () => {
const schema = {
fields: {
foo: {}
},
fieldNames: [ 'foo' ]
};
const expected = {};
const model = createMode... |
const _ = require('@sailshq/lodash');
const getFilterStatement = require('./getFilterStatement');
// eslint-disable-next-line no-unused-vars
function stringify(obj_from_json) {
if (typeof obj_from_json !== 'object' || Array.isArray(obj_from_json)) {
// not an object, stringify using native function
return JS... |
import { assign } from '@ember/polyfills'
import Service from '@ember/service'
import { get } from '@ember/object'
import { run } from '@ember/runloop'
import config from 'ember-get-config';
const DEFAULT_OBSERVER_CONFIG = {
rootMargin: '50px 0px',
threshold: 0.01,
}
export default Service.extend({
observer: nu... |
// Source: https://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode
class PathFinding {
constructor(start = { i: 0, j: 0 }, goal = { i: 1, j: 1 }) {
this.grid = [];
this.path = [];
for (let i = 0; i < row; i++) {
this.grid.push([]);
for (let j = 0; j < col; j++) {
this.grid[i][j]... |
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import bundleSize from 'rollup-plugin-bundle-size';
import {terser} from 'rollup-plugin-terser';
export function disallowedImports() {
r... |
const UserModel = require("../models/UserModel");
const { body,validationResult } = require("express-validator");
const { sanitizeBody } = require("express-validator");
//helper file to prepare responses.
const apiResponse = require("../helpers/apiResponse");
const utility = require("../helpers/utility");
const bcrypt ... |
import styled from "styled-components/native";
import { Button } from "react-native-paper";
import { Text } from "galio-framework";
import { Content } from "native-base";
import { Card } from "react-native-paper";
export const Container = styled.View`
flex: 1;
align-content: center;
background-color: whitesmoke;... |
module.exports={A:{A:{"2":"I D F E A B kB"},B:{"2":"C O H P J K L","194":"M KB N R WB T"},C:{"2":"0 1 2 3 4 5 6 7 8 9 dB ZB G X I D F E A B C O H P J K L Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB NB FB GB HB IB JB Q LB EB V U TB OB PB QB RB SB MB M KB N jB R rB uB"},D:{"1":"T vB aB bB","2":"0 ... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return true; };
var argument2 = false;
var argument3 = "";
var argument4 = function() {
callbackArguments.push(arguments)
return false; };
var argument5 = function() {
callbackArguments.push(arguments)
return -43.6095671... |
/* Task -> Login into hackerrank website and add a moderator to each challenge. Moderator username is provided
as input arguments. Here, we are doing this using puppeteer
*/
let fs = require('fs');
let path = require('path');
let puppeteer = require('puppeteer');
let credentialsFile = process.argv[2];
let moderato... |
console.log("i'm some javascript"); |
"use strict";
var ThisCouldBeBetter;
(function (ThisCouldBeBetter) {
var GameFramework;
(function (GameFramework) {
class ByteHelper {
static stringUTF8ToBytes(stringToConvert) {
var bytes = new Array();
for (var i = 0; i < stringToConvert.length; i++) {
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[31],{bf32:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"max-width":"800px",width:"100%"}},[a("q-calendar",{staticStyle:{height:"400px"},attrs:{view:"week-agenda",locale:"en-us"},... |
/**
* @module ol/Map
*/
import PluggableMap from './PluggableMap.js';
import {defaults as defaultControls} from './control/util.js';
import {defaults as defaultInteractions} from './interaction.js';
import {assign} from './obj.js';
import CanvasImageLayerRenderer from './renderer/canvas/ImageLayer.js';
import CanvasM... |
'use strict';
const co = require('co');
const CarPark = require('../models').CarPark;
const CronJob = require('cron').CronJob;
const logger = require('../modules').logger;
const moment = require('moment');
const rollbarHelper = require('../modules').rollbarHelper;
function *invalidate() {
logger.info('[WORKER.inval... |
jQuery(document).ready(function() {
jQuery("#rev-slider").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:9000,
navigation: {
keyboardNavigation: "on",
keyboard_direction: "horizontal",
mouseScrollNavigation: "off",
onHoverStop: "off",
touch: {
touchenabled: "on",
... |
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
// Node module: strong-soap
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
"use strict";
var fs = require('fs'),
soap = require('..').soap,
https = require('https'),
constants = require('cons... |
module.exports = {
rootDir: '../',
setupFilesAfterEnv: ['<rootDir>/jest/__setup__/setup.ts'],
collectCoverageFrom: ['<rootDir>/src/*/**/*.t{s,sx}'],
coveragePathIgnorePatterns: [
'<rootDir>/src/pages',
'<rootDir>/src/containers/index.ts',
'<rootDir>/src/containers/Home/components/index.ts',
'<ro... |
import React, { Component } from "react";
import { withStyles, Paper, Typography } from "@material-ui/core";
import { FusePageSimple } from "@fuse";
import Breadcrumbs from "../../shared-widgets/breadcrumbs/Breadcrumbs.js";
import DataControl from "./widgets/DataControl";
import ModelControl from "./widgets/ModelContro... |
const stylelint = require('stylelint');
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const glob = require('glob');
const fromCWD = require('from-cwd');
const configWezomRelax = require('../index');
const rules = glob
.sync(fromCWD('./__tests__/*'))
.filter((dir) => fs.lstat... |
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
const state = {
categories : []
}
export default {
state,
actions,
getters,
mutations
} |
$(document).ready(function(){
getCountMenu();
})
function getCountMenu(){
$.get('/menus/count',function(response){
$.each(response.data,function(i,v){
$(`.${v.name}-backend-count`).html(v.meats_count);
})
$.each(response.lastdate,function(i,v){
//console.log(v[0].category.name);
$(`.${v[0].category... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import MiniDrawer from './MiniDrawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import { withRouter } from 'react-router';
const styles = theme => ({
root: {
display: 'flex'... |
var searchData=
[
['setup_116',['setup',['../namespacesetup.html',1,'']]]
]; |
const myArr = [1, 15, 23, 6, 42];
const isBelow = (x) => x < 45;
console.log(myArr.every(isBelow)); |
/**
* @param {number[]} nums
* @return {number}
*/
const rob = function(nums) {
if(nums.length === 0) return 0
if(nums.length < 3) return Math.max(...nums)
const startFromFirst = [0,nums[0]]
const startFromSecond = [0,0]
for(let i = 2; i <= nums.length; i++) {
startFromFirst[i] = Ma... |
module.exports = {
"extends": "airbnb-base",
"rules": {
"import/no-extraneous-dependencies": [2, { devDependencies: true }],
"no-unused-expressions": ["error", {"allowTernary": true}],
}
}; |
import sinon from 'sinon';
import React from 'react';
import chai from 'chai';
import { shallow } from 'enzyme';
import { MicroserviceMindmapContextMenu } from '../../../main/javascript/components/microserviceMindmapContextMenu';
describe('<MicroserviceMindmapContextMenu/>', function () {
it('is hidden when conte... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import... |
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
/* Render a single item
*/
class AdminUserListItem extends React.Component {
static propTypes = {
data: PropTypes.object.isRequired,
onDelete: PropTypes.func.isRequired,
};
render() {
const { da... |
'use strict';
const getChannelURL = require('ember-source-channel-url');
module.exports = async function() {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.12',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
},
npm: ... |
// 加载 svg 目录下的 .svg 文件
const req = require.context("./svg", false, /\.svg$/);
const reqAll = svgContext => {
svgContext.keys().map(svgContext);
};
reqAll(req); |
/**
* api接口统一出口
*/
/**
* 自动化处理api接口绑定到全局属性$apis
* 文件必须返回 export default {...}
*/
// const files = require.context('./modules', false, /\.ts$/)
// let api: any = {};
// files.keys().map(key => {
// let name = key.substring(key.indexOf('/') + 1, key.indexOf('.ts'));
// api[name] = files(key).default
// })
... |
import {Outlet} from 'react-router-dom'
function Route() {
return (
<div>
<p>In 'routes/root.route.js'</p>
<p>---------Outlet---------</p>
<Outlet />
</div>
);
}
export default Route; |
/**
* Architecture Project
*
* Startup Project
*
* https://bitbucket.org/kiwi-scooter
*
* @author Azmi SAHIN
* @since 2020
* */
class Application {
/**
* Architecture Application
*
* @example
*
* /// Referance Load
* const Application = require('./app')
*
* /// Instance create
* var app =... |
const file = require('@system.file');
const SUCCESS_MESSAGE = 'ok';
import { noop } from 'react-core/util';
// 获取本地文件的文件信息
function getSavedFileInfo({
filePath: uri,
success = noop,
fail = noop,
complete = noop
}) {
function gotFile({ length, lastModifiedTime}) {
success({
errMs... |
var strtol_8c =
[
[ "LONG_MAX", "d5/d65/strtol_8c.html#a50fece4db74f09568b2938db583c5655", null ],
[ "LONG_MIN", "d5/d65/strtol_8c.html#ae8a44c5a7436466221e0f3859d02420f", null ],
[ "strtol", "d5/d65/strtol_8c.html#a23a80e470a9dae66d16e7d25fbba122a", null ]
]; |
sap.ui.define(function () { 'use strict';
var spotSvg = `<svg width="128" height="128" viewBox="0 0 128 128" id="tnt-Spot-SuccessfulAuth">
<path fill="var(--sapIllus_PatternShadow)" d="M109.9558,33.5663 L108.9998,33.5663 L108.9998,41.5163 L108.9998,44.5593 L108.9998,95.5663 C108.9998,97.2223 107.6568,98.5663 105.9... |
//--------------------------------------------------//--------------------------------------------------//--------------------------------------------------
const Discord = require('discord.js');
const moment = require('moment');
const chalk = require('chalk');
const db = require('quick.db')
const ayarlar = require('.... |
import * as asn1js from "asn1js";
import { getParametersValue, clearProps } from "pvutils";
import Extension from "./Extension.js";
//**************************************************************************************
/**
* Class from RFC5280
*/
export default class Extensions
{
//********************************... |
import React from "react";
import styled from "styled-components";
export const CardWrapper = styled.div`
background: white;
`;
export const CardTitle = styled.div`
font-size: 18px;
padding: 2em;
`;
export const CardContent = styled.div``;
const Card = ({ title, children, style, ...props }) => (
<CardWrappe... |
var dojoConfig = {
paths: {
plugins: location.pathname + 'scripts/lib/plugins'
}
}; |
/*
* Kendo UI Complete v2013.3.1316 (http://kendoui.com)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be gove... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { firestoreConnect } from "react-redux-firebase";
import PropTypes from 'prop-types';
class AddShift extends Component {
state = {
name: "",
location: "",
date: null,
time: null
};
onSubmit = e => {
e.p... |
window.bookSummaryJSON = "<p>It's 1934. Businesses went under by the hundreds, debt and foreclosures boomed, and breadlines grew in many American cities. In the midst of this misery, some folks explored unscrupulous ways to make money. Angel-faced John Partlow and carnival huckster Ginger LaFrance are among the worst o... |
import config from './config';
const browserConfig = {};
if ('remote' in config) {
browserConfig.remote = config.remote;
}
if ('virtualbox' in config) {
browserConfig.virtualbox = true;
}
if ('repositories' in config) {
browserConfig.repositories = true;
}
let menu = [
['lab', 'Labs'],
['instance', 'Running ... |
class Board {
constructor(width, height) {
/** @private {number} */
this.width_ = width;
/** @private {height} */
this.height_ = height;
/** @private {!Array<!Array<number>>} */
this.rows_ = [];
for (let i = 0; i < height; ++i) {
this.rows_.push([]);
}
/** @private {!HTMLElem... |
let myBarChartSpeakerDistribution = undefined;
let speakerPicture = undefined;
/**
* This is to map the picture array just ones.
*/
$.ajax({
method: "GET",
dataType: "json",
url: "http://localhost:4567/speaker",
success: function (data) {
var speakers = data.speakers;
speakerPicture = speakers.map((... |
var calculatorWidget = angular.module("homepageApp");
calculatorWidget.factory("calcFactory", function() {
var calcFac = {};
calcFac.blahTest = function() {
alert("hello");
console.log("Hello");
}
calcFac.loadButtons = function() {
var keys = document.querySelectorAll('#calc... |
/**
* @param nums: an array
* @return: the maximum tree
*/
const constructMaximumBinaryTree = function (nums) {
return buildTree(nums,0,nums.length-1);
}
function buildTree(nums,start,end){
if(start>end){
return null;
}
let rootVal = nums[start];
let rootIndex = start;
for(let i=star... |
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v3.0&appId=154259861915442&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script... |
import React from 'react';
import { render } from '@testing-library/react';
import Tester from '../componentTest/Tester';
describe('Test to check for starting contents', () => {
test("card number's seperators start values have to be zero", () => {
const { container } = render(<Tester />);
expect(
conta... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const Image = () => {
const data = useStaticQuery(graphql`
query {
placeholderImage: file(relativePath: { eq: "todas.png" }) {
childImageSharp {
fluid(maxWidth: 300) {
...... |
const inquirer = require("inquirer");
const db = require("./db");
require("console.table");
const exit = () => {
console.log("Bye!");
process.exit(0);
};
const mainMenu = async () => {
const answer = await inquirer.prompt([
{
type: "list",
name: "menu",
message: "What would you like to do?"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.