text stringlengths 3.22k 29.5k |
|---|
const Discord = require("discord.js");
const botconfig = require("../botconfig.json");
const colours = require("../colours.json");
const StockXData = require("stockx-data");
const stockx = new StockXData();
const db = require('quick.db');
const ms = require("ms");
const {
MessageButton,
MessageActionRow
} = req... |
import dotenv from 'dotenv';
import SimpleCrypto from 'simple-crypto-js';
import models from '../../database/models';
import {
createSubquery,
includeStatusSubquery,
asyncWrapper,
retrieveParams
} from '../../helpers/requests';
import UserRoleController from '../userRole/UserRoleController';
import Notificatio... |
/**
* AngularJS factory for restful.
* @version v0.0.3 - 2013-06-07
* @link https://esdrasedu.github.io/angular-restful
* @author <NAME> <<EMAIL>>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
angular.module('restful', ['ng'])
.provider('$routeRestful', RouteRestfulProvider)
.provider(... |
var d = require("dane_arwes");
var Arwes = d.default();
const yOffset = 23;
const width = g.getWidth();
const height = g.getHeight();
const xyCenter = width / 2 + 4;
const Storage = require("Storage");
const filename = 'dane_tcr.json';
let settings = Storage.readJSON(filename, 1) || {
hightres: true,
animatio... |
// Needed for Tone Analyzer API
import ToneAnalyzerV3 from 'ibm-watson/tone-analyzer/v3.js'
import { IamAuthenticator } from 'ibm-watson/auth/index.js'
const apikeys = process.env.TONE_ANALYZER_KEYS.split(',')
const urls = process.env.TONE_ANALYZER_URLS.split(',')
let toneAnalyzer
let toneAnalyzerIndex = 0
const lin... |
import React, { useEffect, useState } from "react";
import { connect } from "react-redux";
import { fetchPlaces } from "../store/places";
import { fetchUsersWithinDistance } from "../store/users";
import { fetchMyFriends } from "../store/users";
import { fetchAllEvents, setSingleEvent } from "../store/events";
const L ... |
const keypress = require( 'keypress' )
const ttys = require( 'ttys' )
const stdin = ttys.stdin
const stdout = ttys.stdout
const stringWidth = require( 'string-width' )
const clc = require( 'cli-color' )
module.exports = start
function start ( _list, callback )
{
const api = {}
api.update = function ( _list )... |
"use strict";
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];
... |
import React from "react";
import PropTypes from "prop-types";
import SwipeableViews from "react-swipeable-views";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Tabs from "@material-ui/core/Tabs";
import Tab from "@material-ui/core/Tab";
import Ty... |
import React, { PureComponent } from 'react'
import { View, SafeAreaView, StyleSheet } from 'react-native'
import { connect } from 'react-redux'
import I18n from 'i18n-js'
import Icon from 'react-native-vector-icons/Ionicons'
import { Header, IconButton, Picker, Text, TouchableOpacity } from '../components'
import sty... |
const fs = require('fs-extra');
const path = require('path');
const config = require('../lib/config');
const logger = require('../lib/logger');
const {exec} = require('child_process');
const mongo = require('../lib/mongo');
const aws = require('../lib/aws');
const ecosisSync = require('../lib/sync/ecosis');
class Back... |
"use strict";
const npath = require("path");
const fs = require("fs");
const os = require("os");
const minimist = require("minimist");
const camelcaseKeys = require("camelcase-keys");
const con = require("@gourmet/console")();
const promiseMain = require("@gourmet/promise-main");
const promiseProtect = require("@gourm... |
import React, { Component } from "react";
import {
Card,
Form,
Divider,
Dropdown,
Button,
Modal,
Icon,
Header
} from "semantic-ui-react";
import { Link } from "react-router-dom";
import { showError } from "../../../actions";
import { connect } from "react-redux";
import InputMask from "react-input-mask"... |
//(function(){
//console.log(adapter.browserDetails.browser);
//视频区域内容
function changeContent(content, video) {
var video_out = document.getElementById("vid-box");
if (video_out) {
video_out.innerHTML = content;
if (video)
video_out.appendChild(video);
}
}
var pub_key = "<KEY>";... |
/**
* Copyright 2013 Facebook, 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 or agreed to ... |
/*
Send images and metadata to linux-based
printer
*/
console.log('Printer started');
var faye = require('faye');
var config = require('../shared/config');
var utils = require('../shared/utils');
var fs = require('fs');
var exec = require('child_process').exec;
var path = require('path');
var Promise = require('... |
// utility functions
function showLoader() {
var gt = gLoader;
$('#' + gt).css({display: 'table'});
}
function hideLoader() {
var gt = gLoader;
$('#' + gt).css({display: 'none'});
}
function renderPartialPages(domId) {
if (typeof domId != 'undefined') {
var dom = $('#' + domId);
v... |
/* eslint-disable no-underscore-dangle, no-param-reassign */
import babelTraverse from '@babel/traverse';
import babelGenerator from '@babel/generator';
import * as t from '@babel/types';
import cleanJSXElementLiteralChild from '@babel/types/lib/utils/react/cleanJSXElementLiteralChild';
import {
createAttribute,
cr... |
///////////////////////////////////////////////////////////////////////
// JSONCrush by <NAME> [MIT] https://github.com/KilledByAPixel/JSONCrush
///////////////////////////////////////////////////////////////////////
// Downgraded to ES5 with BabelJS
"use strict"; // strict mode
function _createForOfIteratorHelper... |
/* eslint-disable react/jsx-indent */
import React, { PureComponent } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
import { findDOMNode } from 'react-dom';
import { Table, Input, Button, Card, Form, Modal, Upload, message, Icon } from 'antd';
import Result... |
///////////////////////////////////////
// Coding Challenge #1
/*
Julia and Kate are doing a study on dogs. So each of them asked 5 dog owners about their dog's age, and stored the data into an array (one array for each). For now, they are just interested in knowing whether a dog is an adult or a puppy. A dog is an a... |
/**
* SimpleTalk Navigator Webcomponent
* ------------------------------------------
* This is a standalone component that allows
* authors to navigate the WorldStack and individual
* Stacks therein using a convenient pop-out tray from
* the bottom of the screen.
**/
import PartView from '../PartView.js';
import... |
function factorial(n){
if(n < 0) throw new Error(`Cannot get factorial of negative number: ${n}`);
if(n === 0) return 1;
let result = n;
for(let i = 1; i < n; i++){
result *= n - i;
}
return result;
}
function combinations(n, k){
return factorial(n) / (factorial(k) * factorial(n - k));
}
function parseColor(... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styles from './styles.css'
function classnames() {
/**
* Our simple classnames replica.
* This is enough for me.
*/
return Array(...arguments).filter(a => a).join(' ')
}
const _attrs = {
/**
* This is for the end user.... |
function bl_open_uploader(element, class_name){
$that = jQuery(element);
wp.media.editor.send.attachment = function(props, attachment){
$that.prev().val(attachment.url);
jQuery('.'+class_name + ' > img').remove();
jQuery('.'+class_name).prepend('<img src="'+attachment.url+'" style="width:... |
// import React from 'react';
import Viz from 'viz.js/viz.js';
import API from "./API";
import React, {Fragment} from "react";
import {ExternalLinkIcon} from "react-open-iconic-svg";
const { Module, render } = require('viz.js/full.render.js');
/*
function *intersperse(a, delim) {
let first = true;
for (const ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _rambdax = require("rambdax");
var _cacheWhileConnected = _interopRequireDefault(require("../utils/rx/cacheWhileConnected"));
var _allPromises = _interopRequireDefault(require("../utils/fp/allPromises"));
v... |
const c = document.getElementById("screen");
const mapc = document.createElement("canvas");
const draw = c.getContext("2d");
const map = mapc.getContext("2d");
const keys = [];
const fps = 60;
document.body.appendChild(mapc);
let mapData;
let mapTool = "move";
let mouseX;
let mouseY;
let mouseDown = 0;
let techLevel ... |
var search_key = '';//搜索类型
var kw = '';//搜索关键词
var fields = '*';//列表搜索字段
var sfields = '*';//统计搜索字段
var unfields = '';//去除的字段
var order = '';//排序
var where = {};//列表搜索条件
var swhere = {};//统计搜索条件
var page = 1;//页数
var field = '*';
var time = '*';
var uid = '';
var time_style = '*';
/**
* 获取客户列表
*/
fu... |
function log(msg) {
print("KWinMax2NewVirtualDesktop: " + msg);
}
/*
* Enum that should match the config in main.xml
*/
const TriggerValues = {
FullscreenOnly: 0,
MaximizeOnly: 1,
FullscreenAndMaximize: 2
};
/*
* Enum that should match the config in main.xml
*/
const NewDesktopPositionValue = {
... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Global variables and constants
var express = require('express')
var app = express()
var http = require('http').Server(app);
var io = require('socket.io')(http);
var mmgContract = require('./blockchain_interactio... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var polybool = require('polybooljs');
var Registry = require('../../registry');
var Color = require('../../com... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import PageHeaderLayout from 'layouts/PageHeaderLayout';
import { Card, Button, Input, Select, Radio, DatePicker, Divider, Modal } from 'antd';
import PanelList, { Search, Batch, Table } from 'components/PanelList';
import Authorized from 'uti... |
//
// widgets-example.js
// games
//
// Copyright 2015 High Fidelity, Inc.
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var paddingX = 8;
var paddingY = 8;
var buttonWidth = 30;
var buttonHeight = 30;
var ICON... |
let https = require('https');
let fs = require('fs').promises;
let { promisify } = require('util');
let assert = require('assert');
let { getArray, getNumber, getBoolean } = require('./support/tokenConfig.js');
function printUsage() {
console.log(`
usage:
npx saddle script -n {network} flywheel:init {
batch: numbe... |
var alleles = 2;
const default_header = 'D5S818 D5S818_2 D13S317 D13S317_2 D7S820 D7S820_2 D16S539 D16S539_2 vWA vWA_2 TH01 TH01_2 TPOX TPOX_2 CSF1PO CSF1PO_2 Amelogenin Amelogenin_2 D3S1358 D3S1358_2 D21S11 D21S11_2 D18S51 D18S51_2 PentaE PentaE_2 PentaD PentaD_2 D8S1179 D8S1179_2 FGA FGA_2 D19S433 D19S433_2 D2S1338 D... |
/**
* @description 创建虚拟滚动,维持大数据 table 渲染
*/
import { orderBy } from 'element-ui/packages/table/src/util.js';
export const virtualProps = function () {
return {
// 是否开启
enable: false,
// 行高度
rowHeight: 0,
// 总高度
totalHeight: 0,
// 渲染区域高度
renderHeight: 0,
// 开始渲染位置
indexStar... |
const METERS_IN_AU = 149597870700;
const SECONDS_IN_DAY = 86400;
// TODO(ian): Allow multiple valid attrs for a single quantity and map them
// internally to a single canonical attribute.
const EPHEM_VALID_ATTRS = new Set([
'a', // Semi-major axis
'e', // Eccentricity
'i', // Inclination
'q', // Perihelion dis... |
"use strict";
let canvas = document.getElementById('flappy_bird');
let canvas_context = canvas.getContext('2d');
canvas.width = canvas.offsetWidth;
canvas.height = canvas.offsetHeight;
// constants
const GAME_WIDTH = canvas.width - ((canvas.width > 700) * 250); // should be equal to or less than canvas width in pix... |
import notify from 'osg/notify';
import utils from 'osg/utils';
import GLObject from 'osg/GLObject';
import StateAttribute from 'osg/StateAttribute';
import Timer from 'osg/Timer';
import WebglCaps from 'osg/WebGLCaps';
/**
* FrameBufferObject manage fbo / rtt
* @class FrameBufferObject
*/
var FrameBufferObject = f... |
import React, {useEffect, useRef, useState} from 'react';
import * as twgl from 'twgl-base.js';
import vs from '../shaders/vs';
import fs from '../shaders/fs';
import {Board} from "../components/Board";
const Sq3 = Math.sqrt(3.0) / 2;
const DxA = Sq3 * 2;
const DyA = 0;
const DxB = Sq3;
const DyB = 1.5;
const Initia... |
/******************************************************************************
* Copyright 2019 ModusBox, Inc. *
* *
* <EMAIL> *
* ... |
const express = require('express');
const asyncHandler = require('express-async-handler');
const crypto = require('crypto');
const moment = require('moment');
const get = require('lodash/get');
const holiday = require('./next_holiday_calc');
const recs = require('../recommend.js');
const search = require('../search.js... |
const reg4Base64 = /^data\:[\w-]+\/[\w-]+;base64,/; // check where the data is base64 format
function handleUnload(self, isMarker = false) {
const marker = document.querySelector('#marker-preview img');
if (isMarker && marker) {
marker.remove();
}
const preview = self.parentElement.parentEleme... |
/**
* Copyright 2018 Kinvey, 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 or agreed to... |
const settingData = [
'Outside an abandoned warehouse',
'At vacation home in upstate New York',
'On a beach',
'Inside a stalled commuter train',
'At the ballet',
'On a romatic trip',
'Hiding under a piece of furniture',
'On a first date',
'During a monsoon',
'In gridlocked traffic',
'In the backse... |
/*
Copyright 2020 Croquet 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... |
// Created by <NAME> on 19/04/2020.
// Licensed under MIT.
class DisneyPlusTogether {
constructor(displayName, server="localhost", port=2626) {
// Initialize WebSocket over TLS (Must be TLS-signed or it can't be connected to by an HTTPS site)
this._ws = new WebSocket(`wss://${server}:${port}`);
... |
/**
* External depedencies.
*/
import { observe } from 'selector-observer';
/**
* Internal depedencies.
*/
import iconsCache from './icon-cache';
import iconMap from './icon-map';
import languageMap from './language-map';
// Expected configuration.
iconMap.options = {
...iconMap.options,
...{
activeIconPa... |
var decode = require('georender-pack/decode')
var prepare = require('mixmap-georender/prepare')
var shaders = require('mixmap-georender')
var geotext = require('mixmap-georender/text')
var planner = require('viewbox-query-planner')
var getImagePixels = require('get-image-pixels')
var bboxIntersect = require('bbox-inter... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
const BufferWrapper = require('../buffer');
const DXT1 = 0x1;
const DXT3 = 0x2;
const DXT5 = 0x4;
const BLP_MAGIC = 0x32504c42;
/**
* Unpack a colour value.
* @param {Array} block
* @param {number} index
* @param {number} ofs
* @param {Array} colour
* @param {number} colourOfs
* @private
*/
... |
import cloneDeep from 'lodash/cloneDeep';
import flattenDeep from 'lodash/flattenDeep';
import compact from 'lodash/compact';
import { JSONPath } from 'jsonpath-plus';
import Vue from 'vue';
import transform from 'lodash/transform';
import isObject from 'lodash/isObject';
import isArray from 'lodash/isArray';
import is... |
import React, { useEffect, useState, useRef } from 'react'
import Peer from 'simple-peer'
import { useHistory } from 'react-router-dom'
import socket from '../../services/socket'
import './VideoCall.css'
import { connect } from 'react-redux'
import queryString from 'query-string'
import { IoIosCall } from 'react-icons/... |
var primitives = {
rect: {
type: 'mark',
delegate: {
html: '<div class="primitive" style="top: 0px; left: 20px; width: 60px; height: 150px"></div>',
x: 75,
y: 30,
height: 170,
width: 95,
},
properties: {
height... |
var http = require('http')
, url = require('url')
, fs = require('fs')
, https = require('https')
, net = require('net')
, path = require('path')
, exec = require('child_process').exec
, EventEmitter = require('events').EventEmitter
, zlib = require('zlib')
, sniparse = require('./sniparse');
require... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------... |
// Create the Express app
const express = require("express");
const app = express();
// NOTE: The "cors" below is NOT needed, because we only want browsers located in "localhost" to execute
// the below /getCoins POST. That way, if someone OUTSIDE of the computer tries to execute the below RESTFul
// Web Service direc... |
$(function () {
checkUserLogin();
$('#can').html('--');
$('.investor-line').show();
//1:机构 0:个人
$('.item-radio').change(function () {
if($(this).val() == 0){
$('#netassets').show();
$('#realnamediv').hide();
$('#orgCodediv').hide();
$('#imagediv').... |
'use strict';
var debug = require('debug')('denormalizer:revisionGuard'),
_ = require('lodash'),
async = require('async'),
Queue = require('./orderQueue'),
ConcurrencyError = require('./errors/concurrencyError'),
AlreadyDenormalizedError = require('./errors/alreadyDenormalizedError'),
AlreadyDenormalizingE... |
const Lab = require('@hapi/lab');
const Code = require('@hapi/code');
const { compile, compileExpression, run, default: Bigodon } = require('../dist');
const { VERSION } = require('../dist/parser/index');
const { describe, it } = exports.lab = Lab.script();
const { expect } = Code;
describe('runner', () => {
it(... |
import Vue from 'vue'
import { get, set } from 'idb-keyval'
import { isPointWithinRadius } from 'geolib'
import {
generateKeypair,
jwkToKeypair,
keypairToJwk,
publicToPem,
signReview,
submitReview,
getSubject,
getIssuer,
batchAggregate,
getReviews
} from 'mangrove-reviews'
import { MARESI, GEO, subT... |
/*********************************************************
* The publicly exposed MathQuill API.
********************************************************/
var API = {}, Options = P(), optionProcessors = {}, Progenote = P(), EMBEDS = {};
/**
* Interface Versioning (#459, #495) to allow us to virtually guarantee
* ... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnP... |
/**
* Copyright 2019 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html } from "lit-element/lit-element.js";
/**
* `undo-manager`
* `an undo history manager element`
* This brings ideas from https://addyosmani.com/blog/mutation-observers/
* back ... |
// see https://dev.to/maurobringolf/a-neat-trick-to-compute-modulo-of-negative-numbers-111e
import CU from "./ColorUtilities.js";
const Color = {};
const mod = (x, n) => ((x % n) + n) % n;
Color.create = ({ name, h = 0, s = 100, l = 50, components } = {}) => {
const h2 = mod(h, 360);
return Immutable({ name, h... |
'use strict';
// Global Variables
var arrayOfProduct = [];
var arrayOfImages = ['All-Season-Cake.jpg', 'Avocado-Pies.jpg', 'Cheese-Meatballs-Pasta.jpg', 'Christmas-tree-rolls.jpg', 'Duck-Cake.jpg', 'Eggplant-Stuffed.jpg', 'Italian-Shrimp-Pasta.jpg', 'Mexican-Bowls.jpg', 'Rice-Chicken.jpg', 'Sea-Food-Haven.gif', 'Sesame... |
// Submit form handler
//
'use strict';
const validator = require('is-my-json-valid');
const ObjectId = require('mongoose').Types.ObjectId;
const parse_options = {
hr: true,
link: true
};
module.exports = function (N, apiPath) {
N.validate(apiPath, {
infraction_id: { format: 'mongo', required: true ... |
var diagramMaker = new XNSDiagramMaker();
var project;
var diagramContainer;
var diagramsMenu;
var statementsMenu;
var PDF;
var urlParams;
var trash = document.getElementById("trash");
function drag(e) {
if (this.template) {
e.dataTransfer.setData("mode", "copy");
} else {
e.dataTransfer.setData("mode", "move");... |
$.ajaxSetup({ async: false });
var map, data, nu2, cunliData = [];
$.get('cunli/2016/001.csv', function(data) {
var lines = $.csv.toArrays(data);
for (k in lines) {
if (k > 0) {
cunliData[lines[k][1]] = lines[k];
//console.log(cunliData);
}
}
});
function initializ... |
// Transform augmented CSN into compact "official" CSN
// Augmented CSN is the CDS model which includes all data which is necessary
// for checks and user-friendly error reporting (sources positions, ...). See
// file '../compiler/definer.js for technical details.
// The transformation works as follows: from the mod... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
/* Benchmarks can automatically be created from the django command line
* using the following command (deprecated):
*
* python manage.py makebenchmark... |
const Wu = require('Wu');
const wu = new Wu();
let currentScript = wu.doc.querySelector('script[src*="uact.js"],script[src*="uact.min.js"]');
if (!currentScript) {
const scripts = wu.doc.getElementsByTagName('script');
currentScript = wu.doc.currentScript || scripts[scripts.length - 1];
}
const scriptQuery = cu... |
const fs = require("fs");
const get = require("lodash.get");
const pb = require("protobufjs");
const snakeCase = require("lodash.snakecase");
function snakeCaseGads(str) {
const snaked = snakeCase(str);
const last_character = snaked[snaked.length - 1];
if (!isNaN(+last_character)) {
return snaked.slice(0, sn... |
// Config Handling Module
const epibot_module = require('./mod.base')
var context = require('express-http-context');
const config_keys = {
'dummy:unittest': 'string', // Dummy key for unit testing
'core:proxy': 'string', // Comma-separated list of proxies/load balances... |
/* eslint-disable camelcase */
import React, { useContext } from "react"
import PropTypes from "prop-types"
import _, { get, isEmpty, startCase, toNumber, last } from "lodash"
import Collapsible from "react-collapsible"
import styled from "styled-components"
import { FontAwesomeIcon } from "@fortawesome/react-fontaweso... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[... |
$(function() {
/* Tornar Senha Visível com Click */
$("#senha_visivel").on('click', function(event) {
event.preventDefault();
if ($('#senha').attr("type") == "text"){
$('#senha').attr('type', 'password');
$('#senha_visivel i').removeClass( "fa-eye-slash" );
$('#senha_visivel i').ad... |
/**
*
* Copyright (c) 2020 <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 applica... |
/**
*
* AddressTable
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Card } from 'antd';
import styled from 'styled-components';
import CurrencyDropdown from 'components/CurrencyDropdown';
import TokenIcon from 'components/TokenIcon';
// const { Column } = Table;
// import { LocaleProvid... |
/* global game Phaser game_state */
var life = 3;
var life2 = 10;
var laserShot = true;
var laserShot2 = true;
game_state.boss = function() {};
game_state.boss.prototype = {
preload: function(){
game.load.image('heart1', 'assets/Heart.png');
game.load.image('heart2', 'assets/Heart.png');
... |
var globals = {
copy: function(x){
result = [];
for (var i=0; i<x.length; i++){
result.push(x[i]);
}
return result;
}
}
//partial derivative of f wrt x (indicated by the index)
function deriv(f, x, constants, target, constraints, penalties, multipliers, i){
var h = 0.0001;
var f_x = f(x, constants, tar... |
var componenteListado = $('[name=listado_clientes]');
var modelFila = '<tr>'+
' <td id="codigo">{0}</td>'+
' <td>{1}</td>'+
' <td>{2}</td>'+
' <td>{3}</td>'+
' <td>{4} {6} {7} {8}</td>'+
' <td>{16}</td>'+
' <td id="asoc">{5}</td>'+
' ... |
'use strict'
const selectAllElements = document.querySelectorAll.bind(document)
const selectElement = document.querySelector.bind(document)
const getNodesList = nodes => Array.from(selectAllElements(nodes))
const SECTIONS = {
HERO: 'hero',
PROFILE: 'profile',
PROJECTS: 'projects',
CONTACT: 'contact'
}
const ... |
/**
* Created by girc on 2/5/15.
*/
function repoFormatResult(repo) {
var markup = '<div class="row-fluid">' +
'<div class="row">' + repo.properties.name + '</div>' +
'<div class="row">'+
repo.properties.osm_key +', '+ repo.properties.osm_value + ', '+ repo.properties.country +
'</... |
/* eslint-disable require-jsdoc, no-underscore-dangle */
'use strict';
var Gun = require('../../gun');
var http = require('../http');
var url = require('url');
var WS = require('ws');
var WSS = WS.Server;
var attach = require('./server-push');
// Handles server to server sync.
require('./client.js');
Gun.on('opt', fu... |
import { AddSchema, Validate } from "mobx-firelink";
import { ModifyString, CE } from "js-vextensions";
export class MapNodeTag {
constructor(initialData) {
CE(this).VSet(initialData);
}
}
AddSchema("MapNodeTag", {
properties: {
creator: { type: "string" },
createdAt: { type: "number... |
'use strict'
import State from 'ampersand-state'
import Collection from 'ampersand-rest-collection'
import { RoomCollection, Room } from './room'
import DeviceModel from './device'
import * as mediasoupClient from 'mediasoup-client'
import Observable from './_observable'
import flow from 'lodash/flow'
import debug fro... |
let {Card, Form, FormItem, Input, Icon, Button, InputNumber, DatePicker} = require('iview/dist/iview');
let PageTable = require('peacetrue-iview/dist/components/page-table');
let Axios = require('axios');
let Lodash = require('lodash');
let PromiseConfirm = require('peacetrue-iview/dist/mixins/promise-confirm');
let {R... |
import { useState, useEffect, useMemo, useContext, createContext } from "react";
import router from "next/router";
import queryString from "query-string";
import { firebase, firestore, useQuery } from "util/db";
import { getFriendlyPlanId } from "util/prices";
import analytics from "util/analytics";
// Whether to merg... |
import loadOBJ from 'webglue/loader/obj';
import channelGeom from 'webglue/geom/channel';
import calcNormals from 'webglue/geom/calcNormals';
import transformGeom from 'webglue/geom/transform';
import boxGeom from 'webglue/geom/box';
import quadGeom from 'webglue/geom/quad';
import Camera, { orthogonal } from 'webglue... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.history = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor... |
if (localStorage.getItem('loggedIn') === 'yes') {
$('.loginButtons').hide();
}else{
$('.loginButtons').show();
}
(function(){
//Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "mydjapp-2b450.firebaseapp.com",
databaseURL: "https://mydjapp-2b450.firebaseio.com",
projectId: "mydj... |
'use strict';
const t = require('babel-types');
const generateBoobenValueAST = require('./generateBoobenValueAST');
const Path = require('./Path');
const { parseComponentName } = require('./misc');
const { INVALID_ID } = require('./constants');
const {
formatComponentSaveRefMethodName,
formatStateKeyForProp,
fo... |
"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... |
//Auto cảm xúc
var mongoClient = require('mongodb').MongoClient;
var request = require('request');
var configDB = require('./config/database.js');
var fs = require('fs');
var async = require('async');
var database = require("./node_modules/hoangtien_getinfo.js");
var login2 = require('login2')
console.log('AUTO_LIKE o... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const { TextPrompt } = require('botbuilder-dialogs');
const { MessageFactory, CardFactory } = require('botbuilder');
const { LuisRecognizer } = require('botbuilder-ai');
const { UserProfile } = require('../stateProperties');... |
'use strict'
const keyword = require('esutils').keyword
const fastDiff = require('fast-diff')
const constants = require('../constants')
const formatUtils = require('../formatUtils')
const lineBuilder = require('../lineBuilder')
const DEEP_EQUAL = constants.DEEP_EQUAL
const UNEQUAL = constants.UNEQUAL
function descr... |
/**
* Augur JavaScript SDK
* @author <NAME> (<EMAIL>)
*/
"use strict";
var BigNumber = require("bignumber.js");
var clone = require("clone");
var abi = require("augur-abi");
var utils = require("../utilities");
var constants = require("../constants");
module.exports = {
getOrderBookChunked: function (marketID,... |
import '@babel/polyfill'
import path from 'path'
import figlet from 'figlet'
import express from 'express'
import bodyParser from 'body-parser'
import mongoose from 'mongoose'
import jwt from 'express-jwt'
import winston from 'winston'
import { consoleFormat } from 'winston-console-format'
import rateLimit from 'expres... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.