text stringlengths 3.22k 29.5k |
|---|
//定义顶部样式 topBaner组件 及 其所需的style
var k = window.k;
var TopBaner = React.createClass({
render: function () {
return <div id="topBaner">
<div className="GMLogo">Logo</div>
<div className="exitDiv" onClick={this.LoginOut}>
<span className="exitPng"></span>
... |
var save_name = document.getElementById("save-name");
var server_address = document.getElementById("frm-save-server-address");
var div_graph_list = document.getElementById("graph-list");
server = {
address: "http://testtextograph.digitaltoxicity.ir",
graph_name: "",
search_term: "",
setAdress(address) ... |
var GEOM = require("../lib/geoscript/geom");
var FEATURE = require("../lib/geoscript/feature");
var FILTER = require("../lib/geoscript/filter");
var PROJ = require("../lib/geoscript/proj");
var LAYER = require("../lib/geoscript/layer");
var WORKSPACE = require("../lib/geoscript/workspace");
var VIEWER = require("... |
const url = require('url');
const _ = require('lodash');
const EventEmitter = require('events').EventEmitter;
const util = require('util');
const reconnect = require('reconnect-net');
const failover = require('tcp-client-failover');
const Transform = require('stream').Transform;
co... |
// Copyright 2017, <NAME>. dotup IT solutions
// https://developer.amazon.com/de/docs/custom-skills/slot-type-reference.html#date
// winter: WI, spring: SP, summer: SU, fall: FA
// [Year offset, month, day] for 'to' the last day of the previous month is used
/*
var d = new AlexaDate();
let result;
result = d.Parse("2... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const {Helper} = ChromeUtils.import('chrome://juggler/content/Helper.js');
const {Services} = Chrom... |
import React, { Component } from 'react';
import { Image, View, TouchableOpacity,Platform, ScrollView, Alert } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header,Content, Text, InputGroup, Input, Button, Icon, Card } f... |
import React, {Component} from 'react';
import './pro_search_bar.scss';
class SearchBar extends Component{
constructor(props){
super(props)
this.state = {
openCity: "",
city: ">=1",
nowCity: "選擇縣市",
openCate: "",
cate: ">=1",
nowCate: "選擇類別",
openPeople: "",
pe... |
const {v4 : uuid} = require("uuid");
const QRCntlCommand = {
CREATE_CHANNEL : 'create-channel',
JOIN_CHANNEL: 'join-channel',
CONTROL_QR_READER: 'control-qr-reader',
QR_STATUS_UPDATE: 'qr-status-update',
LEAVE_CHANNEL : 'leave-channel',
DESTROY_CHANNEL : 'destroy-channel',
ERROR : 'error',
};
let connec... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
// utilities for plugins to load, cache, and decorate
import React from 'react';
import PropTypes from 'prop-types';
import { connect as reduxConnect } from 'react-redux';
import { propsReducerCallback, loadConnectors, moduleLoader } from './utils';
import constants from '../store/constants';
// Instantiate caches
le... |
import './index.less';
import './marked.css';
import logo from '../../assets/userLogo.png';
import React, { Component } from 'react';
import Comment from '../comments/comment';
import CommentList from '../comments/list';
import { Icon, Avatar, message, Button } from 'antd';
import https from '../../utils/https';
import... |
import React from "react";
import {
FlatList,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
Platform
} from "react-native";
import Button from "react-native-button";
import FastImage from "react-native-fast-image";
import firebase from "react-native-firebase";
import { connect } from "react-redux... |
/*
* Adapted from https://github.com/shaozilee/bmp-js/blob/master/lib/encoder.js by shaozilee
* With Buffer shim and small modifications by <NAME>
*/
// Decoder
var console = {log: function() {
var out = "";
for (var i=0; i<arguments.length; i++) {
out += arguments[i];
out += " ";
}
... |
import { fileFetcher } from './file_fetcher';
import { utilDetect } from '../util/detect';
import { utilStringQs } from '../util';
let _mainLocalizer = coreLocalizer(); // singleton
let _t = _mainLocalizer.t;
export {
_mainLocalizer as localizer,
// export `t` function for ease-of-use
_t as t
};
//
// co... |
function makeOortCloud(){
// distance to oort cloud
// about 50,000 AU
// 1 Astronomical Unit = 1.58128588 × 10^-5 light years
// 50,0000 AU ~= 0.790642941 LY
/*
var dist = 0.790642941;
var distrib = 0.1;
var particlesGeo = new THREE.Geometry();
for( var i=0; i<10000; i++ ){
var x = random(-1,1);
var y ... |
"use strict";
const { of, from, concat } = require("rxjs");
const eventSourcing = require("../../tools/EventSourcing")();
const { ShiftES } = require("../../domain/shift");
const { ServiceES } = require("../../domain/service");
const { BusinessES } = require("../../domain/business");
const { map, switchMap, filter, mer... |
import React, { Component } from 'react'
import MainLayout from '../../layouts/MainLayout'
import { Form, Divider, Button, Icon } from 'semantic-ui-react'
import {
DateInput,
TimeInput,
DateTimeInput,
DatesRangeInput
} from 'semantic-ui-calendar-react';
import FileUpload from '../FileUpload';
import '..... |
import React, { Component } from 'react';
import { connect } from 'dva';
import { Form, Card, Layout, Row, Col, Input, Button, Table, Modal, Breadcrumb, message } from 'antd';
import { Link } from 'dva/router';
import ImageCard from '../../../components/Public/ImageCard';
import ImageTextCard from '../../../components/... |
var clickerEnabled = true;
var buyerEnabled = true;
var buyBuildings = true;
var buyUpgrades = true;
var stopClicker = false;
var stopBuyer = false;
var menuClosed = true;
var runtime = 1;
var waitTimeMultiplier = 1;
var reUpgradeDataFunction = /Game\.crate\(Game\.UpgradesById\[\d+\],\'store\',undefined,undefined,\d\... |
import BaseStore from '@/store/base-store'
import http from '@/config/http'
import moment from 'moment'
const options = {
state: {
showLayers: [],
buoys: null,
polygons: null,
polygonsAlert: null,
buoyChart: null,
chartBuoyData: null,
alertsData: null
},
getters: {
showLayers (sta... |
var players = {};
var previousState = -1;
$(document).ready(function() {
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
});
function onYouTube... |
"use strict";
// Copy from electrode-react-webapp for now
/* eslint-disable max-statements, complexity, global-require, no-magic-numbers, no-console */
const _ = require("lodash");
const Fs = require("fs");
const Path = require("path");
const assert = require("assert");
const util = require("util");
const optionalRe... |
'use strict';
const rootPrefix = '../..';
const Buffer = require('safe-buffer').Buffer,
Tx = require('ethereumjs-tx'),
BigNumber = require('bignumber.js');
// Please declare your require variable here.
let nonceManagerKlass,
responseHelper,
logger,
coreConstants,
valueChainGasPriceCacheKlass,
ChainGeth... |
import fastdom from 'lib/fastdom-promise';
import config from 'lib/config';
import loadEnhancers from './modules/loadEnhancers';
import { push as pushError } from './modules/show-errors';
import {
addSpinner,
bindAnalyticsEventsOnce as bindCheckboxAnalyticsEventsOnce,
flip as flipCheckbox,
getInfo as g... |
// run-tests.js
// MIT licensed, see LICENSE file
// Copyright (c) 2013-2015 <NAME> <<EMAIL>>
"use strict";
var ngAnnotate = require("./ng-annotate-main");
var fs = require("fs");
var os = require("os");
var path = require("path");
var diff = require("diff");
var findLineColumn = require("find-line-column");
var fmt ... |
import {doc} from '../config';
import {Core} from '../Core/core';
/**
* @namespace
* @name Core.css3
* @description css3 관련 코어 확장 함수
*/
const addonCss3 = () => {
Core.define('css3', function() {
const _tmpDiv = Core.tmpNode,
_prefixes = ['Webkit', 'Moz', 'O', 'ms', ''],
_style =... |
var x = document.getElementById("demo");
//x.innerHTML = document.cookie;
var y = document.getElementById("startInputText");
var z;
var a = document.getElementById("A");
var startLat = undefined;
var startLng = undefined;
v... |
const TimeHandler = require('../lib/TimeHandler');
const Range = require('../lib/Range');
const InvalidError = require('./errors/InvalidError');
const moment = require('moment');
const path = require('path');
const i18n = require("i18n");
const isValid = require('sancronos-validator').isValid;
const Instantiator = requ... |
var Vertex = function(xy) {
this.pos = []
this.pos[0] = xy[0]
this.pos[1] = xy[1]
this.tangent;
}
var Curve = function(vertices) {
this.vertices = vertices;
if (typeof this.vertices !== "undefined" && vertices.length > 0) {
this.init();
}
}
function specify_strokStyle(){
ctx.st... |
var table = layui.table;
var $ = layui.jquery;
var form = layui.form;
var layer = layui.layer;
$(function () {
table.render({
elem: '#roles',
url: '../Role/queryAll.do', //数据接口
page: true, // 开启分页
limit: 10, // 每页显示的条数
limits: [10, 20, 50, 100], // 每页条数的选择项
loading:... |
import charHash from '@/models/recognition/charHash'
import store from '@/store'
import JSZip from 'jszip'
import uniq from 'lodash/uniq'
import Console from "@/utils/Console";
import strings from "@/utils/strings";
import ReportValidator from "@/utils/reportValidator";
import get from '@/utils/getters'
import existUt... |
var q1 = {
question:'Who was the 2002 champion?',
options: ['Argentina','Brazil','Germany','Italy'],
rightAnswer: 'Brazil',
image:'<img src="assets/images/brazilGermany.gif" id="image">',
legend: '<div id="legend">Brazil Won the tournament, defeating Germany 2:0</div>'
};
var q2 = {
question:"Who scored Spain's w... |
var a = require("../lib/actions")
var sq = require("../lib/spawnQueue")
var motion = require("../lib/motion")
const u = require("../lib/utils")
const settings = require("../config/settings")
var rM = {
name: "remoteMiner",
type: "miner",
/** @param {Creep} creep **/
run: function(creep) {
if(c... |
'use strict';
var Block = require("./block.js");
var Curry = require("./curry.js");
var $$Buffer = require("./buffer.js");
var Printf = require("./printf.js");
var Caml_array = require("./caml_array.js");
var Pervasives = require("./pervasives.js");
var Caml_exceptions = require("./caml_exceptions.js");
var Caml_js_ex... |
import { map } from 'd3-collection'
import Logger from './logger.js'
import moment from 'moment'
import Tag from './tag.js'
const logger = Logger.create('Store') // eslint-disable-line no-unused-vars
const sep = '|'
const prefix = (keyspace, id) => {
return keyspace + sep + id
}
const unprefix = (idPrefixed) => {
... |
/**
* Created by Maa on 1/10/2017.
*/
var GlobalPreUrl = "localhost/ladylike/xadmin";
// ScrollTop
$("html, body").animate({ scrollTop: 0 }, "slow");
//callajaxreturn(url,data,hdnfunc,datatype,type,asynctype,args)
//callajaxreturn(GlobalPreURLFrontEnd + "candidate/" + "editresume/" + "getstatename/" + cityname, ""... |
// Global Variables
var global = {
balances: [],
address: '',
pointCount: 200,
blockHashes: [],
endpoint: '',
chainDecimals: '',
chainToken: 'Units',
layout: {},
};
// Update window URL to contain querystring, making it easy to share
function updateUrl(startBlock, endBlock) {
var ur... |
// Helper methods for 'iframe.js' file. They don't require any method from 'iframe.js` but are required by them.
import { GenericHelpers } from './';
import { MICROFRONTEND_TYPES } from './../constants';
import { LuigiConfig } from '../../core-api';
import { ViewUrlDecorator } from '../../services';
class IframeHelper... |
const St = imports.gi.St;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
const Clutter = imports.gi.Clutter;
const Main = imports.ui.main;
const Signals = imports.signals;
const Mainloop = imports.mainloop;
const ME = imports.misc.extensionUtils.getCurrentExtension();
const Gettext ... |
const url = require('url')
const requester = require('./lib/requester')
const simpleRequester = require('./lib/simpleRequester')
const analysisPoller = require('./lib/analysisPoller')
const login = require('./lib/login')
const refresh = require('./lib/refresh')
const libUtil = require('./lib/util')
const defaultApiUr... |
const { default: axios } = require('axios')
const { Context, segment, Time, Session } = require('koishi-core')
const { Logger, Tables } = require('koishi')
const logger = new Logger('bilibili')
logger.log = logger.info
const colName = 'bilibili-plus'
/**
* @param {Context} ctx
*/
function apply(ctx) {
ctx = ctx.s... |
// Setting up all the global variables and buttons before.
var categories = document.getElementById("Categories")
var gradesArray = document.getElementsByTagName('tbody')[1];
console.log(gradesArray)
if (categories != null) {
gradesArray = document.getElementsByTagName('tbody')[2];
console.log(gradesArray)
}
va... |
// el dat gui by5lena nst5dam UI controller
// el dat gui 5ad el pointlight w hycontrole 3la intensity mn 1 to 10
// speherGeometry :bta5od el size , wel width and el height segments values
// el shadows fel three js 2t3mlt b shadow maps technique
function init() {
var scene = new THREE.Scene();
var gui = new ... |
const { hp2Builder } = require('@selderee/plugin-htmlparser2');
const merge = require('deepmerge');
const he = require('he');
const htmlparser = require('htmlparser2');
const selderee = require('selderee');
const { BlockTextBuilder } = require('./block-text-builder');
const defaultFormatters = require('./formatter');
... |
/**
* @description CONTACT PAGE GERMAN
*/
import React from "react"
import { graphql, Link } from "gatsby"
import styled from "@emotion/styled"
import Img from "gatsby-image"
import {
FaFacebookSquare,
FaInstagramSquare,
FaLinkedin,
FaTwitterSquare,
} from "react-icons/fa"
import Layout from "../components... |
const fs = require("fs");
const path = require("path");
const cron = require("node-cron");
const fetch = require("node-fetch");
const cors = require('cors');
const admin = require("firebase-admin");
const { v4: uuidv4 } = require("uuid");
const express = require("express");
const favicon = require("serve-favicon");
con... |
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 Dungeon = (function (_super) {
__extends(Dungeon... |
/**
* This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
*/
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0... |
import './layerlist.less';
import React, { Component } from 'react';
import { bindSelf, util } from '../../utils';
import { dragGroupEvent, setGroupControl } from '../layer-group';
import { inject, observer } from 'mobx-react';
import { message } from 'antd';
import { transaction } from 'mobx';
@inject('h5ds', 'scop... |
const i_common = require('./common');
/* env = { text, cursor, tokens, ... } */
function extract_symbol(env) {
let st = env.cursor, ed = st;
let n = env.text.length;
let ch;
while (ed < n) {
ch = env.text.charAt(ed);
if (i_common.stops.indexOf(ch) >= 0) break;
ed ++;
}
if (st === e... |
Array.prototype.extend = function (other_array) {
other_array.forEach(function(v) {this.push(v)}, this);
}
// Used to hold timeouts used in scrolling effect.
var TIMEOUTS = [];
// Used to store global state for building the query string.
var QS = {};
// Twinkle some LEDs
function twinkle() {
var led1 = 'led-... |
window.preco = {}
preco.initMap = function(){
preco.markers = []
preco.map = new google.maps.Map(document.getElementById('map'), {
center: { lat: 36.0907578, lng: -119.5948303 },
zoom: 5
})
preco.infoWindow = new google.maps.InfoWindow()
preco.refreshMap = function(events){
removeMarkers()
if(events... |
#!/usr/bin/env node
var program = require('commander');
var dircompare = require('./index');
var pth = require('path');
var fs = require('fs');
var util = require('util');
var colors = require('colors');
program
.version('0.0.1')
.usage('[options] leftdir rightdir')
.option('-c, --compare-content', 'compare files by... |
"use strict";
// Copyright 2012-2016, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { action } from '../actions/common';
import { createSheet, modifySheet,
deleteSheet, copySheet } from '../actions/sheet_api';
import { createBoard,
modifyBoard, deleteBoard } from '../actions/board_api';
class Edit extend... |
var path = require('path');
var assert = require('assert');
var EventEmitter = require('events').EventEmitter;
var async = require('async');
var tracey = require('tracey');
var default_deps = {
ExampleGroup: require('./example-group').ExampleGroup,
Example: require('./example').Example,
Hook: require('./hook').... |
/*eslint no-undef: "error"*/
/*eslint-env node*/
require('isomorphic-fetch');
let Task = require('data.task'),
Either = require('data.either'),
{sequence, curry, compose, is} = require('ramda');
const WEBSERVICEPATH = '/webservice/rest/server.php';
// For de... |
import { getColors } from '../defaults';
import { CELL_MANUAL_MIN_WIDTH, CELL_AUTO_MIN_WIDTH } from '../consts';
//RESIZERS
const getStyleVal = (elm, css) => {
return window.getComputedStyle(elm, null).getPropertyValue(css);
};
export const paddingDiff = col => {
if (getStyleVal(col, 'box-sizing') === 'border-box... |
function onEdit(e){
// Set a comment on the edited cell to indicate when it was changed.
var range = e.range;
var sheet = range.getSheet();
Logger.log("onEdit trigger firing: "+ e.range.getA1Notation());
if (range.getA1Notation() == "C2") { // selected Entity Group
sheet.getRange("D2").setFontStyle("italic"... |
function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}class Clock extends React.Component {
constructor(props) {
super(props);_defineProperty(this, "handleDefaultDate... |
function drawcircle(canvas,circle,color)
{
// console.log("drawcircle",circle,color);
var gl = canvas;
var indicestart = gl.coords.length / 6;
var ctriangles = circletrianglepoints(gl,indicestart,circle.x,circle.y,circle.r,10);
for (var i = 0; i < ctriangles.points.length; i++)
{
var cpoint = ctria... |
'use strict'
import * as utils from 'utilities.es6'
import * as viewLogic from './view-logic.es6'
function getNextId(gamestate) {
return gamestate.nextUnitId++
}
function attack(gamestate, attacker, defender) {
let battleResults = {}
battleResults.messages = []
let damageAmount = calculateDamage(attacker, d... |
import React, { useContext, useEffect, useState } from 'react';
import { Grid, Paper, Box, Typography, CircularProgress, Button, Divider } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import { withRouter } from 'react-router';
// import axios from 'axios';
import PropTypes from 'prop... |
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
}
const express = require('express');
const app = express();
const router = express.Router();
const path = require('path');
const axios = require('axios');
const mongoSanitize = require('express-mongo-sanitize');
const helmet = require('helmet'... |
Bangle.loadWidgets();
Bangle.drawWidgets();
const modeNames = [/*LANG*/"Off", /*LANG*/"Alarms", /*LANG*/"Silent"];
const B2 = process.env.HWVERSION===2;
// load global settings
let bSettings = require('Storage').readJSON('setting.json',true)||{};
let current = 0|bSettings.quiet;
delete bSettings; // we don't need any ... |
let SHOW_TARGET = "day"
const DATE_FORMAT = "YYYY-MM-DD(ddd) HH:mm:ss.SSS" // "YYYY-MM-DD(ddd) hh:mm:ss a"
document.addEventListener("DOMContentLoaded", ready);
function ready() {
console.log("[ready]")
// console.log("unix : " + moment().unix())
// console.log("value : " + moment().valueOf())
// conso... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import React, { Component } from 'react';
import get from 'lodash/get';
import omit from 'lodash/omit';
import defer from 'lodash/defer';
import isFunction from 'lodash/isFunction';
import includes from 'lodash/includes';
import isEqual from 'lodash/isEqual';
import isUndefined from 'lodash/isUndefined';
import throttl... |
import AddInfoModel from '../models/addInfo'
import UserModel from '../models/user'
import mysql from '../common/mysql'
import RoomModel from '../models/room'
import RoomMemberModel from '../models/roomMember'
import RoomMsgModel from '../models/roomMsg'
import logger from '../common/logger'
import cons from '../consta... |
/* eslint-disable no-console */
const { version } = require('../../package.json')
const { functionReference, categorizedFunctions } = require('../../cli/reference')
const examples = require('./examples')
const Lits = require('../../dist/index')
const path = require('path')
const fs = require('fs')
const DOC_DIR = path... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/* Control iD - REP iDClass
* */
//var repurl = 'https://192.168.99.59/';
var repurl = '';
/* Adição ao jQuery para permitir receber dados binários (sem conversão) */
$.ajaxTransport(
"+binary",
function(options, originalOptions, jqXHR) {
// check for conditions and support for blob / arraybuffer
// resp... |
//NOTE - ALL THE FUNCTIONS OF THIS FILE ARE TO BE MOVED IN THE NETWORK NAMESPACE - 12/02/2015
//NOTE -- IMPORTANT FOR THE DEVELOPER -- UPDATE THE METHODS TO DRAW ALL THE GRAPHS IN ONE FUNCTION AND IT SHOULD BE IN THE NETWORK NAMESPACE.
/**
* Performs the function of reading the dropped file and create the Data Object... |
import os from 'os';
import { app } from 'electron';
import path from 'path';
import request from 'request';
import fs from 'fs';
import rimraf from 'rimraf';
import gunzipMaybe from 'gunzip-maybe';
import tar from 'tar-fs';
import PProgress from 'p-progress';
import childProcess from 'child_process';
import unzipper f... |
"use strict";
var commons = require("../commons.js");
var lamb = commons.lamb;
var zeroesAsIntegers = commons.vars.zeroesAsIntegers;
describe("lamb.string", function () {
describe("padLeft / padRight", function () {
var source = "foo";
it("should pad a string to the given length with the provid... |
import React from 'react';
import DateTime from 'react-datetime';
import Column from 'react-bootstrap/Col';
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Image from 'react-bootstrap/Image';
import Button from 'react-bootstrap/Button';
import { MdAdd, MdRemove } from 'r... |
import React, {useEffect, useState} from 'react';
import {
View,
ImageBackground,
Modal,
Dimensions,
Image,
ScrollView,
TextInput,
} from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import {useNavigation} from 'react-navigation-hooks';
import theme from '../../../../styles/theme.styl... |
import Component from '../component'
import { fireEvent } from '../utils/custom-event'
import { inViewport } from '../utils/dom'
import hotkeys from 'hotkeys-js'
export const DEFAULT_CLASSES = {
main: 'selector',
current: 'selector_current',
caret: 'selector_c... |
// wink-nlp
//
// Copyright (C) GRAYPE Systems Private Limited
//
// This file is part of “wink-nlp”.
//
// 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 with... |
var express = require('./server/requires.js').express,
app = require('./server/requires.js').app,
c = require('./server/requires.js').c,
cluster = require('./server/requires.js').cluster,
logger = require('./server/requires.js').logger,
path = require('./server/requires.js').path,
bodyParser = require('./server/r... |
import React, { Component } from 'react';
import { Container, Footer, Text, Button, Icon, H3, H1 } from 'native-base';
import { Col, Row, Grid } from 'react-native-easy-grid';
import { StyleSheet, View, PixelRatio, Platform, Dimensions } from 'react-native';
import { connect } from "react-redux";
import { updateRuns ... |
//Variaveis Globais
finalFiles = [];
detalhesFile = [];
counter = 0;
var typingTimer; //timer identifier
var doneTypingInterval = 100;
var contador = 1;
$(document).ready(function () {
/*Configurações semantic ui (Layout)*/
// Configuração do select tipo veiculo (modal)
$('select#tipo_veiculo').dropdown({
... |
import { get, getOr } from 'unchanged';
import * as vl from 'vega-lite-api';
import { colors, getFieldType } from 'utils/vega/renderOptions';
import pickKeys from 'utils/pickKeys';
import genName from 'utils/genName';
// https://vega.github.io/vega-lite/docs/field.html
// If field names contain dots or brackets but a... |
var $ = require( 'jquery' ),
Color = require( 'color' ),
d3 = require( '../../vendor/d3' ),
crossfilter = require( 'crossfilter' ),
calculate = require( '../../../lib/calculations/original' ),
graphs = require( '../graphs/index' ),
line = require( '../../graphs/line' );
exports.graphs = graph... |
/*
* Copyright 2012, Mozilla Foundation and contributors
*
* 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 applica... |
var _ = require( 'lodash' );
var Monologue = require( 'monologue.js' );
var when = require( 'when' );
var connectionFn = require( './connectionFsm.js' );
var topologyFn = require( './topology.js' );
var postal = require( 'postal' );
var uuid = require( 'node-uuid' );
var log = require( './log.js' );
var dispatch = post... |
// import Content from '../components/content';
import React, { useEffect } from 'react';
import Breadcumb from '../../../components/breadcumb';
import Statistics from '../../../components/statistics';
import { getSession } from 'next-auth/react';
import { FiUserPlus, FiDollarSign, FiActivity, FiSave } from 'react-icon... |
//This piece operates a little differently than any other one in the book, which makes me think it'd be a good example to show
//Again we start off by defining our variables at the top
//This all-important variable called 'shortcuts' defines all the text we want to replace over the course of the piece. Later we will be... |
import React, {Component} from 'react';
import {
StyleSheet,
Text,
View,
Dimensions,
TouchableOpacity,
ImageBackground,
StatusBar,
ScrollView,
TextInput,
TouchableWithoutFeedback,
Image
} from 'react-native';
import firebase from 'react-native-firebase';
import Icon from 'react-native-vector-i... |
'use strict';
var mongoose = require('mongoose'),
GameObjects = mongoose.model('GameObjects'),
Report = mongoose.model('Report'),
game = require('../game'),
chance = require('../utilities/chance');
function handleAttack(attacker, defender, turns) {
var report = {
win: false,
attack... |
import * as Mocap from '../src/mocap.js';
import * as Mocap2d from '../src/mocapCanvas2d.js';
import * as Model from "../src/model.js";
let sequences = [];
let maxSequencesLoad = 600;
let loaded = true;
const availableSequencesText = document.getElementById("availableSequencesText");
const sequenceNumberInput = docu... |
import React from 'react';
import sql from 'mssql';
import Umbral from './Umbral/Umbral.js';
var nodemailer = require('nodemailer');
var c3 = require("c3");
var d3 = require("d3");
import domtoimage from 'dom-to-image';
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '<EM... |
'use strict'
/**
* Not type-checking this file because it's mostly vendor code.
*/
exports.__esModule = true
exports.parseHTML = exports.isPlainTextElement = void 0
/* eslint-disable */
/*!
* HTML Parser By <NAME> (ejohn.org)
* Modified by Juriy "kangax" Zaytsev
* Original code by <NAME> (MPL-1.1 OR Apac... |
/*
Copyright 2018 <NAME>
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, soft... |
/* global EBANX */
/* global Validation */
const invalidCardErrorMessage = 'Some error happened. Please, verify the data of your card and try again.';
// Observer for elements
function ElementsObserver(elements) {
const completionCallbacks = [];
const changeCallbacks = [];
function addCompletionCallback(callba... |
var labelType, useGradients, nativeTextSupport, animate;
// this is a modified version of an example file that came with <NAME>
// Belmonte's JavaScript InfoVis Toolkit http://thejit.org/downloads/Jit-2.0.0b.zip
// http://thejit.org/static/v20/Jit/Examples/RGraph/example1.js
// http://thejit.org/static/v20/Jit/Example... |
'use strict';
var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');
var _interopRequireWildcard = require('@babel/runtime/helpers/interopRequireWildcard');
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports['default'] = void 0;
var _classCallCheck2 = _interopRe... |
/*
* LibertyPie Project (https://libertypie.com)
* @author https://github.com/libertypie (<EMAIL>)
* @license SPDX-License-Identifier: MIT
*/
const Utils = require("../../classes/Utils");
const dataProcessor = require("../processors/PaymentMethodProcessor");
module.exports = {
contract: "Factory",
method: ""... |
const { Command } = require('discord.js-commando');
const Fortnite = require('fortnite-api');
const fortniteAPI = [
process.env.FORTNITE_EMAIL,
process.env.FORTNITE_PASS,
process.env.FORTNITE_LAUNCH,
process.env.FORTNITE_CLIENT,
];
const fortnite = new Fortnite(fortniteAPI, { debug: true });
class FortniteCommand... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.