text stringlengths 3.22k 29.5k |
|---|
var Yoff = 40,
pal2color = new Uint16Array([0, 65535, 2047, 50712], 0, 2),
buf = Graphics.createArrayBuffer(240, 50, 2, {
msb: !0
}),
candraw = !0;
function flip(a, c) {
g.drawImage({
width: 240,
height: 50,
bpp: 2,
buffer: a.buffer,
palette: pal2colo... |
/**
* @param {string[]} s
* @return {string}
*/
const sortString02 = function (s) {
s = s.split('').sort();
let res = [];
for (const sKey in s) {
res[res.length++] = new Array()
for (let i = 0; i < s.length; i++) {
if (s[i] <= s[i + 1]) {
if (res[res.length -... |
const fs = require('fs');
const helpers = require('./helpers.js');
const ingestion = require('./ingestors/ingestion.js');
var markup = require('./templates/syTemplate.js');
const alertHelper = require('./templates/alert.js');
const alert = require('./templates/alert.js');
const eachSeries = require('async').eachSeries
... |
import React from 'react'
import { Container, Row, Col, Input, InputGroup, InputGroupAddon, InputGroupText, Button,
ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem,
Collapse, Card, CardHeader, Alert } from 'reactstrap';
import Badge from 'react-bootstrap/Badge'
import CardList from './CardList'
imp... |
const pako = require("pako");
const MicroEvent = require("./libs/MicroEvent.js");
const Sprite = require("./SpriteObject");
const ClassIcon = require("./ClassIcon");
class State {
constructor(canvas, spritePackage) {
this.canvas = canvas;
this.context = canvas.getContext("2d");
this.spritePackage = spritePackag... |
const timestampFormat = "DD MMM YYYY HH:mm"
class OrgaLog {
constructor() {
this._date_range = undefined;
this._date_field = undefined;
this._value_range = undefined;
this._data = [];
this._data_index = [];
this._date_fields = [];
this._deduped = false;
... |
class ZTerm {
constructor(root_node, config) {
config = config || {}
let cnv = document.createElement('canvas');
this.rows = 0;
this.cols = 0;
this.cell_w = 0;
this.cell_h = 0;
this.dungeon_offset_col = config['dungeon_offset_col'] || 0;
this.dungeon_offset_row = config['dungeon_offset_row'] || 0;
... |
#! /usr/bin/env node
'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 = tru... |
goog.require('Matrix.Cells')
goog.require('Matrix.Model')
goog.require('Matrix.mxWeb')
goog.require('Hiring.usernote')
goog.require('Hiring.jobDomParse')
goog.provide('Hiring.jobLoader')
// --- loading job data -----------------------------------------
const SEARCH_MO_IDX = 0;
function pickAMonth() {
return div(... |
/* This example requires Tailwind CSS v2.0+ */
import React, { Fragment } from "react";
import { Link } from "gatsby";
import { Popover, Transition } from "@headlessui/react";
import {
BookOpenIcon,
CollectionIcon,
ExclamationCircleIcon,
MenuIcon,
MusicNoteIcon,
PlusCircleIcon,
QuestionMarkCircleIcon,
X... |
/**
* Module for global and app configs.
*
* @name config
*/
'use strict';
require('./deps.js');
var yaml = require('./../util/yaml.js');
var path = require('path');
var os = require('os');
var fs = require('fs');
var env = require('./env.js');
var log = require('./log.js');
var _ = require('lodash');
// Constan... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var coffee_lex_1 = require("coffee-lex");
var nodes_1 = require("decaffeinate-parser/dist/nodes");
var canPatchAssigneeToJavaScript_1 = require("../../../utils/canPatchAssigneeToJavaScript");
var getAssigneeBind... |
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 kickWaveform, kickFFT, kickInitialWaveform;
var snareWaveform, snareFFT, snareInitialWaveform;;
var bass, bassWaveform, bassFFT, bassInitialWaveform;;
var piano, pianoWaveform, pianoFFT, pianoInitialWaveform;;
var stepIndex = 0;
var nSteps = 16
var beat = nSteps/8;
var BPMfac = 6.;
var currentPreset = 2;
var ton... |
var virusTooltip = d3.tip()
.direction('se')
.attr('class', 'd3-tip')
.offset([0, 12])
.html(function(d) {
string = "";
// safe to assume the following attributes
if (typeof d.strain != "undefined") {
string += d.strain;
}
string += "<div class=\"smallspacer\"></div>";
string += "<div class=\"smal... |
import React from 'react';
import { Component } from 'react';
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
import { makeStyles } from "@material-ui/core/styles";
import Link from '@material-ui/core/Link';
import InputAdornment from "@material-ui/core/InputAdornment";
// @material-ui/icons
import Ema... |
"use strict";
//on load restore input data from local storage
window.onload = restore;
function calculate() {
//find elements by 'id'
var amount = document.getElementById('amount');
var apr = document.getElementById('apr');
var years = document.getElementById('years');
var zipcode = document.getEl... |
const fs = require('fs');
const path = require('path');
const util = require('util');
const _ = require('lodash');
const AWS = require('aws-sdk');
const slugify = require('slugify');
const debug = require('debug')('mini-s3');
const async = require('async');
const {sanitizeArray,peek} = require('@utilities/array');
co... |
import React from "react";
import Grid from "@material-ui/core/Grid";
import Container from "@material-ui/core/Container";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import withStyles from "@material-ui/core/styles/withStyles";
import firebase from "firebase";
im... |
import React, { useEffect, useState } from "react";
import "./style.css";
import GoogleMapReact from "google-map-react";
import MapPinIcon from "../Icons/MapPinIcon";
import MapPinNewIcon from "../Icons/MapPinNewIcon";
import XIcon from "../Icons/XIcon";
import MriIcon from "../Icons/MriIcon";
import HospitalIcon from ... |
'use strict';
var path = require('path');
var util = require('util');
var format = util.format;
var findit = require('findit');
var fs = require('fs-extra-promise');
var uuid = require('node-uuid');
var randomString = require('randomstring');
var Promise = require('bluebird');
// ponyfills
var ... |
import { themes } from "./ace-themes";
const ace = require("ace-builds/src-min-noconflict/ace");
require("ace-builds/webpack-resolver");
require("ace-builds/src-min-noconflict/ext-language_tools");
require("ace-builds/src-min-noconflict/ext-error_marker");
ace.config.set("basePath", "modules/AceEditorVTT/scripts/");
co... |
import React from 'react';
import {connect} from 'react-redux';
import bridge from '@vkontakte/vk-bridge';
import axios from 'axios';
import {closePopout, goBack, openModal, closeModal, openPopout, setPage} from '../../store/router/actions';
import {
Avatar,
Banner,
Group,
Panel,
PanelHeader,
... |
'use strict'
const plugin = require('./package'),
Noble = require('@abandonware/noble'),
EventEmitter = require('events').EventEmitter
var Homebridge, Service, Characteristic
module.exports = function(homebridge) {
console.log("Homebridge API version: " + homebridge.version)
Homebridge = homebridge
Service... |
"use strict";
import React from 'react';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import { RestMixin } from './rest';
import { queryKeyValue, curator_page } from './globals';
import { Form, FormMixin, Input } from '../libs/bootstrap/form';
import { Panel } from '../libs/bootstrap/p... |
/* This code is from
https://github.com/mapbox/polylabel/blob/master/polylabel.js
with
https://github.com/mourner/tinyqueue/blob/master/index.js
*/
class Queue {
constructor(data = [], compare = defaultCompare) {
this.data = data;
this.length = this.data.length;
this.compare = compare;
if (this.... |
//@ts-check
let assert = require('assert'),
{ AssertionError } = assert;
module.exports = {
Assert, Invoke
};
/** @param {any} value */
function Assert(value) {
let throwAssertionError = (message, expected, actual) => {
throw new AssertionError({ message, expected, actual }) };
let chains = {
get and() { r... |
import { Scene, Color, Vector3, Box3, Box3Helper, Clock } from 'three';
import { Sheep1, Desert, Bordered_Mountains, S_Mountains, Gun, Cowboy, Ball, Wolf1, Phoenix, Birds, Barn, Cactus, Windmill, Pointer} from 'objects';
import * as THREE from 'three';
import { BasicLights } from 'lights';
import { globals } from '../.... |
var onloads = []
var tabQueue = []
function toggle(a, b) {
if(a) document.getElementById(a).style.display = document.getElementById(a).style.display == "none" ? "block" : "none"
if(b) document.getElementById(b).style.display = document.getElementById(b).style.display == "none" ? "block" : "none"
}
function trim(str... |
import React, { memo } from 'react'
import PropTypes from 'prop-types'
import './styles.scss'
import ButtonContainer from '../../ButtonContainer'
const PageInformation = (props) => {
const { handleClick, path, direct, inChat, channelName } = props
let text = ''
let page
const regexForProfileLink = /\/profile\/... |
/**
* Websocket client that can reconnect on failure
*
* Please note that this file is refactored from https://github.com/virushuo/mixin-node/blob/master/ws-reconnect.js
* Debug feature is added
*
* Data Structure for Mixin WebSocket Message Object (named as `msgObj` in following context)
*
* {
* id: 'e1e850... |
import {readCgats} from "./cgats";
import {from, min, max, cross, product, mapMany, sum} from 't-matrix';
import {camcat_cc, makeTesselation, mapRows, XYZ2Lab, find} from "./util";
export function fromCgats(file, opts) {
const g = readCgats(file);
const RGBp = ['RGB_R', 'RGB_G', 'RGB_B'], XYZp = ['XYZ_X', 'XYZ_Y',... |
/*jshint esversion: 6 */
const GameStage = { PLANET: 0, JUMPINGOUT: 1, JUMPINGIN: 2 };
Object.freeze(GameStage);
class GameState {
constructor() {
"use strict";
this.step = 0;
this.stage = GameStage.PLANET;
this.encounters = {};
this.usedEncounters = [];
this.visitedPlanets = 0;
this.explor... |
export const INIT_SETUP = "INIT_SETUP";
export const RECEIVE_NEW_CURRENCY = "RECEIVE_NEW_CURRENCY";
export const RECEIVE_NEW_VALUE = "RECEIVE_NEW_VALUE";
export const ADD_CURRENCY = "ADD_CURRENCY";
export const REMOVE_CURRENCY = "REMOVE_CURRENCY";
export const SET_ERROR = "SET_ERROR";
export const REMOVE_ERROR = "REMOV... |
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode as createBaseVNode, toDisplayString, createTextVNode, unref, createVNode, Fragment, pushScopeId, popScopeId, createStaticVNode, watch, withDirectives, vModelSelect, renderList, isRef, createApp } from './__federation_shared_vue.js';
import... |
var guysQuestions = [{prompt: "What is Bob's real age?", choices: ["Too old to care", 65, "Science can't measure back that far", 56, "Go ahead, ask him"], correctAnswer: 4},
{prompt: "Bob's personality is best described as:", choices: ["Cuddly", "Loveable", "Huggable", "Snuggly", "Nuzzlebug"], correctAnswer: 4},
... |
const FIRST_UPDATE=1000,
DNS_REFRESH_TIME=60000; // 60sec
var events = require('events'),
moment = require('moment'),
url = require('url'),
querystring = require('querystring'),
util = require('util'),
dns = require('dns'),
debug = require('debug')('server'),
debugSend = require('deb... |
"use strict";
/**
* @event
* Handles errors generated by the application.
* @param {String} message Error message
* @param {String} source File where the error occurred
* @param {number} lineno Line containing the instruction that generated the error
* @param {number} colno Column containing the statement that g... |
var opbeat = require('opbeat').start();
var root = require('root');
var pejs = require('pejs');
var send = require('send');
var cookie = require('cookie');
var param = require('param');
var fs = require('fs');
var req = require('request');
var qs = require('querystring');
var JSONStream = require('JSONStream');
var pu... |
import Phaser from "phaser";
let cat;
let highScore = 0;
let score = 0;
let health = 5;
let healthPercentage = 1;
class MyGame extends Phaser.Scene {
constructor() {
super();
this.gameOver = false;
this.playedBefore = false;
}
preload() {
this.load.spritesheet("cat", "./src/assets/pusheenWalk.p... |
"use strict";
var Enum = require("node-opcua-enum");
var assert = require("node-opcua-assert");
var makeNodeId = exports.makeNodeId = require("node-opcua-nodeid").makeNodeId;
var NodeIdType = exports.NodeIdType = require("node-opcua-nodeid").NodeIdType;
var NodeId = require("node-opcua-nodeid").NodeId;
var ExpandedN... |
var SonosDiscovery = require('sonos-discovery');
var discovery = new SonosDiscovery();
setTimeout(function() {
console.log('########');
var masterPlayer;
for (var uuid in discovery.players) {
var player = discovery.players[uuid];
var simple = player.convertToSimple();
if(simple.coordinator... |
// 🎌 IMPORT MODULES, COMPONENTS AND WHATNOT. CREATE THE VUE INSTANCE 🎌
// import Vue from 'vue'
// import WebFont from 'webfontloader'
// import Marked from 'marked'
// import App from '../components/app.vue'
// 🎌 GOOGLE FONTS, CAUSE TYPOGRAPHY 🎌
// WebFont.load({
// google: {
// families: ['Alegreya:400,itali... |
import React, { Component } from 'react'
import { Segment, Image, Dropdown, Container, Button, Table, Header, Message } from 'semantic-ui-react'
// TODO revert back to the original lib, currently issues with google chrome
import domtoimage from '../../lib/dom-to-image.min.js'
import JsPdf from 'jspdf'
import moment fro... |
import { launch } from "puppeteer-stream";
import customConfig from "../utilities/customConfig.js";
import { log } from "../utilities/logger.js";
import { detectOsOption } from "./utils.js";
let Xvfb = require('xvfb')
let zoomObj = undefined
export const createZoomClient = async (messageResponseHandler) => {
var ... |
import { createElement } from 'react';
import marksy from 'marksy/components';
import { A, H1, H2, H3, H4, H5, P, Li, Ol, Ul, Hr, Code, Blockquote, ArticleHeader, Video } from '~/templates/global/styled';
import { Img } from '~/templates/content/styled';
import ContentTemplate from '~/templates/content/Template';
impo... |
import fs from 'fs'
import util from 'util'
import path from 'path'
import Primus from 'primus'
import UglifyJS from 'uglify-es'
import GenericServer from '../genericServer'
// server type
let type = 'websocket'
// server attributes
let attributes = {
canChat: true,
logConnections: true,
logExists: true,
send... |
import React, { Component } from "react";
import DataService from "../../Services/WebUserJobService";
import DataService1 from "../../Services/WebUserReviewService";
import '../../Css/JobDetail.css';
import { Link } from "react-router-dom";
import { ReactComponent as Logo } from '../../images/button_save.svg';
import ... |
/* javascript-obfuscator:disable */
/*
* Copyright 2017-2018 <NAME><<EMAIL>>.
* DICE Money Ltd.
*
* 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/license... |
/*
* $ Simply Countable plugin
* Provides a character counter for any text input or textarea
*
* @version 0.4.2
* @homepage http://github.com/aaronrussell/$-simply-countable/
* @author <NAME> (http://www.aaronrussell.co.uk)
*
* Copyright (c) 2009-2010 <NAME> (<EMAIL>)
* Dual licensed under the MIT (http://w... |
'use strict';
const Hoek = require('@hapi/hoek');
const Common = require('./common');
const Errors = require('./errors');
const internals = {};
exports.entry = function (value, schema, prefs) {
if (prefs) {
schema.checkPreferences(prefs);
}
const mainstay = {};
const settings = Common.pr... |
window.addEventListener("load", () => {
let input = false;
let credsBlock = document.querySelector(".creds-block");
let loginBtn = document.getElementById("login-btn");
loginBtn.addEventListener("click", () => {
credsBlock.style.display = "block";
setTimeout(() => {
credsBlock.classList.add("reve... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
// brings up a form for creating a financial plan
function showFinancialPlan() {
main.innerHTML = `
<div class="logimg">
<div class="body">
<body>
<form id="plan-form" >
<div class="signup">
<h2 class="ctitle">Setup a financial plan</h2>
... |
const header = document.querySelector('header');
const menuBtn = document.querySelector('.menu-btn');
const overlay = document.querySelector('.overlay');
const navMenuWrapper = document.querySelector('.nav-menu-wrapper');
const itemLink = document.querySelectorAll('.item-link');
const itemLinkFooter = document.querySe... |
const request = require('request');
const querystring = require('querystring');
const models = require('../models');
const { Account } = models;
const client_id = '960af2f158f047cd984342e083139399'; // Your client id
const redirect_uri = 'https://dsk6539-final-project.herokuapp.com/callback'; // Your redirect uri
con... |
const hashChecker = require('../../hash_checker');
const _ = require('lodash');
const request = require('request');
function getStreams(req, res, next) {
let stats = {};
this.sessions.forEach(function (session, id) {
if (session.isStarting) {
let regRes = /\/(.*)\/(.*)/gi.exec(session.publishStreamPath || ... |
var refEdgeColor = "rgba(0, 0, 255, 0.5)"
var checkEdgeColor = "rgba(255, 0, 0, 0.5)"
var hullEdgeColor = "rgba(0, 255, 0, 0.5)"
var edges = []
/**
* Removes all edges from the canvas
*/
function clearHull(two) {
if (edges.length == 0) { return }
for (var i in edges) {
two.remove(edges[i])
}
}... |
import React, { Component } from 'react';
import PageNavbar from './Components/PageNavbar.js';
import GraphTab from './Components/GraphTab.js';
//import HubspotFormNavbar from './Components/HubspotFormNavbar.js'
import Cookies from 'js-cookie';
//import HubspotForm from './Components/HubspotForm.js';
import * as Papa f... |
"use strict";
var switcher = document.getElementById('switcher');
var aniSwitcher = document.getElementById('animation-switcher');
var signal = document.getElementById('signal');
var aniSignal = document.getElementById('animation-signal');
var sun = document.getElementById('sun');
var sunShadow = document.getElementBy... |
// Babel-Config-> presets: es2015, babel-polyfill, stage-0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = EXPO;
var _parse = _interopRequireDefault(require("parse"));
var _npmlog = _interopRequireDefault(require("npmlog"));
var _expoServerSdk = _interopRequireDe... |
let selFilter, sliderSensitivity, sliderHue, sliderBrightness;
let buttonBN, btnOn = false;
let capture;
var mic, fft;
let bgColor = '#343434';
let bgColorWhite = '#ffffff'; //???
let spectrum;
const scaler = 8;
const scalerMin = 5;
let margin = 30;
function setup() {
createCanvas(780, 666, P2D); //780, 586 + 80px p... |
const _ = require("lodash");
const {promises: fs} = require("fs");
const mapping = require('../helpers/mapping');
const { getConfigVarOrThrow } = require('./config-utils');
/**
* @typedef {import('chakram').ChakramResponse} ChakramResponse
*/
const OUTPUT_PATH = getConfigVarOrThrow('integrationTests', 'outputPath')... |
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS206: Consider reworking classes to avoid initClass
* DS2... |
$(function ()
{
$('#example1').DataTable(
{
scrollY: '70vh',
scrollCollapse: true,
"lengthMenu": [[9, 25, 50, -1], [9, 25, 50, "Todo"]],
language:
{
processing: "En curso ...",
search: "Buscar:",
lengthMenu: "Mo... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
// libs
import React from "react";
import { withTranslation } from "react-i18next";
import { connect } from "react-redux";
import tinycolor from "tinycolor2";
import instance from '../../../backend/settings';
import 'lazysizes'
// local
import "./SearchPage.css";
import "../../Services/components/ServiceCategoryList.c... |
/**
* Created by czy on 2017/4/27.
*/
var simple_info;//股票列表
var page_max;//最大页数
var page_num;//当前页码
var page_index = 1;//当前页码所在分页栏的位置
var attr, key, key1, key2;//搜索属性,attr表示搜索的目标,key表示搜索的内容(精确搜索),key1和key2表示搜索的范围(范围搜索)
var flag = [1, 1, 1, 1];//记录排序的规则
var usrname;
//设置线程同步
$.ajaxSetup({
async: false
});
$(fun... |
'use strict';
/* global describe:false, it:false */
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var esc = require('./index.js');
var minimatch = require('minimatch');
var shouldMatch = function(file, pattern) {
var matches = minimatch(file, pattern)
if (!matches) {
var ms... |
import React, { Component } from 'react';
import PropTypes from "prop-types";
import { nonNullProperty } from "../../../Utils/utilFunctions";
import { fetchCones } from "../../../Utils/utilFunctions/fetchFunctions";
import { getItemName, parseConesItems } from "../../../Utils/utilFunctions/parseItems"
import { parseCon... |
/**
* Copyright (c) Areslabs.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
/**
* 样式适配模块,
*/
import {SCROLL, INNERTEXT, OUTERTEXT} from './styleType'
const AddPx = 1;
const AddPxORPercent = 2;
const RawValue = 3;
const st... |
/**
* Requires
*/
const path = require( 'path' );
const ucfirst = require( 'ucfirst' );
const { cfx } = require( '@squirrel-forge/node-cfx' );
const { cloneObject, mergeObject, isPojo } = require( '@squirrel-forge/node-objection' );
const { Exception, CliInput, Timer, Progress } = require( '@squirrel-forge/node-util'... |
'use strict';
var React = require('react/addons');
//var ReactTransitionGroup = React.addons.TransitionGroup;
// CSS
require('normalize.css');
require('../styles/main.css');
//获取图片信息
var imgDatas = require('../data/imagesData.json');
imgDatas = (function(imgArr){
for(var i =0,j = imgArr.length;i<j; i ++){
... |
"use strict";
var expat = require('node-expat');
class XMLUtils {
constructor(definition) {
this._definition = definition;
}
toXML(obj, rootName, indentation, optimizeEmpty = false, convertTypes = true) {
return _toXML(obj, this._definition, rootName, indentation, optimizeEmpty, convertTy... |
import React, { Component } from 'react';
import styled from 'styled-components';
import Img from 'gatsby-image';
import { ContentWrapper, ScalingH2, ScalingText } from 'helpers/sharedStyles';
const LocalWrapper = ContentWrapper.extend`
display: flex;
flex-direction: column;
position: relative;
z-index: 2;
m... |
let allCalenders =
// {
// maria: [
// {title: 'Night', date: '2018-09-29', start: '0:00', end: '6:00', level:0 },
// {title: 'Homework', date: '2018-09-29', start: '06:00', end: '8:00', level:0 },
// {title: 'Doctor with Max', date: '2018-09-29',start: '12:00', end: '13:... |
#!/usr/bin/env node
'use strict';
const path = require('path'),
fs = require('fs'),
logger = require('../logger');
let { exec, spawn } = require('child_process');
// the argument index for the packaging script
const ARGV_PROCESS_PACKAGING_SCRIPT_NAME = 2;
const REAL_PROJECT_ROOT = path.resolve(__dirname, '../'... |
import React from 'react'
import { useStaticQuery, Link, graphql } from 'gatsby'
import styled from 'styled-components'
import Img from 'gatsby-image'
import Menu from 'react-burger-menu/lib/menus/slide'
// import tagIcon from '../images/more-horizontal.svg'
import { useSiteTags } from '../hooks/tags'
import { useSite... |
var ws;
var url = "ws://127.0.0.1:4534";
var loadcontactData;
Ytg.Chart = {
Connection: function () {
return;
if ("WebSocket" in window) {
ws = new WebSocket(url);
}
else if ("MozWebSocket" in window) {
ws = new MozWebSocket(url);
}
else {
... |
import React, { useEffect, useRef, memo, useState } from 'react';
import ThreeSixty from '@ashivliving/threesixty-js';
import updateHotspots from '../utils/updateHotspots';
import ThreeSixtyHotspots from './ThreeSixtyHotspots';
import ZoomPan from './ZoomPan';
const styles = {
threeSixtyWrap: (allImagesLoaded) => ... |
function crearToque(x, y, p, t, primero) {
let toque = new Toque(x, y, p, t);
toque.primero = primero;
return toque;
}
var Trazo = function(indice = 0, peer = "", capa = null, pincel = null, tinta = null, factorOpacidad = 0, factorEscala = 0, rep = false, t = 0) {
this.indice = indice;
this.peer = peer;
... |
/*
*
* autor: lis
* create: Dec 16 15:26:09 2020
* modified: Dec 16 18:17:02 2020
*
* Создавать значения следующим образом:
* x = createValue(value_name);
* либо
* x = createValue(0); // 1
*
* Создавать выражения следующим образом:
* root = new Node(Operation.OR, leftnode, rightnode);
* root =... |
import React, { Component } from 'react'
import Form from "react-jsonschema-form"
import _isObject from 'lodash/isObject'
import _isNumber from 'lodash/isNumber'
import _isString from 'lodash/isString'
import _isEmpty from 'lodash/isEmpty'
import _omit from 'lodash/omit'
import _each from 'lodash/each'
import _filter f... |
import React, { useMemo, useRef, useState, useCallback } from 'react'
import ReactDataGrid from 'react-data-grid'
import { Overlay, OverlayTrigger } from 'react-bootstrap'
import classNames from 'classnames'
import { getTypeName, dateFormats } from '@rawgraphs/rawgraphs-core'
import S from './DataGrid.module.scss'
impo... |
import fs from 'fs-extra';
import ora from 'ora';
import os from 'os';
import path from 'path';
import pIf from 'p-if';
import pRetry from 'p-retry';
import pTap from 'p-tap';
import pWaitFor from 'p-wait-for';
import Cli from '../Cli';
import download from './Download';
import Client from './IPC/Client';
import Launch... |
'use strict';
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && o... |
class TextFile {
constructor(filename_, onload_ = null) {
this.filename = filename_;
this.lines = [];
}
}
class TextBox {
constructor(parent_) {
this.dom = document.getElementById("textBox");
this.text = "";
this.initEvents();
this.parent = parent_;
this.dictionary = this.parent.s... |
// Node Modules
import React, { useState, useContext, useEffect } from 'react';
import { withRouter, Link as RouterLink } from 'react-router-dom';
import { Container, Breadcrumbs, Link, Typography, Grid, Box } from '@material-ui/core';
import {
LocalOffer as LocalOfferIcon,
LocationOn as LocationIcon,
ThumbDown as T... |
const { can } = require('../helpers/can');
const { UserModel } = require('../getModels')();
const debug = require('../debug');
function get (req, res) {
can(req.user.email, req.params.id, data => {
if(data.error) debug(data.error, () => res.redirect('/'));
else {
let { project, member, ... |
import { Vector2D, BoundingBox } from "./types.js";
import { Block, Paddle, Ball } from "./objects.js";
/**
* Defines the main game controller object. Manages game state, user input and
* game objects.
*/
class Game {
/**
* Creates a game
* @param {Object} canvas - The canvas element for rendering
*/
... |
import React, { Component } from 'react';
import _ from 'lodash';
import * as M from 'mobx';
import {observer, Provider} from 'mobx-react';
import WSClient from './wsclient';
import {MasterStateStore} from './MasterStateStore';
import {MasterView} from './MasterView';
import Raven from 'raven-js';
import * as WSPinger ... |
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(window.document);
import ... |
/*
* This file is part of FacturaScripts
* Copyright (C) 2013-2019 <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your... |
var request = require('request')
, when = require('when')
, path = require('path')
, _ = require('underscore');
var appRoot = path.resolve(__dirname, '../../')
, paths = require(appRoot + '/core/paths');
var CPU = require(paths.stats + '/cpu');
exports.all = function(req, res) {
when.all(... |
"use strict";
/*
MIT License
Copyright (c) 2020 <NAME>, <NAME>, and <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... |
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]; } } } return target; };
require('../../../src/stylus/components/_text-fields.styl');
... |
//index.js
import { formatTime } from '../../utils/util'
//获取应用实例
const app = getApp()
const date = new Date;
// date.setDate(date.getDate() + 2);
const today = formatTime(date, { dateOnly: true, dateSeparator: '-' });
const treatments = [
{
name: '治疗雄激素导致脂溢性脱发',
prescriptions: [
{
name: 'VE'... |
/**
* @license
* 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 ... |
class Tree {
constructor(object) {
this.object = object;
}
get one() {
return this.translated_branch.one();
}
get permutations() {
return this.translated_branch.terminal_leaves();
}
get translated_branch() {
const translated_object = this.translate_main;
return new Branch(this, tran... |
console.log('hey')
// Electron
const { ipcRenderer, remote } = require('electron')
const path = require('path')
const isDev = require('electron-is-dev')
const himalaya = require('himalaya')
const cheerio = require('cheerio')
const moment = require('moment')
const domino = require('domino')
const { getMet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.