text
stringlengths
3.22k
29.5k
/** * Created by pascalbrewing on 22/09/15 * Copyright (c) * 2015 * M-Way Solutions GmbH. All rights reserved. * http://www.mwaysolutions.com * Redistribution and use in source and binary forms, with or without * modification, are not permitted. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUT...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
var parte = document.getElementById("parte"); var imagem = document.getElementById("imagemInfo"); parte.style.display = "none"; function adicionarA1() { parte.style.display = "block"; imageInfo.src = "https://cdn.myanimelist.net/images/anime/3/67177.jpg" info.innerHTML = "Shigatsu wa Kimi no Uso";...
var fixBase = require('./fixBase.js') var moment = require('moment') moment().zone(8); var util = require('util') var path = require('path') var fields = null; var messages = null; var components = null; var reverseFields = null; var kFieldSeparator = String.fromCharCode(1); var default_sender = "client" var default...
import macro from 'vtk.js/Sources/macro'; import { mat4 } from 'gl-matrix'; import vtkWebGPUBufferManager from 'vtk.js/Sources/Rendering/WebGPU/BufferManager'; import vtkViewNode from 'vtk.js/Sources/Rendering/SceneGraph/ViewNode'; import * as vtkMath from 'vtk.js/Sources/Common/Core/Math'; const { vtkDebugMacro } = m...
function test_op1() { var r, a; r = 1 + 2; assert(r == 3, "1 + 2 === 3"); r = 1 - 2; assert(r == -1, "1 - 2 === -1"); r = -1; assert(r == -1, "-1 === -1"); r = +2; assert(r == 2, "+2 === 2"); r = 2 * 3; assert(r == 6, "2 * 3 === 6"); r = 4 / 2; assert(r == 2, "4 ...
var EventListeners = require('./event-listeners'); var Event = require('./event'); var CustomEvent = Event.CustomEvent; var FObject = require('../fobject'); var JS = require('../js'); /** * EventTarget is an object to which an event is dispatched when something has occurred. * Entity are the most common event targe...
import React, { useEffect, useState, useRef } from "react"; import { useDispatch, useSelector } from "react-redux"; import { connect } from "./redux/blockchain/blockchainActions"; import { fetchData } from "./redux/data/dataActions"; import * as s from "./styles/globalStyles"; import styled from "styled-components"; im...
/* Copyright 2012-2015, Yahoo Inc. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ const fs = require('fs'); const path = require('path'); const html = require('html-escaper'); const annotator = require('./annotator'); function htmlHead(details) { return ...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Tooltip } from 'antd'; import numeral from 'numeral'; import { Pie, WaterWave, Gauge, TagCloud } from 'components/Charts'; import NumberInfo from 'components/NumberInfo'; import CountDown from 'components/Cou...
import { Box, Button, FormControl, FormControlLabel, Grid, InputAdornment, InputLabel, OutlinedInput, Select, TextField } from '@material-ui/core'; import { makeStyles, withStyles } from '@material-ui/core/styles'; import 'firebase/firestore'; import moment from 'moment'; import React, { Component } from 'react'; imp...
/** * Copyright(c) node-modules and other contributors. * MIT Licensed * * Authors: * fengmk2 <<EMAIL>> (http://fengmk2.com) */ 'use strict'; /** * Module dependencies. */ var crypto = require('crypto'); var utility = require('../'); var Benchmark = require('benchmark'); var benchmarks = require('beautify...
/* * fis * http://fis.baidu.com/ * 2014/4/11 */ 'use strict'; var gzip = require('gzip-js'); var AdmZip = require('adm-zip'); var File = require(__dirname + "/file.js"); var fs = require('fs'); var util = require(__dirname + "/../lib/util.js"); var commentRegex = /{%\*(.|\n)*?\*%}/g; var tagRegexs = { "ext...
/* eslint max-statements: off, max-lines: off */ "use strict"; var invoke = require("es5-ext/function/invoke") , noop = require("es5-ext/function/noop") , isCallable = require("es5-ext/object/is-callable") , isValue = require("es5-ext/object/is-value") , forEach = require("...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * @fileoverview Service that maintains the materialized history for a branch */ const _ = require('lodash'); const BaseServer = require('./utils/base_server'); const BranchAssignations = requi...
function cssColor(c) { return "#" + ("000000" + c.toString(16)).substr(-6) } function Tileset(options) { options = options || {} this.width = options.width || 128; this.height = options.height || 256; this.tileWidth = options.tileWidth || 8; this.tileHeight = options.tileHeight || 16; this.name = options...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, 'CallbackTestRunner', { enumerable: true, get: function () { return _types.CallbackTestRunner; } }); Object.defineProperty(exports, 'EmittingTestRunner', { enumerable: true, get: function () { ...
import { withApollo } from 'react-apollo'; import { compose, lifecycle, withState, withHandlers, } from 'recompose'; import gql from 'graphql-tag'; import { map, groupBy, union, either, prop, flatten, reduce, merge, } from 'ramda'; import debounce from 'lodash.debounce'; import MainTimeline from './MainTimeline'; imp...
/** * * @author <NAME> aka " TheLordA " <<EMAIL>> * GitHub repo: https://github.com/TheLordA/Instagram-Clone * */ import React, { useEffect, useState, useContext } from "react"; import { Link } from "react-router-dom"; import axios from "axios"; import AuthenticationContext from "../contexts/auth/Auth.context"; i...
 /* * FormatHTML: JS utility to format HTML * @thomasdigby * Licensed MIT */ function formatHtml(htmlString, options) { var config = { indentCharacterCount: 1, indentCharacter: '\t' }; function indentHtml(htmlString) { // update config with custom options getCustomParams(options); // create array ...
// communication port with background page var port = chrome.extension.connect({name: 'options'}); // add custom download directory to table /* ================================================================================= addDir (string label, string dir) adds a custom download location to the end of the custom...
"use strict"; /** * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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.apa...
import React from 'react'; import PropTypes from 'prop-types'; import { useMutation } from '@apollo/client'; import { Delete } from '@styled-icons/material/Delete'; import { get } from 'lodash'; import { defineMessages, FormattedMessage } from 'react-intl'; import roles from '../../../lib/constants/roles'; import { i1...
window.addEventListener('load', inicial, false); var body; var modal; var idemp; var ordenes; var tbl_orden; var div_total; var div; function inicial(){ body = document.getElementById('body'); modal = document.getElementById('modal'); idemp = document.getElementById('idempresa').value; //modal.setAttr...
"use strict"; var __assign = (this && this.__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]; } return t; }; var __read = (this && this....
$(function () { //副导航条效果 $('.nav > li > a').mouseover(function () { $(".baidai").hide(); $(".sub-nav").hide(); var li = $(this).parent(); if (li.find('ul').length > 0) { $(".baidai").show(); li.find("ul").show(); } }); $(".sub-nav").hover...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import * as d3 from 'd3'; import { connect } from 'react-redux'; import * as actions from '../../../actions'; import { withStyles } from '@material-ui/core/styles'; import classNames from 'classname...
// <editor-fold ******** GLOBAL VARIABLES *********************** // // TIMING ------------------------ > var FRAMERATE = 60.0; var MSPERFRAME = 1000.0 / FRAMERATE; var SECPERFRAME = 1.0 / FRAMERATE; var PXPERSEC = 150.0; var PXPERMS = PXPERSEC / 1000.0; var PXPERFRAME = PXPERSEC / FRAMERATE; // COLORS ----------------...
import React, { Component, Fragment } from 'react'; import { formatMessage } from 'umi/locale'; import { connect } from 'dva'; import Link from 'umi/link'; import { Icon, Divider } from 'antd'; import GlobalFooter from '@/components/GlobalFooter'; import DocumentTitle from 'react-document-title'; import SelectLang from...
import { version, Component } from 'inferno'; import './registerServiceWorker'; import {PI} from 'math'; import {getPolytopesFor} from './polytopes'; import {transformStack, rotationState} from './transform-stack'; import './App.css'; var defaultDimensions = 4; var defaultFigure = 2; const DEGREES = PI/180; const HER...
/** * Created by timadamson on 9/13/17. */ /** * Created by timadamson on 8/23/17. */ // Public variables var downX; var downY; var cmdVelTopic; var twist; var thetaDown; var downOnCircle = false; function init() { var arm_div = document.querySelectorAll('.js_arm_div'); var circles = document.querySelect...
var clientId = '<KEY>'; // foursquare api login info var clientSecret = '<KEY>'; // get the user's geolocation and store it into a variable var map; window.onload = getMyLocation; function getMyLocation() { var searchBtn = document.querySelector("#search"); searchBtn.addEventListener("click", fu...
/* eslint-disable no-underscore-dangle */ /* eslint-disable import/no-named-as-default */ /* eslint-disable import/no-named-as-default-member */ import _ from 'lodash'; import moment from 'moment-timezone'; import Mixpanel from 'mixpanel'; import Dates from './Dates.js'; import mpTokens from '../tokens/mixpanel-tokens...
var $j = jQuery.noConflict(); /* window.addEventListener('beforeunload', function (e) { // Cancel the event e.preventDefault(); // Chrome requires returnValue to be set e.returnValue = ''; }); */function consoleLogs(response) { if(env=='local'){ console.log(response) } } function readPdfFile(myf...
import {Platform, Text} from 'react-native'; import React, {useContext, useEffect, useState} from 'react'; import {navigationRef, routeNameRef} from './NavigationServiceV5'; import AsyncStorage from '@react-native-community/async-storage'; import CartScreen from '../screens/Cart/CartScreen'; import ChatsScreen from '....
var SinltonUserInfo = (function () { var instance; var UserInfo = function () { this.TimeInterval = 1000; this.myIntr; this.Speed; this.Record = [ { "Name": "P", "index": 8, "track": 100, "Score": 20, "color": "#ffed97", "tr...
/* PT XYZ memiliki beberapa cabang usaha masing masing cabang meberikan laporan bulanan income dan outcome mereka, data ini telah terkumpul dalam bentuk berikut EXAMPLE: INPUT: month = ['jan', 'feb', 'march', 'april', 'mei', 'jun', 'jul', 'augst', 'sept', 'oct', 'nov', 'dec']; branches = [ [ [1200, 1500, 2000...
/* jshint esversion: 6 */ /** * representing an HTML selection for selecting values as selection name/value pairs * choices are either a simple array that determines names of selections and their values * or an object={name1:value1, name2:value2, ... } * @constructor SelectValues * @param {DOM element} parent, an...
const defaultItemTypeRatio = 1 / 0.025; const room = { "id": 10548, "name": "B-02-37i", "room_type_id": 9, "floor_id": 114, "points": "[{\"x\":2385.840576171875,\"y\":2221.446533203125},{\"x\":2604.172607421875,\"y\":2221.446533203125},{\"x\":2604.172607421875,\"y\":2211.672607421875},{\"x\":2623.8...
import fse from 'fs-extra' import path from 'path' import sequelize, { User, Album, Artist, Playlist, Song, Local } from '../../models' import Processor from '../../utils/promise-processor' import ID3v2 from 'node-id3' import FLAC from 'node-flac' import mp3duration from 'mp3-duration' import M3UWriter from...
import React from "react"; import { Text, View, ScrollView, Image, FlatList, RefreshControl, TouchableOpacity, StatusBar, StyleSheet, SafeAreaView, } from "react-native"; import { useFocusEffect } from "@react-navigation/native"; import { Paragraph, TouchableRipple } from "react-native-paper"; impor...
'use strict' /** * Node style callback. All callbacks are optional, promises may be * used instead. But only one API must be used per invocation. * * @callback callback * @param {Error} error * @param {...*} results */ /** * Server side related documentation. * * @example <caption>npm package usage</caption...
/** * Reffy runs ReSpec in JSDOM to avoid having to download an run a complete * headless browser. * * Problem is JSDOM does not yet support a number of features that ReSpec needs. * Also, JSDOM does not allow interception of network requests anymore. * * This code monkey-patches JSDOM (and ReSpec) code before o...
var when = require('when'); var needle = require('needle'); var _ = require('lodash'); var setParam = require('mout/queryString/setParam'); var guid = require('mout/random/guid'); var logger = require('../logger'); var globalize = require('./g...
"use strict"; var __extends = undefined && undefined.__extends || function () { var _extendStatics = function extendStatics(d, b) { _extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { for (...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _lodash = _interopRequireDefault(require("lodash")); var _extTemplatePath = _interopRequireDefault(require("../plugins/extTemplatePath")); function _interopRequireDefault(obj) { return obj && obj.__esModu...
// test.js import { findPitch } from '/web_modules/pitchy.js'; import Vex from '/web_modules/vexflow.js'; // VexFlow setup var VF = Vex.Flow; var container = document.getElementById('vexcontainer'); container.style.width = `${window.innerWidth / 1.5}px` container.style.height = `${window.innerHeight / 4}px` var node =...
/** * Created by sbrandt on 05.07.17. */ class CodeTranslator { constructor () { this.i18nCodes = { "af":"fa_AF", "al":"al_AL", "dz":"ar_DZ", "as":"en_AS", "ad":"ad_AD", "ao":"pt_AO", "ai":"en_AI", "aq":"...
var Dialog_Index = 0; var Dialog_widths = new Array(); var Dialog_heights = new Array(); var DIALOG_NOT_MODAL = true; var Dialog_dictCloseText = "close"; var Dialog_inited = false; var Dialog_justNowCreated = null; var Dialog_daccdIconWidth = -1; var Dialog_defaultPosition = { my: "center", at: "center", of: wi...
var d3 = require('d3'); var _ = require('lodash'); var chroma = require('chroma-js'); var $ = require('jquery'); function calcSize(count) { return Math.max(3, 2 * Math.sqrt(count)); } function calcColor(n) { var scale = chroma.scale(['blue', 'red']).domain([1, 20]).mode('lab'); return scale(n).hex(); } f...
const gulp = require('gulp'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), gcmq = require('gulp-group-css-media-queries'), cleanCSS = require('gulp-clean-css'), babel = require('gulp-babel'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(...
alerthtml_preDanger = "<div class=\"alert alert-danger alert-dismissible fade in\" role=\"alert\"> <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button> <span class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></span> <span>"; aler...
import consulClient from 'consul'; import { URL } from 'url'; import { ConfigurationUtil } from 'kumuluzee-nodejs-config'; import InitializationUtils from 'common/InitializationUtils'; import ConsulServiceConfiguration from 'consul/ConsulServiceConfiguration'; import ConsulRegistrator from 'consul/ConsulRegistrator'; i...
const os = require("os") const fs = require("fs") const path = require("path") const cli = require("cli-ux") const rimraf = require("rimraf") const inquirer = require("inquirer") const Metalsmith = require("metalsmith") const Handlebars = require("handlebars") const {flags} = require("@oclif/command") const download = ...
// a test of rollback in replica sets // // try running as : // // mongo --nodb rollback2.js | tee out | grep -v ^m31 // var debugging = 0; function pause(s) { print(s); while (debugging) { sleep(3000); print(s); } } function deb(obj) { if( debugging ) { print("\n\n\n" + o...
'use strict'; var crypto = require('crypto'); var big = require('./bigdecimal.js'); var utils = require('./utils.js'), is_array = utils.is_array, is_string = utils.is_string, is_bigint = utils.is_bigint, is_number = utils.is_number; var BIG255 = new big.BigInteger('255'); var ZERO = new big.BigIntege...
import VirtualDnd from "./dnd"; import * as vars from "./util/variables.js"; import {dropMarker} from "./util/dropMarker.js"; import {ghostEffect} from "./util/ghostEffect.js"; import {autoScroll} from "./util/autoScroll.js"; import {hasSelection} from '@cocreate/selection'; import {checkElementConfig} from '@cocreate/...
var tests = [ { sieve: '76 mm | 3″' }, { sieve: '63 mm | 2 ½″' }, { sieve: '51 mm | 2″' }, { sieve: '38 mm | 1 ½″' }, { sieve: '25 mm | 1' }, { sieve: '19 mm | 3/4″' }, { sieve: '13 mm | 1/2″' }, { sieve: '9.5 mm | 3/8″' }, { sieve: '4.8 mm | # 4' }, { sieve: '2.4 mm | # 8' }, { sieve: '1.2 mm | #...
import React, { useState } from 'react'; import Box from '@material-ui/core/Box'; import IconButton from '@material-ui/core/IconButton'; import Avatar from '@material-ui/core/Avatar'; import { Grid } from '@material-ui/core'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/But...
import React from "react"; import {Button, Col, Empty, Input, Row, Tooltip, Tree} from "antd"; import {DeleteOutlined, PlusOutlined,} from "@ant-design/icons"; import * as Setting from "./Setting"; import HtmlEditorBraft from "./HtmlEditorBraft"; const x = 3; const y = 2; const z = 1; const gData = []; con...
import React from 'react'; import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styl...
const { src, dest, watch, series, parallel, lastRun } = require("gulp"); const gulpLoadPlugins = require("gulp-load-plugins"); const fs = require("fs"); const mkdirp = require("mkdirp"); const Modernizr = require("modernizr"); const browserSync = require("browser-sync"); const del = require("del"); const autoprefixer =...
import React from "react"; import orderBy from "lodash/orderBy"; import pick from "lodash/pick"; import { statusCodes } from "config"; import { appActions, appOperations } from "modules/app"; import { lightningOperations } from "modules/lightning"; import { channelsOperations } from "modules/channels"; import { store }...
async function getBscUniPool(App, pool, poolAddress, stakingAddress) { let q0, q1; const reserves = await pool.getReserves(); q0 = reserves._reserve0; q1 = reserves._reserve1; const decimals = await pool.decimals(); const token0 = await pool.token0(); const token1 = await pool.token1(); ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (...
"use strict"; var TYPE_PLAYER = 0; var TYPE_ENEMY = 1; var TYPE_PLAYER_BULLET = 2; var TYPE_POWERUP = 3; /** * SqEntity Prototype. * use Object.create to create a new SqEntity, and then call init on the newly created object to initialize the entity. */ var SqEntity = (function(){ var entityId = 0; return { /...
const { Collection } = require('discord.js'); const toHex = require('colornames'); const colorMessages = require('../utils/colorMessages'); module.exports = { name: 'color', description: 'Changes your color! Either supply a color hex, color name, or user\'s name whos color you want.', example: [ `${process.e...
// From gulp-sftp import path from 'path'; import fs from 'fs'; import { Client } from 'ssh2'; import through from 'through2'; import async from 'async'; import parents from 'parents'; import PluginError from 'plugin-error'; import { isString, isArray } from '../utilities'; const PLUGIN_NAME = '[SFTP]'; const normali...
/* eslint-disable no-console */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ /** * Copyright (c) 2021-present, <NAME>. * Mostly inspired by https://github.com/facebook/create-react-app * * This source code is licensed under the MIT license found in the * LICENSE file in the ro...
/* * This file is part of Dependency-Track. * * 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 ...
/* jshint strict:true */ /* jslint node: true */ /* jslint esversion: 9 */ 'use strict'; /* * * letrika_comgw adapter - collects data from Letrika SMI 260 via communication gateway * (c) 2019 AWhiteKnight * @author: AWhiteKnight <<EMAIL>> * @license: MIT * * Created with @iobroker/create-adapter v1.16.0 */ ...
console.log("scripts loaded"); /* DECLARE VARS */ var regform = { form_validated: false, applicant_name: "", submission_url: "https://script.google.com/macros/s/AKfycbzRs9ubp91H8272OkOgUmAsPru_PXufneXV_TvDmAu8kzMlV24/exec", ip_response: null, ip_object: {} }; /* EVENT HANDLERS */ jQuery(document).ready(functi...
import EventEmitter from "events"; import { version } from "../config/config"; import WebSocket from "ws"; import { v4 as uuidv4 } from "uuid" const OTPAuth = require("otpauth"); import CryptoJS from 'crypto-js'; import crypto from 'crypto'; //import eccrypto from 'eccrypto'; import Https from 'https'; import ...
function testMessage(){ } function testHTTP(){ var r; var url = "http://localhost/exc_core/app1/testAPI.php?id=10"; var ops = { url: url, //timeout: 10, //mimeType: "text/plain", withCredentials: true }; var data = {id:25, category:"zip"}; //r = http.get(url); //r = http.get(url, data); //r ...
/* 自助评分模块 */ 'use strict'; import Info from './Info'; import Const from './Const'; import * as Public from './Public'; /** * 检查自助评分文件大小 * @param {string} title 帖子标题 * @param {number} ratingSize 评分大小 * @returns {{}} 检查结果 */ export const checkRateSize = function (title, ratingSize) { let titleSize = 0; let ...
//-- Filename: //-- case_by_detection.js //-- //-- Author: //-- <NAME> function CBD_InitFig(wrap) { GP_InitFig_Standard(wrap); } function CBD_ResetText() { if (LS_lang == 'zh-tw') { LS_AddStr('case_by_detection_title', '各檢驗管道之每日確診人數'); LS_AddStr('case_by_detection_button_1', '逐日'); LS_AddStr('cas...
"use strict"; var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runt...
import React from 'react'; import GameModel from './models/GameModel'; import NewPlayerComponent from './components/NewPlayerComponent'; import NewGameComponent from './components/NewGameComponent'; import GameListComponent from './components/GameListComponent'; import PlayerMoveComponent from './components/PlayerMoveC...
const Asena = require('../events'); const {MessageType} = require('@adiwajshing/baileys'); /*const got = require('got'); const fs = require('fs');*/ const axios = require('axios'); const Language = require('../language'); const Lang = Language.getString('weather'); const { errorMessage, infoMessage } = require('../hel...
/* Author <NAME> This is the screen that deals with editing and posting drafts */ import React, {Component} from 'react'; import { Text, TextInput, CheckBox, View, TouchableOpacity, PermissionsAndroid, Alert, StyleSheet, } from 'react-native'; import AsyncStorage from '@react-native-community/async-...
import React, { Component } from 'react'; import { Button } from 'reactstrap'; import { Form, Tabs, Tab } from 'react-bootstrap'; import * as YAML from 'js-yaml'; import ReactTable from 'react-table'; import './TableViewer.css'; export default class TableViewer extends Component { static defaultProps = { close:...
var msgdsq; function show_err_msg(msg){ jQuery('.msg_bg').html(''); clearTimeout(msgdsq); jQuery('body').append('<div class="sub_err" style="position:absolute;top:60px;left:0;width:500px;z-index:999999;"></div>'); var errhtml='<div class="bac" style="padding:8px 0px;width:100%;margin:0 auto;background-color:transp...
$('#video_div').html("<video id='videoel' crossorigin='anonymous' src='" + video_link + "' + oncanplay='enablestart()' preload='auto' loop playsinline autoplay muted width='200'></video>") var total_frames_processed = 0 var init_var = 0.0 var minConfidence = parseFloat(Youtube.confidence) if (!(minConfidence < 1.0 && ...
/*********************** Edit Profile Info By Clicking the Edit Buttons ************************/ const profile = document.querySelector('#profile'); const profilePic = document.querySelector('#profilePic'); const userInfo = document.querySelector('#profileInfo'); const picSubmit = document.querySelector("#pic-submit"...
'use strict'; const api = require('product-api'); const crud = require('crud-api'); crud.init() const _ = require('lodash'); const __ = require('../i18n'); const utils = require('./utils'); const send404 = function (res, next, msg) { res.setHeader('Content-Type', "application/json"); res.statusCode = 404; res...
import React, { useRef, useEffect, useLayoutEffect, useState } from "react"; import { Parallax, ParallaxLayer } from 'react-spring/renderprops-addons'; import Moment from 'moment'; import JobCard from "../components/JobCard"; import useDarkMode from './useDarkMode'; import API from '../utils/API'; import { useStoreCon...
'use strict'; exports.__esModule = true; var _textTrackCueList = require('./text-track-cue-list'); var _textTrackCueList2 = _interopRequireDefault(_textTrackCueList); var _fn = require('../utils/fn.js'); var Fn = _interopRequireWildcard(_fn); var _trackEnums = require('./track-enums'); var _log = require('../uti...
"use strict"; /* eslint-env node */ /* eslint no-use-before-define:0 */ var debug = require("debug")("talon"); var _ = require("lodash"); module.exports = { "extractSignature": extractSignature, "getSignatureCandidate": getSignatureCandidate }; // RE_DELIMITER = re.compile('\r?\n') var RE_DELIMITER = /\r?\n/;...
#!/usr/bin/env node // Packages const chalk = require('chalk') const mri = require('mri') const table = require('text-table') const ms = require('ms') const printf = require('printf') const plural = require('pluralize') require('epipebomb')() const supportsColor = require('supports-color') // Utilities const strlen =...
'use strict' const db = require('./db') const { createPS } = require('./sql_file') const path = require('path') const revokeSQL = createPS(path.join(__dirname, 'sql', 'revoke.sql')) const revokeAllUsersSQL = createPS( path.join(__dirname, 'sql', 'revoke_all_users.sql') ) const managePermissions = {} managePermi...
/** * @Author: <EMAIL> * @Date: 2017.2.15 上午 10:08 * @Desc: 公共组件 - LayoutXYDemoContainer * @Name: LayoutXYDemoContainer.js * @LifeCycle:http://www.tuicool.com/articles/nu6zInB */ import React, {Component, PropTypes} from 'react'; import { StyleSheet, View, Text, TouchableNativeFeedback, Dimen...
import propTypes from 'prop-types'; import React, { Component } from 'react'; import '../pannellum/css/pannellum.css'; import '../pannellum/css/style-textInfo.css'; import '../pannellum/js/libpannellum.js'; import '../pannellum/js/pannellum.js'; import '../pannellum/js/RequestAnimationFrame'; class Pannellum extends...
/* * Day 14: Space Stoichiometry * https://adventofcode.com/2019/day/14 * Arcade machine - IntCode */ const debug = false; const fs = require('fs'); const input = fs.readFileSync("./inputs/day14.txt", (_, a) => a).toString().trim().split('\n'); getReactionElementsAndCount = (reactionTerm) => { let count_term ...
import style from './Registro.module.css'; // ==== Importação dos Lotties ==== // import {ReactLogo} from '../../../assets/lottie/react-logo/ReactLogo'; import {SuccessAnimation} from '../../../assets/lottie/success/success'; import {ErrorAnimation } from '../../../assets/lottie/error/error'; import {LoadingAnimation}...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
const gulp = require('gulp'); const sass = require('gulp-sass'); const concat = require('gulp-concat'); const watch = require('gulp-watch'); const batch = require('gulp-batch'); const plumber = require('gulp-plumber'); const babel = require('gulp-babel'); const livereload = require('gulp-livereload'); const svgSprite =...
let loading_icon = "<div class='spinner-border mr-2' role='status'></div>" class CreatePreset{ static addEntries(){ let $availableField = $("#available_images") let $selectedField = $("#selected_images") let selectedValues = $availableField.val() for(let val of selectedValues){ $selected...
import G6 from '@antv/g6' import { deepMix, isArray, isNumber } from '@antv/util' import { setStatusStyle, removeDumpAttrs, convertSizeToWH, getLabelXYByPosition, getBadgePosition } from './utils' function getRadiusBySize (size) { let r if (isNumber(size)) { r = size / 2 } else if (isArray(size)) { r = s...
import * as R from 'ramda'; import { map } from 'ramda'; import { batchListThroughGetTo, createRelation, createRelations, deleteElementById, deleteRelationsByFromAndTo, internalLoadById, batchListThroughGetFrom, storeLoadById, mergeEntities, batchLoadThroughGetTo, storeLoadByIdWithRefs, } from '.....