text stringlengths 3.07k 16k |
|---|
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import useStyles from './styles';
import Auth from '../Auth/Auth';
import { Container, Typography, Grid, Card, Button } from '@material-ui/core';
import { Alert, AlertTitle } from '@material-ui/lab';
import InputEdit from './InputEdit... |
import { observable, action, computed } from 'mobx';
import {
LayoutAnimation,
Animated,
Dimensions,
Keyboard,
PanResponder,
StatusBar,
} from 'react-native';
import Fire from '../Fire';
const { width, height } = Dimensions.get('window');
const VERTICAL_THRESHOLD = 80;
const HORIZONTAL_THRESHOLD = 60;
cl... |
import React from 'react';
import compose from 'recompose/compose'
import PropTypes from 'prop-types'
import _ from 'lodash'
import {ScrollView, StyleSheet, View} from "react-native";
import {
Button,
Container,
H3,
Spinner,
Text,
} from "native-base";
import {
NextButton,
SignUpForm,
St... |
import React from 'react';
import { getFileName } from 'codechum-app-utils';
import GLOBALS from 'codechum-app-globals';
import {
FunFactCard,
SampleProblemList,
SampleProblemCard,
InfoList,
InfoCard,
} from 'components';
import { Text, Compiler } from 'components/elements';
import { textTypes } from 'compon... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { useState, useEffect, useContext } from 'react'
import {
View,
Text,
Button,
Image,
FlatList,
SafeAreaView,
TouchableOpacity
} from 'react-native'
import axios from 'axios'
import { useAuth } from '../authScreens/authContext'
import { firebase } from '../..... |
let date;
let dateType
let selectDate
getDateString = date =>`${date.getFullYear()}-${date.getMonth()+1}-${date.getDate()}`
const monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
window.onload = (event) =>{
dateType = new ... |
"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... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styled, { css } from 'styled-components';
import RcPicker from 'rc-calendar/lib/Picker';
import Icon from 'src/components/Icon';
import Select from 'src/components/Select';
import Button from 'src/components/Butt... |
"use strict";
require("./helpers/setup");
var actions = require('./helpers/actions');
var wd = require("wd"),
_ = require('underscore'),
serverConfigs = require('./helpers/appium-servers');
var TouchAction = require('wd').TouchAction;
var Q = require('q');
var tcpdump = require('./helpers/tcpdump.js');
wd.ad... |
'use strict';
require('dotenv').config();
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
const pg = require('pg');
const app = express();
const PORT = process.env.PORT || 3000;
const client = new pg.Client(process.env.DATABASE_URL);
client.connect();
clie... |
/* Copyright (c) 2019 AT&T Intellectual Property. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. ... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
... |
/**
*
* HomePolls / Create
*
*/
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Switch, Route, Redirect } from 'react-router-dom';
import { createStructuredSelector } from 'reselect';
import { connect } from... |
'use strict';
var AvaError = require('./ava-error');
var debug = require('debug')('ava:watcher');
var defaultIgnore = require('ignore-by-default').directories();
var multimatch = require('multimatch');
var nodePath = require('path');
var Promise = require('bluebird');
function requireChokidar() {
try {
return requ... |
var app = require('../../server/server');
const utils = require('./utils.js');
const lbUtils = require('loopback-datasource-juggler/lib/utils');
const debug = require('debug')('innergerbil-model-contactInfo');
const createPromiseCallback = require('loopback-datasource-juggler/lib/utils').createPromiseCallback;
module.... |
// Reads the generated JSON file and generates individual PDFs for each item
var fs = require('fs'),
PDF = require('pdfkit'),
async = require('async');
var base = __dirname + '/../app/';
var debug = false;
var undefined;
function mm (x) {
return x / 25.4 * 72;
}
function filename (string) {
var dict = [
[/ä/g... |
import { dbsliceData } from '../core/dbsliceData.js';
const triMesh2dRender = {
make : function ( element, data, layout ) {
const container = d3.select(element);
const width = container.node().offsetWidth;
const height = width; // force square plots for now
const canvas = container.appen... |
/**
* This utility generates the source for `rfc_dereference_function_call.c`
*
* It is used to add new types to the library
*/
const { recursively_generate_descriptor_list, get_options_from_type_array } = require("./primitives.js");
const fs = require("fs");
const path = require("path");
generate_file(
path.joi... |
import React, { PropTypes,Component } from 'react';
import transformDate from '../../../utils/transformDate';
import styles from './styles.less';
import classnames from 'classnames';
import {Link} from 'react-router';
import prefix from '../../../utils/routePrefix';
import {Tabs, Tab} from 'material-ui/Tabs';
import Sw... |
function StateZScoreMapRenderer(candidateDistribution) {
var zScores = VotingCalc.calcStatePctZScores(candidateDistribution);
this.distribution = candidateDistribution
this.setCandidateDistribution = function(candidateDistribution) {
this.distribution = candidateDistribution;
zScores = VotingCalc.calcStatePctZ... |
const _ = require('lodash')
const Parser = require('flora-sql-parser').Parser
const parser = new Parser()
const operatorInversions = {
'=': '=',
'>=': '<',
'>': '<=',
'<=': '>',
'<': '>='
}
/**
* Convert an expression node to its string representation.
* @param {object} node AST expression node
* @par... |
import { axios2 } from '@/utils/request'
// eslint-disable-next-line
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
import store from '@/store'
// 前端路由表
const constantRouterComponents = {
// 基础页面 layout 必须引入
BasicLayout: BasicLayout,
BlankLayout: BlankLayout,
RouteView: R... |
/**
* 模块依赖
*/
const metadata = {};
const routes = {
list: require('./routes/list'),
id: require('./routes/id'),
create: require('./routes/create'),
update: require('./routes/update'),
remove: require('./routes/remove'),
};
/**
* 导出fn
*/
module.exports = fn;
/**
* 获取默认路由中间件
* @param {functi... |
/* remiwa
------------------------
(c) 2017-present Panates
This file may be freely distributed under the MIT license.
For details and documentation:
https://github.com/panates/remiwa
*/
const assert = require('assert');
const errorex = require('errorex');
const express = require('express');
const bodyParser = r... |
import {useEffect, useState} from 'react';
import {api, handleError} from 'helpers/api';
import {Spinner} from 'components/ui/Spinner';
import {Button} from 'components/ui/Button';
import {useHistory} from 'react-router-dom';
import BaseContainer from "components/ui/BaseContainer";
import PropTypes from "prop-types";
i... |
//import axios from 'axios';
import { DATA_SERVER,
//READ_SERVER_PORT,
//WRITE_SERVER_PORT
} from './config';
// const FnOStockSymbolListAPI = 'http://' + DATA_SERVER + ':60000/api/fno';
/*
// --- Docker-Compose APIS
const CashStockSymbolListAPI = 'http://' + DATA_SERVER + ':' + READ_SERVER_PO... |
/**
* Wheel, copyright (c) 2019 - present by <NAME>
* Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt
**/
const messageEncoder = require('../../device/ev3/messageEncoder');
const CommandQueue = require('../../device/ev3/CommandQueue').CommandQueue;
const constants = require... |
import React from 'react';
import ReactDOM from 'react-dom';
import 'antd/dist/antd.css';
import '../../index.css';
import { Form, Input, Icon, Button } from 'antd';
import { DatePicker } from 'antd';
import PriceInput from './PriceInput';
import ShowContract from './ShowContract';
// import ShowContract from './ShowC... |
const test = require('tap').test;
const createUserModel = require('./lib/create-user.js');
const rp = require('./lib/rp.js');
test('it can update user info', t => {
const userName = 'john smith 1';
const userPicture = 'www.site.com/picture.png';
const user = createUserModel(userName, userPicture);
createUserR... |
/**
* entry.js
*
* This is the first file loaded. It sets up the Renderer,
* Scene and Camera. It also starts the render loop and
* handles window resizes.
*
*/
var THREE = require('three')
var OrbitControls = require('three-orbit-controls')(THREE)
function mod(n, m) {
return ((n % m) + m) % m;
... |
import {useState,useMemo,useCallback} from "react"
import {useEventListener,useAnimationFrame} from "./vdom-hooks.js"
import {findFirstParent,sortedWith} from "./vdom-util.js"
const distinctBy = f => l => { //gives last?
const entries = l.map(el => [f(el), el])
const map = Object.fromEntries(entries)
retu... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.def... |
import { BehaviorSubject } from "rxjs";
import { BeaconClass } from "./beacon-device.class";
let self;
//@Injectable()
export default class dkbeaconIbeaconService {
//fixme: how is ibeacon passed in!??!?!
constructor(webDebug) {
self = this;
self._webDebug = webDebug;
console.log('whats ... |
/**
* --------------------------------------------------------------------------
* Licensed under MIT https://github.com/sitevision/envision/blob/master/LICENSE
* --------------------------------------------------------------------------
*/
import Util from './util/util';
import { getNodes } from './util/nodes';
... |
import axios from 'axios';
export const TRANSITION_START ="TRANSITION_START"
export const TRANSITION_END ="TRANSITION_END"
export const FETCH_NEWSFEED_START = "FETCH_NEWSFEED_START";
export const FETCH_NEWSFEED_SUCCESS = "FETCH_NEWSFEED_SUCCESS";
export const FETCH_NEWSFEED_FAIL = "FETCH_NEWSFEED_FAIL";
export const... |
//=========================================================//
// MASTER FORM AJAX FUNCTION
//=========================================================//
$(document).ready(function($) {
$(".master-form").submit(function(event) {
event.preventDefault(); // stopping submitting
event.stopImmediat... |
//var http = require('http');
//var express = require('express');
var express = require('express');
var app = express();
var http = require('http').createServer(app);
var io = require('socket.io')(http, { path: '/garagews/socket.io' });
var morgan = require('morgan');
var utils = require('./utils.js');
var garagedb = r... |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
componentDidMount() {
//console.log(window);
var mathbox = window.mathbox
var mathboxElement = window.mathboxElement
this.root.appendChild(mathboxElement)
var three = mathb... |
'use strict';
const debug = require('debug')('blockbrain:service');
var plugins = null;
var conf = null;
var services = [];
var utils = null;
var server = null;
var runtime = null;
var serviceData = {};
var servicePromise = {};
const statusName = {
0: {
0: "stopped",
1: "starting"
},
1: {
0: "stop... |
/*
Copyright (c) Microsoft Open Technologies, 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
THIS CODE IS PROVIDED ON AN *AS... |
/**
* LEGACY CMS
* @author <NAME>
* @version 2.1
* @copyright Copyright (c) 2010 <NAME> (http://harrybarnard.com)
*/
//Toggle Item Visibility
function toggleVis(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].styl... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/*!
=========================================================
* BLK Design System React - v1.2.0
=========================================================
* Product Page: https://www.creative-tim.com/product/blk-design-system-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (htt... |
/**
* Copyright (c) TUT Tampere University of Technology 2015-2016
* All rights reserved.
*
* Main author(s):
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require(... |
'use strict';
const AgentState = require('./agent-state');
const CallState = require('./call-state');
const Logger = require('./logger');
const BlueBird = require('bluebird');
const logger = Logger.getLogger('PowerDialer');
/**
* This solution uses a slightly diferent interface from the one proposed in the design.... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
var ONE_FRAME = 1 / 60;
var ONE_FRAME_MS = 1000 / 60;
var last_time;
var overlay = mp.create_osd_overlay("ass-events");
var comments = [];
var FONT_SIZE = 30;
var CHAR_WIDTH = FONT_SIZE;
var LINE_HEIGHT = FONT_SIZE;
var IRC_COLOR_TO_HEX_BGR = [
"FFFFFF", // white
"000000", // black
"7F0000"... |
import { deflate } from "./deflate.js";
import { DataWriter } from "./writer.js";
const textEncoder = new TextEncoder();
export class ZipBuilder {
constructor() {
/**
* @typedef {Object} Entry
* @property {string} path
* @property {Blob} data
* @property {Intermediate} [intermediate]
*/... |
const GameStatus = {
PLAYING: "playing",
WHITE_WIN: "white_win",
BLACK_WIN: "black_win",
STALEMATE: "stalemate",
DRAW: "draw",
}
class Board {
constructor() {
this.pieces = {
[TEAM.WHITE]: [],
[TEAM.BLACK]: [],
};
this.setupPieces();
this... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
import { useEffect, useState, useMemo, useRef } from "react"
import styles from "./DevicesPage.module.css"
import ItemList from "../../shared/ItemList/ItemList";
import { useOutletContext } from 'react-router-dom';
import { Button } from "react-bootstrap";
import GetDeviceList from "../../services/GetDeviceList";
impo... |
import React from 'react'
import 'src/styles/tooltips.css'
import * as variable from 'src/styles/variables'
import styled from 'styled-components';
import { createGlobalStyle } from 'styled-components'
const pluginsHero = ({title,discord_server}) => (
<Hero alt={title}>
<GlobalStyle />
<Container>
... |
/* eslint-disable */
import {ItemCode, AccuracyLevel} from './SGWorldAPIEnums.js'
class SKCommonTools {
constructor (sgworld){
this.mSGWorld = sgworld
}
GetFlyPath () {
let str = this.mSGWorld.Project.Name;
return Path.GetFullPath(str).Replace(Path.GetFileName(str), "");
}
//给定节点向上追索到其项目节点... |
import Node from '../node';
import { DIRECTION, oppositeDirection } from '../../utils/constance';
import { makeBezierPoints } from '../../utils/functions';
/**
* 钻石形单元 配置
* @typedef {Node~Configs} Diamond~DiamondConfigs
* @property {number} width - 内部矩形宽
* @property {number} height - 内部矩形高
* @property {number} si... |
import React from 'react';
import PropTypes from 'prop-types';
import Input from '../Input';
import DropdownBase from '../DropdownBase';
import { dataHooks } from './constants';
import { st, classes } from './TimeInputWip.st.css';
/** A WIP time input component */
class TimeInputWip extends React.PureComponent {
co... |
//"use strict";
var resultdata;
const { "Launcher": EpicGames } = require("epicgames-client");
const { freeGamesPromotions } = require("./src/gamePromotions");
const { writeFile } = require("fs");
var sd = require('silly-datetime');
const Auths = require(`${__dirname}/device_auths.json`);
const CheckUpdate = ... |
// Derived from Amazon Node.js Alexa Color Sample Skill
'use strict';
let http = require('http');
let ec2 = "ec2-54-77-55-113.eu-west-1.compute.amazonaws.com";
/**
* This is based on the Color Example of Alexa Skills Kit api.
*/
// --------------- Helpers that build all of the responses -----------------------
f... |
urlWeb = 'http://localhost/curso2014/'; //la cambiamos por el dominio final
//MUESTRA U OCULTA LA CAPA DE LOGIN
function mostrar_capa_login(abrirocerrar){
if (abrirocerrar == 1) //abrir capa login
{
$("#capa_login").fadeIn(500);
}
else if (abrirocerrar == 2) //cerrar capa login
{
$("#capa_login").fadeOut(50... |
var assert = require('assert');
var MockHttpClient = require('./mock-http-client');
var MemoryStore = require('ac-node').MemoryStore;
var RestClient = require('..').RestClient;
var tenantFactory = require('..').tenantFactory;
var fixtures = require('./fixtures');
var wait = require('co-wait');
describe('ac hipchat ten... |
var express = require("express");
var db = require("./db.js");
var _ = require("underscore");
var bodyParser = require("body-parser");
var middleware = require("./middleware.js")(db);
var cryptojs = require("crypto-js");
var path = require("path");
var fs = require("fs");
var dir = './data';
var server;
var APIPATH = "... |
import { bind } from 'angular2/di';
import { Compiler, CompilerCache } from 'angular2/src/core/compiler/compiler';
import { Reflector, reflector } from 'angular2/src/reflection/reflection';
import { Parser, Lexer, ChangeDetection, DynamicChangeDetection, PipeRegistry, defaultPipeRegistry } from 'angular2/change_dete... |
#!/bin/node
/* eslint no-bitwise: 0 */
/* eslint no-await-in-loop: 0 */
/* eslint no-constant-condition: 0 */
const fs = require('fs');
const {
IMAGE_DIR, BACKUP_DIR, IMAGE_MOUNT_POINT, RECORD_WINDOW_MS,
IMAGE_SIZE_MB, PAUSE_RECORDING_ON_WIFI, WAIT_INTERVAL
} = require('../etc/config.js');
const {
benchmark, ex... |
import React, { useState, useEffect } from 'react';
import { StyleSheet, Text, View, Dimensions, Button, NativeModules, TouchableWithoutFeedback } from 'react-native';
import RNRestart from 'react-native-restart';
import { WebView } from 'react-native-webview';
import Bird from './components/Bird.jsx';
import Obstacles... |
import cloneDeep from 'lodash.clonedeep';
/* eslint-disable no-use-before-define,brace-style */
import {usfmToJSON} from './usfmToJson';
/* Method to filter specified usfm marker from a string
* @param {string} string - The string to remove specfic marker from
* @return {string}
*/
export const removeMarker = (stri... |
'use strict'
/* eslint-env node, es6 */
const crypto = require('crypto')
const {expect} = require('chai')
const {describe, it} = require('mocha')
const {memoCache, memoEvent, on, once} = require('../src')
const {memoize} = require('lodash')
const input = 32
const output = 1346269
const iters = 10
const inputs = [
... |
const admin = require('firebase-admin');
const serviceAccount = require('../admin-cred.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://tutorbook-779d8.firebaseio.com',
});
const firestore = admin.firestore();
const partitions = {
test: firestore.collection(... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict"
let DEBUG = 0;
let debug;
if (DEBUG) {
debug = function (s) { dump("-*- ContentPermissionPrompt: "... |
const Autobase = require('autobase')
const Hypercore = require('./core')
const EventEmitter = require('events')
const Autobee = require('./autobee')
const Hyperswarm = require('hyperswarm')
class Database extends EventEmitter {
constructor(storage, opts = {}) {
super()
const key = opts.peerPubKey ? opts.pee... |
/**
* Created by Giorgi on 10/10/2014.
*/
function toBinary(input) {
var res = [];
var arr = "";
var bin = input.toString(2);
if (bin.length < 8) {
for (var i = 0; i < 7 - bin.length; i++)
arr += "0";
res.push("0" + arr + bin);
} else if (bin.length < 12) {
for... |
require('./bootstrap');
window.$ = window.jQuery = require('jquery');
window.T = require('twig');
templation_path = '/api/get_templation/';
error_templation = '{% for error in errors %}<div class="row"><div class="col bg-danger">{{error|e}}</div></div>{% endfor %}';
error_container = 'error_container';
templations =... |
'use strict';
/**
* This program is created as a part of a training exercise. The program projects hourly sales
* at several retail locations for a hypothetical Salmon Cookie shop business.
*/
//The locations for which to report sales figures
var cookieShopLocations = [];
//Create a totals array for each ... |
'use strict';
// write 5 questions. They MUST accept yes or no OR y or n IN ANY CASE.
// examples: YES, yes, YEs, yeS, Y, y
var guestName = prompt('Hey welcome! What is your name?');
//console.log(guestName);
alert('Glad you\'re here ' + guestName + '!');
var gameStart = prompt('Would you like to know a little more ... |
import {or, alias, readOnly} from '@ember/object/computed';
import {assert} from '@ember/debug';
import Component from '@ember/component';
import PollingMixin from 'percy-web/mixins/polling';
import {inject as service} from '@ember/service';
import {computed} from '@ember/object';
import {snapshotsWithNoDiffForBrowser}... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ast_node_1 = require("./ast-node");
const localize_1 = require("./localize");
const property_ast_node_1 = require("./property-ast-node");
const validation_result_1 = require("./validation-result");
class ObjectASTNode extends ast_node_1.... |
$(document).ready(function() {
});
function RepoList($scope) {
$scope.done = true;
//$scope.repo = websafe_color_array;
$scope.repo = $("#repo-list").data('repo');
$scope.done = false;
}
function Index($scope) {
$(".increment").each(function () {
increment_init($(this), 0, 20);
});
}
function Activity($scope... |
import { useState, useEffect } from 'react';
import { ResponsiveContainer, ComposedChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Area } from 'recharts';
const WalkWeekChart = ({ allActivities }) => {
const createWeekDates = (startDay, endDay) => {
let tempWeek = [];
for (let i = startDay; i < end... |
import React, { useState } from "react";
import { getCtfData } from "./Ctf.js";
import * as d3 from "d3";
// adapted from: https://github.com/jukuznets/d3-react-chart
// constants for graph setup
const margin = { top: 40, right: 10, bottom: 15, left: 10 };
const width = 800 - margin.left - margin.right;
const height ... |
import React from "react"
import PropTypes from "prop-types"
import ImmutablePropTypes from "react-immutable-proptypes"
import { List } from "immutable"
import classNames from "classnames"
import ImageGallery from "highline/components/image_gallery"
import Hero from "highline/components/homepage/hero"
import { ChevronI... |
const fs = require('fs');
const path = require('path');
const inspect = require('util').inspect;
const chai = require('chai');
const expect = chai.expect;
const chaiHttp = require('chai-http');
chai.use(chaiHttp);
const gatewayHost = 'localhost';
const gatewayPort = '5000';
const gatewayServerURL = `http://${gateway... |
var express = require('express')
var request = require('request')
// var sessions = require("client-sessions");
var session = require('express-session')
var app = express()
var port = process.env.PORT || 5000;
var server = require('http').createServer(app);
var AWS = require('aws-sdk');
var path = require("path");
AWS.... |
import React from "react";
import { withCookies } from "react-cookie";
import "./App.css";
import CalenderDisplay from "./components/CalenderDisplay/calenderDisplay";
import AppointmentDisplay from "./components/AppointmentDisplay/AppointmentDisplay";
import Footer from "./components/Footer/footer";
import spring fro... |
import { ifElse, compose, test, prop } from "ramda";
// 01.01.1900 and 31.12.2099
// https://stackoverflow.com/questions/12472976/regex-validate-european-date-format-with-multiple-separators
const DayDef = "(3[01]|[12][0-9]|0[1-9]|[1-9])";
const WeekDayDE = [
"Montag|Mo[.]?",
"Dienstag|Di[.]?",
"Mittwoch|Mi[.]?... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
'use strict';
function logError(gutil, msg) {
gutil.log(gutil.colors.red(msg));
return msg
}
function logWarning(gutil, msg) {
gutil.log(gutil.colors.yellow(msg));
return msg;
}
function logInfo(gutil, msg) {
gutil.log(msg);
return msg;
}
function logInfoHighlighted(gutil, msg) {
gutil.log(gutil.co... |
import "../../../styles/review/AddInstructor.css"
import React, {useEffect, useMemo, useState} from "react";
import icons from "../../../icons/Icons"
import {Link} from "react-router-dom";
import {methods, urls} from "../../SPApi";
import {useNavigate} from "react-router";
const AddInstructor = () => {
const navi... |
import { Rect } from '../primitives/rect';
import { identityMatrix, transformPointByMatrix, rotateMatrix } from '../primitives/matrix';
import { getChildNode } from './dom-util';
import { Size } from '../primitives/size';
/**
* Implements the basic functionalities
*/
/** @private */
export function randomId() {
v... |
const template = document.createElement('template')
template.innerHTML = `
<style>
#splitterGrid {
display:flex;
flex-grow: 1;
flex-direction: row;
width: 100%;
height: 100%;
}
.slot {
flex-grow: 1;
... |
var DBConfig = require('../configs/database.configs');
var configs = require('../configs/global.configs');
var SZ = require('sequelize');
var sequelize = new SZ(DBConfig.name, DBConfig.user, DBConfig.pass, DBConfig);
var _ = require('lodash');
var Article = sequelize.define('articles', {
//For ... |
import config from '../config/config.js';
import { PAGES } from './enums.js'
const elLoadingModal = document.getElementById('loading-modal');
const indexPage = document.getElementById('index-page');
const customSetupPage = document.getElementById('custom-setup-page');
const installDetailsPage = document.getElementByI... |
import {merge} from 'most'
import {pluck, propOr, filter, map, reduce, compose, mapAccum, isNil, not, apply, addIndex, path} from 'ramda'
import {domEvent, makeStateAndReducers$, imitateXstream, fromMost} from '../../utils/cycle'
import {toDegree, toRadian} from '../../utils/formatters'
import withLatestFrom from '../... |
import React, { useEffect, useRef, useState } from 'react'
import * as d3 from 'd3'
import { groupBy } from 'lodash-es'
import { AnimatedDataset } from 'react-animated-dataset'
import timesheet20 from '../../dataset/anonymous-timesheet-20.json'
import personNames from '../../dataset/people-20.json'
import projectNames... |
/**
*
* �2018-2019 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
// Author : Atul
// This file contains many utility functions that are either created by/for oe-cloud or they are overriden/copied from
// loopback code. all functions are small and self-... |
/**
* Created by wupeijin on 17/3/24.
*/
var tmp = $('<div class="resizer">' +
'<div class="inner">' +
'<img>' +
'<div class="frames"></div>' +
'</div>' +
//'<button>✗</button>'+
'<button class="ok">✓</button>' +
'</div>');
$.imageResizer = function () {
if (Uint8Array &&... |
/*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
"use strict";
var MemoryStore = require('./store/memory'),
utils = require('./object-utils'),
sourceMaps = require('./util/sourceMaps'),
SourceMapConsume... |
var axios = require("axios").default;
const { Keystone } = require("@itoa/keystone");
const { GraphQLClient, gql } = require("graphql-request");
const Extension = require("../../Extension");
const express = require("express");
class Messenger extends Extension {
constructor(keystone) {
super(keystone);
}
stat... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DNS = void 0;
const assert_1 = __importDefault(require("assert"));
const enr_1 = require("./enr"... |
/********************************************************************************************************************************************
Copyright 2016 sivann inc.
The source code contained or described herein and all documents related to the source code are owned by sivann inc. or its suppliers or licensors.
N... |
// This solution uses tree concepts to simulate nesting in prefix operations.
// This solution assumes that the expression does not have variables that have variables as value i.e. '+ 2 a' where in the var object a = b and where b = 2.
const evalPreFix = (expression, variables) => {
function nodeObject(value) {
t... |
/*
Q3
Find the maximum 4 digit number in dynamicmatris
*/
function solution(Board) {
let N = Board.substring(3, Board.indexOf(', M'));
let M = Board.substring(Board.indexOf('M=') + 2, Board.length - 1);
let max = 0;
let arr = [];
let i = 0;
let maxNumberIds = [];
topNumbers = [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.