text stringlengths 5.97k 41.2k |
|---|
'use strict';
const { experiment, test, beforeEach } = exports.lab = require('@hapi/lab').script();
const { expect } = require('@hapi/code');
const transactionsCSV = require('internal/modules/billing/services/transactions-csv');
const batch = {
id: '8ed86390-3557-4cbb-a43f-bd31db5ae119',
dateCreated: '2020-01-14... |
const Pin = require("./index.js").Pin;
const exc = require("../exc.js");
const assert = require('chai').assert;
const isclose = require('../compat.js').isclose;
const inherit = require('../tools.js').inherit;
let _PINS = [];
/**
* A mock pin used primarily for testing. This class does *not* support PWM.
*
* @param... |
const hive = require('@hiveio/hive-js');
const fetch = require('node-fetch');
const WSocket = require('./wsocket.js');
const Transaction = require('./transaction.js');
const Utils = require('./utils.js');
const eosjs_ecc = require('eosjs-ecc');
const Match = require('./match.js');
const util = require('util');
class Sp... |
const log = (f, ...s) => console.log(`%c[novogui] ${f}`, "color: #d57870;", ...s)
let sto
let alwaysVisibile = "true"
let SettingType = {
COMBOBOX: 0,
SLIDER: 1,
TEXTBOX: 2,
SELECTBOX: 3,
CHECKBOX: 4,
COLOR: 5,
}
const Setting = class {
constructor(parent, name, type, visibilityDependency) {
this.parent = pa... |
/**
* ElGamal Module
* @module basic_simple_elgamal
*/
const bigInteger = require('big-integer');
const bigIntManager = require('./bigIntManager');
const debug = require('debug');
const https = require('https');
const log = debug('app::elgamal');
const securityLevels = ['HIGH', 'LOW', 'MEDIUM']
/**
* @typedef... |
/* global Meteor, Npm */
import { UPDATE_FEED_PATH, canServeUpdates } from './serveUpdateFeed';
const electronRebuild = Npm.require('electron-rebuild');
const meteorBuildClient = Meteor.wrapAsync(Npm.require('meteor-build-client-only'));
const fs = Npm.require('fs');
const mkdirp = Meteor.wrapAsync(Npm.require('mkdirp... |
import _ from 'lodash'
import { createSelector } from 'reselect'
import * as api from '../api'
import evaluator from './evaluator'
import msgs from './evaluator-messages'
import {
getCurrentStudentProfile,
getCurrentExercise,
getVectorRestrictionSites,
getBothHaystackStrands,
getURV,
getUFV,
getUFG,
... |
import 'bootstrap-v4-rtl'
import jQuery from 'jquery'
window.$ = window.jQuery = jQuery
import moment from 'moment'
import 'moment-timezone'
import dt from 'datatables.net-bs4'
import 'datatables.net-plugins/sorting/datetime-moment.js'
import i18next from 'i18next'
import jqueryI18next from 'jquery-i18next'
import Lang... |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import axios from 'axios'
import MenuPrincipal from '../components/MenuPrincipal'
import Input from '../components/Input'
const FormValid = require('../lib/FormValidation.js')
export default class AdminNewUser extends Component {
/*
* a... |
// This is a single line comment and won't be run
/*
This is a multi-line comment that will not be run
*/
console.log('hello world!');
/*
x = 12
y = m*x + b
*/
const thisNewVariableName = 'this can\'t use single quotes';
let thisIsAVariableThatCanChange = 'this will change';
console.log(thisNewVariableName);
// This d... |
/**
* Created by jlee on 5/2/16.
*/
/**
* data-extract related container
*/
var app_text_extract_table = (function () {
var debug_enabled = false;
//var ui_page_control = '#search_response_page_control';
var text_extract_table_button_prefix_entity_search = 'data_extract_table_row_';
var text_extract_ta... |
/*
** Syntax -- Unobtrusive Syntax Highlighting
** Copyright (c) 2015-2021 Dr. <NAME> <<EMAIL>>
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** w... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var react = require('react');
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/esm/objectWithoutPropertiesLoose');
var jsxRuntime_js = require('react/jsx-runtime.js');
var _extends = require('@babel/runtime/helpers/esm/ext... |
/* Copyright (c) 2007 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distr... |
import * as CONSTANT from './../base/constant';
import { append, detach, createElement, isNullOrUndefined } from '@syncfusion/ej2-base';
import { NodeSelection } from './../../selection/index';
import { selfClosingTags } from '../../common/config';
export var markerClassName = {
startSelection: 'e-editor-select-sta... |
const say = console.log;
const fs = require('fs');
const path = require('path');
const numstr = require('utils-numstr');
const et = require('../index');
/* Print script usage to screen.
**
*/
function printUsage() {
say('\nUsage:', path.basename(process.argv[1], '.js'), process.argv[2], '<txFile> <accountFile> [op... |
import React, { useMemo, useState } from 'react';
import PropTypes from 'prop-types';
import Img from 'gatsby-image';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
import { Dialog, DialogOverlay, DialogContent } fr... |
/** @babel */
/** @jsx etch.dom */
import {CompositeDisposable} from 'atom';
import ResizeObserver from 'resize-observer-polyfill';
import Terminal from 'xterm';
import etch from 'etch';
import path from 'path';
import {spawnPty} from "./pty";
import Utils from './utils';
//import {DB_VIEW_URI} from './db-view';
Term... |
/*
Copyright 2020-2021 Apigrate LLC
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 i... |
import classnames from 'classnames';
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {Config, isNumber} from 'js/util';
import SortableList from 'react/components/sortable_list';
import {Step} from 'react/design/design_wizard/types';
import {Panel} from 'react/design/unit_step/types'... |
import React from 'react';
import { Container } from './Element';
import { Provider, observer, inject } from 'mobx-react';
import { set as mobxSet, toJS, decorate, observable, action, computed, trace } from "mobx";
// import ReactDOM from 'react-dom';
// import Swipeable from 'react-swipeable';
// import { CSSTransiti... |
ip_global = "192.168.1.106" // location.hostname; // Ip del servidor (raspi) "192.168.0.100" //
port_webrtc = 9000; // Port del servidor webRTC(raspi)
API_KEY = "<KEY>";
const video = document.getElementById("remote-video"); //video-remote-overlay remote-video
const div_video = document.getElementById("video-remote-... |
// Materialize inites
$(".menu-register").dropdown({
belowOrigin: true
});
// Funções do front
var model_path = 'src/ml/';
setTimeout(()=> {
$(async function() {
let isSetting = localStorage.getItem('cnpj');
// Carrega os modelos
await faceapi.loadTinyFaceDe... |
/*
To generate charts in my blog - linghaol.
*/
/* shared variables */
var boxIsClicked = {
"clothes-box":true,
"food-box":true,
"housing-box":true,
"other-box":true,
"transportation-box":true,
"tuition-box":true
};
var w_bar = document.getElementsByClassName("chart-area")[0].offsetWidth;
var h_bar = 350;
var ... |
// Extracted from https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations
const timezones = {
BIT: { code: 'BIT', label: 'BIT (-12 GMT)', offset: -12 },
NUT: { code: 'NUT', label: 'NUT (-11 GMT)', offset: -11 },
SST: { code: 'SST', label: 'SST (-11 GMT)', offset: -11 },
CKT: { code: 'CKT', label: 'CKT (-... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import RadioButton from 'react-native-radio-button';
import RadioForm, {RadioButtonInput, RadioButtonLabel} from 'react-native-simple-radio-button';
import * as Animatable from 'react-nativ... |
var ref = require("prosemirror-model");
var Fragment = ref.Fragment;
var Slice = ref.Slice;
var ref$1 = require("prosemirror-transform");
var Step = ref$1.Step;
var StepResult = ref$1.StepResult;
var StepMap = ref$1.StepMap;
var ReplaceStep = ref$1.ReplaceStep;
var ref$2 = require("prosemirror-state");
var Selection = ... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licens... |
const lali = require('lali')
const coreutils = require('coreutils')
const path = require('path')
const fs = require('fs-extra')
const ejs = require('ejs')
const cpy = require('cpy')
const recursive = require('recursive-readdir')
const decompress = require('decompress')
const config = {
templatesDir: path.resolve(__... |
const monthNames = ["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"];
let root_upload_view = '';
(function(){
var scripts = document.getElementsByTagName('script');
var path = scripts[scripts.length-1].src.split('?')[0];... |
'use strict';
const cardData = [{ // Our game card data.
file: '2.svg',
name: 'Jar of Questionable Expiration',
msg: 'You\'ll be fine, just... fine...',
points: 250,
effect: '+30',
}, {
file: '3.svg',
name: 'Orange of Enlightenment',
msg: 'You feel a surge of pure intellectual power.',
... |
/// <reference path="~/sdk/web/lib/innovaphone.lib.js" />
/// <reference path="~/calendar/app/innovaphone.ui.Calendar.js" />
/// <reference path="~/calendar/app/innovaphone.ui.BubbleContainer.js" />
var innovaphone = innovaphone || {};
innovaphone.ui = innovaphone.ui || {};
innovaphone.ui.DateSelectorResources = inno... |
//to get all topics on home page
function getAllTopics() {
var topicsUrl = "http://localhost:8080/forum-api/topic/getAllTopics";
var jsonData={ "status" : "success",
"topicList" : [
{
"id":"1",
"title":"pune marathon in july 2017",
"description":"... |
var assert = require("assert");
var Long = require("..");
var tests = [ // BEGIN TEST CASES
function testBasic() {
var longVal = new Long(0xFFFFFFFF, 0x7FFFFFFF);
assert.strictEqual(longVal.toNumber(), 9223372036854775807);
assert.strictEqual(longVal.toString(), "9223372036854775807");
var longVal2 =... |
'use strict'
/**
* sync.js
* Main cloud sync functionality
******************************/
const fs = require('fs-extra')
const _ = require('lodash')
const base64 = require('base64-stream')
const res = require('../res/res')
const https = require('https')
const moment = require('moment')
const EventEmitter = require... |
'use strict'
/* btnAdd
1. Recoger el input del usuario
2. Modularizar cada acción en funciones. Por ejemplo, hacer función "addToDo ()" para añadir la tarea a un array de "por hacer" y pintarlo en la sección "Por hacer"
3. guardarlo en localStorage (Usar json objeto)
btnCompletar =>{
El elemento que... |
import { getData, postData } from '../../utils/api'
import { formatNumber, formatTime } from '../../utils/formatter'
import { normalizeAvatar, isDayOfWeek } from '../../utils/utils'
import { showDialog } from '../../utils/dialog'
import { calculateICO, autoBeginICO, openICODialog } from '../../trade/ico'
import { load... |
const MysqlMiddleware = require("./../Middlewares/Mysql");
const fs = require("fs");
const moment = require("moment");
const Canvas = require("canvas");
const readline = require("readline");
const Discord = require("discord.js");
const OsuService = require("./../Services/osu");
const beatmapMirror = require("../Service... |
import React, { useState, useEffect, useContext, useRef } from 'react';
import '../component.css';
import './Artistmanagement.css';
import { assetsImages } from '../../constants/images';
import Performbar from '../Performbar';
import { useParams } from 'react-router-dom';
import { Contract, ethers } from 'ethers';
impo... |
import {Util} from './util.js'
import { fetchProfile, fetchProfileList, MotionController, Constants } from '@webxr-input-profiles/motion-controllers/dist/motion-controllers.module.js'
window.fetchProfileList = fetchProfileList
// Implements the [webxr-input-profiles
// motion-controllers](https://github.com/immersive-w... |
var FONT_SIZE = 12;
var MIN_SPACE = FONT_SIZE;
var sankey_node = function (node, id, lvl) {
/** @this self */
var self = this;
/**
* node meta
* @member {String} name
* @member {Int} id
* @member {Int} level
* @member {Int} onode
* @member {Boolean} editable
* @member {String} arrowed
* @member {N... |
import { select } from "d3-selection";
import { TemplateNode, RepeatNode, IfNode, WithNode, ImportNode } from "./template-node";
import { AttributeRenderer, StyleRenderer, PropertyRenderer, ClassRenderer, TextRenderer } from "./renderer";
// ---- Defaults ----
var defaults = {
repeatAttribute: "data-repeat",
ifAttri... |
import Utils from '../utils/Utils'
import Scales from './Scales'
/**
* Range is used to generates values between min and max.
*
* @module Range
**/
class Range {
constructor(ctx) {
this.ctx = ctx
this.w = ctx.w
this.scales = new Scales(ctx)
}
init() {
this.setYRange()
this.setXRange()
... |
const sharp = require(`./safe-sharp`)
const imageSize = require(`probe-image-size`)
const _ = require(`lodash`)
const fs = require(`fs-extra`)
const path = require(`path`)
const { scheduleJob } = require(`./scheduler`)
const { createArgsDigest } = require(`./process-file`)
const { reportError } = require(`./report-e... |
const { ltrimSlashes } = require('lib/path-utils.js');
const Folder = require('lib/models/Folder');
const Note = require('lib/models/Note');
const Tag = require('lib/models/Tag');
const BaseItem = require('lib/models/BaseItem');
const BaseModel = require('lib/BaseModel');
const Setting = require('lib/models/Setting');
... |
function xwdInterface( xwd, EventManager, Actuator, StorageManager ) {
this.xwd = xwd;
this.size = this.xwd.size; // Size of the grid [ width , height ]
this.eventManager = new EventManager;
this.storageManager = new StorageManager( "Xwd-" + xwdPuzzleName );
this.actuator = new Ac... |
"use strict";
exports.__esModule = true;
exports.useNumberInput = useNumberInput;
var _counter = require("@chakra-ui/counter");
var _hooks = require("@chakra-ui/hooks");
var _utils = require("@chakra-ui/utils");
var _reactUtils = require("@chakra-ui/react-utils");
var React = _interopRequireWildcard(require("reac... |
import React, { Component, Fragment } from 'react'
import { withApollo, Query } from 'react-apollo'
import { fbt } from 'fbt-runtime'
import { get, find } from 'lodash'
import formatTimeDifference from 'utils/formatTimeDifference'
import QueryError from 'components/QueryError'
import profileQuery from 'queries/Profile... |
/**
* @file Defines MD utility functions for the client.
* @author <NAME> <<EMAIL>>
* @copyright DGTLife, LLC 2015
*/
import { _ } from 'meteor/underscore';
import { Meteor } from 'meteor/meteor';
import {
hideBottomOverflowIndicator,
hideTopOverflowIndicator,
showBottomOverflowIndicator,
showTopOverflowInd... |
var glob = require('glob');
var path = require('path');
var fs = require('graceful-fs');
var Q = require('q');
var mout = require('mout');
var rimraf = require('rimraf');
var pathIsInside = require("path-is-inside");
var endpointParser = require('upt-endpoint-parser');
var Logger = require('bower-logger');
var Manager ... |
/*
Copyright 2014-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 applicable law or agreed to in wri... |
// DILIGORD FUN THING
// Version 1.0
// MIT License
// Copyright (c) 2020 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
#!/usr/bin/env node
var yargs = require('yargs')
.usage('$0 [options]')
.describe('naturalgas', 'The path of the first dataset for naturalgas')
.describe('naturalgas2', 'The path of the second dataset for naturalgas')
.describe('oil', 'The path of the dataset for oil')
.describe('coal', 'The path of the datas... |
import generateId from './id_generator';
import { fromJS, List } from 'immutable';
import _ from 'lodash';
// Yeah, this thing is pretty wild. I use https://www.debuggex.com/ to edit it, then paste the results in here.
// But fixing this mess is on my todo list...
const markupAndCookieRegex = /(\[\[([^\]]*)\]\]|\[\[(... |
// Bridge server to manage peer connections, blockchain data, and signatures.
const externalIp = require('externalIp');
const net = require('net');
const fs = require('fs');
const config = require('../config.js');
const sync = require('./util/sync.js');
const bridges = require('./util/bridges.js');
const merkle = requi... |
const transferValidator = new TransferValidator();
chrome.runtime.onMessage.addListener(function(
{ msg, accounts, command, data, tab, domain, request_id, testnet },
sender,
sendResp
) {
chrome.runtime.sendMessage({
command: "stopInterval"
});
if (command === "sendDialogError") {
// Display error wi... |
/* eslint-disable no-invalid-this */
/* eslint-disable no-console */
'use strict';
const assert = require('assert');
const defaults = require('../../../lib/defaults');
const { isFirefox } = require('../../../lib/guessbrowser');
const { createRoom, completeRoom } = require('../../../lib/rest');
const getToken = requir... |
// 发布历史管理组件
const ReleasesTemplate = `
<div id="releasesApp">
<el-container>
<el-header height="30px" style="padding: 0">
<span style="font-size: medium;color: #409EFF;">应用:</span><span style="font-size: medium;">{{ toShowingApp(app) }}</span>
<span style="font-size: medium;color: #4... |
// For Properties Panel
var themes = {
"flat": "../content/ejthemes/default-theme/ej.theme.min.css",
"flatdark": "../content/ejthemes/flat-azure-dark/ej.theme.min.css",
"azure": "../content/ejthemes/default-theme/ej.theme.min.css",
"azuredark": "../content/ejthemes/flat-azure-dark/ej.theme.min.css",... |
/* global d3, topojson, sszvis */
// Configuration
// -----------------------------------------------
// Only select an entity if the distance to an input value is lower than
// this threshold.
var VALUE_PROXIMITY_THRESHOLD = 800;
var queryProps = sszvis
.responsiveProps()
.prop("mapInnerHeight", {
_: sszvis.... |
/**
* Constants
*
*/
var slidesPerView = 8;
var RATIO = 1.5;
var swiper = null;
var __filename = null;
var __cloud = null;
var __bucket = null;
var __pages = {};
function close_panel(id) {
$(id).css('display', 'none');
}
function drawBoundingBox(canvas, bounds) {
var context = canvas.getContext('2d');
... |
$(function(){
//填写页面input框中的默认值,专门针对非HTML5
if (!window.applicationCache) {
$('input[placeholder]').bind('focus',function(event){
if($.trim($(this).val())==$(this).attr("placeholder")){$(this).val("").css('color','#000');}
}).bind('blur',function(event){
if($.trim($(this).val())==""){$(this).val($(t... |
'use strict'
/*
* This module provides a simplified interface into the Aurora Serverless
* Data API by abstracting away the notion of field values.
*
* More detail regarding the Aurora Serverless Data APIcan be found here:
* https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
*
* @author ... |
/*jslint plusplus: true, sloppy: true, indent: 4 */
(function () {
"use strict";
// this function is strict...
}());
// Stores the data of the created speedometers. Hashed on canvasId (The id of the canvas in HTML)
var speedometerData = {};
// These defines the canvas size we think we're painting to (The actu... |
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import _ from 'lodash';
import { Page, Header, Content, stores, axios } from 'choerodon-front-boot';
import { Table, Button, Select, Popover, Tabs, Tooltip, Input, Dropdown, Menu, Pagination, Spin, Icon } from 'choerodon-ui';
impo... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var fs_1 = require("fs");
var path = require("path");
var crypto = require("crypto");
var utils = require("./utils");
var os_1 = require("os");
var gulp_util_1 = require("gulp-util");
var ts = require("typescript");
var Vinyl = requir... |
class GridEngine {
constructor(opts = {}, nodes = [], onchange = function(){}) {
this.width = opts.width;
this.height = opts.height;
this.maxMoveIterations = opts.maxMoveIterations || 1;
this.allowFallbackResize = !!opts.allowFallbackResize;
this.nodes = nodes;
this.onchange = onchange;
// to popula... |
var usb = (exports = module.exports = require("bindings")("usb_bindings"));
var events = require("events");
var util = require("util");
var isBuffer = function (obj) {
return obj && obj instanceof Uint8Array;
};
if (usb.INIT_ERROR) {
console.warn("Failed to initialize libusb.");
usb.Device = function () {
t... |
Statamify = {
init: function() {
this.removeNavCollections()
this.orderRefund()
},
removeNavCollections: function() {
if ($('[class*="statamify"].active').length) {
$('.nav-collections').removeClass('visible active')
}
$.each($('[class*="statamify"].active'), function() {
if ($(... |
//时间戳转日期
function timestampToTime(timestamp) {
var date = new Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
Y = date.getFullYear() + '-';
M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
D = date.getDate() + ' ';
h = date.getHours() + ':';
... |
/**
* Copyright © <NAME>.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { cloneElement, createRef } from 'react';
import PropTypes from 'prop-types';
import cleanProps from '../../../../packages/react-clean-props';
imp... |
/* eslint-disable jsx-a11y/accessible-emoji */
import React from 'react'
import { graphql } from 'gatsby'
import styled from 'styled-components'
import Link from 'gatsby-link'
import get from 'lodash/get'
import 'react-tippy/dist/tippy.css'
import { Tooltip } from 'react-tippy'
import { getLanguage } from '../utils'
... |
import React, { useState, useEffect, Fragment, createRef, Suspense, lazy } from 'react';
import Typography from '@material-ui/core/Typography';
import { Link } from 'react-router-dom'
import TablePagination from '@material-ui/core/TablePagination';
import { makeStyles, withStyles, useTheme } from '@material-ui/core/sty... |
const ko = require('knockout');
const _ = require('lodash');
const promise = require('bluebird');
const octicons = require('octicons');
const components = require('ungit-components');
const programEvents = require('ungit-program-events');
const filesToDisplayIncrmentBy = 50;
const filesToDisplayLimit = filesToDisplayIn... |
/* eslint-disable no-multi-spaces, key-spacing, indent, camelcase, space-before-blocks, eqeqeq, brace-style */
/* eslint-disable space-infix-ops, space-before-function-paren, array-bracket-spacing, object-curly-spacing */
/* eslint-disable no-nested-ternary, max-params, default-case, no-else-return, no-empty */
/* esli... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends =
Object.assign ||
function(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
... |
import React, { useState, useEffect, useRef } from 'react';
import { Form, Select, Radio, Card, Row, Col, Slider, InputNumber, Button, Tooltip } from 'antd';
import { QuestionCircleOutlined} from '@ant-design/icons';
import { connect } from 'dva';
import { withRouter } from 'umi';
import { formatMessage } from 'umi-plu... |
import React from 'react';
import { connect } from 'react-redux'
import {Dimensions,DeviceEventEmitter,InteractionManager,ListView,StyleSheet,View,RefreshControl,Text,ScrollView,Image,Platform,StatusBar, Modal,TextInput,TouchableOpacity, ImageBackground,KeyboardAvoidingView} from 'react-native';
import {TabViewAnimated... |
module.exports = botActions;
var Users;
function botActions(UsersModel) {
Users = UsersModel;
autobotsRollout(Users)
.then(function() {
// Bot Actions
favoriteMentions(15 * 60 * 1000);
autoFollow(15 * 60 * 1000);
// retweetFromUsers(12 * 60 * 60 * 1000);
... |
/* BetterDiscordApp Entry
* Version: 2.0
* Author: Jiiks | http://jiiks.net
* Date: 27/08/2015 - 15:51
* Last Update: 30/11/2015 - 21:41
* https://github.com/Jiiks/BetterDiscordApp
*/
//Imports
var _fs = require("fs");
var _config = require("./config.json");
var _utils = require("./utils");
var _ipc = require('i... |
import CaretDown from '@fortawesome/fontawesome-free/svgs/solid/caret-down.svg'
import { darken, transparentize } from 'polished'
import PropTypes from 'prop-types'
import queryString from 'query-string'
import React, { Component } from 'react'
import { Link, withRouter } from 'react-router-dom'
import styled from 'sty... |
/**
* Created by haydn.chen on 4/8/2018.
*/
export const jobCate = {
"1": "Accountant",
"2": "Actor",
"3": "Actress",
"4": "Actuary",
"5": "Adjuster",
"6": "Administrator",
"7": "Advertising Agent",
"8": "Advertising Manager",
"9": "Advisor",
"10": "Advocate",
"11": "Aerial erector",
"12": "Ae... |
/*
* This is a port of tokenize.py by <NAME>.
*
* each call to readline should return one line of input as a string, or
* undefined if it's finished.
*
* callback is called for each token with 5 args:
* 1. the token type
* 2. the token string
* 3. [ start_row, start_col ]
* 4. [ end_row, end_col ]
* 5. logic... |
var graphs = [];
var graph_width = 600;
var graph_height = 380;
var table_rows = {master: {pos: [], time: []}, slave: {time: []}};
var animating_scroll = {master: false, slave: false};
var pending_scroll_offset = {master: -1, slave: -1};
var sync_scroll_block = {master: false, slave: false};
function formatDate(unix) ... |
var eonfox = function(config){
if( config ){
if( config.debug ){
eonfox.prototype.debug = true;
}
if( config.application ){
eonfox.prototype.application = config.application;
}
if( config.api_server_url ){
eonfox.prototype.api_server_url = config.api_server_url;
}
}
};
eonfox.prototype = {
... |
import './hilbert.css';
import { select as d3Select, event as d3Event, mouse as d3Mouse } from 'd3-selection';
import { scaleLinear as d3ScaleLinear, scaleOrdinal as d3ScaleOrdinal, schemeCategory20 as d3SchemeCategory20 } from 'd3-scale';
import { axisLeft as d3AxisLeft, axisRight as d3AxisRight, axisTop as d3AxisTop... |
// 0x07003688 - 0x07003778
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile,
gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode,
G_... |
import round from './round';
import clamp from './clamp';
import dec2frac from './dec2frac';
import general from './general';
import { toYMD } from './toYMD';
import { defaultLocale } from './locale';
import {
u_HOUR, u_MIN, u_SEC, u_DSEC, u_CSEC, u_MSEC,
EPOCH_1317,
MIN_S_DATE, MAX_S_DATE,
MIN_L_DATE, MAX_L_DA... |
//when page is loading:
$(document).ready(function(){
console.log( "BENCHMARK JS" );
//compensating what base.js cannot do
$('.navbar button').removeClass('active');
$('.navbar button.benchmark').addClass('active');
$('button#measurement_info-tab').toggleClass('active'); // default show-up of 'qest... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
/**
* Auth0Sample 01-Custom-Form
* https://github.com/auth0/react-native-auth0
* @flow
*/
//jshint ignore:start
//jshint esversion: 6
import React, { Component } from 'react';
import {
AppRegistry,
Platform
} from 'react-native';
import HomeScreen from './app/screens/HomeScreen'
import ProfileScreen from './app... |
// ts-node -O {\"module\":\"commonjs\"} src/util.ts
import * as features from './features';
import { getParsedDate, } from './constants';
import faker from 'faker';
faker.seed(0);
export const Faker = { ...faker };
export function randomNumber(min, max) {
return Math.random() * (max - min) + min;
}
export function... |
// -----------BEGINNING OF HTML SCRIPTS-----------//
// calling HTML elements and set them into variables
const textInput = document.getElementById('text-input')
const convertButton = document.getElementById('convert-button')
const brailleOutput = document.getElementById('braille')
// set default textInput value
text... |
/**
* 类别配置
*/
import React from "react";
import extend from "extend";
import PropTypes from "prop-types";
import ClassNames from "classnames";
import { Prompt, Link, Redirect } from "react-router-dom";
import Base from "components/main/Base";
import Page from "components/main/Page";
import {
Breadcrumb,
Table... |
const messages = {
msg: {
title: 'Niffler Wallet',
password: '<PASSWORD>',
passwordAgain: '<PASSWORD>',
wrongPassword: 'Le processus Grin owner Api n\'a pas pu démarrer, le mot de passe est peut-être erroné',
login_: 'Connexion',
logout: 'Déconnexion',
search: 'Rehercher',
clearup: 'Ne... |
"use strict";
/**
* createKanbanTaskItems
* @param task_data
* @param alias
* @param color
* @param index
*/
function createKanbanTaskItems(task_data, alias, color, index) {
let knbn_column = kanbanTemplatesGenerateTaskItems({
item_get: 'get-knbn-task-column',
index: index,
});
knbn_co... |
document.addEventListener('DOMContentLoaded', onDOMContentLoaded, false);
var objectsToLog = {};
var projectStatuses = [];
var startAt = 0;
var totalResult = 0;
var maxResults = 10;
var pageIndex = 1;
var pageCount = 1;
var JIRA;
var Projects = '';
var Issues = '';
var DisplayType = '';
Date.prototype.toDateInputValue... |
/**
* create by alam 2016/06/05
* 采购退货的页面操作、数据提交js
*/
// 当前页面的标识ID
var location_id = location_id();
var is_loading = false;
// 切换仓库切换iframe地址
$('select[name=wh_id]').change(function() {
update_iframe_url();
$('.plus').remove();
reflush_table();
});
// 切换供应商切换iframe地址
$('select[name=supplier_id ]').change(functi... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var WebBlocks;
(function (WebBlocks) {
var LayoutBuilder;
(function (_LayoutBuilder) ... |
const base_url = document.getElementById("base_url").value;
const modal_info = "costo_producto_modal";
const modal_add = "form_costo_producto_modal";
function mostrar_costos_producto(producto){
let modal = "costo_producto_modal";
let tabla = "costos_producto";
let controlador = `${base_url}costo_producto/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.