text stringlengths 8.5k 48.7k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = (function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
... |
import { readFileSync } from 'fs'
import Promise from 'bluebird';
import { load } from 'js-yaml'
import { hasFatalErrors, reportFatalErrors } from './fatalErrors';
import { projectPath, settings } from './settings';
import errorsReporter from './reporter';
const { addFatal } = errorsReporter('general');
console.info('... |
import ElectionData from './election-data.js';
import FileLoader from './my-libs/file-loader.js';
import Requester from './my-libs/requester.js';
import switchView from './switcher.js';
import Utils from './utils/utilities.js';
import { setupVotingLinks } from './virtual/virtual-post-setup.js';
import { setupVotes } fr... |
window.onload = inicia;
function inicia() {
$("btnbuscar").onclick=existe;
//inicializando autocomplete
$Ajax("scripts/monedas.php", {onfinish: cargaSucursal, tipoRespuesta: $tipo.JSON, avisoCargando:"loading"});
$("autoCliente").className = "autocomplete";
new Ajax.Autocompleter("txtRazonSocial", "a... |
import Ember from 'ember';
import layout from './template';
import ThemedComponent from 'nullbase-theme-service/mixins/nb-themed-component';
import _ from "npm:lodash";
import createFocusTrap from "npm:focus-trap";
const { computed } = Ember;
function topZIndex() {
return _.max(_.map(document.querySelectorAll('*'), ... |
/*
* Copyright (c) 2014 - 2020 The GmSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this l... |
/* eslint-disable class-methods-use-this */
/* eslint-disable react/no-will-update-set-state */
/* eslint-disable react/sort-comp */
/* eslint-disable no-return-assign */
/* eslint-disable react/jsx-closing-tag-location */
/* eslint-disable react/jsx-indent */
/* eslint-disable react/no-access-state-in-setstate */
/* e... |
/**
* @fileoverview Create dungeon.
* @author <EMAIL> (<NAME>)
*/
/**
* Setup calls for dungeon.
* @type {ace.Dungeon}
*/
ace.dungeons = ace.dungeons || {};
var dungeon = new ace.Dungeon('dungeons/dungeon3.png');
ace.dungeons['3'] = dungeon;
ace.dungeons['3'].name = 'Dungeon3';
//-------------------------... |
/* eslint-disable */
const path = require('path');
const rootDir = path.join(__dirname, '..');
const libDir = path.join(rootDir, 'lib');
const dataDir = path.join(libDir, 'data');
// load resource data
const Coastal = require(path.join(dataDir, 'resources-coastal.json'));
const Desert = require(path.join(dataDir, 'res... |
export const Different_changePasswordForm="La contraseña no coincide"
export const DoNotMatch_changePasswordForm="La contraseña introducida es incorrecta"
export const Email="No es una dirección de correo bien formada"
export const Exist_editUserForm="Nombre de usuario ya existe"
export const NotEmpty="Campo obligatori... |
// Basic imports
import '../assets/main.css';
import React, { Component } from 'react';
// Style and Html
import { Input, Row, Card, CardTitle, CardBody, CardFooter, Spinner, Col } from 'reactstrap';
// Utils
import autoBind from 'react-autobind';
import { withCookies } from 'react-cookie';
// Assets
import SendIcon fr... |
/*global seisplotjs */
class ViewObsPy {
constructor(baseUrl, cssSelector="#myseismograph") {
this.baseUrl = baseUrl;
this.obspyData = new Map();
this.processedData = new Map();
this.processChain = [];
this.plotDiv = seisplotjs.d3.select(cssSelector);
if (this.plotDiv.empty()) {
throw n... |
/**
https://github.com/cgloeckner/pyvtt/
Copyright (c) 2020-2021 <NAME>
License: MIT (see LICENSE for details)
*/
var target_fps = 50;
var viewport = null;
function resetViewport() {
viewport = {
'x' : MAX_SCENE_WIDTH / 2, // left in [0, 1000]
'y' : MAX_SCENE_WIDTH * canvas_ratio / 2,
... |
import * as Phaser from 'phaser'
import IsometricTilemap from "../extends/isometrictilemap/IsometricTilemap";
// tiles:: 3079 x 3079; 1 px padding; 6 x 6; frame 512 x 512; isotile: 512 x 256, bottomPadding: 140 px;
import Asset_ISO60_Texturepack__JSON from "../assets/Tilemap/xdx_isocam60_anim_texturepack.json";
impor... |
var temp = document.querySelector('.time');
var button = document.querySelector("button");
var words = document.querySelector(".words");
var timerDiv = document.querySelector(".time");
var scoreDiv = document.querySelector(".score");
var points = 0;
var spans;
var typed;
var seconds = 60;
var spark = ... |
/* -*- Mode: JS; tab-width: 4; indent-tabs-mode: nil; -*-
* vim: set sw=4 ts=4 et tw=78:
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance wi... |
import ncsColor from 'ncs-color'; // https://github.com/m90/ncs-color
import colorConvert from 'color-convert'; // https://github.com/Qix-/color-convert
// analysis
// blackness has a perfectly linear relation to rgb across all hues.
// blackness zero = maximal rgb values
// blackness full = minimal rgb values
// ... |
//20190325 强制去掉价格购合买判断
var isForceBuy = true;
cartData = cartData || {};
var cartObj = {};
//费南雪(107418)在购物车仅可和普洱小金砖(107968)合买,不可和其他商品合买
var FNXGoodsIds = [107418], PEGoodsIds = [107968];
$(function () {
cartObj = new Vue({
el: '.main_cart',
data: {
cartData: {}, ... |
/* global globalThis, addEventListener, postMessage, BigInt */
// regexpxs extracted from
// (c) BSD-3-Clause
// https://github.com/fastify/secure-json-parse/graphs/contributors and https://github.com/hapijs/bourne/graphs/contributors
const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(... |
'use strict';
/**
Class Listing
-------------
Version 1.0.1
-------------
Cette classe permet de gérer des listes de chose intégralement, c'est-à-dire
aussi bien au niveau de l'affichage du listing proprement dit qu'au niveau de
la création/suppression/modification l'éléments
Cf. le manuel Listing.md qui doi... |
//UPLOAD PAR ZiJo
//Charge main.js
const discord = require("discord.js");
//Le client, appelé Bot
const bot = new discord.Client();
//Les paramètres (token et préfixe)
const config = require("./config.json");
//Lorsque le bot est prêt
bot.on("ready",() => {
//
//Affiche dans la console l'exécution APRÈS l'activité ... |
//distinct objects for javascript
var distinctOrganizations = []
var distinctMemberships = []
var distinctRoles = []
var distinctYears = []
//distinct objects fot angular scope
//$scope.distinctRoles
//$scope.distinctTerritories
//$scope.distinctOrganizations
function searchModule(option,parameter,callback) {
if(o... |
$(document).ready(function(){
$.m.on("#onHold").hold(function(){
console.log("Onhold Event Fired !!");
},{
time: 700
});
$('#menuToggle').click(function(){
$('#menu').toggleClass('open');
});
$('section').each(function(){
var $ths = $(this),
... |
import React, { Fragment } from 'react';
import {
Link
} from 'react-router-dom';
import {
EuiSpacer,
EuiPanel,
EuiInMemoryTable,
EuiLink,
EuiBasicTable,
EuiLoadingKibana,
EuiAccordion,
EuiText,
EuiFlexGroup,
EuiFlexItem,
EuiToolTip,
EuiBadge,
EuiStat,
EuiIc... |
//BASICS
var TokenTypes = Object.freeze({ "operator": 0, "object": 1 });
if (!String.prototype.splice) {
/**
* {JSDoc}
*
* The splice() method changes the content of a string by removing a range of
* characters and/or adding new characters.
*
* @this {String}
* @param {number} s... |
$( document ).ready(function() {
// console.log( "ajax-os-items!" );
});
var app_url = $('#app_url').attr('url');
var editor;
var checkAnticipo = $('#anticipo').val();
// FUNCION DE EJECUCION AL MODIFICAR EL CAMPO SELECT DE ETAPA
function MostrarSelectEtapa(){
var itemEtapa=Array.from($("#gos_paq_etapa_id... |
var lnSearch = {};
class Searcher {
constructor(searchConfig, hitNormalizer, onError, debug = function() {}) {
const algoliaHost = `https://${searchConfig.app_id}-dsn.algolia.net`;
this.headers = {
'X-Algolia-Application-Id': searchConfig.app_id,
'X-Algolia-API-Key': searchConfig.api_key
};
this.normali... |
//=== CMatl.js ===================================================
// 2015.03.08 courtesy <NAME>
// 2016.02.22 <NAME> revised comments & return value names
// 2016.03.01 <NAME> added K_name member; added data members to hold
// GPU's 'uniform' locations for its MatlT struct members;
// added 'set... |
import { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import {
NoSsr, IconButton, Card, CardContent, CardHeader,
Tooltip, LinearProgress, Box
} from '@material-ui/core';
import { connect } from 'react-redux';
import { bindActionCreators } from ... |
/**
* vuex v3.1.0
* (c) 2019 <NAME>
* @license MIT
*/
'use strict';
function applyMixin (Vue) {
var version = Number(Vue.version.split('.')[0]);
if (version >= 2) {
Vue.mixin({ beforeCreate: vuexInit });
} else {
// override init and inject vuex init procedure
// for 1.x backwards compatibility.... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
try {
var tokens = require('./secrets.json');
} catch (e) {
console.log("You need to enter your token in ./secrets.json! (See an example in secrets_example.json)");
return;
}
vmname = tokens.vmname;
try {
var Discord = require('discord.io');
var child_process = require('child_process');
var fs = require("... |
"use strict";
const utils = require('@iobroker/adapter-core');
const soef = require('./lib/soef'),
devices = new soef.Devices(),
YAMAHA = require("yamaha-nodejs-soef"),
Y5 = require('y5');
var yamaha,
peer,
y5,
namedInputs = {},
refreshTimer = soef.Timer(),
timeouts = {};
soef.extendA... |
var Node = require('./node');
var Datastore = require('nedb');
var _ = require('lodash');
var f = require('../functions');
const { performance } = require('perf_hooks');
const queuemethods = {
getcontents: true,
getlastcomments: true,
gettags: true,
getrawtransactionwithmessage: true,
getuserprofil... |
frappe.require([
'/assets/eskill_custom/js/common.js',
'/assets/eskill_custom/js/selling.js'
]);
frappe.ui.form.on('Issue', {
refresh(frm) {
frm.clear_custom_buttons();
var exclusion_list = [
"resolution_details",
"opening_date",
"opening_time",
... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
/**
* Copyright 2014 IBM Corp. 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... |
const fs = require('fs');
const nodemailer = require('nodemailer');
const Trabalhadores = require('../models/Trabalhadores')
const Pedidos = require('../models/Pedidos')
const User = require('../models/User')
const { response } = require('express');
const { Op, INTEGER, NUMBER } = require("sequelize");
const { pageped... |
//*********************************************************************
// SunSystems Connect
// Open Source - Use with no restrictions
// Version 1.00
//*********************************************************************
var _conf = {
debug: false,
debugFileName: "C:\\temp\\debug.txt",
debugFi... |
const getID = (l,r) => "#list-" + l + (r || r === 0 ? "-row-" + r:""),
defaultBoard = {
version: 0.03,
title: "Checklist",
lists: [
{
name: "New List",
items: [
{
value: "",
checked: false
},
{
value: "",
checked: false
... |
// plugin
d3.selection.prototype.moveToFront = function() {
return this.each(function(){
this.parentNode.appendChild(this);
});
};
// setting
let tooltip = d3.tip().attr('class', 'd3-tip').html(function (d){return `<span>${d}</span>`})
let graphicopt = {
margin: {top: 40, right: 40, bottom: 80, le... |
// JavaScript Document
/*
** Zabbix
** Copyright (C) 2001-2017 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later ... |
import getElement from './getElement';
import { getToolState } from '../../../stateManagement/toolState.js';
import state from './state';
import getSegmentsOnPixelData from './getSegmentsOnPixeldata';
import { triggerLabelmapModifiedEvent } from '../../../util/segmentation';
import ARRAY_TYPES from './arrayTypes';
impo... |
// Copyright 2016 <NAME>. 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 applicable la... |
var PlotView = DefaultView.extend({
mainTemplate:
"<div id=\"plot-view\" class=\"col-xs-9\" style=\"display: inline; float: left;\"></div>"+
"<div id=\"plot-controls\" class=\"col-xs-3 text-center\" style=\"display: inline; float: left;\"></div>",
controlsTemplate:
"<h3><b>Controls</b></h3>"+
"<hr />"+
"... |
import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
/**
* Issue related functionality
*/
// Issue singleton for storing fetched goals and paging info
var issueDetails = {
issue : null,
issuesPage : 1,
issuesPerPage : 7,
resetIssues : function() {
this.issue = null;
this.issuesPage = 1;
},
issuesQuery : null,
};
function getGSIssueLink(issueURI){
return wi... |
function seoToggle() {
if($('input[name=need_seo]').prop('checked') == true){
$('fieldset #seo').show();
}else{
$('fieldset #seo').hide();
}
}
function getTemplateData(){
$.ajax({
url:'/admin/get_template',
type:'GET',
data:{id:$('select[name=templateType]').val()},
error: function (jqXHR, textStatus, ... |
jQuery(document).ready(function($){
'use strict';
jQuery('#headerwrap #prevslide').click(function(x) { x.preventDefault(); jQuery('#headerwrap').data('backstretch').prev(); });
jQuery('#headerwrap #nextslide').click(function(x) { x.preventDefault(); jQuery('#headerwrap').data('backstretch').next(); });
var wi... |
/**
* @fileoverfiew DNS query and response record builder/parser.
*
* Based on a node.js dns packet parser:
*
* https://github.com/tjfontaine/native-dns-packet
*
* @author <NAME> <<EMAIL>>
*/
var _ = require('underscore');
var ipaddr = require('ipaddr.js');
var Buffer = require('buffer.js').Buffer;
var Buffer... |
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
import { execute, ApolloLink } from 'apol... |
/*
BSD 3-Clause License
Copyright (c) 2016, <NAME> & <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condi... |
/**
* a Node in a patching graph
* @emits openStateChanged, pluginStateChanged, slotAdded, slotRemoved
* @constructor
*/
function Node(parent_graph, plugin_id, x, y) {
EventEmitter.call(this)
this.x = 0;
this.y = 0;
this.inputs = []
this.outputs = []
this.queued_update = -1
this.dyn_inputs = []
this.dyn_ou... |
/**
* @copyright Copyright (c) 2016 RNP
* @license http://github.com/ufrgs-hyman/meican#license
* @author <NAME>
*/
var meicanMap = new LMap('canvas');
var meicanTopo = [];
var lsidebar;
var circuits;
var statsGraphic;
var defaultColorIn = "#3c8dbc";
var defaultColorOut = "#000000";
var loadedPortsStatusCounter = ... |
var rhost = (window.location + "").split("://")[0] + "://" + window.location.hostname + ":" + window.location.port + "/";
window.LOG_INFO_REPLICATION = false;
window.AJAX_CONCURRENT_REQUEST_LIMIT = 200;
window.INITIAL_LOG_LENGTH = 5;
window.PINPOINT = "ALL";
window.LOG_FAILED_REPLICATION = true;
window.INTERFACE_OBJEC... |
let WALLS_WIDTH = 64
let BLOCK = 16
let VELOCITY = 6
let DECELERATION = 0.1
let BIG_PLATFORM = 100
let NEW_LEVEL = 500
let loaded;
let iGoblin = new Image();
iGoblin.src = 'img/goblin.png';
let iFire = new Image();
iFire.src = 'img/fire.png';
let iWater = new Image();
iWater.src = 'img/water.png';
let iE... |
// set the dimensions and margins of the graph
var origmargin = {top: 10, right: 10, bottom: 10, left: 10},
width = 1000 - origmargin.left - origmargin.right,
height = 250 - origmargin.top - origmargin.bottom;
// set the dimensions and margins of the graph
var margin = {top: 5, right: 285, bottom: 30, left: 40},... |
'use strict';
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
import codeToLocale from './codeToLocale';
const re_locale = /^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i;
const locales = {};
const defaultData = {
group: ' ',
decimal: '.',
positive: '+',
negative: '-',
percent: '%',
exponent: 'E',
nan: 'NaN',
infinity: '∞',
ampm: [ 'AM', 'P... |
var countryDetailsMini;
var countryDateSnapshotsMini;
var currentPerspectiveId;
var snapshots;
var countryDetails;
var countries;
var dateIds;
var firstDateId;
var latestDateId;
var countryRegions;
var snapshotsGroupedByDateId;
var snapshotsGroupedByCountry;
var geoJsonFeatures;
const determineSign = (it) => {
ret... |
let WSServer = require('ws').Server;
let server = require('http').createServer();
let express = require('express');
let freePort = require('./freePort.js');
const URL = require('url');
let app = express();
let bodyParser = require('body-parser');
var version = require('../package.json').version;
const ignoreTheseAttri... |
var Range = fabric.util.createClass(fabric.Rect, {
isRange: true,
setXmlIDs: function (from) {
var theGenerator = this;
theGenerator.xmlID = from++;
theGenerator.lowerLimit.xmlID = from++;
theGenerator.upperLimit.xmlID = from++;
theGenerator.outputPoint.xmlID = from++;
... |
/*
* CML Runtime
* MIT License (https://nocturn.io/LICENSE)
*/
var componentIdCount = 0;
var cmlEvents = {
init: function() {
return false;
},
show: function() {
return false;
},
say: function(str) {
return alert(str);
},
error: function(str) {
return console... |
let z = require('zero-fill')
, n = require('numbro')
, https = require('https')
, Phenotypes = require('../../../lib/phenotype')
// , colors = require('colors')
// , chalk = require('chalk')
// , bollinger = require('./bollinger')
, bollinger = require('../../../lib/bollinger')
, rsi = require('../../.... |
import {Vector2, Vector3, Vector4} from '../../../packages/three/three.module-MRTSupport'
import {shadow120} from './chunks/shadow.chunk'
import {toneMapping} from './chunks/tone-mapping.chunk'
import {bsdfGGX} from './chunks/bsdf.chunk'
import {mrt} from './chunks/mrt.chunk'
import {bokehDepth, bokehFilter} from './ch... |
// elwebapitool.js for elwebapitool(client side)
// 2021.07.19
// Copyright (c) 2021 Kanagawa Institute of Technology, ECHONET Consortium
// Released under the MIT License.
//
// elwebapitool.jsは、ECHONET Lite WebAPI Toolのクライアント側JavaScript codeである。
// サーバーはlocalhost/elwebapitool
// サーバー側にECHONET Lite WebAPI Serverの設定がフ... |
/*
C Preprocessor
© 2017 - <NAME>
License GPLv2
Sources at https://github.com/ParksProjets/C-Preprocessor
*/
// Libraries
var EventEmitter = require('events');
// fs = require("fs"),
// path = require("path");
// Return the last character of the string
String.prototype.last = function() {
return this.slic... |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { injectIntl, FormattedMessage } from 'react-intl';
import _ from 'lodash';
import readingTime from 'reading-time';
import { Checkbox, Form, Inp... |
/**
* mkcatalogue
*
* 生成目录
*/
var dom = {
on: function(node, type, callback) {
if (node.addEventListener) {
node.addEventListener(type, callback);
} else if (node.attachEvent) {
node.attachEvent('on'+type, callback);
} else {
node['on'+type] = callback;
}
}
};
//var isIE8 = platform.name === ... |
'use strict'
const etc = require('./etc')
const assert = require('assert')
var many = 10
function rmdup(a) {
return [...new Set(a)]
}
function simplify(c, m = new Map()) {
var [neg, pos] = c
// simplify
neg = neg.map((a) => etc.simplify(a, m))
pos = pos.map((a) => etc.simplify(a, m))
// filter out redundancy... |
mapboxgl.accessToken =
'<KEY>';
// District Data comes from a var imported from cc40.js in index.html.
// Here, we convert it from a dict of key to value to an array without the
// key, since we don't need it.
district_data = Object.values(district_data);
// removing 42170L, 12116L
district_data = district_data.filte... |
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) {
ext... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
const elasticsearch = require('@elastic/elasticsearch');
const fs = require('fs');
const https = require('https');
const express = require('express');
const helmet = require('helmet');
const redis = require('redis');
const config = require('/etc/vps/config.json');
const espath = require('/etc/vps/es-conn.json');
const ... |
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { connect } from 'react-redux';
import _ from 'lodash';
import cloudinary from 'cloudinary-core';
import axios from 'axios';
import sha1 from 'sha1';
import * as actions from '../actions';
import Amenities from './constant... |
var energy_production_types = ["Sonnenenergie","Biomasse und Abfälle","Geothermische Energie","Wasserkraft","Windkraft","Stein- und Braunkohle","Rohöl","Naturgas","Kernenergie"];
var energy_consume_types = ["Erneuerbare Energien","Stein- und Braunkohle","Rohöl","Naturgas","Kernenergie"];
var chart_pf;
var parse_xA... |
import Head from 'next/head'
import React, { useRef, useEffect, useState } from 'react'
import { medCut } from '../utils'
import * as _ from 'lodash'
// super pixel
let sp = 16
function fill(rgb) {
return 'rgb(' + rgb.join(',') + ')'
}
let Line = () => <div style={{ height: sp, width: '100%' }} />
let Space = () ... |
import { Helper } from './helper'
import {
requestAnimFrame,
cancelAnimFrame,
forEach,
arrSlice,
warn,
storage,
offset,
isDef,
isUndef,
noop
} from './common'
const brackets = '<div class="dg-hdl dg-rotator"></div>\
<div class="dg-hdl dg-hdl-t dg-hdl-l dg-hdl-tl"></... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DELETED = exports.DBFFile = void 0;
const assert = require("assert");
const iconv = require("iconv-lite");
const path_1 = require("path");
const field_descriptor_1 = require("./field-descriptor");
const file_version_1 = require("./file... |
var usStates = {
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
"DC": "District Of Columbia",
"FM": "Federated States Of Micronesia",
"FL": "Florida",... |
/*
* hpgl2Format
*
* 2018 (c) yo16
*/
var Instructions = {
// settings : {'BP':null, 'IN':null, 'LT':null, 'NP':null, 'PS':null, 'RO':null, 'SD':null, 'SS':null, 'PW':null, 'PG':null},
settings : {'BP':null, 'IN':null, 'LT':null, 'NP':null, 'PS':null, 'RO':null, 'SD':null, 'SS':null, 'PG':null},
// dra... |
class Semafor {
static formGet(form) {
const query = {};
for (let i = 0; i < form.elements.length; i++) {
const elem = form.elements[i];
const key = elem.name;
if (!key) continue;
if (key.startsWith('$')) continue;
if (elem.disabled) {
query[key] = null;
continue;
}
let old = query[key... |
// src/DisplayMapClass.js
import * as React from 'react';
import mappin from '../images/mappin.png';
import mappin_red from '../images/mappin_red.png';
import mappin_blue from '../images/mappin_blue.png';
import Button from '@material-ui/core/Button';
const markerRed = `
<svg width="22px" height="31px" viewBo... |
$(window).load(function(){
$('.menuMobile').css ('height', $('#home-section').height() );
})
$(document).scroll(function(){
if($('.nosotros_content').is_on_screen()){
$('.dots_criollos').addClass('animacion');
}
});
$(document).ready(function(){
$('.upsideDown').css('left', $('.shape-2').width()/2 - 50);
if... |
import React, { Component, Fragment } from 'react'
import io from 'socket.io-client'
import { AuthUserContext, withAuthorization } from '../Session';
import * as ROUTES from '../../constants/routes';
import SingletonFactory from '../Firebase/firebase';
import { IconButton, Badge, Input, Button } from '@material-ui/core... |
import "core-js/modules/es.array.reduce.js";
import deprecate from 'util-deprecate';
import dedent from 'ts-dedent';
import global from 'global';
import { SynchronousPromise } from 'synchronous-promise';
import Events, { IGNORED_EXCEPTION } from '@storybook/core-events';
import { logger } from '@storybook/client-logger... |
var BASEWSURL = 'https://lalutest.sirsi.net/lalutest_ilsws/';
var CLIENTID = 'DS_CLIENT';
$J(document).ready(function () {
doGenericTasks();
if ($J('.detail_main').length) {
doDetailViewTasks();
} else if ($J('.searchView').length) {
doResultsViewTasks();
} else if ($J('.customAdvancedSearch').length) ... |
var boards;
var mm = {
dark: {
d: "Light Mode",
m: "sun"
},
light: {
d: "Dark Mode",
m: "moon"
}
};
var defaultBoards = {
"5771673855f47b547f2decc3": "Desktop",
"57f2a306ca14741151990900": "Android",
"57f2d333b99965a6ba8cd7e0": "iOS",
"584... |
var CUST_TAG = RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"\/>]+(?:(?:@|\/[^>])[^'"\/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/
.source.replace('@', S_STRINGS), 'gim');
var SCRIPTS = /<script(\s+[^>]*)?>\n?([\S\s]*?)<\/script\s*>/gi;
var STYLES = /<style(\s+[^>]*)?>\n?([\S\s]*?)... |
const Discord = require('discord.js'),
client = new Discord.Client({ partials: ['MESSAGE', "USER", 'REACTION'] }),
Sentry = require('@sentry/node'),
chalk = require('chalk'),
fetch = require('request-promise-native'),
db = require('./db'),
perspective = require('./api/perspective'),
{ getTime } = require(... |
import * as THREE from 'three'
import { create3DText, createSimpleText } from './utils'
import { hackToRemovePlayerTemporarily } from './index'
import { MiscModel } from './miscModels'
import { Flowers } from './flowers'
import { VideoDisplay } from './videoDisplay'
import { ImageDisplay } from './imageDisplay'
const ... |
// TODO: このファイルをクラス化して共通部分をまとめる
// switch 文もまとめる
function fixValue(limit, targetValue) {
return Math.floor(Math.min(limit.max, Math.max(limit.min, targetValue)));
}
function increaseParam(id, amount) {
const element = document.getElementById(id);
if (element.disabled) {
return;
}
const c... |
/*
RAJ: Transcript keys
- first item starts with 1, not 0
- a numeric value that represents a specific transcript and represents
a specific logical ordering.
- The integer part of the key represent a transcript and the decimal part
a paragraph within the transcript.
- The paragraphId is increased by ... |
'use strict'
/* native modules */
const path = require('path')
/* npm modules */
const _ = require('lodash')
const bytes = require('bytes')
const crypto = require('mz/crypto')
const debug = require('debug')('container')
const defined = require('if-defined')
const randomInt = require('random-int')
const fs = require('... |
var contract = require('@truffle/contract')
var ipfsClient = require('ipfs-http-client')
var ipfsNode = require('ipfs')
var bs58 = require('bs58')
var all = require('it-all')
var LaBoiteADons = artifacts.require("LaBoiteADons")
var OrganLibrary = require("@organigram/contracts/build/contracts/OrganLibrary.json")
var P... |
/** TODOs
Load group data
key-value SA vs group no
Load SAs
Lookup group number for each SA object
Add object to layer group based on group number
Filter layers based on cluster/group number
Add zscores data
Display zscores widget and filter based on group selection
Use zscores widget to filter map
I... |
var current_user = context.current_user;
let currentLocation;
let locationFound = false;
let permissionDenied = false;
if('geolocation' in navigator) {
//This simply gets the users location when the pages loads
//Used for displaying users current location on page load
navigator.geolocation.getCurrentPosition((posi... |
const { exec } = require('child_process');
const shell = require('shelljs');
const fs = require('fs');
const {executeInstructionsFromFile} = require('../dist/src/utils');
const {run} = require('../runner/run')
// The Jest test file.
// Calculate paths
// If the user does not explicitly specify TAINT_ANALYSIS_HOME, a... |
function dashboardUI() {
"use strict";
// Prevent ephemeral session to access dashboard via url
if (u_type === 0) {
msgDialog('confirmation', l[998], l[17146]
+ ' ' + l[999], l[1000], function(e) {
if (e) {
loadSubPage('register');
return fal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.