text stringlengths 3.07k 16k |
|---|
/**
*
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import {
Button,
Card,
Col,
Dropdown,
Form,
Icon,
Input,
Menu,
message,
Popconfirm,
Radio,
Row,
Select,
Tooltip,
} from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './T... |
var World = require('../../../src/goo/entities/World');
var TransformSystem = require('../../../src/goo/entities/systems/TransformSystem');
var CameraSystem = require('../../../src/goo/entities/systems/CameraSystem');
var ParticlesSystem = require('../../../src/goo/entities/systems/ParticlesSystem');
var BoundingUpdate... |
import {
HUE_STRUCTURES,
wrapAround,
nameHue,
funnel,
} from 'luum'
import getRandomInt from '../util/getRandomInt'
import numberedName from '../util/numberedName'
const getDerivedContent = () => ({})
export default (hues, setHues, colors, applyChangesToColors) => {
const changeHue = (change, workingHues) =... |
import chunk from 'lodash.chunk';
import deepAssign from '../util/deep-assign';
import errors from './errors';
import jsonp from 'jsonp';
import Promise from 'promise';
import qs from 'qs';
const debug = require('debug')('recurly:Request');
/**
* XHR/XDM Reference, according to browser environment
*/
const XHR = ((... |
// =============================================================
const userToken = sessionStorage.getItem('x-access-token');
// select all elements need from the page
const form = document.querySelector('form');
const userLocation = form.querySelector('.location');
const destination = form.querySelector('.destination'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("va... |
var express = require('express');
var bodyParser = require('body-parser');
const bitcoin = require('bitcoinjs-lib');
const bitcoinMessage = require('bitcoinjs-message');
const SHA256 = require('crypto-js/sha256');
const db = require('./database');
const { Block, Blockchain } = require('./simpleChain');
var app = exp... |
import React, { useState, useEffect } from "react"
import Logo from "./logo.js"
import { injectIntl, Link, FormattedMessage } from "gatsby-plugin-intl"
import { changeLocale } from "gatsby-plugin-intl/link"
const LanguageSwitcher = ({ invert, intl: { locale } }) => {
const activeClass = "has-text-weight-bold"
ret... |
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "itemGridLayout";
arguments[0] ? arguments[0]["__parentSymbol"] : null;
arguments[0] ? arguments[0]["$model"] : null;
arguments[0] ? arguments[0]["__itemTem... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createReplyEditActivity = exports.createEditActivity = exports.createReplyActivity = exports.createRootActivity = exports.determineActivityType = exports.getIsActivityOrphaned = exports.sanitizeActivity = exports.isDeleteActivity = ... |
/*//////////////////////////////// ABOUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\
DATASTORE
stub for testing module loading
eventually will load data from database
data.json is { nodes: [ {} ... {} ] }
\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ * //////////////////////////////////////*/
const DBG = { load: t... |
import { EventEmitter } from 'events';
import { normalize, trimStart, assert } from '../helpers';
const RetryMax = 5;
const LockFlag = 0x2ddccbc058a50c18;
const LockTTL = 20;
class Store {
constructor (options = {}) {
try {
options.promisify = fn => {
return new Promise((resolve, reject) => {
... |
/*
Copyright 2020 Dynatrace LLC
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 writing, software distri... |
/*
* @Date: 2020-04-14 12:47:01
* @Author: goEval
* @LastEditors: goEval
* @LastEditTime: 2020-06-20 08:33:12
* @FilePath: \NovelsDown\downtxthtml.js
* @Github: https://github.com/heqyou_free
*/
const cheerio = require('cheerio');
const program = require('commander');
const querystring = require('querystring');
... |
function ConverToDate(sTimestamp) {
var date = new Date();
if (("" + sTimestamp).length <= 10) {
date = new Date(sTimestamp * 1000);
} else {
date = new Date(sTimestamp);
}
var sYear = date.getYear() + 1900;
var sMonth = date.getMonth() + 1;
var sDate = date.getDate();
v... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const skynode_1 = require("@hanul/skynode");
const marked_1 = __importDefault(require("marked"));
const ... |
/*
* orbit.js: Class representing an orbit
*/
/**
* Class representing an orbit
*/
import Plotly from 'plotly'
import { call as potcall, rectforce } from '../potential/potential'
import { leapfrog } from '../util/ode'
import { default as array } from '../util/array'
import { default as coords } from '../util/coord... |
import React, { Component } from 'react'
import MovieReviewsContract from '../build/contracts/MovieReviews.json'
import getWeb3 from './utils/getWeb3'
import './css/oswald.css'
import './css/open-sans.css'
import './css/pure-min.css'
import './App.css'
class App extends Component {
constructor(props) {
super(pr... |
import React from "react"
import { navigate } from "gatsby"
import debounce from 'lodash.debounce'
// import lozad from 'lozad'
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'
import { toggleDarkMode } from '../containers/products/actions'
import Layout from "../components/layout"
... |
'use strict';
var IMAGE_DATA = 'imageData';
var randomImages = [];
var imageStorage = [];
var oldProducts = [];
var clickCounter = 0;
var MAX_CLICK_COUNTER = 5;
var placeholder0 = document.getElementById('placeholder-0');
var placeholder1 = document.getElementById('placeholder-1');
var placeholder2 = document.getEleme... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const mimeTypes = require('mimetypes');
// Reference: https://firebase.google.com/docs/functions/write-firebase-functions
//
// For example:
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsuma... |
var alarms={};
var notifs= {};
var alarmSeen=false;//xhr for alarms not made yet
var id='';
var theTemplateScript = document.getElementById('content').innerHTML;
var theTemplate = Handlebars.compile(theTemplateScript);
var theCompiledHtml = theTemplate();
document.getElementById('root').innerHTML=theCompiledHtml;
va... |
var superagent = require('superagent')
, cheerio = require('cheerio')
, mysql = require('mysql')
, assert = require('assert')
, EventEmitter = require('eventemitter3')
, util = require('./utils/stringfy')
, fs = require('fs')
, path = require('path')
, sites = require('./sites');
const DB_STR = 'mongod... |
var utils = require("./utils");
var async = require("async");
/**
* Buffers the output of a readable stream and makes it readable in a predictable manner.
*
* @param stream {Readable Stream|Buffer|String} The stream to read from
*/
var BufferedStream = function(stream) {
this.__buffer = new Buffer(0);
this.__end... |
const fs = require('fs');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: true,
});
/** Default indicies and file names for easier testing */
const DEFAULT_WEATHER_COLUMNS = 'Dy, MnT, MxT';
const WEATHER_DATA_DEFAULT_NAME = 'weath... |
import React, { useState } from "react";
import { useHistory } from "react-router-dom";
import { useUserDispatch, loginUser } from "../../Context/UserContext";
import {
Card,
makeStyles,
Typography,
Snackbar,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
DialogContentText,
T... |
// annotations are as much for myself as anybody else. I'm still learning - maybe somebody else will learn from my madness, also.
var b = ["#green", "#red", "#blue", "#yellow"]; // our button IDs
$("[name='switch']").bootstrapSwitch(); // on-off switch using http://bootstrap-switch.org
$('input[name="switch"]').on('s... |
function from_dict(state) {
const cards = state.currentPlayer.cards;
const card_vis = state.currentPlayer.cardVisibilities;
const card_permissions =
state.currentPlayer.cardPermissions || new Array(cards.length).fill(true);
const cards_at_hand = cards.filter((x, i) => card_vis[i]);
const trump = state.tr... |
import accordion from "./accordion";
import button from "./button";
import checkbox from "./checkbox";
import container from "./container";
import field from "./field";
import grid from "./grid";
import input from "./input";
import link from "./link";
import list from "./list";
import radioGroup from "./radioGroup";
im... |
/**
* Convert array buffer to base64 string
* @param {ArrayBuffer} arrayBuffer
*/
function base64ArrayBuffer(arrayBuffer) {
let base64 = '';
const encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
const bytes = new Uint8Array(arrayBuffer);
const byteLength = bytes.byteLength;
... |
'use strict';
const http = require('http');
const path = require('path');
const util = require('util');
const fs = require('fs');
const chalk = require('chalk');
const mime = require('mime');
const stat = util.promisify(fs.stat);
const readdir = util.promisify(fs.readdir);
// const warning = (message) => chalk`{yell... |
/*
* This is inspired by the CodeIgniter user guide's create_menu function.
* http://codeigniter.com/user_guide/nav/nav.js
*
* It extracts the navigation to a single file for easier updating.
*/
//define document navigation
var nav = {
"Basic": {
"Home": "index.html",
"Requirements": "requirements.html"... |
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function getGraph(jdata) {
var timeFilterVal = 3;
var allDevices = [];
var i = 0;
var price = [];
var totalPriceArray = Array();
var devicesName = [];
var plot2;
var lvlChangePoint = Array();
var myArrayPoi... |
var skills = {
"image": "images/skills.jpg",
"description": ["Electronics Technician - Studying for HNC in Electrical & Electronic Engineering",
"Front-end webpage development using;<ul><li>JavaScript</li><li>HTML</li><li>CSS</li><li>jQuery</li><li>Bootstrap</li></ul>",
"Writing Java code using ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.renderMiddleware = renderMiddleware;
var _vueBundleRenderer = require("vue-bundle-renderer");
var _devalue = _interopRequireDefault(require("@nuxt/devalue"));
var _config = require("./config");
var _paths = require("./paths");
... |
function getCookie(c_name) {
if (document.cookie.length > 0) {
var c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1) {
c_start = c_start + c_name.length + 1;
c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1) {
c_end = document.cookie.length;
}
return unescape(doc... |
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
class Game {
constructor(numMines=20, size=10) {
this.state = {
numMines: numMines,
size: size,
allCoords: [],
... |
const URL = " https://gist.githubusercontent.com/josejbocanegra/9a28c356416badb8f9173daf36d1460b/raw/5ea84b9d43ff494fcbf5c5186544a18b42812f09/restaurant.json"
function getRequest(url) {
let promise = new Promise((resolve, reject) => {
let req = new XMLHttpRequest();
req.open('GET', url);
... |
const passport = require('passport');
const GoogleStrategy = require('passport-google-oauth20').Strategy;
const FacebookStrategy = require('passport-facebook').Strategy;
const keys = require('./keys');
const User = require('../models/user-model');
const LocalStrategy = require('passport-local').Strategy;
const swal = r... |
const { blurple } = require("../config.json")
const Discord = require("discord.js")
module.exports = {
name: "check",
description: "Shows information about the specified user.",
aliases: ["user", "userinfo", "czech"],
usage: "+check [user]",
roleWhitelist: ["768435276191891456", "551758391127834625", "748269... |
const router = require('express').Router();
const { Product, Category, Tag, ProductTag } = require('../../models');
// The `/api/tags` endpoint
// find all tags
router.get('/', async (req, res) => {
// be sure to include its associated Product data
try {
const tags = await Tag.findAll({
include: [{
... |
import React from "react";
import { fade, makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import IconButton from "@material-ui/core/IconButton";
import Typography from "@material-ui/core/Typography";
import InputBase from "@ma... |
const db = require('./scouting.js');
const fs = require('fs');
//add_output's main job is to
async function add_output(connection, raw_data_output, all_done) {
if (!raw_data_output) {
console.error("No data");
all_done();
}
console.log("Inserting " + raw_data_output.length + " rows of data");
//raw_... |
function getDegAngle(x0, y0, x1, y1) {
const y = y1 - y0;
const x = x1 - x0;
return Math.atan2(y, x) * (180 / Math.PI);
}
function addClass(el, className) {
el.classList.add(className);
}
function removeClass(el, className) {
el.classList.remove(className);
}
const DECAY = 4;
const SPREAD = 50;
co... |
let leftKey = false;
let rightKey = false;
let upKey = false;
let downKey = false;
let spaceKey = false;
let ctrKey = false;
let lastMoveTime=0;
let moveIntervalTime = 15;
let touchX, touchY;
const initEventlistener=()=>{
addEventListener('keydown',keyPressed,false);
addEventListener('keyup',keyR... |
/*
Xpress Insight vdlx-datagrid
=============================
file vdlx-datagrid/data-loader.js
```````````````````````
vdlx-datagrid data loader.
(c) Copyright 2019 Fair Isaac Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in c... |
import Quill from 'quill'
Quill.debug('error')
const Delta = Quill.import('delta')
const Break = Quill.import('blots/break')
const Embed = Quill.import('blots/embed')
const Inline = Quill.import('blots/inline')
const Link = Quill.import('formats/link')
/*
* Support for shift enter
* @see https://github.com/quilljs/q... |
/**
* Module dependencies.
*/
const express = require("express");
const logger = require("morgan");
const requestId = require("express-request-id");
const cors = require("cors");
const fs = require("fs");
const swaggerUi = require("swagger-ui-express");
const tls = require("tls");
tls.DEFAULT_MIN_VERSION = "TLSv1";... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.debugDialog = exports.debugConsole = exports.stringifyArgument = exports.tracePublicAPI = export... |
'use strict';
import Icon from 'react-native-vector-icons/Ionicons'
import Detail from './detail'
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
ListView,
TouchableHighlight,
Image,
Dimensions,
ActivityIndicator,
RefreshControl
} from 'react-native';
import config from '.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var __1 = require("..");
var parse5 = require("parse5");
/*
input[type="radio"][disabled], fieldset[disabled] input[type="radio"],
input[type="checkbox"][disabled],
fieldset[disabled]
input[type="checkbox"],
.rad... |
// ==============MODULES==============//
const express = require('express')
const fs = require('fs')
const path = require('path')
const PrettyError = require('pretty-error')
const util = require('util')// Filesystem
const readFile = util.promisify(fs.readFile)// Util. for path
const readdir = util.promisify(fs.readdir)... |
// This module provides a routing table customized for use with the Mainline DHT. It is
// a variation of a binary sort tree, sorted according to closeness to the table id,
// using the exclusive-or operation to determine distance.
//
// The Table constructor creates a 'table' object containing a 'tree' for storing
// ... |
import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
import Image from '../components/image'
import Card from '../components/Card';
import Section from '../components/Section';
import staticdata from '../../staticdata.json';
import Cell from '../components/Cell';
const Ind... |
import encodeOpaqueId from "@reactioncommerce/api-utils/encodeOpaqueId.js";
import importAsString from "@reactioncommerce/api-utils/importAsString.js";
import insertPrimaryShop from "@reactioncommerce/api-utils/tests/insertPrimaryShop.js";
import Factory from "/tests/util/factory.js";
import { importPluginsJSONFile, Re... |
//This should take care of almost everything
//All recommendation requests have to be redirected here
var path = require('path');
var fs = require('fs');
var mongoose = require('mongoose')
// var tokenExtractor = require()
var publicKEY = fs.readFileSync(path.resolve( 'keys/public.key' ),'utf8');
const enc = re... |
import React, { useState } from "react";
import { isArray } from "../../../util/getters";
import ShowingOlderBuildsTag from "../ShowingOlderBuildsTag";
import bodyStyles from "./FeedItemBody.module.css";
import {
ArtifactCreatedAt,
ArtifactDownloadButton,
ArtifactDriver,
ArtifactFileSize,
ArtifactKindName,
... |
'use strict'
/*
███████████████████████████████████████████████████████████████████████████████
██******************** PRESENTED BY t33n Software ***************************██
██ ... |
//This is for more hint count use.
var hint;
var hintCount = 1;
$(document).ready(function(){
if ($('#totalQuestion').val() == 1) {
$('#next_button').addClass('finsh-btn orgng_btn');
$('#next_button').text('Finish');
}
$('body li #exploreMenu').addClass('active');
getNextQuestion(0);
... |
const uuidv1 = require('uuid/v1');
const problemUtils = require("./problemUtils.js");
const elo = require("./elo.js");
const chatUtils = require("./chat/chatUtils.js");
module.exports = class Game {
constructor(timePerProblem, problems, type) {
//Active users in game
this.users = [];
... |
const fs = require('fs');
const path = require('path');
const errCode = require('err-code');
const httpErrors = require('http-errors');
const ms = require('ms');
const {RateLimiterMemory, RateLimiterRes} = require('rate-limiter-flexible');
/**
* Place "=..." dirents last in the array.
* @param {Dirent} a
* @param {... |
var https = require('https');
var http = require('http');
var Watchdog = require('./watchdog');
var HttpAgent = require('agentkeepalive');
var HttpsAgent = HttpAgent.HttpsAgent;
HttpsAgent.prototype.getName = HttpAgent.prototype.getName;
function Upstream(upstreamURL, statsdClient, agentOpts) {
if (typeof upstreamUR... |
import store from "../lib/store";
var markdown = require("markdown").markdown;
import UiCommands from "./uiCommands.js";
import Operation from "./operation";
import { getColorMarker } from "./markerDialog";
var Wasabee = window.plugin.Wasabee;
export default function() {
//** This function adds all the portals to... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
'use strict';
const CreateStatelet = require("./base_statelet");
var StateBuilder = function(params, sequelize, db, logger, decorators, statelets, request, route, response) {
var m_Api = {};
... |
var util = require('util'),
simplemessages = require('simplemessages'),
simplefunc = require('simplefunc');
// http://stackoverflow.com/questions/307179/what-is-javascripts-max-int-whats-the-highest-integer-value-a-number-can-go-t
var MAX_INTEGER = Math.pow(2, 53)
function RemoteNode(name, st... |
import React, { useEffect } from 'react'
import { View, SafeAreaView, Image, Keyboard } from 'react-native'
import { Button, Layout, Text, CheckBox, Input, TopNavigation, TopNavigationAction } from '@ui-kitten/components'
import AsyncStorage from '@react-native-async-storage/async-storage'
import * as Application from... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BrandInterface = exports.BrandCreationResponse = exports.Brand = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descripto... |
function parse(text) {
var re = /\n(-+\n:: .*\n-+)\n/;
var re_begin = /^(-+\n:: .*\n-+)/;
var re_end = /(-+\n:: .*\n-+)$/;
var re_extract = /-+\n:: (.*)\n-+/;
var parts = text.split(re);
// sanity checks to remove empty splits that are no empyt lines
if (text.match(re_begin) && parts[0] === ... |
const express = require('express');
const pool = require('../modules/pool');
const userStrategy = require('../strategies/user.strategy');
const router = express.Router();
router.get('/', (req, res) => {
console.log('DB game GET request hit.')
pool.query(`WITH "not_my_games" AS (SELECT * FROM "game"
JOIN ... |
function openSidebar() {
var pgDiv = document.getElementById('page-container');
pgDiv.className = (pgDiv.className == 'sidebar-active') ? '' : 'sidebar-active';
}
function outputDataTo() {
var block = document.getElementById(arguments[0])
block.innerHTML = JSON.stringify(arguments[1], undefined, 4);
... |
var options = options || localStorage
/* Toggles the blocking state globally. */
function whitelistSite() {
whitelist = deserialize(options.whitelist) || {};
siteWhitelist = whitelist[domain] || (whitelist[domain] = {});
var disconnectWhitelist =
siteWhitelist.Disconnect || (siteWhitelist.Disconnect =... |
var category = "";
var urlHeur = "https://obchody.heureka.cz/";
var redirectData = [];
var domNew = "";
var subString = '<p><a href="https://www.heureka.cz/exit';
var arrayURLs = [];
var arrayURLs2 = [];
var arrayURLs3 = [];
var arrayURLs4 = [];
var testNum = 0;
var textNum = 0;
var textbox = document.getElementById('l... |
import L from 'leaflet';
import Counties from './countiesGeoJSON.js';
import { default as React, PropTypes } from 'react';
class Map extends React.Component {
constructor () {
super();
this.setupFeature = this.setupFeature.bind(this);
this.resetLayer = this.resetLayer.bind(this);
this.handleClick = t... |
/**
*
* Overview
*
*/
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { Paragraph, ... |
import assert from 'assert';
import {
calculateWinner,
getColorClass,
getSquareClasses,
getPlayerEmblemClasses,
} from '../src/helpers';
describe('calculateWinner', () => {
const initialSquares = Array(9).fill(null);
it('should return null when given initial empty squares', () => {
assert.strictEqual(... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.OfficeGraphDocumentApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogica... |
'use strict';
const url = require('url');
const EventEmitter = require('events');
const preambleData = new Array(2057).join('-') + '\n';
class SSEChannel extends EventEmitter {
constructor(options) {
super();
let opts = options || {};
let jsonEncode = (
typeof opts.jsonEncode === 'undefined' ?
... |
// Global Variables
// List of characters
let nintendoChars = ["mario", "luigi", "peach", "bowser", "toad", "blooper", "goomba", "yoshi", "boo", "waluigi", "wario", "toadsworth", "rosalina", "daisy", "koopalings", "birdo", "kamek", "toadette", "piranha", "koopa", "wiggler", "pokey", "morton"]
// Computer randomly pic... |
/******************************************************************************
*
* Copyright (c) 2018, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import {DateParser,... |
const axios = require("axios").default;
const dotenv = require("dotenv");
const result = dotenv.config();
async function algo(tab, jour) {
//ALGORITHME : traitement des coordonnées pour trouver le bowling équidistant
//Création de l'objet coordonnées
function CoordonnesAdresse(lat, lng) {
this.lat ... |
var stats, openerTabId;
chrome.storage.local.get('PlexiusStats', function(result) {
if (result.PlexiusStats) {
stats = result.PlexiusStats;
// console.log(stats);
init();
} else {
document.getElementById('error').style.display = 'block';
}
});
chrome.tabs.getCurrent(function(tab) {
openerTabId... |
import { cjk } from './reg'
import SIMP from './simp'
import Util from './util'
import View from './view.jsx'
const KEY = {
'74': 'j',
'75': 'k',
'72': 'h',
'76': 'l',
}
function isPicking( elem ) {
return ( elem instanceof Element ) ? elem.classList.contains( 'picking' ) : false
}
function pick(... |
$(document).ready(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$('#work-list').bootstrapTable({
method: 'get',
search: "true",
url: "/student/get-work-list",
pagination:"true",
pageList: [15, 30],
... |
/* eslint-disable react/jsx-one-expression-per-line */
import React, { Component } from 'react';
import styled from 'styled-components';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useToggle from 'react-use/lib/useToggle';
import { fromUnitToToken } from '@arcblock/forge-util';
import CircularProgress fr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _Dropdown = require("../Dropdown");
var _Icon = require("../Icon");
function _inter... |
import React, { PureComponent } from 'react';
import { stringify } from 'qs';
import Debounce from 'lodash-decorators/debounce';
import { connect } from 'dva';
import {
Modal,
Card,
Row,
Col,
Select,
Input,
Table,
Button,
DatePicker,
} from 'antd';
import { Link } from 'dva/router';
import PageHeaderL... |
import {ColorLog, describe, it, expect} from './../testutility.js';
import Input from './../input.js';
export function TestInput()
{
ColorLog("---------------- Testing Input System ----------------", "info");
testSimpleInput();
testPendingInput();
}
function testSimpleInput()
{
Input.ClearState();
describe(... |
var customAdditionalSubmitHandler = undefined;
var errorPlacementFn = function (error, element) {
if (!element.is('.selectized')) {
element.tooltip('destroy');
element.tooltip({
title: error.text(),
placement: 'bottom',
trigger: 'manual'
}).tooltip('show')... |
import { currentMember } from 'wix-members';
import { openLightbox, viewMode } from 'wix-window';
import wixData from 'wix-data';
import wixLocation from 'wix-location';
import wixStorage from 'wix-storage';
import { artistGalleryCollectionName, siteOwnerId } from 'public/constants';
/** @typedef {import('public/typ... |
const path = require('path');
const Zip = require('jszip');
const fetch = require('node-fetch');
const mongoose = require('mongoose');
const { Writable } = require('stream');
const { camelUpper, kebabCase, pluralKebab, pluralCamel } = require('./utils');
const { createWriteStream, promises: fs } = require('fs');
const ... |
import utils from 'heyui/utils/utils';
import Draggable from 'heyui/plugins/draggable';
const Default = {
type: 'dialog',
title: '',
content: '',
style: null,
class: null,
buttons: [],
hasMask: false,
closeOnMask: true,
hasCloseIcon: false,
timeout: 0,
width: false,
global: false,
noPadding: ... |
import React, { useState,useEffect, useContext } from "react";
import Modal from 'react-bootstrap/Modal';
import {Button, Form, Figure} from 'react-bootstrap';
import Axios from "axios";
import {useHistory} from "react-router-dom";
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
im... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import update from 'immutability-helper';
import { addFlashcardInBulk } from '../../../actions/index';
import {Button, Input, Form, Message, Grid, Icon, Divider} from 'semantic-ui-react';
import shortid from 'shortid';
class NewFlashcardF... |
console.log('deepwave-mo-custom.js init')
document.addEventListener('DOMContentLoaded', function(e){
handleMOClicks()
handleMOScrollMagic()
})
// #################################################################################
// ####################################################################... |
// snow.js by <NAME> (https://bramp.net)
//
// This file contains functions to handle device orientation.
//
const degToRad = Math.PI / 180;
// Direction of gravity determined from the deviceorientation API.
const gravity_from_deviceorientation = {
x: 1,
y: 0, // TODO Change this to be 1
z: 0.5,
}
// Direction o... |
/*
* Copyright (c) 2016, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, t... |
var content_sections;
var links;
var parsedData;
var mode;
var wordBox;
var inputBox;
var answerBox;
var currentPair = 0;
var currentWordColumn;
var currentFlashcard = 0;
var pairsConfirmed = [];
var cardContainer;
var cardFrontLabel;
var cardBackLabel;
function init(){
content_sections = document.getElementsByC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.