text stringlengths 3.22k 29.5k |
|---|
var d3 = require( 'd3' );
var headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept',
'Access-Control-Request-Method': '*',
'Access-Control-Allow-Methods': '*',
'Content-Type': 'image/svg+xml'
};
var style = "svg { \
font... |
// Title: Tigra Tree Menu (special version)
// Description: See the demo at url
// URL: http://www.softcomplex.com/products/tigra_menu_tree/
// Version: 1.1
// Date: 05/18/2005
// Notes: This script is free. Visit official site for further details.
function tree (a_items, a_index, a_template) {
this.a_tpl ... |
import React from 'react';
import {
GoogleMap,
useLoadScript,
Marker,
InfoWindow,
}
from "@react-google-maps/api";
import usePlacesAutocomplete, {
getGeocode,
getLatLng,
}
from "use-places-autocomplete";
import {
Combobox,
ComboboxInput,
ComboboxPopover,
ComboboxList,
ComboboxOption,
} from "@rea... |
var lang, text = {}, saved = JSON.stringify(text);
var type = 'church';
var counter = 0;
var workspace, tabs, overview, conc, anns, viewing = 0, toClassify;
var inst_num;
var concordance, definitions, users, messages;
var user, names, this_user, this_types, this_selection;
var announced = {};
var concordance, concordan... |
'use strict';
// Main script for https://Hover.Us
// The menu scroll could be changed to be draggable... but would anyone?
// Defer-loads style sheets
// scrollIt: Does smooth scrolling to #id or anywhere
// show_pos: updates the scrollbar on header.menu
// TouchEnd: swipe < or > to jump to next menu content
// C... |
"use strict";
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value);... |
const initialSheetTriggers = {
"Document Properties": updatePropertiesOnEdit
}
const finalSheetTriggers = {
"Trips": tripSheetTrigger
}
const rangeTriggers = {
codeTripActionButton: {
functionCall: tripActionButton,
callOncePerRow: true
},
codeFillRequestCells: {
functionCall: fillTripCellsOnEdi... |
// 入口文件
import { CURRENT_SITE_NAME, CURRENT_SITE_INFO, DOUBAN_SEARCH_API, API_KEY, DOUBAN_API_URL, PT_GEN_API, PT_SITE, SEARCH_SITE_MAP } from './const';
import { fillTargetForm } from './target';
import { getSubTitle, getUrlParam } from './common';
import getTorrentInfo from './source';
// eslint-disable-next-line no-... |
/**
* Copyright 2017 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 appli... |
#!/usr/bin/env node
const fs = require('fs');
const cp = require('child_process');
const p = require('path');
const benchmark = process.argv[2];
const printTraces = process.argv[3];
let preFileArg = "";
let args = [];
let nativeBinary;
let relativePath = false;
switch (benchmark) {
case "pal2rgb":
args = ["/d... |
import React, {Component} from 'react';
import {
StyleSheet,
Text,
Alert,
Image,
View,
TouchableOpacity,
ImageBackground
} from 'react-native';
import {
NavBar,
TopPadding,
Button,
InputView,
InputWithAnimate,
Loading,
KeyboardAwareScrollView
} from '../../../widget/AllWidget'
import {
Con... |
const fs = require('fs');
const {app} = require('electron').remote;
global.logger = require('pino')()
const path = require('path');
const encryption = require('../modules/encryption');
const folderStructure = require('../modules/folder-structure');
const config = require('../modules/config');
const Sync = require('.... |
import { Trans, t } from "@lingui/macro";
import { withI18n } from "@lingui/react";
import PropTypes from "prop-types";
import React, { Component } from "react";
import classNames from "classnames";
import SchemaForm from "react-jsonschema-form";
import { MountService } from "foundation-ui";
import TabButton from "#SR... |
/*
* Copyright 2017-2022 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 req... |
/*
* The main entry point for unibook server
* Copyright <NAME>, 2015
* The MIT License (MIT)
* Copyright (c) <2015> <<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 r... |
import React, { useState } from "react";
import TextField from "@mui/material/TextField";
import Dialog from "@mui/material/Dialog";
import DialogActions from "@mui/material/DialogActions";
import DialogContent from "@mui/material/DialogContent";
import DialogContentText from "@mui/material/DialogContentText";
import ... |
const http = require('../utils/http')
const { sendFile, sendHTTPFile } = require('../utils/sendfile')
const { api } = require('./sharelist')
const { getConfig } = require('../config')
const slashify = (p) => (p[p.length - 1] != '/' ? `${p}/` : p)
var virtualFile = {
}
/**
* Webdav props default options
*/
const d... |
/*
Created by <NAME> [<EMAIL>]
This javascript code is provided as is with no warranty implied.
Akshay Srinivasan is not liable or responsible for any consequence of
using this code in your applications.
You are free to use it and/or change it for both commercial and non-commercial
applications... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import SmallSectionError from '../../../../../../content/components/Errors/smallSection';
// UC TO RESTART import AnswerViewer from '../../../../../../content/containers/Fragments/Answer/viewe... |
/* ********************************************************************* */
/* Load and combine data that is split into archives */
/* ********************************************************************* */
var Combine = {
_targets: [],
_targetIndex: 0,
// target: build target
// ... |
import { readJSON } from 'fs-extra';
import path from 'path';
import micromatch from 'micromatch';
import { ValidationError } from '@changesets/errors';
import { warn } from '@changesets/logger';
import { getDependentsGraph } from '@changesets/get-dependents-graph';
var packageJson = {
name: "@changesets/config",
ve... |
// Global config
var COLOR_BINS = [ 0, 30, 60, 90, 120, 150, 180];
var COLOR_RANGE = ['#F5D1CA', '#ECA395','#E27560','#D8472B','#A23520','#6C2315']
var DESKTOP_THRESHOLD = 730;
// Global vars
var pymChild = null;
var isMobile = false;
var isFluid = false;
var binnedData = [];
/*
* Initialize the graphic.
*/
var onW... |
"use strict";
var platform = require('./_platform');
var toolbarBuiltInButtons = {
"bold": {
name: "bold",
action: "toggleBold",
className: "fa fa-bold",
title: "Bold",
toggle: true
},
"italic": {
name: "italic",
action: "toggleItalic",
clas... |
import React from 'react';
import { Keyboard, StyleSheet, Text, View, ScrollView, Image, Alert, TouchableHighlight, TouchableOpacity, KeyboardAvoidingView } from 'react-native';
import { FormLabel, FormInput, FormValidationMessage, Button } from 'react-native-elements'
import { Constants, ImagePicker } from 'expo';
imp... |
/*
* 모듈명 : qna.js
* 설명 : 관리자화면 '1:1문의 관리' 에 대한 모듈.
* 작성일 : 2017년 10월 25일
* author : HiBizNet
* copyright : JT-LAB
* version : 1.0
*/
var express = require('express');
var mysql = require('mysql');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
var flash = require(... |
// .env Variables
require('dotenv').config({path: 'final.env'});
// Node Modules
const Discord = require('discord.js');
const client = new Discord.Client();
// State Machine (Uncomment if needed)
var BotEnumState = {
INACTIVE: 0,
ACTIVE: 1
}
var botState = BotEnumState.INACTIVE;
var queueVCList = [];
var alr... |
// MXFlutterFramework
// Copyright 2019 The MXFlutter Authors. All rights reserved.
//
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
const dart_sdk = require("dart_sdk");
const core = dart_sdk.core;
const dart = dart_sdk.dart;
const http = dart_sdk._http
l... |
import * as d3 from 'd3'
import './demo.css'
import THREE from './three'
import data from './data.json'
let charts, timer
const scene = new THREE.Scene()
const width = window.innerWidth
const height = window.innerHeight
const camera = new THREE.PerspectiveCamera(40, width / height, 1, 10000)
camera.position.z = 300... |
import { dist, distSq, isSamePoint } from 'math/geom';
import { mm2px } from 'math/svg';
import { transformLine } from './svg/math';
import { logger } from './utils';
import { createRTree } from './rtree';
import { pointAsMbr } from './rtree/utils';
import { MOTION_PEN_DOWN, MOTION_PEN_UP } from './consts';
export con... |
var RoomManager = require("./room-manager").RoomManager,
_ = require("underscore"),
events = require("events"),
models = require("./server-models"),
sockjs_lib = require("sockjs"),
VideoSync = require("./video-sync");
logger = require("./logging").getLogger();
function UnhangoutSocketManager(h... |
const path = require('path');
const express = require('express');
const MongoClient = require('mongodb').MongoClient;
const ObjectId = require('mongodb').ObjectId;
const app = express();
app.use(express.json());
/// YOUR ROUTES GO HERE!
/////////////////////////////////////////////
// Totally insecure backend rout... |
"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 (d, b)... |
'use strict'
const _ = require('lodash')
const Promise = require('bluebird')
const Settings = require('./settings')
const collection = require('./db').db.collection(Settings.mongo.collection_name)
const collection_failed = require('./db').db.collection(Settings.mongo.collection_name + '_failed')
const FIELDS = ['slu... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import axios from 'axios';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import { Paper } from '@material-ui/core';
//Components
import MainContent from '..... |
'use strict';
const nodemailer = require('nodemailer');
const htmlToText = require('nodemailer-html-to-text').htmlToText;
const _ = require('lodash/fp/object');
var simpleMailer = {
"init": function (configLocation) {
const fs = require('fs');
// Check if we received an app dir
if (typeof configLo... |
/*
* Web demos for GLSL procedural noise. The shaders are loaded over
* the network from the glsl files in this repository and displayed with
* various effects added.
*
* This code is in the public domain.
*/
'use strict';
// The shader will be assembled from
// * a noise source file (e.g. noise3D.glsl)
// * ... |
'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... |
import Overlay from "ol/Overlay.js";
const MouseHoverPopupModel = Backbone.Model.extend(/** @lends MouseHoverPopupModel.prototype */{
defaults: {
overlay: new Overlay({
id: "mousehover-overlay"
}),
textPosition: null,
textArray: null,
minShift: 5,
numFeat... |
/**
* Created by comnic on 2018. 2. 25..
*/
//$.getScript("js/sc_util.js");
App = {
web3Provider: null,
contracts: {},
sc_address : "0x6fdfbc480fdb12d7b6d764d399b644ea20122520",
sc_token_address : "0x47021453792cea318d24837f8da1b33d526d6b80",
init: function () {
// Load pets.
$.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genPackList = exports.genPackageManifest = exports.genPackStream = exports.prepareForPack = exports.hasPackScripts = void 0;
const tslib_1 = require("tslib");
const core_1 = require("@yarnpkg/core");
const fslib_1 = require("@yarnpkg/f... |
/* global module, __dirname */
// -- modules
var fs = require("fs");
var path = require("path");
var webpack = require("webpack");
var header = require("string-template");
var glob = require("glob");
// -- plugins
var DefineWebpackPlugin = webpack.DefinePlugin;
var ExtractTextWebPackPlugin = require("extract-text-web... |
disableInputButtons();
var connection = new RTCMultiConnection();
connection.socketURL = '/';
connection.channel = 666;
if ($('#userBlock').data('user') != undefined) {
connection.userid = $('#userBlock').data('user');
}
connection.videoContainer = {
main: undefined,
forHost: undefined
};
connection.has... |
//app.js
const createError = require('http-errors')
const express = require('express')
const path = require('path')
const mongoose = require('mongoose')
const cookieParser = require('cookie-parser')
const logger = require('morgan')
const cors = require('cors')
const johnMethods = require('./johnny.js')
johnMethods.in... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findFrameThread = void 0;
const helpers_1 = require("../../helpers");
const tryCatch_1 = require("../../helpers/tryCatch");
const streamers_1 = require("../../core/db/streamers");
const discord_1 = require("../../helpers/discord");
con... |
import React from "react"
// import { Link } from "gatsby"
import Layout from "../components/Layout"
// import Image from "../components/image"
import SEO from "../components/seo"
import bgImage from '../images/bg.png'
// import {Alert,ColorRow} from '@lekoarts/gatsby-theme-specimens'
const IndexPage = () => (
<Layou... |
/**
* Convert a hex string to an ArrayBuffer.
*
* @param {string} hexString - hex representation of bytes
* @return {ArrayBuffer} - The bytes in an ArrayBuffer.
*/
function _webauthn_hexStringToArrayBuffer(hexString) {
// remove the leading 0x
hexString = hexString.replace(/^0x/, '')
// ensure even number o... |
"use strict"
const child_process = require('child_process');
const path = require('path');
const fs = require('fs');
const dateFns = require('date-fns');
const commitRegex = /\[(.*)\],(.*)/;
const newLine = "\n";
const fileDelimiter = newLine;
const tab = "\t";
const carrierReturn = "\r";
const invalidFileLines = ["\... |
const Discord = require("discord.js");
const utils = require("./utilities");
const ArgExpression = /(["'`\w_ ]+):?(["'`\w_ ]*)?/;
const QuoteExpression = /(["'`])/g;
/**
* @type {Array<[import("./typings").ArgumentCriteria, string]>}
*/
const defaultResponses = [
["type", "%username, your argument %name did not ma... |
import React, { useContext, useEffect, useState} from 'react';
import * as Yup from 'yup';
import {
Button,
Card,
CardHeader,
CardBody,
Col,
Row,
Form,
FormFeedback,
FormGroup,
Input,
Badge
} from 'reactstrap';
import {Formik} from "formik";
import {UserContext} from "../../... |
import routerMap from '@/router/router.map'
import {mergeI18nFromRoutes} from '@/utils/i18n'
import Router from 'vue-router'
import {loginIgnore} from '@/router'
import {checkAuthorization} from '@/utils/request'
// import store from '../store'
/**
* 根据 路由配置 和 路由组件注册 解析路由
* @param routesConfig 路由配置
* @param routerM... |
var fs = require('fs');
var colors = require('colors');
var readline = require('readline');
// plugins: pug, sass, autoprefixer, minify-css, rename, concat and other
var plugins = require('gulp-load-plugins')();
var qdt_verbose = require('./qdt-verbose.js');
// not very sure if this work cross-frame
var isObjectLite... |
import * as Validation from './Validation.js';
import PouchDb from 'pouchdb';
const verovio = require('verovio-dev');
/**
* The core component of Neon. This manages the database,
* the verovio toolkit, the cache, and undo/redo stacks.
*/
class NeonCore {
/**
* Constructor for NeonCore
* @param {Map<number,... |
/**
<NAME>, 2018.
*/
//* Modules to control application life and create native browser window
const {
app,
BrowserWindow,
dialog,
globalShortcut,
Menu,
Notification,
Tray
} = require("electron");
//* Misc Imports
const path = require("path");
const fs = require("fs");
const electronLocalshortcut = require("ele... |
var initWysTour = function(){
$("#wys-cms-tour").click(function(){
startWysTour(true);
closeWysToolbar();
});
}
var startWysTour = function(from_beginning){
stepNO = parseInt(localStorage.getItem('tour_current_step'));
allowWysToolbarHide = false;
if(stepNO >= 1){
animatingWysToolbar = false;
... |
'use strict';
var MACROUTILS = require('osg/Utils');
var vec3 = require('osg/glMatrix').vec3;
var mat4 = require('osg/glMatrix').mat4;
var Manipulator = require('osgGA/Manipulator');
var OrbitManipulatorDeviceOrientationController = require('osgGA/OrbitManipulatorDeviceOrientationController');
var OrbitManipulatorGame... |
/**
* --- Day 16: Packet Decoder ---
As you leave the cave and reach open waters, you receive a transmission from the Elves back on the ship.
The transmission was sent using the Buoyancy Interchange Transmission System (BITS), a method of packing numeric expressions into a binary sequence. Your submarine's computer h... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var answer_back_up = []; // 정답 내용 백업
var count = []; // 지우고 되돌리기 index
var s1, s2, s3, s4; // 셀렉터 값
var multiple_answer_box = []; // 중복 답변란
var mab_num = 0; // 중복 답변란 개수
var focused_box = 0; // 포커스된 답변란의 index
var answer_starts = [];
var result = null;
var no_answer = false;
function convertIndexLeft(index, array) { /... |
/**
* Copyright 2017 California Institute of Technology
*
* 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 applic... |
/*
* Black Duck JIRA Plugin
*
* Copyright (C) 2020 Synopsys, Inc.
* https://www.synopsys.com/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... |
var BluetoothHciSocket = require('../index');
var bluetoothHciSocket = new BluetoothHciSocket();
bluetoothHciSocket.on('data', function(data) {
console.log('data: ' + data.toString('hex') + ', ' + data.length + ' bytes');
if (data.readUInt8(0) === HCI_EVENT_PKT) {
if (data.readUInt8(1) === EVT_DISCON... |
import wrap from './wrap.js';
import Node from './Node.js';
import Scope from './Scope.js';
import CompileError from '../utils/CompileError.js';
import destructure from '../utils/destructure.js';
function isUseStrict ( node ) {
if ( !node ) return false;
if ( node.type !== 'ExpressionStatement' ) return false;
if (... |
"use strict";
const assert = require("assert");
const p = require("child_process");
const { Ministun } = require("../src/ministun.js");
const { MStunMsg } = require("../src/mmsg.js");
const { MStunHeader } = require("../src/mhdr.js");
function udpTest(v) {
let saddr, golden;
if (v === 4) {
// ipv4
... |
import React from 'react';
import IconButton from '@material-ui/core/IconButton';
import Dialog from '@material-ui/core/Dialog';
import Grid from '@material-ui/core/Grid';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography... |
var CarrierOrdersComponent_1;
import { __awaiter, __decorate, __metadata } from "tslib";
import { Component, EventEmitter, Input, Output, } from '@angular/core';
import OrderCarrierStatus from '@modules/server.common/enums/OrderCarrierStatus';
import Carrier from '@modules/server.common/entities/Carrier';
import { Carr... |
/* --------------------------------------------------------------------------
* Photoswiper (v2.0.7): photoswiper.js
* by <NAME>
* Licensed under GPL-3.0
* -------------------------------------------------------------------------- */
import PhotoSwipe from 'photoswipe'
import PhotoSwipeUIDefault from '../default-u... |
import React from 'react';
const SvgPreventivmedel = props => (
<svg viewBox="0 0 57 56" {...props}>
<use xlinkHref="#preventivmedel_svg__path0_fill" transform="translate(5)" fill="#2F424A" />
<g transform="translate(10 5)" fill="#283D46">
<use xlinkHref="#preventivmedel_svg__path1_fill" />
<use ... |
const axios = require('axios');
const qs = require('querystring');
const url = require('url');
const ForgeSDK = require('@arcblock/forge-sdk');
const Mcrypto = require('@arcblock/mcrypto');
const MemoryAuthStorage = require('@arcblock/did-auth-storage-memory');
const MemorySwapStorage = require('@arcblock/swap-storage-... |
// To generate new records:
// node scripts/generate-records.js
// Re-run this script after generating new courses
const fs = require('fs')
const path = require('path')
const faker = require('faker')
faker.locale = 'en_GB'
const moment = require('moment')
... |
import crypto from 'crypto';
import del from 'del';
import _fs from 'fs-extra';
import glob from 'glob';
import path from 'path';
import _Spritesmith from 'spritesmith';
import imagemin from 'imagemin';
import pngquant from 'imagemin-pngquant';
import createOptions from './defaultOptions';
import Promisable from './Pro... |
#!/usr/bin/env node
'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const figlet = Promise.promisify(require('./figlet'));
figlet.fonts = Promise.promisify(figlet.fonts);
const cheers = {
'afrikaans': 'Gesondheid',
'albanian': 'Gëzuar',
'arabic': 'Fe sahetek',
'armenian': 'Gena... |
/* eslint no-unused-vars: "warn" */
"use strict";
var express = require("express");
const cookieParser = require("cookie-parser");
const bodyParser = require("body-parser");
const path = require("path");
const async = require("async");
const app = express();
const http = require("http").Server(app);
var morgan = requi... |
'use strict';
const _ = require('lodash');
const async = require('async');
const util = require('../util/util');
const Validator = require('../resources/Validator');
module.exports = (router, resourceName, resourceId) => {
const hook = require('../util/hook')(router.formio);
const fActions = require('../actions/f... |
// FORMULA PARSING CODE
//====================
/* THE GRAMMAR
S ::= Q S | U S | '(' S B S ')' | A
Q ::= '(A' V ')' | '(E' V ')'
U ::= '~'
B ::= '&' | 'v' | '>' | '<>'
A ::= '#' | T=T | P | P T | P T T | P T T T ...
P ::= 'A' | 'B' | 'C' | 'D' | ...
T ::= C | V
C :: = 'a' | 'b' | 'c' | 'd'
V :: = 'w' | 'x' | 'y' | 'z'
... |
/**********************************************************************************
LM Framework v3
A simple PHP based application framework.
Contact: <EMAIL>
Copyright (c) 2005-2013, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
... |
"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
... |
/* eslint-disable no-shadow */
import keymirror from 'keymirror'
import { Record, Map, List, fromJS } from 'immutable'
import { createSelector } from 'reselect'
import { types as geneTypes } from '@broad/redux-genes'
import { getCategoryFromConsequence } from '@broad/utilities'
export const types = keymirror({
REQU... |
var C = require('./constants.js');
var Painter = require('./animation/painter.js'),
Modifier = require('./animation/modifier.js');
var Brush = require('./graphics/brush.js');
var engine = require('engine'),
nextFrame = engine.getRequestFrameFunc();
var fit_rects = require('./utils.js').fit_rects;
// Render... |
'use strict';
/*eslint-env mocha */
/*eslint max-nested-callbacks: 0 */
var assert = require('assert');
var sinon = require('sinon');
var Immutable = require('immutable');
var Stack = Immutable.Stack;
var Record = Immutable.Record;
var History = require('./history');
var UndoAction = History.UndoAction;
var RedoActi... |
import React from 'react'
import PropTypes from 'prop-types'
import XDate from 'xdate'
import { Typography, Button, Grid, Divider, List, ListItem, ListItemText, Chip } from '@krowdy-ui/core'
import BusinessIcon from '@material-ui/icons/Business'
import { withStyles } from '@krowdy-ui/styles'
export const styles = them... |
var taskStrings = {
success: "Bravo, vous avez formé la chaîne la plus longue possible !",
remainingBlocks: "BLOCS RESTANTS",
chainBlocks: "BLOCS DE LA CHAÎNE",
validate: "VALIDER",
hash: "HASH",
prev: "PREV",
errorNoChain: "Votre réponse ne contient pas de chaîne.",
errorMultipleChains:... |
var Buffer = require('buffer/').Buffer;
var hashUtils = require('./browserHashUtils');
var BLOCK_SIZE = 64;
var DIGEST_LENGTH = 32;
var KEY = new Uint32Array([
0x428a2f98,
0x71374491,
0xb5c0fbcf,
0xe9b5dba5,
0x3956c25b,
0x59f111f1,
0x923f82a4,
0xab1c5ed5,
0xd807aa98,
0x12835b0... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
$.base64.utf8encode = true;
$.base64.utf8decode = true;
//页面载入
$(function(){
showWalletInfo();
//alert($.base64.encode("好人"));
//alert($.base... |
import { STATUS_CODES, createServer } from 'http';
import path from 'path';
import { proxyaddr, all, compile } from '@tinyhttp/proxy-addr';
import { isIP } from 'net';
import { getRequestHeader, getQueryParams, getRangeFromHeader, getAccepts, getAcceptsCharsets, getAcceptsEncodings, getAcceptsLanguages, checkIfXMLHttpR... |
// var jsQuiz = document.querySelector("#js-quiz");
// var htmlQuiz = document.querySelector("#html-quiz");
// var cssQuiz = document.querySelector("#css-quiz");
var startBtn = document.querySelector("#startQuiz");
var startContainer = document.querySelector("#start-container");
var questionContainer = document.queryS... |
var should = require("should");
var Logger = require("../../www/js/shared/Logger.js");
(function(exports) {
var that = {};
var id = 0;
that.id = id++;
var fibSequence = [0, 1];
var pascal = {
0: [1]
};
function Util(solver, options) {
this.id = id++;
return this;
... |
"use strict";
// some globalz :
var THREECAMERA;
let ISDETECTED = false;
let TONGUEMESH;
let NOSEMESH;
const DOGOBJ3D = new THREE.Object3D();
let EARMESH;
let ISOVERTHRESHOLD = false;
let ISUNDERTRESHOLD = true;
let ISLOADED = false;
let MIXER = false;
let ACTION = false;
let ISANIMATING = false;
let ISOPAQUE = fa... |
/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true nomen:true, node:true continue:true*/
/*jslint undef: true*/
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/**
* this is interface for c... |
import $ from 'jquery'
import 'jquery-ui/themes/base/core.css'
import 'jquery-ui/themes/base/resizable.css'
import 'jquery-ui/themes/base/draggable.css'
import 'jquery-ui/themes/base/theme.css'
import 'jquery-ui/ui/core'
import 'jquery-ui/ui/widgets/resizable'
import 'jquery-ui/ui/widgets/draggable'
import ... |
'use strict';
const { mergeWith, debounce, memoize, has, get } = require('lodash');
const { makeHash } = require('./aux_crypt.js');
const { promisify } = require('util');
const mkpath = require('make-dir');
const fs = require('fs');
const path = require('path');
const mergeOptions = require('merge-options');
const klo... |
import Collection from '../../Woven/Collection';
import describe from '../describe';
//aux
import { Assertions, ErrorCollector } from '../assertions';
import TestHelpers from '../TestHelpers';
import { Collector, deepMatch, unwrap } from '../../helpers/utils';
// create test
const CollectionTest = describe({
testNam... |
/*
* L4D.js
* Demonstrate lighting.
*
* Adapted for WebGL by <NAME>, 2016.
* Adapted for WebGL2 by <NAME>, Feb 23, 2020.
*/
//----------------------------------------------------------------------------
// Variable Setup
//----------------------------------------------------------------------------
// This variable ... |
var period_start_array = ['1st minute', 'Midnight', 'Monday', '1st of', '1st of the 1st month of'];
var period_start_array2 = ['minute', 'hour', 'day', 'day', 'day of the 1st month'];//set options value afterwards
var setOptionValue = function (propId) {
return function (option, item) {
if (item === und... |
'use strict';
var Registry = require('../libs/registry');
var _ = require('underscore');
const ga = require('google-analytics');
// Item pages
module.exports.content_views = new Registry();
// Panel detail views
module.exports.panel_views = new Registry();
// Listing detail views
module.exports.listing_views = new R... |
var dashgoals_data;
var dashgoals_chart;
function bar_chart_goals(widget_name, chart_details)
{
nv.addGraph(function() {
dashgoals_data = chart_details.data;
var chart = nv.models.multiBarChart()
.stacked(true)
.showControls(false)
.tooltipContent(function(key, y, e, graph) {
if (graph.value == 0)
... |
/**
* Copyright (c) 2016 Topcoder Inc, All rights reserved.
*/
'use strict';
/**
* Drone module API's
*
* @author TCSCODER
* @version 1.0
*/
const joi = require('joi');
const models = require('../models');
const ObjectId = require('../datasource').getMongoose().Types.ObjectId;
const Drone = models.... |
const { utils } = require("ethers");
const { formatUnits } = utils;
const erc20Abi = require("../test/abi/erc20.json");
const stakingAbi = require("../test/abi/IStakingRewards.json");
const { getAssetAddresses } = require("../test/addressHelper");
const addresses = require("../utils/addresses");
/**
* Prints informa... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import { formatMessage, FormattedMessage, getLocale } from 'umi/locale';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
Dropdown,
Menu,
InputNumber,
DatePicker,
Moda... |
const router = require("express").Router({ mergeParams: true });
const db = require("../../db/index");
const permission = require("../../access-control")["Comment"];
const {
Comment,
Document,
User,
Role,
Tag,
Issue,
Notification,
Project,
ProjectAdmin,
ProjectEditor
} = require("../../db/models/ind... |
/*
* This tool can be used to move funds from one or multiple address from any number of seeds.
* It is designed to allow to specify the address indexes for seeds and will it take all the funds from these addresses - there is NO automatic "send all funds from seed" feature (yet).
*
* Furthermore it can iterate thr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.