text stringlengths 3.22k 29.5k |
|---|
import React, { Component } from "react";
import ReactDOM from "react-dom";
import Link from "gatsby-link";
import styled from "react-emotion";
import FontAwesomeIcon from "@fortawesome/react-fontawesome";
import Img from "gatsby-image";
import Success from "../components/success.js";
const encode = data => {
return... |
/*
Legacy
Copyright (c) 2020 gonchan93
Released under the MIT license
https://raw.githubusercontent.com/gonchan93/Legacy/master/LICENSE
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) {... |
var uagent=navigator.userAgent.toLowerCase();
var isIE=uagent.indexOf("msie") > -1;
var isIP=uagent.indexOf("deviceip") > -1;
var isAndroid=uagent.indexOf("android") > -1;
var isSymbian=uagent.indexOf("symbian") > -1;
var isBada=uagent.indexOf("bada") > -1;
var isMobile=isIP || isAndroid || isSymbian || isBada;
... |
import React, {Component} from 'react';
import {Link, withRouter} from 'react-router-dom';
import {connect} from 'react-redux';
import debounce from 'lodash/debounce';
import isNil from 'lodash/isNil';
import {Image, Search,} from 'semantic-ui-react';
import {findQuestions, getSignedUrl, hideErrors, logout, updateActiv... |
import Board from './models/board';
import Player from "./models/player";
import ScoreBoard from "./ui/score_board";
import './lib/web_sockets';
import './lib/state';
import {createModal} from './lib/modal';
import {updateProgress} from './lib/progress';
import CursorPoint from "./models/cursor_point";
import Timer ... |
var pkg = require('./package.json');
var vCard = module.exports = {};
vCard.FOLD_AT_LENGTH = 75;
vCard.PRODUCT_ID = '-//simple-vcard//Version ' + pkg.version + '//EN';
vCard.toVCard = function (obj) {
var tmp = [];
tmp.push(vCard.pair('BEGIN', 'VCARD'));
tmp.push(vCard.pair('VERSION', '3.0'));
tmp.push(vCard... |
import React, { PropTypes, Component } from 'react';
import ControllerComponent from '../../common/ControllerComponent';
import config from '../../../config';
import logger from '../../../core/Logger';
import utils from '../../../utils/utils';
import _ from 'underscore';
import ObjectTypes, {Model} from '../../../cons... |
function createpost (obj, keys, compose) {
bog.publish(obj, keys).then(msg => {
bog.open(msg).then(opened => {
if (feeds[keys.substring(0, 44)]) {
if (opened.previous === feeds[keys.substring(0,44)][0].substring(0, 44)) {
var gossip = {feed: opened.author, seq: opened.seq}
dispat... |
//======================
// Homework Routes
//======================
// packages
const express = require('express');
const moment = require('moment');
const sanitizeHtml = require('sanitize-html');
const decode = require('unescape');
const mid = require('../middleware');
const fun = require('../functions');
// models... |
import Case from "case"
import {JSDOM} from "jsdom"
import {dirname} from "path"
import fetch from "node-fetch"
import {fileURLToPath} from "url"
import prettier from "prettier"
import {promises as fs} from "fs"
import TurndownService from "turndown"
const td = new TurndownService({
strongDelimiter: "__", // Avoid... |
'use strict';
/**
* See Store.size().
*/
function size(store, gid) {
var size = 0;
store.forEach(function(g) {
if (gid !== undefined && g['@id'] !== gid) return;
g['@graph'].forEach(function(n) {
for (var p in n) {
if (p !== '@id') size += n[p].length;
}
});
});
return size;
};
/**
* See ... |
var sqlite3 = require('sqlite3');
var utils = require('./lib/utils');
var placeholder = '?';
var Query = exports.Query = function(sql, table, params, db) {
var operationsMap = {
'=': '=',
'!': '!=',
'>': '>',
'<': '<',
'>=': '>=',
'<=': '<=',
'!=': '<>',
... |
"use strict";
exports.__esModule = true;
var ml_matrix_1 = require("ml-matrix");
var e_coef_1 = require("./e_coef");
/**
* Calculations of the V5 device channels
*/
var V5Calculation = /** @class */ (function () {
/**
* The number of data points in the dataBatch array.
*/
function V5Calculation() {
... |
const assertRevert = require('../helpers/assertRevert');
const sendTransaction = require('../helpers/sendTransaction').sendTransaction;
const etherToWei = require('../helpers/etherToWei');
const advanceBlock = require('../helpers/advanceToBlock');
const increaseTimeTo = require('../helpers/increaseTime').increaseTimeT... |
const fs = require('fs-extra');
const path = require('path');
const babel = require('@babel/core');
const traverse = require('@babel/traverse').default;
class JSFile {
// extends;
constructor(options) {
Object.assign(this, options);
}
}
class VueExtendTree {
constructor(options) {
// Pa... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _bindEvents = _interopRequireDefault(require("../utils/bind-events"));
var _bindProps = require("../utils/bind-props");
var _mountable = _interopRequireDefault(require("../mixins/mountable"));
var _twoWayBi... |
import React from 'react'
import ObjectList from 'react-object-list'
import {TextContainsFilter} from 'react-object-list/filters'
import {FontAwesome} from 'react-object-list/icons'
import 'react-object-list/dist/react-object-list.css';
import productModel from 'model/product'
import modelUtils from "model/model-utils"... |
const { parse: parseHtml, TextNode } = require("node-html-parser");
const fs = require("fs");
const nodepath = require("path");
const jsonify = (current) => {
if (!current.tagName) return { TextNode: true, rawText: current.rawText };
return {
tagName: current.tagName,
attributes: current.attributes ? curre... |
// const canvas = document.querySelector("#cv");
const scratchCanvas = document.querySelector("#scratch");
// const c = canvas.getContext('2d');
const im = document.querySelector("#texture");
const sc = scratchCanvas.getContext("2d");
const [sw, sh] = [scratchCanvas.width, scratchCanvas.height];
sc.drawImage(im, 0, 0);... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel... |
var assert = require('assert')
, Twit = require('../lib/twitter')
, config1 = require('../config1')
, config2 = require('../config2')
, colors = require('colors')
, util = require('util')
, async = require('async')
, restTest = require('./rest')
/**
* Stop the stream and check the tweet we got back.
* ... |
/*
* AddOccupation
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { browserHistory } from 'react-router';
import Tappable from 'react-tappable... |
const { validationResult } = require('express-validator');
const { Job, Task, Feature } = require('../../models');
const TaskController = () => {
const getTasks = async (req, res) => {
// Get query string params
const sort = req.query.sort ? JSON.parse(req.query.sort) : ['taskName', 'ASC'];
const range = req.... |
const express = require('express');
const cors = require('cors');
const multer = require('multer');
const fetch = require('node-fetch');
const ObjectsToCsv = require('objects-to-csv');
const fs = require('fs');
const archiver = require('archiver');
const { response } = require('express');
const rimraf = require('rimraf... |
function welcomeEmail(from, to, cost, hours, mins) {
return '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
+ '<html xmlns="http://www.w3.org/1999/xhtml">'
+ '<head> '
+ '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"... |
import { clearWordSelection, highlightSentence, removeSentenceHighlights } from "./markText.js";
/*************************
* Defaults:
*************************/
// const DEFAULT_VOICE = 19; // for windows
const DEFAULT_VOICE = 0; // for mac
// sliders:
const pitch = document.querySelector("#pitch");
const pitchVal... |
var debug = 0
var inf = Number.POSITIVE_INFINITY
// Python keywords don't match NAME rules, so that "pass = 7" is illegal
// The list doesn't include 'case' and 'match' that are 'soft keywords'
// in PEP 634
var keywords = ['and', 'as', 'elif', 'for', 'yield', 'while', 'assert', 'or',
'continue', 'lambda', 'from'... |
import * as React from "react";
import { Typography, Input, Table, Divider, Button, Form, Tag, Modal, Select, Drawer, Tree, message } from 'antd';
const { Title } = Typography;
const { Option } = Select
const axios = require('axios').default;
import host from '../../host'
import Axios from "axios";
/**
* 用户管理组件
*/
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import emojiFlags from 'emoji-flags';
import ShowMoreText from 'react-show-more-text';
import {
formatedDate,
formatedRunTime,
mergeUniqMovieArrays,
getAggregateRating,
getAggregateRatingCount
} from '../../utils/CMUtils';
import { ... |
const {addDescription} = require('../utils/description');
const {contextBridge, ipcRenderer} = require('electron');
const fs = require('fs').promises;
const path = require('path');
const csvPath = path.join(__dirname.replace(`app.asar${path.sep}app`, ''), 'config.csv');
const changeEvent = new Event('change');
/** @typ... |
'use strict';
var crypto = require('crypto');
var assert = require('assert');
var request = require('request');
var Utils = require('../services/utils');
var CustomersConfigProvider = require('../services/customers-config-provider');
module.exports = function (app) {
var bodyParser = require('body-parser');
var l... |
/**
* Connection-line element controller
*
*/
var extend = require('./helpers/extend');
var offset = require('./helpers/offset');
var Rect = require('./helpers/rect');
/**
* Connector
*
* @constructor
*
* @param {Object} properties Options to init
*/
function Connector(properties) {
if (!(t... |
/* @preserve
* @terraformer/arcgis - v2.0.6 - MIT
* Copyright (c) 2012-2020 Environmental Systems Research Institute, Inc.
* Mon May 18 2020 14:30:35 GMT-0700 (Pacific Daylight Time)
*/
/* Copyright (c) 2012-2019 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
var edgeIntersectsEdge = function edgeInte... |
var zrUtil = require("zrender/lib/core/util");
var graphic = require("../../util/graphic");
var layoutUtil = require("../../util/layout");
var LegendView = require("./LegendView");
/**
* Separate legend and scrollable legend to reduce package size.
*/
var Group = graphic.Group;
var WH = ['width', 'height'];
var X... |
"use strict";
const db = require('./database'),
filessystem = require('fs'),
utils = require('./utils'),
moment = require('moment'),
striptags = require('striptags'),
maximoPagina = 5;
let fecha_actual = moment().format(),
fecha_string = moment().format("DD... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {Animated, View, StyleSheet, Platform} from 'react-native'
import {memoize, bind} from './utils/utils'
import ScreenWrapper from './ScreenWrapper'
import {animatedStyles} from './utils/animatedStyles'
import {Context} from './utils/sharedE... |
const {
assetDataUtils,
BigNumber,
ContractWrappers,
generatePseudoRandomSalt,
orderHashUtils,
signatureUtils
} = require("0x.js");
const { Web3Wrapper } = require("@0x/web3-wrapper");
const { expectEvent } = require("openzeppelin-test-helpers");
//const TruffleContract = require("truffle-contract");
//con... |
// Import required files
const Discord = require("discord.js");
const TriggersController = require("./TriggersController");
const ModerationController = require("./ModerationController");
const PointsController = require("./PointsController");
const cooldowns = new Discord.Collection();
// Create a new module export
m... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
/**
* This class generates custom mipmaps for a roughness map by encoding the lost variation in the
* normal map mip levels as increased roughness in the corresponding roughness mip levels. This
* helps with rendering accuracy for MeshStandardMaterial, and also helps with anti-aliasing when
* using PMREM. If the no... |
'use strict'
const SocketIO = require('socket.io')
const di = require('di')
const util = require('util')
const Promise = require('bluebird')
const spawn = require('child_process').spawn
const tmp = require('tmp')
const fs = require('fs')
const path = require('path')
const BundleUtils = require('./utils/bundle-utils')... |
import React, { Component } from 'react';
import { TouchableOpacity, View, Text, Dimensions, ScrollView, StyleSheet } from 'react-native';
import Svg, { G, Text as SvgText, Rect, Path } from 'react-native-svg';
import * as d3Scale from 'd3-scale';
import T from '../components/T';
const deviceWidth = Dimensions.get(... |
var Buffer = require('safe-buffer').Buffer;
var zlib = require('../util/zlib');
var STATUS_CODES = require('http').STATUS_CODES || {};
var CRLF = Buffer.from('\r\n');
var TYPES = ['whistle', 'Fiddler'];
function dechunkify(body) {
var result = [];
var index;
while((index = indexOfBuffer(body, CRLF)) > 0) {
... |
'use strict';
var isNumeric = require('fast-isnumeric');
var loggers = require('./loggers');
var identity = require('./identity');
var BADNUM = require('../constants/numerical').BADNUM;
// don't trust floating point equality - fraction of bin size to call
// "on the line" and ensure that they go the right way specifi... |
import { $, $$, appendChildren, buildNode, clearEle, errorMessage, jsonRequest, msToHms } from "./Common.js";
import { MarkerData } from "../../Shared/PlexTypes.js";
import Overlay from "./inc/Overlay.js";
import Tooltip from "./inc/Tooltip.js";
import ButtonCreator from "./ButtonCreator.js";
import SettingsManager f... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var path = require('path');
var pm = require('picomatch');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var pm__default = /*#__PURE__*/_interopDefaultLegacy(pm);
const ... |
import React from 'react';
/**
* How much time in ms to wait before running an onClick function (used to allow the UI to respond first).
*/
const CLICK_DELAY = 50;
/**
* How much time in ms to wait before showing or hiding a submenu.
*/
const HOVER_TIMEOUT = 200;
/**
* Map electron menu accelerators to platform... |
/**
* @fileoverview Main Solium object definition
* @author <NAME> <<EMAIL>>
*/
"use strict";
import {Parser} from "../parser/tonsolidity";
const solidityParser = new Parser();
const solExplore = require("../parser/explorer"),
fs = require("fs"), path = require("path"),
util = require("util"),
EventEm... |
const PAGE_HOME = 'home';
const PAGE_ARCHIVE = 'archive';
const PAGE_POST = 'post';
const POSITION_TOP = 'top';
const POSITION_BOTTOM = 'bottom';
const POSITION_LEFT = 'left';
const POSITION_RIGHT = 'right';
const POSITION_CONTENT = 'content';
const TYPE_IMAGE = "1";
const TYPE_VIDEO = "2";
const STYLE_RANDOM = "1";
co... |
"use babel";
let LinterClojureRepl;
import { CompositeDisposable } from 'atom';
import Rx from 'rxjs/Rx';
import R from 'ramda';
import path from 'path';
import fs from 'fs';
let kill =
process.platform === 'darwin' ?
(pid, signal) =>
ps.exec(util.format("ps a -o pid -o ppid |",
+ "... |
var SocketIO = require('socket.io')
var di = require('di')
var util = require('util')
var Promise = require('bluebird')
var root = global || window || this
var cfg = require('./config')
var logger = require('./logger')
var constant = require('./constants')
var watcher = require('./watcher')
var plugin = require('./pl... |
/* globals chrome, utils, sendMessageForGa */
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { useDidMount } from 'rooks';
import TextField from '@material-ui/core/TextField/index.js';
import Button from '@material-ui/core/Button/index.js';... |
import Promise from 'bluebird';
import fs from 'fs';
import crypto from 'crypto';
import path from 'path';
import constants from './constants';
import co from 'co';
let {
FILES_PATH,
TMP_FILES_PATH
} = constants;
const http = require('http');
const https = require('https');
const writeFileAsyn = Promise.promi... |
/*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2015 Phusion
*
* "Phusion Passenger" is a trademark of <NAME> & <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
const Document = require('./document')
const EventTarget = require('./event/event-target')
const Event = require('./event/event')
const OriginalCustomEvent = require('./event/custom-event')
const Location = require('./bom/location')
const Navigator = require('./bom/navigator')
const cache = require('./util/cache')
cons... |
var TOOLTIP_MAX_WIDTH = 310
var eatt = {
init: function() {
var jstooltip = document.createElement("div")
jstooltip.id = "ea-tooltip"
jstooltip.className = "ea-hover"
document.getElementsByTagName("body")[0].appendChild(jstooltip)
eatt.jstooltip = jstooltip
eatt.hide()
eatt.queue = new Array()
eatt.cur... |
var DB = require("./../../DB");
var InstanceUtils = require("../../utils/Utils");
var log = require("./../../utils/Logger").child({
tag: "InstanceTests",
level: "fatal"
});
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
const TYPES = ["String", "Number", "Date", "Object", "Boolean"];
class Mo... |
import React, { Component } from "react";
import { orderBy as lodashOrderBy, get as lodashGet } from "lodash";
import { connect } from "react-redux";
import { Row, Col } from "react-bootstrap";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faInfoCircle } from "@fortawesome/free-solid-svg-ic... |
var map = L.map('map').setView([50.85, -8.04], 2);
L.tileLayer('img/map/{z}/{y}-{x}.jpeg', {
minZoom: 0,
maxZoom: 4,
attribution: 'ITP Map by /u/pauix',
tms: false,
noWrap: true,
maxBoundsViscosity: 1.0
}).addTo(map);
/*This function g... |
"use strict";
var debug = require('debug')('ap:model');
var util = require('./util.js');
// var Particle = require('./particle.js');
var Vector = require('./vector.js');
/**
*
*/
function Model(data, imageLoad) {
this.data = data;
// random life value
this.life = util.getRandom.apply(null, data['active_tim... |
'use strict'
var assert = require('assert')
var nm = require('./support/match')
describe('dotfiles', function () {
describe('file name matching', function () {
it('should not match a dot when the dot is not explicitly defined', function () {
assert(!nm.isMatch('.dot', '*dot'))
assert(!nm.isMatch('a/... |
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable no-console, no-var, space-before-function-paren */
/* To fix, remove an entry above, run ka-lint, and fix errors. */
var _ = require("underscore");
var DEFAULT_ALIGNMENT = "block";
var DEFAULT_SUPPORTED_ALIGNMENTS = ["defaul... |
import Func from './function';
import Property from './property';
import Selector from './selector';
import MathFunc from './math';
import prefixer from './prefixer';
import parse_value_group from './parser/parse-value-group';
import { uniform_time } from './uniform';
import random_func from './utils/random';
import {... |
import React, { Component } from 'react';
import { Menu, Icon, Layout, Button, PageHeader, Input, Tooltip, message, Radio } from 'antd';
import {
HashRouter as Router,
Link
} from 'react-router-dom';
import API from '../../libs/api';
import Question from './question';
const { SubMenu } = Menu;
const { Sider, ... |
//------------------------ Game Project---------------------------
//Do you remember the game Battleship we created before? well .... it is time to make it with the DOM!!
//We are providing you with the design of a board (in the DOM) for a player1, you have to create the board for the player2 using the id property 'bo... |
const elasticsearch = require('elasticsearch')
const get = require('lodash/get')
const scoring = require('../lib/scoring')
const logger = require('../listener/logger')
const client = new elasticsearch.Client({
hosts: [process.env.ELASTICSEARCH_HOST || 'elasticsearch:9200'],
// Pin the API version since we do not ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getVariableValues = getVariableValues;
exports.getArgumentValues = getArgumentValues;
var _iterall = require('iterall');
var _error = require('../error');
var _invariant = require('../jsutils/invariant');
var _invariant2 = _inte... |
/* See license.txt for terms of usage */
"use strict";
module.metadata = {
"stability": "experimental"
};
const { Cu } = require("chrome");
const { Trace, TraceError } = require("../core/trace.js").get(module.id);
const { Domplate } = require("../core/domplate.js");
const { Rep } = require("../reps/rep.js");
const... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.SideMenu = exports.ToggleButton = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = ... |
const core = require('@actions/core');
const fsPromises = require('fs').promises;
const http = require('http');
const https = require('https');
const zlib = require('zlib');
const MAX_CONCURRENT_REQUESTS = 8;
// Check at most this many URLs concurrently. Giving this a higher value
// makes it faster up to a certain p... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
var fs = require("fs");
var uuid = require("node-uuid");
var R = require("ramda");
var State = require("mond").State;
var parser = require("./rxml.js");
var bodyL = R.lensProp('body');
var imports = 'import {elementOpen,elementClose,elementVoid,text} from "incremental-dom";\nimport * as Rendex from "rendex";';
var g... |
import React from 'react';
import { gql } from 'apollo-boost';
import { Mutation, Query } from 'react-apollo';
import { set } from 'lodash/fp';
import { Row, Col, Input, Button, FormGroup, FormFeedback } from 'reactstrap';
import { ErrorModal } from './index.js';
import { query as updateQuery } from './export-ban-li... |
'use strict'
module.exports = createFancyScatter2D
var createShader = require('gl-shader')
var createBuffer = require('gl-buffer')
var pool = require('typedarray-pool')
var shaders = require('./lib/shaders')
var snapPoints = require('snap-points-2d')
var atlas = require('font-atlas-sdf')
var createTexture =... |
/* Language: English */
const en = {
"language": "en",
"host_status": "Host Status",
"cpu": "CPU",
"memory": "Memory",
"disk_usage": "Disk Usage",
"load_avg": "Load Avg",
"boot_seconds": "Uptime",
"redis_status": "Redis Status",
"used_memory": "Used Mem",
"used_memory_rss": "Used... |
/* eslint-disable no-undef */
/* eslint-disable @typescript-eslint/no-var-requires */
const ejs = require('ejs');
const { copyFileSync, existsSync, readdirSync, readFileSync, writeFileSync } = require('fs');
const { join, resolve } = require('path');
const dirTree = require('directory-tree');
const { parseTags, removeT... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Table, Pagination, Tooltip } from 'antd';
import objectAssign from 'object-assign';
import isEqual from 'react-fast-compare';
import { EditableCell } from './Editable';
import $$ from 'cmn-utils';
import cx from 'classnames';
import ... |
/*
* Copyright 2016, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require('react');
const ReactDOM = require('react-dom');
const StandardApp = require('../components/ap... |
/* eslint-disable react/prop-types */
/* eslint-disable no-unused-vars */
import React, { useState, useContext } from "react";
import { graphql, Link } from "gatsby";
import Layout from "../components/layout";
import SEO from "../components/seo";
import { FaTwitter } from "react-icons/fa";
import addToMailchimp from ... |
/*global Component, ComponentUtil, Template, Blaze, Meteor*/
let callbacks = {};
let factories = {};
Component = function (componentName, factory, templateName) {
installComponent(componentName, factory, templateName || componentName);
};
Component.on = function (eventName, listener) {
let listening = true;
let... |
'use strict';
var net = require('net')
, util = require('util')
, EventEmitter = require('events').EventEmitter
, tls = require('tls')
;
/**
* @callback DefaultCallback
* @param {Error?} error
* @param {*} data
*/
/**
* connection states
* @readonly
* @enum {number}
*/
var state = {
NOOP: 0
... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片数据组
import imagesData from '../data/imagesData.json';
let Com=React.Component;
//将图片数据组中的图片数据添加图片路径
imagesData.forEach(function(val){
val.imageURL = require('../images/'+val.fileName);... |
import BaseTexture from "./BaseTexture";
import settings from "../settings";
import TextureUvs from "./TextureUvs";
import EventEmitter from "eventemitter3";
import { Rectangle, Point } from "../math";
import { getResolutionOfUrl, uuidvx } from "../utils";
import {
TextureCache,
addToTextureCache,
removeFromTextu... |
// ==UserScript==
// @name MB: Bulk Edit Release Events
// @namespace https://github.com/texke/mb-userscripts
// @downloadURL https://raw.githubusercontent.com/texke/mb-userscripts/main/mb_bulk_edit_release_events.user.js
// @updateURL https://raw.githubusercontent.com/texke/mb-userscripts/main/mb_bulk_edit... |
function add_scroll_width() {
var wrapFullWidth = jQuery('.form_maker_submissions').width();
var scrollWidth = 0;
jQuery.each(jQuery('#fm-scroll table tr.fm_table_head th:visible'), function( index, value ) {
scrollWidth += jQuery(this).width();
});
jQuery(".table-scroll-1, .table-scroll-2").css({"width": ... |
var superagent = require('superagent');
var session = require('./util/integration-session');
var NamedCollectionVerifications = require('./util/named-collection-verifier');
var stampUtil = require('./util/stamp-utilities');
describe('REST Services for Countries', () => {
var hostname, server_port, connection;
... |
const RCCAR_SERVICE_UUID = "8922e970-329d-44cb-badb-10070ef94b1d";
// x, y, z: int16 * 3 = 6 byte: g * 1000
// Compatible with BBC micro:bit Accelerometer Characteristic
// https://lancaster-university.github.io/microbit-docs/resources/bluetooth/bluetooth_profile.html
const RCCAR_CHARACTERISTIC_UUID = "e625601e-9e55-45... |
#!/usr/bin/env node
const { Command } = require('commander')
const packageJson = require('../package.json')
const chalk = require('chalk')
const fs = require('fs-extra')
const path = require('path')
const { execSync } = require('child_process')
const { join } = require('path')
const { createSpinner } = require('nanosp... |
import _ from 'lodash';
import { errors } from 'appium-base-driver';
import { iosCommands } from 'appium-ios-driver';
import { util } from 'appium-support';
import { retryInterval, retry } from 'asyncbox';
import log from '../logger';
let commands = {}, extensions = {};
// pull in all the element commands and helper... |
const commandLineArgs = require('command-line-args');
const commandLineUsage = require('command-line-usage');
// const fs = require('fs');
const fs = require('fs-extra');
const path = require('path');
const PNG = require('pngjs').PNG;
// node .\tools\gltf-avatar-merge.js -s .\models\gltf\saber-body-walk\saber... |
Physijs.scripts.worker = "./js/lib/physijs_worker.js";
Physijs.scripts.ammo = "ammo.js";
var camera, scene, dlight, renderer, effcutout
var clock = new THREE.Clock()
var goalkeeperModel, goalkeeperContainer, goalkeeperMixer, goalkeeperAction, goalkeeperConMixer
//raycast
var mouseCoords = new THREE.Vector2()
var rayca... |
// I would be using the built-in https module, but it doesn't seem to provide a
// promise-based interface, unlike the built-in http module. This makes zero
// sense, which is why I'm just using axios instead.
const axios = require('axios')
const cheerio = require('cheerio')
const fs = require('fs/promises')
const Twi... |
import React, { useState } from 'react';
import { Layout, InputGroup, MultipleSelect } from '../../../import';
import {
Grid, Button, TextField, Typography, Paper, FormControlLabel, Input, InputLabel, MenuItem,
FormControl, Select, Chip, makeStyles, useTheme, Radio, RadioGroup
} from '@material-ui/core';
import { L... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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, copy, modify... |
/**
* Licensed to the Symphony Software Foundation (SSF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SSF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may... |
import Terminals from "mvc/workflow/workflow-terminals";
import Connector from "mvc/workflow/workflow-connector";
// TODO; tie into Galaxy state?
window.workflow_globals = window.workflow_globals || {};
var TerminalMappingView = Backbone.View.extend({
tagName: "div",
className: "fa-icon-button fa fa-folder-o"... |
/**
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* This software is a derived product, based on:
*
* Simple Machines Forum (SMF)
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included L... |
import React, { useEffect, Suspense, useState, useMemo } from 'react';
import { GeistProvider, CssBaseline, Button, Card, Description, Link, Page, Row, Text, useMediaQuery, Themes } from '@geist-ui/react'
import * as Icon from '@geist-ui/react-icons'
import { useTranslation } from 'react-i18next';
import axios from 'ax... |
const createModule = require('./triangle.out');
let Module = {};
// ---------------------------------------------------------------------------------------------
// UTILS
// ---------------------------------------------------------------------------------------------
const stringToHeap = (str) => {
const length = M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.