text stringlengths 3.22k 29.5k |
|---|
import $ from 'jquery';
import TextBox from 'ui/text_box';
import devices from 'core/devices';
import executeAsyncMock from '../../helpers/executeAsyncMock.js';
import { getWidth, getOuterWidth } from 'core/utils/size';
import { TextEditorLabel } from 'ui/text_box/ui.text_editor.label.js';
import 'generic_light.css!'... |
const Promise = require('bluebird');
const map = require('lodash/map');
const find = require('lodash/find');
const keys = require('lodash/keys');
const some = require('lodash/some');
const pickBy = require('lodash/pickBy');
const identity = require('lodash/identity');
const makeObjectModel = require('../models/object... |
'use strict'
var yota = require('./config');
var React = require('react');
var ReactDOM = require('react-dom');
var addCarInfo = {
isFinished: false,
dataFinished: false,
plates: {},
data: {},
editUrl: '',
// 嵌套控件
Vehiclehild: React.createClass({
handleClick: function (event) {
... |
import React from 'react';
import RGL, { WidthProvider } from 'react-grid-layout';
import PropTypes from 'prop-types';
import {
Row, Col, ButtonToolbar, Alert, Badge, OverlayTrigger, Tooltip
} from 'react-bootstrap';
import {
IconButton, FormControlLabel, Switch, Box, Divider, Button, useMediaQuery
} from '... |
import _ from "lodash";
import React, { Fragment } from "react";
import moment from "moment";
import countries from "i18n-iso-countries";
import { inject, observer } from "mobx-react";
import { Link } from "react-router-dom";
countries.registerLocale(require("i18n-iso-countries/langs/en.json"));
import CommentsList f... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Apigee Corporation
*
* 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
* t... |
const cp = require(`child_process`);
const crypto = require(`crypto`);
const fs = require(`fs`);
const https = require(`https`);
const path = require(`path`);
const semver = require(`semver`);
const TS_REPO = `/tmp/ts-repo`;
const TS_REPO_SPAWN = {cwd: TS_REPO};
const TMP_DIR = `/tmp/ts-builds`;
const IGNORED_VERSIO... |
import express from 'express';
import cors from 'cors';
let fs = require('fs');
var fetch = require('node-fetch');
var router3B = require('./router3B');
const app = express();
app.use(cors());
app.get('/', (req, res) => {
res.json({
hello: 'JS World',
});
});
app.get('/2B', (req, res) => {
let fullname ... |
import { Editor,getEventRange, getEventTransfer } from 'slate-react'
import { Value } from 'slate'
import isImage from 'is-image'
import isUrl from 'is-url'
import React from 'react'
import ReactDOM from 'react-dom'
import initialValue from './value.json'
const root = document.getElementById('root');
/**
* The menu... |
/**
* Helper function to convert all elements of an iterable container into an oxford-comma-delimited
* string.
* @param {string[] | Set <string> | Map <string, string> | Object <string, string>} container
* An iterable container, of which the contents should be converted into a string.
* @param {string} [f... |
'use strict';
import React from 'react';
import {
ListView,
StyleSheet,
Text,
Image,
RefreshControl,
TouchableHighlight,
View,
NativeAppEventEmitter
} from 'react-native';
var Style = require('./Style.js');
var Helpers = require('./Helpers.js');
var NetworkErrorView = require('./NetworkErrorView.js')... |
import React, { PureComponent } from 'react';
import { Icon, Table } from 'antd';
import isEqual from 'lodash/isEqual';
import DownloadFile from "@/utils/downloadFile"; // 下载封装方法
import { handleDownloadTableValue } from '../../utils/tool';
import styles from './table.less';
class BuildingTable extends PureComponent ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 =... |
/* eslint-disable no-unused-vars */
const { MessageEmbed } = require('discord.js');
const english = require('../../languages/en.json');
const spanish = require('../../languages/es.json');
const german = require('../../languages/de.json');
const french = require('../../languages/fr.json');
const nor = require('../... |
function initImgBox(box,str,len){
if(box.length)return;
var tmpStr="",i=1;
for(;i<=len;i++){
tmpStr=str;
if(i<10)tmpStr=tmpStr+'0';
tmpStr=tmpStr+i+'.gif';
box.push(tmpStr);
}
}
function $G(id) {
return document.getElementById(id)
};
function InsertSmiley(url) {
var oIm... |
import Vue from 'vue';
import iView from 'iview';
import VueRouter from 'vue-router';
import {routers, otherRouter, appRouter, kycRouter, otcRouter, exchangeRouter, financeRouter, riskRouter, operationRouter, adminRouter, systemConfigRouter, systemLogsRouter, monitoringRouter, fundRouter} from './router';
import Vuex f... |
'use strict';
const SECOND = 1000;
const MINUTE = SECOND * 60;
const HOUR = MINUTE * 60;
const SUNDAY = 0;
const SATURDAY = 6;
const WEEKDAY_WAIT = 48;
const WEEKEND_WAIT = 72;
const {
REVIEW_SOURCES: { FROM_COMMENT, FROM_REVIEW_COMMENT }
} = require('./reviews');
const {
CONFLICTING
} = require('./mergeable_st... |
/* This file is only executed within JSInterpreter */
/* global
*
* CENTER,
* World,
* background,
* createEdgeSprites,
* createGroup,
* createSprite,
* drawSprites,
* edges,
* fill,
* keyDown,
* keyWentDown,
* keyWentUp,
* mousePressedOver,
* mouseWentDown,
* randomNumber,
* rect,
* text,
* textAli... |
'use strict';
const Service = require('egg').Service;
const util = require('../lib/util')
class BillService extends Service {
async insert(obj) {
const result = await this.app.mysql.insert('video_bill', {
name: obj.name,
work_id: obj.work_id || 0,
price: obj.price,
status: obj.status || ... |
function encrypt(message, user) {
let l = storage("local");
let ran = Date.now().toString(); //IV is ran: now()
let key = CryptoJS.SHA3(user + ran).toString(); //key is long user + IV
let encr = CryptoJS.AES.encrypt(message, key).toString(); //first base64 wrap
const package = JSON.stringify... |
import Swagger from 'swagger-client';
import _ from 'lodash';
import { takeEvery, takeLatest } from 'redux-saga';
import { fork, call, put, apply } from 'redux-saga/effects';
import uuidV4 from 'uuid/v4';
function constify(text) {
return text.toString().toUpperCase()
.replace(/\s+/g, '_') // Replac... |
import { Component, createRef, h } from 'preact';
import { GPU } from 'gpu.js';
let gpu;
let kernel;
// Original from https://www.shadertoy.com/view/ldy3RW
function beerKernel(time, red, green, blue, opacity) {
let uv = [this.thread.x / this.output.x, this.thread.y / this.output.y];
uv = [
(uv[0] * 2.0) - 1.0... |
var express = require('express');
var router = express.Router();
var fs = require('fs');
var path = require('path');
var request = require('request');
// var dbConfig = requier('../public/javascripts/config.js')
var APPID = 'wxd55316e683616eda'
var APPSECRET = '<KEY>'
var CODE = ''
function sqltest(){
var mysql ... |
export var artists = [{
name: 'Kodaline',
photo: 'artists/kodaline.jpg',
}, {
name: '<NAME>',
photo: 'artists/pharell-williams.jpg',
}, {
name: 'Odesza',
photo: 'artists/odesza.jpg',
}, {
name: '<NAME>',
photo: 'artists/mike-shinoda.jpg'
}, {
name: 'Bastille',
photo: 'artists/bastille.jpg'
}, {
name: '<NAME>... |
import React,{Component} from 'react';
import './pro_stock.scss';
import DATE_PICKER from './date_picker.js';
import DatePicker2 from './date_picker2.js';
import {NavLink} from 'react-router-dom';
import { throws } from 'assert';
class PRO_STOCK extends Component{
constructor(props){
super(props)
t... |
import path from 'path';
import { InstanceCache } from 'blocks/utilities/instanceCache';
import { ArgsError } from 'blocks/utilities/error';
import { Tag } from 'blocks/utilities/tag';
import { ContentConfig } from 'blocks/entities/contentConfig';
import { MarkdownParser } from 'blocks/parsers/markdown';
import { conve... |
$(document).on("ready",inicio);
function inicio(){
buscar_por_fecha();
}
function buscar_por_fecha(){
var fecha_desde = document.getElementById('fecha_desde').value;
var fecha_hasta = document.getElementById('fecha_hasta').value;
var usuario_id = document.getElementById('buscarusuario_id').value;... |
/**
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
import React, { PureComponent } from 'react'
import { withStyles } from '@material-ui/core/styles'
import {
Card,
CardContent,
Grid,
TextField,
IconButton,
Button,
Snackbar,
Checkbox,
FormControl,
InputLabel,
Select,
MenuItem,
FormControlLabel,
FormHelperText,
Typography,
Tooltip,
Pape... |
function fromAngle(e, t) {
return void 0 === t && (t = 1), new Vector(t * Math.cos(e), t * Math.sin(e), 0)
}
function Particle(x, y, color, firework, size = 1, velX, velY) {
this.pos = new Vector(x, y);
this.firework = firework;
this.lifespan = 255;
this.color = color;
this.size = size;
if... |
// Author: <NAME>
// Course: COP 4331, Fall 2020
// Date: 11/30/20
// ===========================
// Lonely Nights
// main.js
// ---------------------------
// Desc: This file contains
// the code that controls
// UI/UX. All content on the
// Dashboard is dynamically
// loaded with JavaScript ... |
#!/usr/bin/env node
var fs = require("fs");
var rimraf = require("rimraf");
var path = require("path");
var jsyaml = require("js-yaml");
var ZSchema = require("z-schema");
var validator = new ZSchema({
ignoreUnresolvableReferences: true,
ignoreUnknownFormats: true,
});
var nameValidator = require("validator");
va... |
var SQL = require("../SQL");
var util = require("util");
var columnSizes = {
integer: { 2: 'SMALLINT', 4: 'INTEGER', 8: 'BIGINT' },
floating: { 4: 'FLOAT', 8: 'DOUBLE' }
};
exports.hasCollection = function (db, name, cb) {
db.query("SHOW TABLES LIKE ?", [ name ], function (err, rows) {
if (err... |
// variables for keeping track of data
var chartCountryLines = [];
var globalLine = [];
var countryColors = ["#ef4760", "#fdd161", "#2f8ba0"];
var usedCountryColors = []; // one boolean per color
// initialize colors to unused
countryColors.forEach(function () {
usedCountryColors.push(false);
});
var chart,
lineMa... |
var options, sort, thumbnails;
var page = 0, pageCount, perPage;
var searchControllers = [];
var params = fastdial.Utils.getQueryParams(document.location);
var wnd = fastdial.Utils.getBrowserWindow();
var folder, home = fastdial.Storage.getHome();
if (!params.folder || params.folder == home.id) folder = home;
else try... |
var vm = new Vue({
el: '#rrapp',
data: {
q: {
order: null,
name: null,
images: null,
sex: null,
nation: null,
place: null,
type: null,
personid: null,
workid: null,
education: null,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EuiTablePagination = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _button = require("../../button");
var _context_menu = require("../../conte... |
function isSidewalk (string) { // eslint-disable-line no-unused-vars
// https://streetmix.net/api/v1/streets/3f1a9810-0a8f-11ea-adff-7fe273b63f1d
// return if string sidewalk* or "scooter-drop-zone", bikeshare, flex-zone-curb, transit-shelter
const sidewalkList = ['utilities', 'scooter-drop-zone', 'bikeshare', '... |
const fastify = require('fastify')();
const path = require('path');
const puppeteer = require('puppeteer');
const minimalcss = require('../index');
fastify.register(require('fastify-static'), {
root: path.join(__dirname, 'examples')
});
// Important that the URL doesn't end with .css
fastify.get('/307-css', (req, r... |
"use strict";
const assert = require("assert");
const sanitize = require("../src/index");
if ( typeof window !== "undefined" ) { window.sanitize = sanitize; }
function testTags(from, to) {
it(from, () => {
let result = sanitize(from);
if ( to == null ) {
assert.equal(result, f... |
import config from './karngyan.config'
const createSitemapRoutes = async () => {
let routes = [];
const { $content } = require('@nuxt/content')
const articles = await $content('posts').fetch();
if (config.blog.enabled) {
for (const article of articles) {
routes.push(`blog/${article.slug}`);
}
... |
"use strict";
var __assign = (this && this.__assign) || function () {
__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];
... |
import mapboxgl from "mapbox-gl";
var commandRegistry = {};
export function registerCustomElement(settings) {
const options = Object.assign(
{
onMount() {}
},
settings
);
if (options.token) {
mapboxgl.accessToken = options.token;
}
window.customElements.define(
"elm-mapbox-map",
... |
/*
Copyright 2020 InfAI (CC SES)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
const bcrypt = require('bcrypt');
const crypto = require('crypto');
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const userSchema = new mongoose.Schema({
email: { type: String, unique: true },
password: String,
passwordResetToken: String,
passwordResetExpires: Date,
username: String,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s... |
var expecting_select = false;
var expecting_type = null;
var information_name = null;
var currently_selected = [];
var mouse_offset = 10;
var phase = "action";
function capitaliseFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function setPhase(new_phase) {
phase = new_phase;
... |
// Importing of all the modules
const electron = require("electron");
const ipcRenderer = electron.ipcRenderer;
const dialog = electron.dialog;
//Fonction that adds a leading zero to time and date values for formatting
lz = (n) => {
if (n == "" || n <= 0)
return "00";
if (n[0] == "0" && n.length == 2)
... |
/*
* MinIO Javascript Library for Amazon S3 Compatible Cloud Storage, (C) 2016 MinIO, Inc.
*
* 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/LICENS... |
import Axios from 'axios';
import React, { Component } from 'react';
import HeroSection from '../AboutUsPage/components/HeroSection';
class TraidingMemory extends Component {
constructor(props) {
super(props);
this.state = {
data:{
equity:0,
managerCapita... |
'use strict';
/**
* Model for teams that collaborate on reviews of a certain type. A team can
* also publish blog posts. Teams can be open for anyone, or require moderator
* approval for new members. This model is versioned.
*
* @namespace Team
*/
// Internal dependencies
const thinky = require('../db');
const ... |
import MyField from './field.js';
import {aesGcmDecryptBase64WithPhrase} from './shared/crypto.js';
import {consoleError} from './shared/error.js';
import {getDataFields} from './shared/form.js';
import {getUnixFormat} from './shared/time.js';
imp... |
new require('styles/dark')
let socket = require('services/socket')
let http = require('services/http')
var Random = require('base/random')
var gen = new Random(6)
module.exports = class extends require('base/drawapp'){ //top
prototype() {
var left_brother = (v) =>{
if(!v.parent) return
return v.parent.child... |
import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; //useHistory
import LandingPage from "./pages/LandingPage/LandingPage";
import SignUp from "./pages/SignUp/SignUp";
import Login from "./pages/Login/Login";
import ForgotPassword from "./pages/ForgotPassword/ForgotPassword";
import Reset from ".... |
'use strict';
const sdk = require('indy-sdk');
const indy = require('../../index.js');
const config = require('../../../config');
const mkdirp = require('mkdirp');
const fs = require('fs');
const os = require('os');
let pool;
//Un pool es una colección de recursos listos para ser usados.
//Devuelve el pool
exports.g... |
'use strict';
// Global queue for testing post-ajax request. Use by calling
//
// onajax(function() {
// // run once after the next ajax request completes
// });
var _onajax = [];
function onajax(callback) {
_onajax.push(callback);
}
$(document).ajaxComplete(function() {
if (!_onajax.length) return;
var ... |
exports.newSessionProcessor = function (isAcceptor, options) {
return new sessionProcessor(isAcceptor, options);
};
var util = require('util');
var fs = require('fs');
var fixutil = require('../fixutils.js');
var _ = require('underscore');
//TODO make sure 'ignored' messages really are not forwarded to the next... |
/// Architected register file - holds pointers to temp register ( renomeador )
function ARF() {
var size = 64;
var memory = [];
var tempArraySize = simulator.tempRegisters;
var tempArrayPos = 0;
var tempArray = simulator.tempRegistersArray;
var regArray = simulator.registersArray;
// Update... |
const crypto = require("crypto");
const axios = require("axios");
const simpleOAuth2 = require("simple-oauth2");
const jwt = require("jsonwebtoken");
const graph = require("@microsoft/microsoft-graph-client");
const Moment = require("moment");
const ms = require("ms");
const Cache = require("./cache");
const qs = requi... |
import { transparentize, normalize } from 'polished'
import { css, th } from '@xstyled/styled-components'
export function primaryColor(color) {
return {
'primary-50': th.color(`${color}-50`),
'primary-100': th.color(`${color}-100`),
'primary-200': th.color(`${color}-200`),
'primary-300': th.color(`${... |
'use strict';
const fs = require('fs');
const {basename, dirname} = require('path');
const npm = require('npm');
const git = require('isomorphic-git');
const parseGitConfig = require('parse-git-config');
const parseGithubURL = require('parse-github-url');
const getGitConfigPath = require('git-config-path');
const ncu... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { concat, assign, cloneDeep } from 'lodash'
import { getCloudId, getCloudToken, getSessionInfo, getCloudBaseUrl } from 'authentication'
import { fetchNode, fetchNodes } from 'store/actions/nodes'
im... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
const ViewStatus = {
DISCONNECTED: 0,
CONNECTING: 1,
CONNECTED: 2
};
let viewModel = {
S: ViewStatus,
status: ViewStatus.DISCONNECTED,
fisheyeEnabled: false,
colorEnable... |
import qs from 'qs';
import axios from 'axios';
const wpApi = axios.create({
baseURL: tainacan_plugin.wp_api_url
});
wpApi.defaults.headers.common['X-WP-Nonce'] = tainacan_plugin.nonce;
// CONSOLE PLUGIN - Allows custom use of console functions and avoids eslint warnings.
export const ConsolePlugin = {};
Console... |
var fs=require('fs');
var path = [];
var lastLevel = [];
var positionToAdd=0;
var chalk = require('chalk');
var Generator = require('yeoman-generator');
module.exports = Generator.extend({
initializing: function(){
var dirLayoutsBundles = fs.readdirSync('../../../bundles/src/layouts/');
var dirLayoutsPlugins = ... |
/* eslint-disable no-underscore-dangle */
import React from 'react';
import moment from 'moment';
import { DateTimePicker, DatePicker } from '@material-ui/pickers';
import Typography from '@material-ui/core/Typography';
import ListItemText from '@material-ui/core/ListItemText';
import MenuItem from '@material-ui/core/M... |
//https://good.js.org/
var usercount = 4517;
var cources = 13;
var mins = 485554;
var classname = "hgjhghjghjgjhhghj";
document.write("<br>capcha: " + String(99999 + (Math.floor(Math.random() * 1000000))).substring(1, 6));
document.write("<br>capcha: " + String(99999 + (Math.floor(Math.random() * 1000000))).substring(... |
import React, { Component } from 'react'
import styled from '@emotion/styled'
import { Link, Route } from 'react-router-dom'
import { HR } from '../Typography/Basic'
import SubDomains from './SubDomains'
import { DetailsItem, DetailsKey, DetailsValue } from './DetailsItem'
import RecordsItem from './RecordsItem'
impor... |
const PORT = process.env.PORT || 7000;
const express = require('express');
const http = require('http');
const app = express();
const server = http.createServer(app);
const io = require('socket.io')(server, {
handlePreflightRequest: (req, res) => {
const headers = {
"Access-Control-Allow-Headers... |
/*!
* bip150.js - peer auth.
* Copyright (c) 2016, <NAME> (MIT License).
* Copyright (c) 2016-2017, <NAME> (MIT License).
* https://github.com/decentraland/decentraland-node
* Resources:
* https://github.com/bitcoin/bips/blob/master/bip-0150.mediawiki
*/
'use strict';
var EventEmitter = require('events').Eve... |
// to start: sudo node server.js
// port is in config.json
// Arduino UNO: /dev/ttyAMA0
// Arduino Pro Mini: /dev/ttyUSB0
var express = require("express"); // the express library
var http = require("http"); // the http library
var WebSocket = require("ws"); // the ws library
var WebSocketServer = WebSocket.Server; // ... |
var Backbone = require('backbone');
var Marionette = require('backbone.marionette');
var _ = require('underscore');
var Router = require('kiubi/utils/router.js');
var Controller = require('kiubi/controller.js');
/* Models */
var Folders = require('./models/folders');
var Files = require('./models/files');
var ImportF... |
/* global View, Sanitizer, LazyLoader */
'use strict';
var HomeView = View.extend(function HomeView() {
View.call(this); // super();
this.thumbnailCache = {};
this.tiles = document.getElementById('tiles');
this.tiles.addEventListener('click', (evt) => {
var link = evt.target.closest('a[data-file-path]')... |
//创建XMLHttpRequest对象
var xhr = null;
//获取链接中的fpId
var fpId = window.location.search;
//寻宠详情链接
var url_findPetInfo = "/findPet/findPetInfo"+fpId;
//页面加载时加载寻宠详情
window.onload = function () {
findPetInfo(url_findPetInfo);
}
//日期转换为String类型
function dateToString(time) {
var datetime = new Date();
datetime.setT... |
/**
* Gulp file used for creating front end templates on local instances.
*/
'use strict';
// Configs
// Webpack Configs
const config = require( './config/general.config.js' );
const webpack_config_dev = require('./config/webpack.config.js');
const template_config = require( './config/template.data.js' );
// The gu... |
let status = true;//这个值代表是否处于批量管理状态;true代表正常浏览状态,false代表批量管理状态
//列表文章个数控制器
$(".knowledgebase_speechcraft_index .speech-list input").click(function(){
let t = $(".knowledgebase_speechcraft_index .speech-list .manage-list-model input[type='checkbox']:checked");
let s = $(".knowledgebase_speechcraft_index .spe... |
#!/usr/bin/env node
require("dotenv").config();
const { Octokit } = require('@octokit/rest');
const gitUtils = require('./utils');
const repoQuery = require('./query');
const {
WAKATIME_API_KEY: wakatimeApiKey,
GH_TOKEN: gitHubToken,
SHOW_TOTAL_TIME: showTime,
SHOW_PROFILE: showProfile,
SHORT_INFO: shortInf... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(... |
"use strict";
var __assign = (this && this.__assign) || function () {
__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];
... |
const appKey = '61ee303f304374a30309696a27719224';
const devAppKey = '<KEY>';
const draugiemAuth = (req, res) => {
const cors = require('cors')({ origin: true });
const axios = require('axios');
const { admin, leaderboardDb } = require('../admin');
// const { pow } = require('mathjs');
cors(req, res, () =... |
/*jshint esversion: 9*/
import {bus_helper} from "../extensions/devices/utils.js";
import { simulator_controller } from "./simulator.js";
import {compiler} from "./compiler.js";
export class UI_Helper{
constructor(intro){
this.tests = [];
this.test_results = [];
this.item_log = ""
document.getEleme... |
/**
* OrbitControl.
*/
import * as THREE from "../../lib/three/build/three.module.js";
import { OrbitControls } from '../../lib/three/examples/jsm/controls/OrbitControls.js';
import { addCoordSystem } from "../../lib/wfa-coord.js";
//Globale varianbler:
let renderer;
let scene;
let camera;
//rotasjoner
let angle = ... |
const truffleAssert = require('truffle-assertions');
const BEP20TokenImplementation = artifacts.require("BEP20TokenImplementation");
const NewImplementation = artifacts.require("NewImplementation");
const BEP20TokenFactory = artifacts.require("BEP20TokenFactory");
const Web3 = require('web3');
const web3 = new Web3(... |
const deferRequire = require("defer-require")
const _ = require("lodash")
const noValueSymbol = require("../SetupValue/noValueSymbol")
const ReactifyObjectTreeNode = deferRequire("../ReactifyObjectTreeNode.js")
/**
* Class extended from Array used to provide a view for a reactify array
*/
class ArrayValueClass exte... |
function isValidHex(color) {
if (!color || typeof color !== 'string') return false;
if (color.substring(0, 1) === '#') color = color.substring(1);
switch (color.length) {
case 3: return /^[0-9A-F]{3}$/i.test(color);
case 4: return /^[0-9A-F]{4}$/i.test(color);
case 6: return /^[0-... |
//Datavenue url
var URL;
//Your master key
var xISSKey;
//Orange Partner Key
var xOAPIKey;
var http = require("http");
var path = require("path");
var fs = require("fs");
var url = require('url');
var querystring = require('querystring');
require('global-tunnel').initialize();
var datavenue = re... |
/**
* Internal function to remove content from the main area and add the notebook.
* Not idempotent
*/
function append_notebook(url){
clear_main_area();
$('#main').append('<iframe frameBorder="0" seamless="seamless" style="width: 100%; height: 100%; overflow:hidden;" scrolling="no" src="'+ url +'"></iframe>'... |
"use strict";
/*
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
Object.defineProperty(exports, "__esModule", { value: true });
const url_1 ... |
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("bs-platform/lib/js/curry.js");
var Pervasives = require("bs-platform/lib/js/pervasives.js");
var Json_decode = require("@glennsl/bs-json/src/Json_decode.bs.js");
var IC$OptolithClient = require("../Utilities/IC.bs.js");
var Int$Opto... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v10.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
"use strict";
var utils = require(__dirname + '/lib/utils'),
adapter = utils.Adapter('broadlink'),
broadlink = require(__dirname + '/lib/broadlink'),
//zlib = require('zlib'),
namespaceChannelLearned = 'learnedSignals',
currentDevice,
inObjectChange;
var reCODE = /^CODE_|^/;
var reIsCODE = /^CODE_[a-f0-9]{16}/;
... |
'use strict';
/*! (c) <NAME> @webreflection ISC */
const Lie = (m => /* c8 ignore start */ m.__esModule ? m.default : m /* c8 ignore stop */)(require('@webreflection/lie'));
const attributesObserver = (m => /* c8 ignore start */ m.__esModule ? m.default : m /* c8 ignore stop */)(require('@webreflection/custom-elements... |
$(document).ready(function(){
/*declaracion de la variables de sesion, variables javascript que se pueden usar en toda la web*/
sessionStorage.setItem("newTutor_name", "");
sessionStorage.setItem("newTutor_mail", "");
todo();
$('#inicio_newTutor').click({name:'test'},newTutor2);
compruebapass();
});
function ... |
import {global, doc, LIB_NAME as core} from '../config';
import {debug} from '../Native/debug';
import {isType} from '../Native/isType';
// import {isPlainObject} from '../Native/isPlainObject';
// import {isArray} from '../Native/isArray';
// import {isFunction} from '../Native/isFunction';
// import {isObject} from '... |
import _ from 'lodash/fp'
import { Fragment, useState } from 'react'
import { div, h, hr, label } from 'react-hyperscript-helpers'
import ReactJson from 'react-json-view'
import { ButtonPrimary, IdContainer, Link, Select } from 'src/components/common'
import ErrorView from 'src/components/ErrorView'
import { icon } fro... |
import { Box3Helper, Group, MeshStandardMaterial, PointsMaterial } from 'three';
import { getIndexedRandomColor } from './utilities.js';
import { TilesRenderer } from './TilesRenderer.js';
import { SphereHelper } from './SphereHelper.js';
const ORIGINAL_MATERIAL = Symbol( 'ORIGINAL_MATERIAL' );
const HAS_RANDOM_COLOR ... |
import unescape from 'lodash.unescape';
import Delta from 'quill-delta';
import { ClassAttributor, Scope } from 'parchment';
import Inline from '../blots/inline';
import Quill from '../core/quill';
import Module from '../core/module';
import { blockDelta } from '../blots/block';
import BreakBlot from '../blots/break';
... |
function updateTempDarkCoreCost(){
let nAmt = player.dc.cores.max(tmp.dc.bulk)
let start = getScalingStart("scaled", "darkCore");
let power = scalingActive("darkCore", nAmt, "scaled") ? getScalingPower("scaled", "darkCore") : 0
let exp = ExpantaNum.pow(2, power);
let start2 = getScalingStart("superscaled", "darkC... |
#!/usr/bin/env node
const express = require('express');
const GifEncoder = require('gifencoder');
const { createCanvas } = require('canvas');
const { Life } = require('dat-life');
const { Contributions } = require('contributions');
const contributionCache = {
date: undefined,
users: { }
};
const imageCache =... |
/* eslint-disable no-underscore-dangle */
import React from 'react';
import PropTypes from 'prop-types';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { push } from 'connected-react-router';
import { Helmet } from 'react-helmet';
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.