text stringlengths 5.97k 41.2k |
|---|
import ecdsa from 'secp256k1';
import createHash from 'create-hash';
import base32 from 'thirty-two';
const PARENT_UNITS_SIZE = 2 * 44;
const PARENT_UNITS_KEY_SIZE = 'parent_units'.length;
const SIGNATURE_SIZE = 88;
const PI = '14159265358979323846264338327950288419716939937510';
const STRING_JOIN_CHAR = '\x00';
const... |
/* global currentTest */
const $ = require('jquery');
const vizMocks = require('../../helpers/vizMocks.js');
const registerComponent = require('core/component_registrator');
const resizeCallbacks = require('core/utils/resize_callbacks');
const baseGaugeModule = require('viz/gauges/base_gauge');
const dxBaseGauge = bas... |
// Copyright 2020 The Google Research Authors.
//
// 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... |
/**
* @author <NAME>
* @github AH-SALAH
* @create date 2018-12-01 20:15:44
* @modify date 2018-12-01 20:15:44
* @desc [app.js]
*/
// ==================================
// import all files from a dir that match regex
let cache = {};
function importAll (r) {
r.keys().forEach((key) => {
cache[key] = r(key... |
"use strict";
const assert = require("assert");
const getOption = require("./options.js").get;
const utils = require("./utils.js");
const MagicString = require("./magic-string.js");
const Visitor = require("./visitor.js");
const codeOfCR = "\r".charCodeAt(0);
const codeOfDoubleQuote = '"'.charCodeAt(0);
const codeOf... |
/*
* api-easy.js: Top-level include for the api-easy module.
*
* (C) 2011, Nodejitsu Inc.
*
*/
var assert = require('assert'),
fs = require('fs'),
path = require('path'),
qs = require('qs'),
request = require('request'),
vows = require('vows');
//
// ### Check for version info in `package.jso... |
'use strict';
const util = require('util');
const EventEmitter = require('events').EventEmitter;
const stream = require('stream');
const Transform = require("stream").Transform;
var log = function(){}
//var log = console.log;
var dlog = console.log;
var pand = function(num) {
return (num < 10) ? '0' + num : nu... |
import Layout from "../components/Layout";
import Container from "react-bootstrap/Container";
import getUser from "../utils/get-user";
import axios from 'axios';
import React, { Component, useState } from "react";
import { withRouter } from "react-router";
//import PageNotFound from "./PageNotFound";
//import { Catego... |
import React, { Component } from 'react';
import { Button } from 'primereact/button';
import { classNames, ObjectUtils, ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primereact/utils';
import { CSSTransition } from 'primereact/csstransition';
import { Portal } from 'primereact/portal... |
'use strict';
const events = require('events');
const config = require('haraka-config');
const utils = require('haraka-utils');
// Mail Body Parser
const logger = require('./logger');
const Header = require('./mailheader').Header;
const Iconv = require('./mailheader').Iconv;
const attstr = require('./attachment_str... |
var _config = require("../../config");
var __DEV__ = _config.__DEV__;
var _model = require("../../util/model");
var makeInner = _model.makeInner;
var getDataItemValue = _model.getDataItemValue;
var _referHelper = require("../../model/referHelper");
var getCoordSysDefineBySeries = _referHelper.getCoordSysDefineBySe... |
const modalm = document.getElementById('modalm');
const btn = document.getElementById('modal-btn');
const quit = document.getElementsByClassName('close')[0];
const nav = document.getElementById('nav');
const container = document.getElementById('h-container');
const mContainer = document.getElementById('m-container');
c... |
/**
* Various JS functions to support the JWQL web application.
*
* @author <NAME>
* @author <NAME>
*/
/**
* Change the filetype of the displayed image
* @param {String} type - The image type (e.g. "rate", "uncal", etc.)
* @param {String} file_root - The rootname of the file
* @param {Dict} num_ints - A dict... |
'use strict';
var _ = require('../underscore_ext');
var Rx = require('../rx');
var xenaQuery = require('../xenaQuery');
var {userServers, setCohort, fetchSamples,
fetchColumnData, fetchCohortData, fetchSurvival,
updateWizard, clearWizardCohort} = require('./common');
var {setFieldType} = require('../models/fieldSpec... |
// -*- 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... |
/*
* Copyright (c) 2021 Ratio Software, LLC
* All rights reserved.
* @author <NAME> <<EMAIL>>
*/
import {html, css, LitElement} from 'lit-element';
import {unsafeHTML} from 'lit-html/directives/unsafe-html';
import ComponentChip from './component-chip';
class ChipInput extends LitElement {
static get p... |
var _self =
"undefined" != typeof window
? window
: "undefined" != typeof WorkerGlobalScope &&
self instanceof WorkerGlobalScope
? self
: {},
Prism = (function() {
var e = /\blang(?:uage)?-(\w+)\b/i,
t = (_self.Prism = {
util: {
encode: function(e) {
... |
// Setup
let subscriptions = [];
const currencies = new Map();
currencies.set("$", 6.78);
currencies.set("€", 7.47);
currencies.set("DKK", 1);
// The name of the data in localStorage
const localDataName = "subscriptionInformation";
let localSortPreferenceName = "sortPreference";
// Initial scroll distance to bottom of ... |
/*
* range-extender.js
*
* Modification History:
* Date Version Modified By Description
* 2020-12-16 1.0 MR Initial creation
* 2021-02-17 1.1 MR synchonized --> synchronized
* 2021-02-26 1.2 MR payload length check and right sta... |
// ==UserScript==
// @name MyAnimeList BBCode Toolbar
// @namespace https://github.com/eskander
// @version 2022-05-26
// @description Advanced BBCode Editor for MyAnimeList.net
// @author eskander
// @license MIT
// @include https://myanimelist.net/forum/?topicid=*
// @include ht... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
const errorModal = document.getElementById('error-modal');
const errorModalTitle = document.getElementById('error-modal-title');
const errorModalBody = document.getElementById('error-modal-body');
let getCurrentTime = function () {
const now = new Date();
return {
'date': now,
'hour': now.toLo... |
var termNodes = 2;
var displayedPane = 0;
function hide(pane){
pane.style.transform = "translate(-50%,150%)";
pane.style.opacity = "0";
setTimeout(function() {pane.style.display = "none";},550);
}
function hidelist(pane){
displayedPane = 0;
hide(pane);
let btn = document.getElementById("sbtncon");... |
/**
* Cookie plugin
*
* Copyright (c) 2006 <NAME> (stilbuero.de)
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {}... |
/*******************************************************
* hal-json HTML/SPA client engine
* May 2015
* <NAME> (@mamund)
* Soundtrack : Red Clay : <NAME>
*******************************************************/
/* NOTE:
- no support for:
- _links.curies
- relies on a customer halForms() implementation
... |
/*
* Copyright (c) 2015-2016, Salesforce.com, Inc.
* All rights reserved.
* Licensed under the MIT license.
* For full license text, see LICENSE.md file in the repo root or
* https://opensource.org/licenses/MIT
*/
'use strict';
let errors = require('./errors.js');
let Source = require('./source.js');
let Parsim... |
/*
* PorPOISe
* Copyright 2009 SURFnet BV
* Thanks to PLKT for the Google maps widget (http://plkt.free.fr)
* Released under a permissive license (see LICENSE)
*/
var GUI = {
getMaxInputIndexInTables : function(tables) {
var maxIndex = 0;
for ( var i = 0; i < tables.length; i++) {
var inputs ... |
const path = require('path');
const { provider } = require('jimple');
const fs = require('fs-extra');
/**
* @typedef {Object} SFCParserResultTag
* @property {string} statement The tag full statement (match) for the tag.
* @property {string} name The name of the tag.
* @property {boolean} closing Whe... |
import { Map, Marker, LngLat, setRTLTextPlugin, LngLatBounds } from 'mapbox-gl--ENV';
import PoiPopup from './poi_popup';
import MobileCompassControl from '../mapbox/mobile_compass_control';
import ExtendedControl from '../mapbox/extended_nav_control';
import { map as mapConfig } from 'config/constants.yml';
import { g... |
import React from "react";
import { catchError, multicast } from "rxjs/operators";
import { TextContainer, Card, Stack, RangeSlider, Button, ButtonGroup, Modal, Link } from "@shopify/polaris";
import { saveAs } from 'file-saver';
import { take, takeUntil } from "rxjs/operators";
import { Subject, timer } from "rxjs";
... |
app.controller('middleController', function ($scope) {
$scope.enemyList = {};
});
function startTimer(ssName, champName) {
var scope = angular.element(document.getElementById("rightWrap")).scope();
scope.timerStart(ssName, champName);
}
var clink = document.createElement('audio');
clink.setAttribute('src'... |
'use strict';
// storage
const storage = {
prefix: 'KRUMIRO-LIGHT@',
set(k, v) {
localStorage.setItem(storage.prefix + k, v);
},
get(k) {
return localStorage.getItem(storage.prefix + k);
},
remove(k) {
localStorage.removeItem(storage.prefix + k);
}
};
// utilità
const u = {
// cerca l'eleme... |
var set_time;
var sec = 3e3;
//弹出遮罩层
layui.use('layer', function(){
layer = layui.layer;
});
//表单样式渲染(select)
layui.use('form', function(){
form = layui.form;
});
layui.use('upload', function(){
var upload = layui.upload;
//执行实例,上传图片
if($(".upload").length > 0){
upload.render({
... |
/* eslint react/destructuring-assignment: "off" */
/* eslint class-methods-use-this: "off" */
/* eslint no-param-reassign: "off" */
import {
dhSortDown,
dhSortUp,
vsTriangleDown,
vsTriangleRight,
} from '@deephaven/icons';
import { GridRenderer, GridUtils } from '@deephaven/grid';
import TableUtils from './Tabl... |
/*
* Copyright 2012 <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 writi... |
var ref = require("./fragment");
var Fragment = ref.Fragment;
var ref$1 = require("./mark");
var Mark = ref$1.Mark;
var ref$2 = require("./replace");
var Slice = ref$2.Slice;
var replace = ref$2.replace;
var ref$3 = require("./resolvedpos");
var ResolvedPos = ref$3.ResolvedPos;
var ref$4 = require("./comparedeep");
var... |
'use strict'
var ndHash = require('ndarray-hash')
var EventEmitter = require('events').EventEmitter
import Chunk from './chunk'
export default function (noa, opts) {
return new World(noa, opts)
}
var PROFILE = 0
var PROFILE_QUEUES = 0
var defaultOptions = {
chunkSize: 24,
chunkAddDistance: 3,
ch... |
// Render to texture example
const createContext = require('../')
const createCube = require('primitive-cube')
const createSphere = require('primitive-sphere')
const mat4 = require('pex-math/mat4')
const createCamera = require('pex-cam/perspective')
const createOrbiter = require('pex-cam/orbiter')
const vec3 = require... |
// Get all historical stake data
//// Created for Jose (https://www.reddit.com/user/hex_crypto_bull/)
//Three CSV tables:
//- issued_cds (stakeStarts) // Desired: hex_staked>0 and shares>0
//- ended_cds (stakeEnds) // Desired: payout>0 and end_date is not null
//- hex_price (HEXDailyStats API)
var C... |
/*
This file is part of AudioJS. Copyright 2010 Zencoder, Inc.
Modified for html5 audio tag by dz0ny
AudioJS is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your op... |
var renderer, scene, camera, spotLight1, spotLight2, spotLight3, spotLight4, opponentLight;
// field variables
var fieldWidth = 400,
fieldHeight = 200;
// paddle variables
var paddleWidth, paddleHeight, paddleDepth, paddleQuality, paddle1, paddle2;
var paddle1DirY = 0,
paddle2DirY = 0,
paddleSpeed = 3,
... |
const Promise = require("bluebird");
const Jimp = require("jimp");
const fs = Promise.promisifyAll(require('fs'))
const sqlite3 = require('sqlite3').verbose();
process.stdout.write('\x1B[2J\x1B[0f');
console.log("");
console.log("");
console.log(" ░██▓███ ██ ██▓██▓ ██▓ █ ██ ██████████████▓█... |
function chips_tests() {
module("Chips");
goog.require('lazy8.chips');
goog.require('lazy8.chips.Model');
goog.require('lazy8.chips.RootModel');
goog.require('lazy8.chips.ChipsError');
goog.require('lazy8.chips.Field');
goog.require('lazy8.chips.Manager');
goog.require('ce4.util');
... |
import assert from 'assert'
import approx from '../../../../tools/approx.js'
import math from '../../../../src/defaultInstance.js'
// Parsing tests are inside diff.transform.test
const matrix = math.matrix
const diff = math.diff
const smallTestArray = [[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [9, 8, 7, 6, 4]]
const smallT... |
/**
* @Author: <NAME>
* @Date: 2021-07-17 13:26:54
* @Last Modified by: <NAME>
* @Last Modified time: 2021-07-26 22:40:53
*/
"use strict";
/*
* Created with @iobroker/create-adapter v1.34.1
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const ... |
require("dotenv").config();
//const ytdl = require("ytdl-core-discord");
const playdl = require("play-dl");
/* playdl.getFreeClientID().then((clientID) => {
playdl.setToken({
soundcloud: process.env.SOUNDCLOUD_CLIENT_ID,
});
}); */
const { Client, Intents, MessageEmbed } = require("discord.js");
const {
crea... |
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import { Pagination } from "react-bootstrap";
import { ApiPromise } from "@polkadot/api";
import Button from "react-bootstrap/Button";
import Modal from "react-modal";
import ModalDialog from "react-bootstrap/ModalDialog";
import Dra... |
//Javascript for /reports/goal/index
$(document).ready(function(){
studentp.activate();
$("#student-class, #student-classyear, #student-year, #student-month, #student-type-emt, #student-type-aemt, #student-type-pmed").change(function() {
studentp.refreshStudentList();
});
// Checkbox-style student results co... |
import 'script-loader!smartadmin-plugins/bower_components/relayfoods-jquery.sparkline/dist/jquery.sparkline.js'
import React from 'react'
import {findDOMNode} from 'react-dom'
export default class SparklineContainer extends React.Component {
barChart($el) {
let barColor = $el.data('sparkline-bar-color') || $... |
import {connect} from "react-redux";
import {
addUserToGroup, attachPolicyToUser, createCredentials,
createUser, deleteCredentials, deleteUsers, detachPolicyFromUser, listCredentials,
listGroups, listPolicies, listUserEffectivePolicies, listUserGroups, listUserPolicies,
listUsers, removeUserFromGroup,
... |
/**
* @author <NAME>
*
* 前端页面
*/
var url = "http://" + window.location.host + "/results";
$(document).ready(function() {
createRadioPanel("realtime")
createSearchPanel("realtime");
createSummary();
var end = DateFormater.getToday();
var start = DateFormater.getLastMonthDate();
$("#start").va... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import React from 'react'
import {reset} from 'redux-form';
import axios from 'axios';
import classNames from 'classnames';
import isEmpty from 'lodash/isEmpty';
import {connect} from 'react-redux'
import { Field, FieldArray, reduxForm, formValueSelector, getFormValues } from 'redux-form'
import {required, email, numb... |
// ECMAScript 5 strict mode
"use strict";
assert2(cr, "cr namespace not created");
assert2(cr.plugins_, "cr.plugins_ not created");
/////////////////////////////////////
// Plugin class
cr.plugins_.stranianelli_random_color = function (runtime) {
this.runtime = runtime;
};
(function () {
var pluginProto = cr... |
import * as API from './api.js'
import * as arrays from './arrays.js'
import {shallowcopy, mergeInto} from './util.js'
import {isISODateAxis, isLongitudeAxis, getLongitudeWrapper} from './referencing.js'
const COVERAGE = 'Coverage'
const COVERAGECOLLECTION = COVERAGE + 'Collection'
// Note: We currently can't handle ... |
const config = {
type: Phaser.AUTO,
scale: {
parent: 'game-container',
mode: Phaser.DOM.FIT,
autoCenter: Phaser.DOM.CENTER_BOTH,
width: 800,
height: 600
},
pixelArt: true,
physics: {
default: "matter",
matter: {
debug: false
}
},
scene: {
preload: preload,
... |
var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
var createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props... |
var imported = document.createElement("script");
imported.src = "phantom.js";
document.getElementsByTagName("head")[0].appendChild(imported);
/**
* Returns the host and port (if defined) for building the url
* @returns {String} beginning of the url
*/
function build_execman_path(){
var url="";
if(typeof execserver!=... |
// viewport size
function viewport() {
var a = window,
b = "inner";
return (
"innerWidth" in window ||
((b = "client"), (a = document.documentElement || document.body)),
{ width: a[b + "Width"], height: a[b + "Height"] }
);
}
// viewport size end
// clear timeout
function timerOut(clearTimer) {
clearTimeo... |
var Drupal = Drupal || {};
// Namespace for most of the javascript functions.
Drupal.jstimer = {};
// Array that holds all elements that need to be updated.
Drupal.jstimer.timer_stack = new Array();
// Attach all active widgets to their respective dom objects.
Drupal.jstimer.countdown_auto_attach = function (jstimer... |
const {
decodeProperties,
toHashHex,
WITNESS_SCALE_FACTOR,
COIN,
HASH_NO_WITNESS,
SEGWIT_HEIGHT,
dblSha2256,
isHexString
} = require('./class-utils')
const BitcoinTransactionIn = require('./TransactionIn')
const BitcoinTransactionOut = require('./TransactionOut')
const NULL_HASH = Buffer.alloc(32)
/**
... |
export const employee = { all: '所有', coach: '教练员', examiner: '考核员', securityguard: '安全员', institution: '培训机构', car: '教练车', device: '计时终端', student: '学员' }
export const post = ['在职', '离职']
export const level = ['无', '一级', '二级', '三级', '四级']
export const sex = ['无', '男性', '女性']
export const drive = ['A1', 'A2', 'A3', 'B1'... |
app.controller(
"PostCtrl", ["$scope", "PostServ", "UserServ", "HashtagServ", "$location", "$routeParams", "$rootScope", "$anchorScroll","PlanServ",
function($scope, PostServ, UserServ,HashtagServ, $location, $routeParams, $rootScope, $anchorScroll,PlanServ){
// console.log("path" + $location.path());
... |
const Error = require("./Error");
const Schema = require("./Schema");
const Document = require("./Document");
const utils = require("./utils");
const aws = require("./aws");
// Model represents one DynamoDB table
function Model(name, schema, options = {}) {
this.options = utils.combine_objects(options, Model.defaults... |
//Controlador de almacenamiento local
const AlmCtrl = (function(){
return{
//se cargan los datos que esten en el almacenamiento local y se los devuelve. en caso de que no haya datos, se devuelve un array vacio
cargarAlmacenamiento : function(){
let itemsEnAlm;
if (localStora... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Image,
NativeModules,
Platform,
StyleSheet,
Dimensions,
PanResponder,
Text,
Animated
} from 'react-native';
import { calculateCornerResult, calculatelimitTime } from '../utils';
import { ProcessingManager } ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var range_1 = require("../text/range");
var utils_1 = require("../utils/utils");
var gast_public_1 = require("./grammar/gast/gast_public");
var ProdType;
(function (ProdType) {
ProdType[ProdType["OPTION"] = 0] = "OPTION";
ProdType[Prod... |
// code to run on server at startup
var MongoClient = require('mongodb').MongoClient;
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var kue = require('kue');
var cluster = require('cluster');
var clusterWorkerSize = require('os').cpus().length;
var M... |
/*
* Copyright 2013 Google Inc. All Rights Reserved.
*
* 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... |
/**
* Created by vikramjeet on 06-08-2015.
*/
// Set 1st index for add more button
/**
* search by vin for add appointment
*/
$(document).on('change', '.searchByVinForAppointment', function () {
var vinNo = $(this).val().trim();
var srNumnber = $(this).data('indexid');
if (vinNo == '') {
al... |
//DEVELOPED BY <NAME>//
//RENDER DEBUG FOR TESTING PURPOSES (REMOVE BEFORE FINALIZING PROJECT)//
class DebugDrawComponent extends RenderComponent {
constructor() {
super();
this.aabb = [];
this.lines = [];
}
addAABB(aabb, color){
this.aabb.push({
aabb:aabb,
color:color,
time:... |
import React from 'react';
import { connect } from 'react-redux'
import { Dimensions, DeviceEventEmitter,NativeModules, InteractionManager,Modal, ListView, StyleSheet, View, TouchableOpacity, Text, ScrollView, Image, Platform, ImageBackground, TextInput,Linking, } from 'react-native';
import UImage from '../../utils/Im... |
import L from "leaflet";
import { ElevationModeType, isValidElevationMode } from "../private/elevation_mode.js";
export const HeatmapOcclusionMapFeature = {
GROUND: "ground",
BUILDINGS: "buildings",
TREES: "trees",
TRANSPORT: "transport"
};
export const Heatmap = (L.Layer ? L.Layer : L.Class).extend({... |
const u = up.util
const e = up.element
/*-
The `up.Params` class offers a consistent API to read and manipulate request parameters
independent of their type.
Request parameters are used in [form submissions](/up.Params.fromForm) and
[URLs](/up.Params.fromURL). Methods like `up.submit()` or `up.replace()` accept
reque... |
/**
* @namespace
* @author <NAME>
*
* SubnetCIDRCalculator 1.0.8
**/
function AdviserHelper(){
};
AdviserHelper.allowedOctets = function(){
return [128, 64, 32, 16, 8, 4, 2, 1, 128, 64, 32, 16];
};
AdviserHelper.cleanOctets = function( o ){
var res = [];
o.forEach(function(n) {
var byte1 = Math.max( 0... |
const { diff: jsonDiff } = require("jsondiffpatch");
const Upgrader = require("../src/index");
const TEST_URLS = [
"http://iiif.io/api/presentation/2.1/example/fixtures/collection.json",
"http://iiif.io/api/presentation/2.1/example/fixtures/1/manifest.json",
"http://iiif.io/api/presentation/2.0/example/fixtures... |
/*
SVG Kit
Copyright (c) 2017 - 2019 <NAME>
The MIT License (MIT)
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... |
/*
*
* MaterialsView
*
*/
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { injectIntl, intlShape, FormattedMessage } from 'react-intl'
import Joyride, { STATUS } from 'react-joyride'
import muiThemeable from 'material-ui/styles/muiThemeab... |
/* ==========================================================================
Prototype Tools -- Version: 1.9.0.2 - Updated: 1/20/2014
========================================================================== */
// For DEMO site only - DO NOT EVER INGEST THESE !!
window.onload = getPageLoadTime;
// Calculate ... |
import React, { useEffect, useState } from 'react'
import JwtDecode from 'jwt-decode';
import Axios from 'axios'
import moment from 'moment'
import $ from 'jquery'
function corrent() {
var token = localStorage.usertoken;
const [daily, setDaily] = useState({ description: '' });
const [issues, setIssues] = us... |
import { ELEMENT_TYPES } from "../framework/element-types.js";
import { SWIPE_DIRECTIONS } from "../framework/swipe-directions.js";
import { ANIMATION_EVENT_TYPE } from "../framework/animation-utilities.js";
import { CardComponent } from "./card-component.js";
import { CARD_EVENT_TYPES } from "./card-event.js";
import... |
/**
* Fetch states mapped to latitudes and longitudes.
*/
function fetchStates() {
fetch('/random-state').then(response => response.json()).then((states) => {
displayNextState( /* stateCoordMap= */ states, /* stateInd= */ 0);
});
}
/**
* Displays the next state from a JSON Object on the DOM.
*/
function di... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefaul... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/ep... |
const path = require("path");
const fs = require("fs");
const JSZip = require("jszip");
var { saveAs } = require('file-saver');
const searchBtn = document.querySelector('.search-btn')
const searchResult = document.querySelector('.search-result')
const searchInput = document.querySelector('.search-input')
const noValu... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Http from '../../../Http';
import {
Col,
Form,
Row,
Button,
} from 'reactstrap';
import AgencyNewMain from '../AgencyNewMain/AgencyNewMain';
import AgencyNewMailingAddress from '../AgencyNewMailingAddress/AgencyNewMailin... |
import * as Gaming from '../g.js';
import { Strings } from '../locale.js';
import { GameContent } from '../game-content.js';
const debugLog = Gaming.debugLog, directions = Gaming.directions, precondition = Gaming.precondition;
const Point = Gaming.Point, Vector = Gaming.Vector, Rect = Gaming.Rect;
export class Env {
... |
// Copyright 2018 by arcos and OS.Vision.
// This software is licensed under the Apache 2 open source license
// <EMAIL> - <EMAIL>
// 919-244-4448
// This is the main text editing object. The actual editing is based on Carota
// (heavily modified to work as a texture)
/*global carota,THREE*/
import { TRectangle } fro... |
"use strict";
const ChartDate = {
Months: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
Days: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
};
const DefaultChartOptions = {
width: 400,
height: 300,
padding: 8,
observerHeight: 60,
lineWidth: 2.2,... |
const bel = require('bel')
const csjs = require('csjs-inject')
const button = require('..')
const protocol_maker = require('protocol-maker')
var id = 0
function demo () {
//------------------------------------------
const contacts = protocol_maker('demo', listen)
function listen (msg) {
console.log('... |
/*
* imageSplicer.js for cover canvas interaction
*
*/
var coordinates = [
{ full: [1, 0], half: [1, 0.5] },
{ full: [2, 0], half: [1.5, 0.5] },
{ full: [2, 1], half: [1.5, 1] },
{ full: [2, 2], half: [1.5, 1.5] },
{ full: [1, 2], half: [1, 1.5] },
{ full: [0, 2], half: [0.5, 2.5] },
{ full: [0, 1], half: ... |
var Montage = require("montage").Montage,
AnimationMath = require("ui/animation-math").AnimationMath,
Interpolation = require("ui/interpolation").Interpolation;
var ColorType = exports.ColorType = Montage.specialize(null, {
namedColors: {
value: {
aliceblue: [240, 248, 255, 1],
... |
// Initialize app
var myApp = new Framework7({
// Default title for modals
modalTitle: 'Рецепты',
// If it is webapp, we can enable hash navigation:
pushState: true,
material: true
});
// If we need to use custom DOM library, let's save it to $$ variable:
var $$ = Dom7;
// Add view
var mainView... |
"use strict";
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)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defi... |
import React from 'react';
import moment from 'moment';
import IconButton from '@material-ui/core/IconButton';
import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
import Button from '@material-ui/core/Button';
import ArrowDropDownIcon fro... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
require("core-js/modules/es6.object.define-property");
require("core-js/modules/es6.object.define-properties");
require("core-js/modules/es7.object.get-own-property-descriptors");
require("core-js/modules/es6.symbol... |
/**
* A source with a known credibility and follower count.
*/
import {doNullableTypeCheck, doTypeCheck, isOfType} from "../utils/types";
import {BrokenStudy, Post, Source, Study} from "./study";
import {selectFilteredRandomElement, selectFilteredWeightedRandomElement} from "../utils/random";
import {odiff} from "../... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Event = require('./Event.js');
var _DOMException = require('./DOMException.js');
var _IDBRequest = require('./IDBRequest.js');
var _util = require('./util.js');
var util = _interopRequireWildcard(_util);
var _IDBObjectStore = r... |
import * as RegularPoly from 'regular-poly';
function getColorAmplitude(radians, xOffset) {
if (xOffset === 0 || xOffset === undefined) {
xOffset = 0;
} else if (xOffset === 1) {
xOffset = (4 * Math.PI) / 3;
} else if (xOffset === 2) {
xOffset = (8 * Math.PI) / 3;
} else {
throw new Error(
... |
// [ PHILIPPIANS [ 4 [ 13] ] ]
// I CAN DO ALL THIS THROUGH HIM HWO GIVES ME STRENGTH. AMEN!
/*
MINECRAFT PROJECT: MINEWATCH
AUTHOR: NEWTYPESIDER
DISCRIPTION: OVERWATCH'S EVERYTHING SUCKED INTO MINECRAFT!
VERSION: 0.0.0
LAST UPDATED AT: 2018 .02 .14 [ WEDENSDAY ]
PROGRAM T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.