text stringlengths 3.22k 29.5k |
|---|
import React, { Component } from 'react';
import {connect} from 'react-redux';
import debounce from 'lodash.debounce';
import ReactDOM from 'react-dom';
import {
relationshipChangeLabel,
relationshipDelete,
relationshipFocus
} from '../../actions/index';
import './RelationshipValueDisplay.css';
const DEL... |
import QandA from "/js/lib/QandA.js";
let questionNumber = 0;
const mainQuestion = `Hello. My name is L.I.L.I and Max designed me to help you find whatever you are looking for! Please select the option that best describes you! P.S. you can always switch to different pages with the buttons in the Nav Bar!`;
const mainB... |
import {testBed} from './helpers';
const minimal = opts => `
<form action="#" id="test-form">
<div data-recurly="number"></div>
<div data-recurly="month"></div>
<div data-recurly="year"></div>
<div data-recurly="cvv"></div>
<input type="text" data-recurly="first_name" value="${opts.first_name || ... |
import { get, post, del, put, request, postEvent } from '@hisp-amr/api'
import { getRecord } from './getRecord'
import {
ORGANISM_ELEMENT,
SAMPLE_ID_ELEMENT,
AMR_ELEMENT,
PERSON_TYPE,
L1_APPROVAL_STATUS,
L1_REVISION_REASON,
L2_APPROVAL_STATUS,
L2_REVISION_REASON,
} from 'constants/dhis2'... |
"use strict";
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var... |
//Função para seleção de elementos por id
function selectId(elementId) {
return document.getElementById(elementId);
}
//Definindo as variáveis que passarão por validação
const form = selectId('form-login')
const nome = selectId('nome')
const sobrenome = selectId('sobrenome')
const dataNasc = selectId('date-nasc')
... |
import BarChartD3 from '../d3/BarChart.d3.js';
import MultiAlignD3 from '../d3/MultiAlign.d3.js';
class MultiAlignModel {
constructor() {
this.scores = [];
this.selectedScore = null;
this.multialign_service = "https://multialign.iobio.io";
this.default_species_list = "Hum... |
'use strict';
const _ = require('lodash');
const { Router } = require('express');
const Promise = require('bluebird');
const bodyParser = require('body-parser');
const request = require('request');
const {
makePrometheus,
isPrometheusRequest,
makeTable,
sendError,
handleRequest,
getSearchOption... |
import React from 'react';
import Sortable from 'react-sortablejs';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import {
setDebtor,
setSplitterItems,
setSplitterTotal,
setSplitterTax,
setSplitterTip,
setSplitterDebtTotal,
} from '../actions/finalActions.js';
import {
a... |
import _ from "underscore";
import lodash from "lodash";
import math from "../math";
import constants, {HASH_TOLERANCE} from "../constants";
import {LATTICE_TYPE, LATTICE_TYPE_EXTENDED, LATTICE_TYPE_CONFIGS} from "./types";
import {LatticeBravais} from "./lattice_bravais";
import {LatticeVectors} from "./lattice_vect... |
"use strict";
const Logger = require("./../../logger/Logger");
const Tile = require("./../dashboardmanager/Tile");
const WebServices = require("./../../services/webservices/WebServices");
const APIResponse = require("./../../services/webservices/APIResponse");
const Authentication = require("./../authentication/Authent... |
import React, { useContext, useState, useEffect, useRef } from 'react';
import { TextileContext, WalletAddressContext, WalletProviderContext } from '../context';
import {
Drawer,
DrawerHeader,
DrawerOverlay,
DrawerContent,
DrawerCloseButton,
Button,
Link,
useDisclosure,
Table,
Thead,
Tbody,
Tr,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setUtils = setUtils;
exports.getSchema = getSchema;
exports.index = index;
exports.show = show;
exports.create = create;
exports.update = update;
exports.destroy = destroy;
exports.destroyMultiple = destroyMultiple;
exports.importFr... |
import React, { useEffect, useState } from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import styled, { ServerStyleSheet } from 'styled-components';
import * as CONSTANTS from './constants';
import { Button, ColorPicker, Grid, Hr, Input } from './components';
const StyledOnlyLaptop = styled.div`... |
/**
* LittleJS WebGL Interface
* <br> - All webgl used by the engine is wrapped up here
* <br> - For normal stuff you won't need to see or call anything in this file
* <br> - For advanced stuff there are helper functions to create shaders, textures, etc
* <br> - Can be disabled with glEnable to revert to 2D canva... |
var numberOfRows = 3;
var numberOfColumns = 4;
var Numbers;
var mouseOnTile = "0,0";
var colors = ["#82bd2d", "#39AB3E", "#B0EBAD", "C8D97E"];
var solvedTiles = new Array();
var timer = initializeTimer();
var tilesOpened = 0
var gameSolved = false;
window.onload = function () {
Numbers = populateArray(numberOfRows,... |
const PATH = require("path");
const webpack = require("webpack");
const HappyPack = require("happypack");
const autoprefixer = require("autoprefixer");
const ChunkManifestPlugin = require("webpack-manifest-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const HtmlWebpackPlugin = require("ht... |
var stats = function (game){
this.menuTop;
this.menuLeft;
this.menuCenter;
this.menuRight;
this.spacer;
};
var resultStyle = {font: "bold 30px Arial", fill: "#000"};
var headingStyle = {font: " 24px Arial", fill: "#000"};
var itemStyle = {font: " 18px Arial", fill: "#000"};
var c = document.cookie;
var newEventLi... |
"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... |
import React, { Component } from 'react';
import ___ from 'lodash';
import 'react-twitter-widgets';
import Helmet from 'react-helmet';
import { Carousel } from 'react-responsive-carousel';
import configCustom from '../../config_custom';
const style = require('./social.scss');
const instagramName = configCustom.app.soc... |
// Copyright (c) 2019 ml5
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/*
Image Classifier using pre-trained networks
*/
import * as tf from "@tensorflow/tfjs";
import * as mobilenet from "@tensorflow-models/mobilenet";
import * as darknet from "./darknet";
import * as... |
/*
* Copyright © 2020. TIBCO Software Inc.
* This file is subject to the license terms contained
* in the license file that is distributed with this file.
*/
//@ts-check
const { src, dest, task, parallel, series, watch } = require("gulp");
// Terser is a compressor similar to uglify-js
const terser = require("gu... |
const ui = require('./sync-ui');
const apis = require('./apis');
const ReconnectingWebSocket = require('reconnectingwebsocket');
const uploadMatchDetails = require('./match-details');
const parser = (event) => {
const { eventId, eventKey, apiKey, isFinalDivision, type } = event;
const logger = require('./logger');... |
var config = config || {
reportcodes: {},
termSelectionUrl: ''
};
var reportsModel = reportsModel || {};
// Bind ICD9, Disease, Period, and Age Report Selector visibility to whether these Terms were added by the user.
// These counts are performed each time a term is added or deleted or a criteria group is d... |
//DOM patches
Node.prototype.getAttributeNames = Node.prototype.getAttributeNames || function () {
var y = this;
return Object.keys(y.attributes).map(function (x) {
return y.attributes[x].name
})
}
// DOM Addons
// index is optional, if < 0 then returns the full array, otherwise, the
// position in the provided i... |
let canvas = document.getElementById("chart");
let chart;
let timerId;
let stove_temperature = document.getElementById("stove-temperature");
let inductance = document.getElementById("inductance");
let inductance_size = document.getElementById("inductance_size");
let isInductanceActived = false;
let genry_table = docum... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("2a038e91f6e5f6c7add968f0a7889dbd.js");
load("cb964fe54ef7245c321e0e470f72fd7c.js");
// |reftest| skip-if(!this.hasOwnProperty("TypedObject"))
var BUGNUMBER = 939715;
var summary = 'method type.from';
/*
* Any copyright is dedicated to the Public Domain.
* http://cre... |
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Other/javascript.js to edit this template
25/12/2021 20:23*/
/*
*
* @returns void
* @params --
*
* Función del listener "click" del botón que tiene la opci... |
/* eslint-disable */
const AWS = require('aws-sdk');
AWS.config.update({
'accessKeyId': process.env.AWS_ACCESS_KEY_ID,
'secretAccessKey': process.env.AWS_SECRET_ACCESS_KEY,
'region': 'us-east-1',
});
/**
* Status
* @param {string} email - The email address to send to.
* @param {string} newjwt - The jwt to sen... |
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const stream = require('stream');
const util = require('util');
const os = require('os');
const n = path.join, p = path.relative;
const r = fs.createReadStream, t = fs.lstat, u = fs.readdir;
const v = stream.PassThrou... |
'use strict'
import { app, protocol, BrowserWindow, ipcMain, dialog, Menu } from 'electron'
import fs from 'fs'
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
// import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
import { dateUtil } from '@youngbeen/angle-util'
const i... |
'use strict';
/* Controllers */
function IndexController($scope, $http) {
$scope.form_content = {
search_key : "",
page_limit: 5
}
function noe(i) {
return [undefined, null, ''].indexOf(i) > -1;
}
function is_empty_object(i) {
return Object.keys(i).length === 0;
}
function co... |
/**
* Conditional processor to format what to show and what to hide in viewer
* Referenced from markdown-it-inline-comments plugin
* See here: https://github.com/jay-hodgson/markdown-it-inline-comments
* Process =>hide 'This is a Text' <= as '' and ==>hide:condition 'Text in here' <== as ''
* based on the stated c... |
// consolidate into 3 functions
// body.onload init cityList
//debug
// var cityList = ["Austin","Chicago","Orlando","San Francisco"];
var cityList = []
// empty the div
function refreshCity () {
$("#citydiv").empty();
// dynamically generate the buttons based on the cityList
for (var i = 0; i < cityL... |
/*eslint-env node*/
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
maps = require('gulp-sourcemaps'),
cssnano = require('gulp-cssnano'),
htmlreplace = require('gulp-html-replace'),
del = require('del'),
imag... |
var checkUrls = [];
var checkExpect;
var chunk1Urls = [
"test.com/aba",
"test.com/foo/bar",
"foo.bar.com/a/b/c"
];
var chunk1 = chunk1Urls.join("\n");
var chunk2Urls = [
"blah.com/a",
"baz.com/",
"2192.168.3.11/",
"www.foo.com/test2?param=1"
];
var chunk2 = chunk2Urls.join("\n");
var chunk3Urls = [
"... |
/*
* 3D GEO LOCATOR
* Based on Mr.Doob's Threejs
* (C) <NAME> 2015
*/
var pi2 = Math.PI / 2;
GeoPosition.prototype.LABEL = "_AUX_SPPOS";
// Constructor
function GeoPosition(opts) {
opts = opts || {};
console.log("opts: "+opts);
//this.texture = opts.texture || 'resources/world_black.jpg';
this.t... |
var timeout;
// $(".path").hover(
// function() {
// clearTimeout(timeout);
// $('#info-box').css({
// 'display':'block',
// });
// $('.info-box').html($(this).data('info'));
// $('.'+$(this).data('info')).css({
// 'opacity': '0.5',
// 'font-weight':'bold',
// 'text-decor... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.McdPlugin = exports.defaultTokens = exports.ALLOWANCE_AMOUNT = exports.SAI = exports.defaultCdpTypes = exports.TUSD = export... |
/*
* R Service Bus
*
* Copyright (c) Copyright of Open Analytics NV, 2010-2021
*
* ===========================================================================
*
* This file is part of R Service Bus.
*
* R Service Bus is free software: you can redistribute it and/or modify
* it under the terms o... |
/* eslint-disable no-console */
const express = require("express");
const fetch = require("node-fetch");
var http = require("http");
//var path = require("path");
const socketIO = require("socket.io");
const api = express();
const server = http.createServer(api);
var io = socketIO(server);
generateCatBackground();
se... |
var convert = require('./convert.js')
var base58 = require('./base58.js')
var assert = require('assert')
var format = require('util').format
var util = require('./util.js')
var Crypto = require('crypto-js');
var HmacSHA512 = Crypto.HmacSHA512
var ECKey = require('./eckey.js').ECKey
var ECPubKey = require('./eckey.js').... |
// reqUtils.js
const { implies } = require('implies');
const isNil = require('lodash.isnil');
const assign = require('lodash.assign');
const merge = require('lodash.merge');
const validator = require('@outofsync/validation-helper');
const Localize = require('@outofsync/localize');
const defaultDictionary = require('... |
'use strict';
let fs = require('fs');
let path = require('path');
let os = require('os');
function split(str) {
let results = [];
let word = '';
let validWord;
for (let i = 0; i < str.length;) {
if (/\s/.test(str[i])) {
//Skips spaces.
while (i < str.length && /\s/.test(str[i])) {
i++;... |
// Zombie Shooter
// <NAME>
// start 10/19/21
// ends 11/04/21
// ////////////////////////////////////////////GLOBAL/VARIABLES/////////////////////////////////////////////////////////////
// lvl
let level = 2;
// start, in game, or end
let currentState = "start";
// backgrounds
let levelOneBg;
let levelTwoBg;
l... |
const pawnT = [
[0, 0, 0, 0, 0, 0, 0, 0],
[50, 50, 50, 50, 50, 50, 50, 50],
[10, 10, 20, 30, 30, 20, 10, 10],
[5, 5, 10, 25, 25, 10, 5, 5],
[0, 0, 0, 20, 20, 0, 0, 0],
[5, -5, -10, 0, 0, -10, -5, 5],
[5, 10, 10, -20, -20, 10, 10, 5],
[0, 0, 0, 0, 0, 0, 0, 0]
];
const knightT = [
[-50, -40, -30, -30, ... |
"use strict";
/**
*
*
*
* <i>Copyright (c) 2014 ITSA - https://github.com/itsa</i>
* New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
*
* @module focusmanager
* @class FocusManager
* @since 0.0.1
*/
require("itsa-jsext");
require("itsa-dom");
const utils = require("itsa-utils"),
isNode... |
function Controller() {
function UbicacionActual() {
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
Titanium.Geolocation.distanceFilter = 10;
Ti.Geolocation.purpose = "Mostrar tu posición actual";
Titanium.Geolocation.getCurrentPosition(function(e) {
... |
import React from 'react';
import { Animated, StyleSheet, Text, TextInput, View, TouchableOpacity, Alert, Platform, Linking } from 'react-native';
import { Icon } from 'react-native-elements';
import firebase from 'react-native-firebase';
import InventoryList from './InventoryList';
import LogIn from './LogIn';
expo... |
import codeMirror from "codemirror";
import { ITextEditor, TableEditor, Point, options, Alignment } from "@susisu/mte-kernel";
// text editor interface
// see https://doc.esdoc.org/github.com/susisu/mte-kernel/class/lib/text-editor.js~ITextEditor.html
class TextEditorInterface extends ITextEditor {
constructor(edito... |
var util = require('util'),
i = util.inspect,
f = util.format,
j = require('path').join,
EventEmitter = require('events').EventEmitter,
lifeStarDir = j(process.env.WORKSPACE_LK, 'node_modules/life_star'),
websocket = require("websocket"),
lifeStar... |
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var utils_1 = require("@sentry/utils");
var utils_2 = require("../utils");
var global = utils_1.getGlobalObject();
/** Class tracking metrics */
var MetricsInstrumentation = /** @class */ (function () {
function MetricsI... |
const MBContract = require('./mb_contract');
const MBDefaults = require('./mb_defaults');
const MBNotifications = require('./mb_notifications');
const MBPrice = require('./mb_price');
const MBProcess = require('./mb_process');
const MBTick = require('... |
let sessionId = io.socket.sessionid;
console.log(sessionId);
var myRec = new p5.SpeechRec(); // new P5.SpeechRec object
myRec.continuous = true; // do continuous recognition
myRec.interimResults = true; // allow partial recognition (faster, less accurate)
let systems;
let x, y;
let dx, dy;
let swan_files = [ '514267... |
class Service {
constructor(name, typ, url, server, rest, wms, wfs, csw, rdf, oai, urlPart) { // Constructor
this.name = name;
this.typ = typ;
this.url = url;
this.server = server;
this.rest = rest;
this.wms = wms;
this.wfs = wfs;
this.csw = csw;
... |
var drawSVG = function (viewId,totalAmount,maxAmount,config) {
if (totalAmount < 1) {
return;
}
var svgNS = 'http://www.w3.org/2000/svg';
var strokeWidthActive = viewConfig.strokeWidthActive;
var svgSize = viewConfig.svgSize;
var minSize = viewConfig.minSize;
var ... |
import { isCommented, isLineAfterMain, getVariableType, getShaderForTypeVarInLine, getResultRange, getDeltaSum, getHits, getMedian } from '../tools/debugging';
import { unfocusLine, focusLine, unfocusAll, focusAll } from '../core/Editor.js';
var main_ge = {};
var N_SAMPLES = 30;
export default class VisualDebugger {
... |
import React, { Component } from 'react';
import AlertWidget from './AlertWidget'
import ContactWidget from './ContactWidget'
import CustomSensorWidget from './CustomSensorWidget'
import GasWidget from './GasWidget'
import LuxWidget from './LuxWidget'
import MediaPlayer from './MediaPlayer'
import MeterWidget from './M... |
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) &&... |
/*-----------------TableDAlphabets------------------------------*/
const $tableID = $('#table');
const $BTN = $('#export-btn');
const $EXPORT = $('#export');
const newTr = `
<tr class="hide">
<td class="pt-3-half" contenteditable="true">a</td>
<td>
<span class="table-remove"><button type="button" class="btn... |
/**
*
* PanelExplore
*
*/
import React, { useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-comp... |
#!/usr/bin/env node
var DME = require("./dme.js"),
Jenkins = require("hash-jenkins"),
xml2js = require("xml2js"),
fs = require("fs"),
path = require("path");
function usage() {
console.log("Usage: ./dmetool.js <mode> <inPath> [<outPath>]");
console.log("Modes: info Display basic info about... |
import * as R from 'ramda'
import * as React from 'react'
import AutosizeInput from 'react-input-autosize'
import { Link } from 'react-router-dom'
import * as M from '@material-ui/core'
import * as Pagination from 'components/Pagination'
import { readableBytes } from 'utils/string'
import tagged from 'utils/tagged'
im... |
//--------------------//
//--GLOBAL VARIABLES--//
//--------------------//
//define the players symbols
var players = {computer: "O", player: "X"};
//current state of the board
var b = new Array(9).fill(0);
//difficulty 0 always plays randomly. 1 blocks and goes for wins, but otherwuse randomly. anything else always tr... |
function getCurrentTreeData(eventData) {
return eventData.tree.rootNode.children
}
function GET(url, callback, failback) {
return jQuery
.ajax(url, {
method: 'GET',
cache: false,
crossDomain: true
})
.done(callback)
.fail(failback)
}
function POST(url, data, callback, failback) {
return jQuery
.... |
var trainScheduleFull=[];
var count=0;
var HH; //Hours
var MM; //Minutes
var editDeleteItem; // this will store the name of the item that is being deleted or edited
var validKeys=[48,49,50,51,52,53,54,55,56,57];
var y;
// Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "trainscheduler-bf637.firebaseap... |
function triggerSubscribe() {
$.ajaxSetup({
contentType: "application/x-www-form-urlencoded; charset=utf-8"
});
jagg.sessionAwareJS({redirect:'/site/pages/index.jag'});
if (!jagg.loggedIn) {
return;
}
var applicationId = $("#application-list").val();
var applicationName = $("#ap... |
// File: https://pronak657.github.io/GUI/HW8/hw8.html
// COMP 4610 Assignment 8: Implementing a Bit of Scrabble with Drag-and-Drop
// <NAME>, UMass Lowell Computer Science, <EMAIL>
// Copyright (c) 2020 by <NAME>. All rights reserved. May be
// freely copied or excerpted for educational purposes with credit to... |
/*
* Block Data query
*/
var Fabric_Client = require('fabric-client');
var path = require('path');
var fabric_client = new Fabric_Client();
var channel = fabric_client.newChannel('ch-taxrefund');
var peer = fabric_client.newPeer('grpc://localhost:7051');
var orderer= fabric_client.newOrderer('grpc://localhost:7050... |
import React, { Component } from 'react';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Card, Row, Col, message } from 'antd';
import { connect } from 'dva';
import moment from 'moment';
import { withRouter } from 'react-router-dom';
import { getFormLayout, eq... |
/**
* The store contains the global state of the ADR-Manager and can be used to communicate between components.
*
* Emitted Events:
*
* 'open-adr'
* - {object} adr object
* 'set-mode'
* - {string} mode (either 'basic', 'advanced' or 'profesional')
*/
import Vue from 'vue'
import _ from 'lodash'
import... |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { white, blueA700, grey100, grey300, grey700, grey800 } from 'material-ui/styles/colors'
import EditorPage from '../components/EditorPage'
import { requestTemplates } f... |
import React from 'react';
import { ResponsiveContainer, LineChart, Line, ReferenceLine, YAxis, XAxis, Tooltip, CartesianGrid, Legend } from 'recharts';
import { makeStyles } from '@material-ui/core/styles';
import { Typography } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import { scaleSymlog ... |
require("bootstrap/js/transition");
require("bootstrap/js/modal");
require("bootstrap/js/dropdown");
require("bootstrap/js/button");
var _ = require("underscore");
var Chat = require("./classes/Chat");
var Helper = require("./classes/Helper");
var ChatApi = require("./classes/Api");
var AsyncHandler = require("./classe... |
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
// the translations
// (tip move them in a JSON file and import them)
const resources = {
en: {
translation: {
"Main Tool": "Main Tool",
"JavLibrary Manager": "JAV Downloader",
"Handy Features": "Handy Features",
... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Link, Redirect, withRouter } from "react-router-dom";
import { Fade } from "react-reveal";
import { PageHeaderComponent } from "../../../components";
import SurveyVotesTable from "./components/tables/survey-votes";
import SurveyDo... |
import React, {Component} from 'react';
import Highlighter from 'react-highlight-words'
import {AutoSizer, List} from "react-virtualized";
import 'react-select/dist/react-select.css';
import 'react-virtualized/styles.css'
import 'react-virtualized-select/styles.css'
import PropTypes from 'prop-types'
import Select f... |
var voicelocalId = "";
var voiceserverId = "";
var voicesender = 0;
var voicecansel = false;
var voicestatus = 0;
//alert(returnCitySN["cip"]);ps -ef|grep nginx /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.config
function getGameUrl(){
return "http://cc.wenzhennet.net/wxinfo/mygame.php";
}
function g... |
import {t} from '@lingui/macro'
import {Trans, Plural} from '@lingui/react'
import React from 'react'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import Module from 'parser/core/Module'
import {TieredRule, Requirement, TARGET} from 'parser/core/modules/Checklist'
import {TieredSu... |
var parser = require('./parser'),
fs = require('fs'),
blacklistedNames = {
_name: 1, _value: 1, _remove: 1, _add: 1,
_getString: 1, _root: 1, toString: 1, _comments: 1,
_isVerbatim: 1, _addVerbatimBlock: 1
};
function createConfItem(file, context, node) {
var name = node.name,
value = node.value,
childre... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux'
import ColorThief from '@mariotacke/color-thief'
import { PlayButton, PauseButton, NextButton, PrevButton, FormattedTime, VolumeSlider, ControlDirection, MuteToggleButton } from 'react-player-controls'
impor... |
const { Discord } = require('../..');
const config = require('../../config');
const { TrimMsg } = require('../../utils/auxiliarFunctions');
const { get_xp, moneyGet } = require('../../mongodb')
/*
Say some informations about a specific member
- When the accontou was created
- How much time since the accoun... |
var mCompileTimer = null
var mErrors = new Array()
var mExecs = new Array()
var mExecTimer = null
var mFeedback = false
var mLanguage = 'python'
var mCode = ''
// var NNSave = []
// var NNStartTime = Date.now()
// var NNDeltaTime = 0
var NNExecuteTimer = null
var NNBaseTime = 1000 //this is in milliseconds
var NNRan... |
const vertexShaderText = [
'precision mediump float;',
'',
'attribute vec3 vertPosition;',
'attribute vec3 vertColor;',
'varying vec3 fragColor;',
'',
'uniform mat4 mWorld;',
'uniform mat4 mView;',
'uniform mat4 mProjection;',
'',
'void main()',
'{',
' fragColor = v... |
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }... |
const cfg = require("../../../config");
const ELobbyStatus = require("../../structures/enums/ELobbyStatus");
"use strict";
/**
* @class SummaryHandler
* @property {Discord.Client} bot
* @property {Discord.Channel} masterChannel
*/
class SummaryHandler {
/**
* @param {Discord.Client} bot
* @param {Discord.C... |
/**
* Copyright 2020, 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.
*/
import { identity } from 'lodash';
import { Observable } from 'rxjs';
import { parseString } from 'xml2js';
i... |
/**
* Created by guoshuyu on 2017/11/10.
*/
import React, { Component, PureComponent } from 'react';
import {
View, InteractionManager, StatusBar, Dimensions, StyleSheet, BackHandler
} from 'react-native';
import { Actions, Tabs } from 'react-native-router-flux';
import styles, { screenHeight } from "../assets/s... |
/* globals beaker monaco */
import { LitElement, html } from '../../vendor/lit-element/lit-element.js'
import { repeat } from '../../vendor/lit-element/lit-html/directives/repeat.js'
import * as toast from './toast.js'
import * as session from '../lib/session.js'
import { AVATAR_URL } from '../lib/const.js'
import * as... |
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];
}
r... |
class World {
constructor(config) {
let collisionConfiguration, dispatcher, overlappingPairCache,
solver, dynamicsWorld;
let Ammo = config.Ammo;
collisionConfiguration = new Ammo.btDefaultCollisionConfiguration();
dispatcher = new Ammo.btCollisionDispatcher(collisionConfiguration);
over... |
import React, { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import * as fetch from 'node-fetch';
import Loading from "../Components/Loading";
import * as BS from "react-bootstrap";
import history from "../History.js";
import { FaLockOpen, FaHome } from "react-icons/fa";
import API_U... |
//get slug
window.ChangeToSlug = (id) => {
var title, slug;
//Lấy text từ thẻ input title
title = document.getElementById(id).value;
//Đổi chữ hoa thành chữ thường
slug = title.toLowerCase();
//Đổi ký tự có dấu thành không dấu
slug = slug.replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi, "a"... |
'use strict';
/* globals OS_ANDROID,OS_IOS */
const should = require('should');
const utilities = require('./utilities');
const isIOSDevice = OS_IOS && !Ti.Platform.model.includes('(Simulator)');
// use pngjs and pixelmatch!
const zlib = require('browserify-zlib');
global.binding.register('zlib', zlib);
const PNG = re... |
/*
Copyright 2020 Eduworks Corporation
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, sof... |
/* jshint node:true */
'use strict';
var path = require('path'),
FS = require('q-io/fs'),
Q = require('q'),
Mithril = require('mithril'),
mock = require('./mock.js');
var page,
routesFname,
app,
routes,
def,
mod,
localRoot,
remoteRoot,
script,
placeholder,
rxApp,
routeParams = {},
isoName,
IsoModules... |
'use strict';
const express = require('express');
const app = express();
const path = require('path')
const http = require('http').createServer(app)
const io = require('socket.io')(http);
require('dotenv').config();
let PORT = process.env.PORT
const char = require('./backend2/characters.js');
const loot = require('.... |
#!/usr/bin/env node
var child_process = require('child_process');
var path = require('path');
var fs = require('fs');
var xml2js = require('xml2js');
var optimist = require('optimist');
var utils = require('./utils');
//
// Constants
//
var TIAPP_XML = "tiapp.xml";
var APP_SUFFIX = ".app";
var LOG_SUFFIX = ".log";
va... |
function Form(name,listPoints){
this.name = name
this.list = listPoints
}
function Spot(number,x,y){
this.n = number
this.x = x
this.y = y
}
function objToPassed(width,height,mod,space,listForm){
this.w = width
this.h = height
this.mod = mod
this.space = space
this.forms = listF... |
'use strict';
import {
AssertionError,
AttributeError,
BaseException,
DeprecationWarning,
Exception,
IndexError,
IterableError,
KeyError,
NotImplementedError,
RuntimeWarning,
StopIteration,
UserWarning,
ValueError,
Warning,
__JsIterator__,
__PyIterator__,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.