text stringlengths 3.22k 29.5k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DropDownItem = exports.ClickItemContent = exports.SummaryView = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (... |
var width = window.innerWidth,
height = window.innerHeight;
var pts = [];
function Landing(x, y, w, h, recclass, mass, name, year, lat, long) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.mass = mass;
this.recclass = recclass;
this.name = name;
this.year = year;
this.la... |
function draw_agent(ctx, agent, layout, config) {
ctx.save();
ctx.beginPath();
ctx.translate(agent.x*config.CELL_SIZE, (layout.height-agent.y-1)*config.CELL_SIZE)
ctx.fillStyle = config.AGENT_COLORS[agent.index];
ctx.strokeStyle = config.AGENT_COLORS[agent.index];
ctx.translate(config.CELL_SIZE/... |
/**
* Copyright 2018 Box 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 or agreed to in writin... |
;import React, { Component } from 'react'
import {
View, Text, StyleSheet, TextInput,
Picker, Alert, Dimensions, ScrollView
} from 'react-native';
import { Button, Header } from 'react-native-elements';
import DateTimePicker from "react-native-modal-datetime-picker";
import moment from 'moment';
import { getStyles ... |
/* global angular, BASE_URL */
$(document).ready(function () {
/************** Loader *****************/
$('a').click(function () {
var href = $(this).attr('href');
//var blank = $(this).attr('target');
if (typeof href !== 'undefined') {
return true;
}
i... |
import Web3 from 'web3';
import * as yup from 'yup';
import EventEmitter from 'events';
import {Logger} from 'bi-utils';
const schema = yup.object({
URL: yup.string(),
provider: yup.object(),
id: yup.number().min(1).required("Missing connector id setting"),
maxRetries: yup.number()
})
const replaySche... |
/**Inicijalna deklaracija vrijednosti koje se korite u stranici*/
/**Setovanje centra mape */
let center = ol.proj.transform([19.26, 42.443], "EPSG:4326", "EPSG:3857");
let zoom = 8;
let view = new ol.View({
center: center,
zoom: zoom,
});
/** Prikaz razmjernika na mapi*/
const razmjera = new ol.control.ScaleLin... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = require("vue");
var _xeUtils = _interopRequireDefault(require("xe-utils"));
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
var _size = require("../../hooks/size");
var _d... |
/**
* @author Created by <NAME> <<EMAIL>> on 2013-11-26.
* @link https://github.com/aboldisor
* @license http://opensource.org/licenses/MIT
*
* @version 0.0.1
*/
//TODO lib ... documentation
// dependencies and "private" vars
var vsprintf, fs, url, path, debug, warn, error, DBlanguage, Lang... |
'use strict';
const fs = require('fs');
const remark = require('remark');
const recommended = require('remark-preset-lint-recommended');
const html = require('remark-html');
const reporter = require('vfile-reporter');
const { makeDestPath, getRelativeToBasePath } = require('node-plop/lib/actions/_common-action-utils')... |
import assert from 'assert'
import crypto from 'crypto'
// Custom RPC commands added on top of c-lightning's built-in ones
// and exposed to the client side.
export const commands = {
// Connect to node & fund channel in one go
async _connectfund(peeruri, satoshi, feerate) {
const peerid = peeruri.split('@')[0... |
function sortByDateAscending(a, b) {
// Dates will be cast to numbers automagically:
return a.date - b.date;
}
function createChartTimelinePublication(data, typeload) {
d3.select("#timeline-publication svg").remove();
createTimelineChart(data, "#timeline-publication", "#d1415a","Downloads", "#publicati... |
const util = require('util');
const Node = require('./node'); // Doubly
// tag::constructor[]
/**
* Doubly linked list that keeps track of
* the last and first element
*/
class LinkedList {
constructor(
iterable = [],
// end::constructor[]
ListNode = Node, // Node class (e.g. singly, doubly, multileve... |
import ShadedTileSet from './ShadedTileSet';
import {FACE_EAST, FACE_NORTH, FACE_SOUTH, FACE_WEST} from "./consts";
import CanvasHelper from "../canvas-helper";
/**
* this class allows to add some properties to each surface of a 2-dimensional array of cells
*/
class CellSurfaceManager {
constructor() {
... |
import { CodeMirrorAdapter } from '../codemirror/cm_adapter';
import { PositionConverter } from '../../converter';
import { FreeTooltip } from './components/free_tooltip';
import { Widget } from '@lumino/widgets';
import { Signal } from '@lumino/signaling';
import { Completion } from '../codemirror/features/completion'... |
const width = 20
const height = 20
const FONT_SIZE = 32
let canvas, ctx
let mapWidth, mapHeight
let animationHandle = null
let redraw = true
let map = []
const EMPTY = 0b00000
const NORTH = 1 << 0
const NORTHEAST = 1 << 1
const EAST = 1 << 2
const SOUTHEAST = 1 << 3
const SOUTH = 1 << 4
const SOUTHWEST = 1 << 5
const... |
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import flow from 'lodash/fp/flow'
import map from 'lodash/map'
import mapValues from 'lodash/mapValues'
import forEach from 'lodash/forEach'
import camelCase from 'lodash/camelCase'
import isEmpty from 'lodash/isEmpty'
import toString... |
import I18n from 'i18n-js'
import React from 'react'
import {
StackNavigator,
TabNavigator,
TabBarBottom
} from 'react-navigation'
import { View, Animated, Easing, Dimensions } from 'react-native'
import { Icon, Badge } from 'react-native-elements'
import LoadingPage from '../screens/LoadingPage'
import DemoPage ... |
import React from "react";
import "./App.css";
import ReactDOM from "react-dom";
import Drawing from "./components/Drawing";
import { connect } from "react-redux";
import styled from "styled-components";
import Header from "./components/Header";
import downloadSVG from "export-svg-with-styles";
const options = {
wid... |
'use strict';
const Main = imports.ui.main;
const Config = imports.misc.config;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const St = imports.gi.St;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const PanelMenu = imports.u... |
const fs = require("fs");
const PDFDocument = require("./lib/dpfkit-updated");
const size = require("./lib/size");
// Example: Person 1
const person = require("./data/persons/person-john-doe.json");
const template = require("./data/templates/template-helvetica.json");
// Example: Person 2
// const person = require(".... |
const { spawn, fork } = require('child_process');
const { getSampleFilePath } = require('../utils');
const path = require('path');
const { env } = require('../env');
var isWin = process.platform === "win32";
var isLinux = process.platform === "linux";
var isMacos = process.platform === "darwin";
const TEMPLATE = `con... |
import DOM from "./dom";
import Contract from "./contract";
import "./flightsurety.css";
(async () => {
let result = null;
let contract = new Contract("localhost", async error => {
// Read transaction
if (error) return (DOM.elid("cos-value").innerHTML = error);
let isOper;
co... |
// Step Gains
// This only works with this modded version of Gekko
//
// This strat begins by waiting for the current price
// to drop 2% (watchPrice). If it drop further, it will
// populate lowestPrice. When current price > lowestPrice
// and it is less than 200 SMA hourly, it will buy.
// It will sell when there's a... |
import { Carousel, Tabs } from 'antd';
import 'antd/dist/antd.css';
import React, { Fragment, PureComponent } from 'react';
import { connect } from 'react-redux';
import { actionCreators as FooteractionCreators } from '../../common/footer/store';
import { actionCreators as FlvMasactionCreators } from '../flv-mas/store'... |
import React from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import Button from '@material-ui/core/Button';
import Typography from '@material-... |
/**
* (c) 2018 cepharum GmbH, Berlin, http://cepharum.de
*
* The MIT License (MIT)
*
* Copyright (c) 2018 cepharum GmbH
*
* 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 rest... |
'use strict';
//common
const del = require('del');
const path = require('path')
const gulp = require('gulp');
const gulpIf = require('gulp-if');
const gulplog = require('gulplog');
const concat = require('gulp-concat');
const sourcemaps = require('gulp-sourcemaps');
//helpers
const newer = require('gulp-n... |
import React, { useEffect, useState } from 'react';
import ReactDOM from 'react-dom';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import { Checkbox... |
import React, { useState, useEffect, useContext } from 'react';
import { SafeAreaView, StyleSheet, View, Alert, Platform, Linking, } from 'react-native';
// Import Map and Marker
import MapView from 'react-native-map-clustering';
import {Marker} from 'react-native-maps';
import * as Location from 'expo-location';
imp... |
import React from 'react'
import { saveAs } from 'file-saver'
// https://github.com/bengourley/currency-symbol-map
export const currencySymbolMap = {
'AED': 'د.إ',
'AFN': '؋',
'ALL': 'L',
'AMD': '֏',
'ANG': 'ƒ',
'AOA': 'Kz',
'ARS': '$',
'AUD': '$',
'AWG': 'ƒ',
'AZN': '₼',
'BAM': 'KM',
'BBD': '$... |
const WIDTH = W = 160;
const HEIGHT = H = 160;
const MAX_VERTICES = 3;
const MIN_VERTICES = 3;
const MAX_VERTEX_SHIFT = 5;// W < H ? W / 20 : H / 20;
const MIN_VERTEX_SHIFT = 1;
const MAX_COLOR_SHIFT = 40;
const MIN_COLOR_SHIFT = 1;
const POPULATION_SIZE = 80;
const DECAY_RATE = 7/10; // closer to 1, more likely that t... |
function loadReview(){
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({"query":"SELECT username, fullName, email, contactNo, credit FROM laundrotech.User WHERE userID = '" + sessionStorage.getItem("userID") + "'"});
var requestOptio... |
"use strict";
/**
*
* Adapter for Prismic
* https://prismic.io
*
* Every adapter must have a common, public `cache` object:
* api?
* site
* navi
* docs
*
*
* Every adapter must have common, public functions:
* cache^
* getApi
* getPage
* getSite
* getDocs
*
* Different Headless CMS require slightl... |
var util = require("util"),
WebSocket = require('ws'),
EVT = require('evrythng-extended'),
mqtt = require('evrythng-mqtt');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
//Evrythng wrapper
var evrythng = null;
//TTS wrappers
var manageWS = null;
var consoleWS = null;
// Last updates in either directi... |
import update from 'immutability-helper';
import {
FETCH_SCORE,
FETCH_RIBBON_CONTENT,
FETCH_MANIFESTATIONS,
FETCH_CONCEPTUAL_SCORE,
PROCESS_ANNOTATION,
REGISTER_PUBLISHED_PERFORMANCE_SCORE,
SEGMENT,
FETCH_COMPONENT_TARGET,
SCORE_PREV_PAGE,
SCORE_PAGE_TO_TARGET,
SCORE_NEXT_PAGE,
RESET_NEXT_SESSION_TRIG... |
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
var _FormControl = _interopRequireDefault(require("@material-ui/core/FormControl"));
var _Input = _interopRequireDefault(require("@material-ui/... |
import React, { useRef, useState } from "react";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import Drawer from "@material-ui/core/Drawer";
import List from "@material-ui/core/List";
import Typography from "@material-ui/core/Typography";
import Divider from "@material-ui/core/Divider";
import IconB... |
const { Kernel } = require('../EasyJsBox/src/kernel');
const widgetRootPath = '/scripts/pages/widget';
const jSboxName = `drive://${$addin.current.name}`;
const widgetAssetsPath = `${jSboxName}/assets/widget`;
const backupPath = `${jSboxName}/assets/backup`;
const copyPath = `${jSboxName}/widget`;
/**
* 实例化一个小组件
* ... |
import Options from './utils/Options.js';
import BlockTypes from './blocks.js';
import Config from './config.js';
import RenderFonts from './utils/RenderFonts.js';
import RenderLibrary from './utils/RenderLibrary.js';
import RenderOptions from './utils/RenderOptions.js';
import RenderTemplates from './utils/RenderTempl... |
'use strict';
import React, { Component } from 'react';
import {StyleSheet} from 'react-native';
import {
ViroARScene,
ViroText,
ViroQuad,
ViroMaterials,
ViroAmbientLight,
ViroSpotLight,
ViroNode,
ViroConstants,
Viro3DObject,
ViroParticleEmitter
} from 'react-viro';
export default class GameScene e... |
var pks_schwache_saeure=4.75;
var pkb_schwache_base=4.75;
var ph=0;
var ph_werte=[];
function csv_speichern() {
var textinhalt='Volumen Maßlösung (ml);pH-Wert\n'+$('#anzeige_ergebnisse').val().replace(/^\n/, '').replace(/\n$/, '').replace(/\./g, ',');
var uriContent='data:text/plain;charset=utf-8,'+encodeURICo... |
var config = require('../../../config/config.js');
var i18n = require('../../utils/i18n.js');
var oauth = require('../../utils/oauth.js');
var qs = require('querystring');
var BaseView = require('../base-view.js');
var Slide = require('../slide/slide.js');
var Tile = require('../tile/tile.js');
var THREE = window.THRE... |
import fs from 'fs'
import path from 'path'
import moment from 'moment'
import addLazyProperty from 'lazy-property'
// Coalitions
export const Coalition = Object.freeze({
Neutral: 0,
Allies: 1,
Axis: 2
})
// Data tags for special airfield items
export const ItemTag = Object.freeze({
Plane: -1, // Plane spot
Carg... |
/*!
=========================================================
* Vision UI Free Chakra - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/vision-ui-free-chakra
* Copyright 2021 Creative Tim (https://www.creative-tim.com/)
* Licensed under MIT (https:... |
/** @jsx jsx */
import React, {useState} from 'react'
import { jsx, Styled } from 'theme-ui'
import { graphql, Link } from 'gatsby'
import { motion } from "framer-motion"
import { FormattedMessage } from 'react-intl'
import Swiper from 'react-id-swiper';
import Layout from '../components/particles/Layout'
import SEO fr... |
/**
* Copyright 2020 - Offen Authors <<EMAIL>>
* SPDX-License-Identifier: Apache-2.0
*/
var _ = require('underscore')
var ULID = require('ulid')
var startOfHour = require('date-fns/start_of_hour')
var endOfHour = require('date-fns/end_of_hour')
var storage = require('./storage')
var decryptEvents = require('./decr... |
/* Initialise all the variables! */
/* Set the dates for comparison */
var Sunday = moment("2016-01-31");
var Monday = moment("2016-02-01");
var Tuesday = moment("2016-02-02");
var Wednesday = moment("2016-02-03");
var Thursday = moment("2016-02-04");
var Friday = moment("2016-02-05");
var primaryVenue =... |
import React, { useState, useEffect } from 'react';
import { Form, Input, Table, Modal, Popconfirm, Button, message, Space, InputNumber } from 'antd';
import Highlighter from 'react-highlight-words';
import { SearchOutlined } from '@ant-design/icons';
import { useHistory } from 'react-router-dom';
import callApi from... |
var t = setInterval(runFunction, 1000);
var global_json = "";
function fetchAPI() {
var targetUrl = (window.location.origin) ? window.location.origin + '/test_connection' : 'http://127.0.0.1:3000/test_connection';
//var targetURL = 'http://localhost:3000/test_connection';
fetch(targetUrl, {method: 'GET', mode: '... |
import React, {Fragment, Component} from "react";
import {Form, Card, Input, Table, Divider, Modal, Select,
Row, Col, Button, Popconfirm, Icon, message} from "antd";
import {connect} from "dva";
import {timeTrans, hasPermission} from "@/utils/globalTools"
const FormItem = Form.Item;
const Option = Select.Option;
con... |
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { Tree, Menu, Button, Modal, Input, Dropdown, Checkbox, message, Popover } from 'antd';
import { debounce } from 'lodash';
import BreadCrumbs from '../../common/BreadCrumbs';
import { authHeader } from '../../common/AuthHeader.js';
import {... |
"use strict";
// Require Third-party Dependencies
const { walk } = require("estree-walker");
const meriyah = require("meriyah");
const safeRegex = require("safe-regex");
const builtins = require("builtins");
// Require Internal Dependencies
const helpers = require("./src/utils");
const ASTDeps = require("./src/ASTDep... |
const Bouyomi = (() => {
class Bouyomi {
static get ClientType () {
return { Bouyomi: "BOUYOMI", Native: "NATIVE" };
}
get client () {
switch (this.clientType) {
case Bouyomi.ClientType.Bouyomi:
return this._client;
case Bouyomi.ClientType.Native:
return this._nativeClient;
default:... |
// TODO WILL REFACTOR THIS CODE TOMORROW
let constants = (function() {
let consts = {
alphabets : '_ABCDEFGHIJKLMNOPQRSTUVWXYZ',
domIds: {
input: {
word : '#word',
value : '#value',
exec : '#input'
},
history: {
className: '.input-history',
reset: '#reset'
},
actions: {
i... |
const jsonld = require('jsonld');
const N3 = require('n3');
const moment = require('moment');
const EX = 'http://example.org#';
const RDFS = 'http://www.w3.org/2000/01/rdf-schema#';
const GIS = 'http://www.opengis.net/#';
const PROV = 'http://www.w3.org/ns/prov#';
let maxAge = 0;
let data;
let arrayCount;
let onGoing... |
import React, {useEffect} from 'react';
import Button from '@mui/material/Button';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogTitle from '@mui/material/DialogTitle';
import makeStyles from '@mui/styles/makeStyles';
import Grid from '@mu... |
var _ = require('underscore');
var _str = require('underscore.string');
var Socket = require('net').Socket;
var format = require('util').format;
var NUL = '\u0000';
var SOH = '\u0001';
var EOT = '\u0004';
var ENQ = '\u0005';
var undefMsg = 'response was undefined';
var nullMsg = 'response was null';
var shortMsg = 'r... |
var gInitialPermissions;
var gStrbundle;
var gArgs;
function init() {
gStrbundle = $("strings");
gArgs = window.arguments[0];
setTimeout("$('properties').getButton('accept').focus()", 0);
if (gArgs.multipleFiles) {
$('thumbrow').collapsed = true;
multipleFiles();
return;
}
... |
const puppeteer = require('puppeteer');
const fs = require('fs-extra');
const path = require('path');
const glob = require('glob');
const compareImages = require('resemblejs/compareImages');
const clone = require('clone');
const { REFERENCES_FOLDER_PATH, RUNS_FOLDER_PATH, FAILED_IMAGE, REPORT_FILE, PIXLJS, ERROR, SUCC... |
const puppeteer = require('puppeteer') // Webscraping
const fs = require('fs') // For reading files
const { Webhook, MessageBuilder } = require('discord-webhook-node') // For discord
const colors = require('colors')
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
... |
var HeroesApp;
(function (HeroesApp) {
"use strict";
var app = HeroesApp.getModule();
var HeroCalculator = (function () {
function HeroCalculator($uibModal, $http, $sce) {
var _this = this;
this.$uibModal = $uibModal;
this.$http = $http;
this.lvl = 1;
... |
/* eslint-disable */
class ADLayer {
constructor(ecOptions, map, echarts) {
this._map = map
this._ecOptions = ecOptions
this._registered = false
this._container = null
this.zIndex = 999
this._container = null
this._echarts = echarts
this.event = null
}
getMap() {
return this._m... |
import './EarlyBird.css.proxy.js';
/* src/pages/EarlyBird.svelte generated by Svelte v3.29.0 */
import {
SvelteComponent,
append,
attr,
component_subscribe,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "../../web_modules/svelte/internal.js";
import { _ } from "../../we... |
import {
SiFirebase,
SiGmail,
SiTypescript,
SiReact,
SiMongodb,
SiMaterialui,
SiTailwindcss,
SiRedux,
SiPython,
SiGooglecloud,
SiMicrosoftazure,
SiMysql,
SiGraphql,
SiFlutter,
SiVisualstudiocode,
SiDocker,
SiNodedotjs
} from 'react-icons/si';
import { ... |
var context;
var web;
var site;
var session;
var termStore;
var groups;
// This code runs when the DOM is ready and creates a context object
// which is needed to use the SharePoint object model.
// It also wires up the click handlers for the two HTML buttons in Default.aspx.
$(document).ready(function () {
cont... |
let d = new Date();
const START = d.getTime();
resetShop = false;
if (resetShop) {
const { MongoClient, ServerApiVersion } = require('mongodb');
const mongouri = process.env.MONGODB_URI; //DO NOT RUN LOCALLY (no process.env)
const client = new MongoClient(mongouri, { useNewUrlParser: true, useUnifiedTo... |
const t = require('../test-lib/test.js');
const assert = require('assert');
let apos;
const config = {
root: module,
// Wrong port, but that is OK for this test
baseUrl: 'http://localhost:3000',
modules: {
'@apostrophecms/i18n': {
options: {
locales: {
en: {
label: 'Engl... |
function jg(element){
this.cA = '#BEFDBE' ,
this.cNA = '#D5E6D5',
this.cS = '#99CCFF',
this.cC = '#FF0000',
this.cB = '#000000',
this.painter = new jsGraphics(element);
}
function Creator(){
this.data = {},
this.paint = function(){
var jg = pNS.jg,
painter = jg.painter,
bData,
coordinates,
algo... |
'use strict';
chrome.runtime.onInstalled.addListener(
function (details) { // Set up storage for sellers on extension install
if (details.reason === 'install') {
chrome.storage.sync.set({
sellers: ''
});
}
}
);
const config = (function () {
function init() {
function resolveSync(... |
import Koa from 'koa';
import fetch from 'cross-fetch';
import Router from 'koa-router';
import moment from 'moment';
import {
BigNumber,
} from '0x.js';
import {
Order,
Transaction,
} from 'db';
import {
coRedisClient,
redisClient,
} from 'redisClient';
import {
constructOrderRecord,
clearOrderWithMetaF... |
var lastDBMS=null;
var openTableScehema=null;
var currentDBQueryPanel="structure";
$(function() {
$("#pgtoolbar .onsidebarSelect").hide();
$($("#pgtoolbar .navbar-right>li")[0]).addClass("active");
$('#componentTree').delegate(".list-group-item input[name=selectFile]","change",function() {
listItemAttr();
});
... |
import React, { useMemo, useRef } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { get } from 'lodash';
import { useHistory } from 'react-router';
import { useStripes } from '@folio/stripes/core';
import {
Accordion,
AccordionSet,
AccordionStatus,
checkS... |
// server.js
// where your node app starts
//TODO: massive refactoring, this code is a goddamn mess
const Jimp = require("jimp");
const fs = require('fs');
const https = require("https");
const querystring = require('querystring');
const express = require('express');
var app = express();
// https://www.last.fm/api/sh... |
let disableShare = () => {
if ($numOfPendingPhotos == 0) {
$('#newShare').attr('disabled', false);
} else {
$('#newShare').attr('disabled', true);
}
};
let $numOfPendingPhotos = 0;
let $numberOfPhotos = 0;
window.addEventListener('DOMContentLoaded',()=> {
let image = document.getElemen... |
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var middleware = './middleware/middleware';
var stormpath = require('express-stormpath');
var Eventbrite = require('eventbrite-node');
var config = require('../config/eventbrite');
... |
import 'd3-transition';
import {select} from 'd3-selection';
import {max} from 'd3-array';
import {
stratify,
pack as packFactory
} from 'd3-hierarchy';
import {scaleSqrt} from 'd3-scale';
import {
CLUSTERS_VOLUME_CUTOFF,
nodeColor,
anomalyColor
} from '../parameters';
import {brighten1} from '../utils';
import {
... |
$( document ).ready(function() {
});
var body = document.body
// *********************************************************************Home page
// Home elements
var homeTitle = $("<div class='page-heading'>Coding Quiz Challenge</div><hr>")
var welcomeText = $("<p id = 'welcomeText' class = 'centerHomeText'>Welco... |
import { Fragment, useState, useEffect, forwardRef } from 'react'
import style from '../../styles/advertisement/ads'
import {
Button,
Slide,
DialogTitle,
DialogContentText,
DialogContent,
DialogActions,
Paper,
Grid,
Dialog,
Link,
} from '@material-ui/core'
import General from '../template/general'
import { ma... |
const url = require('url');
const Conf = require('conf');
const got = require('got');
const cheerio = require('cheerio');
const { getGitRootDirPath } = require('./git-cmd');
const { JOB_TYPE } = require('../config');
const { debug } = require('./log');
const StreamProgressiveText = require('./stream-progressive-text'... |
/* ============================================================================
core.js Version 1.0.3
Melville core JS module. Functions used and shared by different JS modules + common ready().
Last Modified: July 11, 2017
Copyright (c) 2017 by <NAME> & Sons, Inc.
===================================================... |
/*
* Copyright 2013-2014 The MITRE Corporation, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this work except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
import React from 'react';
import {
Text,
StyleSheet,
View,
TextInput,
Image,
TouchableOpacity,
Keyboard,
} from 'react-native';
import AppContext from '../../AppContext';
import {isEmpty, JQ} from '../../utils';
import Timer from '../../utils/timer';
import AppButton from '../appbutton';
const BLUR_OPAC... |
import React, { Component } from 'react'
import moment from 'moment'
import { submitWantedShift } from './UserFunctions'
import { withRouter } from 'react-router-dom'
class EditPreferences extends Component {
constructor() {
super()
this.state = {
sunday:moment().day(7),
monday:moment(... |
var u = [];
var true_pos = [[0], [0]];
var est_pos = [];
var F = [];
var B = [];
var P = [
[10, 0, 0, 0],
[0, 10, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 1],
];
var H = [];
var Q = [];
var R = [];
var err1 = 36;
var err2 = 9;
var err_input = 1.5;
var Z_mem = [[0], [0], [0], [0]];
var Z = [[0], [0], [0], [0]];
export fu... |
import React, { Component } from "react";
import ReactTable from "react-table";
import {
TabContent,
TabPane,
Nav,
NavItem,
NavLink,
Card,
Button,
CardTitle,
CardText,
CardBody,
Row,
Col,
Breadcrumb,
BreadcrumbItem,
Badge,
Modal,
ModalHeader,
ModalBody
} from "reactstrap";
import cla... |
const events = require('events');
const net = require('net');
const sqlite3 = require('sqlite3').verbose();
const sha1 = require('sha1');
const chatsrv_db = new sqlite3.Database('cmdline_chat', sqlite3.OPEN_READWRITE, (err)=> {
if (err) {
console.error(err.message);
... |
import React from "react";
import MaterialTable from "material-table";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import ListItemIcon from "@material-ui/core/ListItemIcon";
import ListItemText from "@material-ui/core/ListItemText";
import NotesIcon from "@material-ui/i... |
// CORE ////////////////////////////////////////////////////////////////////////////////
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
function showTab(n) {
// This function will display the specified tab of the form...
var x = document.... |
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var dist = {
"root": "./dist/... |
import React, { useEffect, useState } from 'react';
import { postData } from "service/Common";
import $ from 'jquery';
import LineChart from "../components/LineChart/LineChart";
import { useDispatch, useSelector } from "react-redux";
import { getReporOptiontData } from "actions/ReportsActions";
import DatePicker from "... |
$(".slider.main-slider").slick({
autoplay: true,
dots: true,
prevArrow:"<img class='a-left control-c prev slick-prev' src='images/banner_arrow.svg'>",
nextArrow:"<img class='a-right control-c next slick-next' src='images/banner_arrow.svg'>"
});
function limit_text(text_obj, limit_n... |
import React, { Component } from 'react';
import {withRouter} from "react-router-dom";
import {connect} from "react-redux";
import './Events.scss';
import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";
import TableCell from "@material-ui/core/TableCell";
import TableBod... |
/**
* 框架(iframe)内操作js
*/
const moocConfig = require('../config');
/**
* 开始监控暂停,自动重新播放
*/
window.monitorPlay = function (playOver, config) {
var timer = setInterval(function () {
var player = document.querySelector('#video_html5_api');
if (player == undefined || player == null) {
retu... |
import RopeSequence from 'rope-sequence'
import { Mapping } from '../prosemirror-transform'
import { Plugin, PluginKey } from '../prosemirror-state'
const max_empty_items = 500;
class Branch {
constructor(items, eventCount) {
this.items = items;
this.eventCount = eventCount;
}
popEvent(state, preserveI... |
require('gmaps-marker-clusterer');
const $ = require('jquery'),
Marker = require('./marker');
const $window = $(window);
const DEFAULT_OPTIONS = {
apiKey: null,
fit: true,
fitZoom: -1,
fitZoomMin: 0,
fitZoomMax: 20,
markerEmptyZoom: '3',
spread: 0,
};
const DEFAULT_MAP_OPTIONS = {
... |
<!--
//BCI Fn
ie = (document.all)? true:false
n6 = (document.getElementById)? true:false
var keycode;
function enter_key_trap(e)
{
var keyPressed;
if (document.layers) {
keyPressed = String.fromCharCode(e.which);
} else if (document.all) {
keyPressed = String.fromCharCode(window.ev... |
const animals = [
'aardvark',
'aardwolf',
'albatross',
'alligator',
'alpaca',
'amberjack',
'amphibian',
'anaconda',
'anchovy',
'angelfish',
'anglerfish',
'ant',
'anteater',
'antelope',
'antlion',
'ape',
'aphid',
'argus',
'armadillo',
'asp',
'axolotl',
'baboon',
'badger',
'bandicoot',
'barb',
'barbel',
'barnacle',
'bar... |
// @depends(env/style)
// @depends(env/settings)
const CHAR = 1
const FACE = 2
const BACK = 3
const CFACE = 4
const CBACK = 5
const MODE = 6
const FX = 7
const df = {
name: 'textMode',
border: 0.05,
font: env.style.font,
cellWidth: env.style.cellWidth,
cellHeight: env.style.cellHeight,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.