text stringlengths 5.97k 41.2k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectionUtil = void 0;
var PREV_FONT_SIZE = 'tsp_pfontsize'; //previous value for font-size of selection-marker target (String)
var PREV_LINE_HEIGHT = 'tsp_plineheight'; //previous value for line-height in pixels of selection-mark... |
/*******************************************************************************************************
*
* ATTENTION : la lecture du code situé après ce commentaire peut entrainer des saignements de nez...
*
******************************************************************************************************/
... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, {
Component,
} from 'react';
import ReactNative, {
AppRegistry,
StyleSheet,
Platform,
Text,
View,
Image,
TextInput,
ScrollView,
ListView,
TouchableOpacity,
ActivityIndicator,
RWConfig,
} from 'react-... |
/**
* This file is an (incomplete) attempt at extracting camp locations from Burning Man wiki data (https://www.google.com/maps/d/u/1/viewer?usp=sharing&mid=zkszwyFJ-h7E.kaxgaF8gR5Sw&authuser=1)
* adjusting the locations in wiki data for the 2015 BRC, and finally merging those adjusted locations into
* PlayaEvents C... |
// 03_start_livestream_dash_hls.js
const Promise = require('bluebird');
const Bitmovin = require('bitmovin-javascript').default;
const BITMOVIN_API_KEY = 'INSERT_YOUR_API_KEY';
const bitmovin = new Bitmovin({apiKey: BITMOVIN_API_KEY});
const MAX_LIVESTREAM_DETAILS_FETCH_RETRIES = 20;
const encodingAndOutputPathPost... |
import React, { useRef, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { useStores } from '../../stores/connect';
import { format } from 'd3-format';
import { config } from '../../config';
import {
SORT_DIRECTIONS,
PLOT_DOWNLOAD_OPTIONS,
} from... |
/**
* Created by iconie on 20/07/2017.
*/
import Display from "./Display";
const PI = Math.PI;
const HALF_PI = Math.PI * 0.5;
const DEG = PI/180;
class Node{
constructor(x,y,rotation){
/** 渲染变量 **/
this.x = x || 0;
this.y = y || 0;
this.rotation = rotation || 0;
this.of... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
var app = getApp();
import {
connect,
bindActionCreators,
store,
actions,
sandBox,
cookieStorage,
config
} from '../../../lib/myapp.js'
var args = {
data: {
loading:false,
show: false,
block: {
order: {
items: []
},
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Compositor = Compositor;
var _react = _interopRequireWildcard(require("react"));
var _portableTextEditor = require("@sanity/portable-text-editor");
var _types = require("@sanity/types");
var _ui = require("@sanity/ui");
var _co... |
/* global __filename, Promise */
import CameraFacingMode from '../../service/RTC/CameraFacingMode';
import { getLogger } from 'jitsi-meet-logger';
import JitsiTrack from './JitsiTrack';
import JitsiTrackError from '../../JitsiTrackError';
import * as JitsiTrackErrors from '../../JitsiTrackErrors';
import * as JitsiTra... |
//Days of the week and months, used when dates are displayed.
var semaine = [chrome.i18n.getMessage('monday'), chrome.i18n.getMessage('tuesday'), chrome.i18n.getMessage('wednesday'), chrome.i18n.getMessage('thursday'), chrome.i18n.getMessage('friday'), chrome.i18n.getMessage('saturday'), chrome.i18n.getMessage('sunday'... |
"use strict";
//
// This provides helper utilities for Mustache processing. Currently,
// only stache uses these helpers. Ideally, these utilities could be used
// in other libraries implementing Mustache-like features.
var live = require('can-view-live');
var liveHelpers = require("can-view-live/lib/helpers");
var O... |
import "../../../lib/css/app.less";
import "./index.less";
import React, { Component } from "react";
import { connect } from "react-redux";
import $ from "jquery";
import echarts, { disConnect } from "echarts";
import actions, { totleData } from "../../../../actions/particular-online/";
import CommonTitle from "../../.... |
/**
* Reducer and actions for progress
*/
import _ from 'lodash';
import { makeEnum } from '../utils';
import { mergeActivityResult, activityCssClass } from './activityUtils';
import { LevelStatus, LevelKind } from '@cdo/apps/util/sharedConstants';
import { TestResults } from '@cdo/apps/constants';
import { ViewType,... |
/*
* Copyright (C) 2013, 2014, 2016 Apple Inc. 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 list of ... |
/*
Copyright 2013-2015 ASIAL CORPORATION
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
'use strict'
const bcrypt = require( 'bcrypt' )
const crs = require( 'crypto-random-string' )
const { performance } = require( 'perf_hooks' )
const crypto = require( 'crypto' )
const set = require( 'lodash.set' )
const get = require( 'lodash.get' )
const chunk = require( 'lodash.chunk' )
let debug = require( 'debug' )... |
/* Treehouse Project-03: Build an Interactive Form */
/* Global Variables --------------------------------------------- */
var getName = document.getElementById('name');
var getColorSelect = document.getElementById('color');
var getActivitiesFieldset = document.getElementsByClassName('activities');
var getMail = docum... |
import './TextDiff.scss';
import diff_text from './TextDiff.yaml';
import { Fragment } from 'react';
import MediaQuery from 'react-responsive';
import classNames from 'classnames';
import * as Diff from 'diff';
import { StandardRouteContainer } from '../core/NavComponents.js';
import { ensure_loaded } from '../core/l... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var Lib = require('../../lib');
var Registry = require('../../registry');
var radians ... |
function routingConfig(steps) {
return function($routeProvider) {
$routeProvider = angular.extend($routeProvider, {
// AngularJS doesn't support regular expressions in routes.
// http://stackoverflow.com/questions/12685085/angularjs-route-how-to-match-star-as-a-path
'whenPath': function(path, d... |
/* global L */
const GrowingFormLayoutDimension = {
LEFT_MARGIN: 0,
RIGHT_MARGIN: 0,
CONTENT_LEFT_MARGIN: 80,
CONTENT_RIGHT_MARGIN: 8,
CONTENT_TOP_MARGIN: 0,
CONTENT_BOTTOM_MARGIN: 16,
CONTENT_INACTIVE_BOTTOM_MARGIN: 32
};
const GrowingFormEvent = {
STEP: 'step',
SUBMIT: 'submit'
};
const GrowingFormValidat... |
import React from 'react';
import { translate, setLanguage, getLanguage } from 'react-multi-lang';
let selectedSource='Process heat';
const CustomTable = {
padding: "0px"
};
class CoolingProfileModal extends React.Component {
constructor(props){
super(props);
this.state = {CoolingProfile: '',sel... |
//---------------------------------------------------------------------
//......... utilitary functions............
var liveNotebook = !(typeof IPython == "undefined")
function incr_lbl(ary, h_idx) { //increment heading label w/ h_idx (zero based)
ary[h_idx]++;
for (var j = h_idx + 1; j < ary.length; j++) {
... |
/*
* Copyright 2017-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
import {
C_POSTBOX,
C_WHITE,
C_GHOST,
C_POSTBOX_30,
} from '@bbc/psammead-styles/colours';
import { latinDiacritics } from '@bbc/gel-foundations/scripts';
import {
F_REITH_SANS_BOLD,
F_REITH_SANS_BOLD_ITALIC,
F_REITH_SANS_ITALIC,
F_REITH_SANS_REGULAR,
F_REITH_SERIF_MEDIUM,
F_REITH_SERIF_MEDIUM_ITALI... |
import React, { useState, useRef, useEffect, useMemo } from 'react';
import PropTypes from 'prop-types';
import ReactRouterPropTypes from 'react-router-prop-types';
import { withRouter } from 'react-router-dom';
import Cytoscape from 'cytoscape';
import CytoscapeComponent from 'react-cytoscapejs';
import debounce from ... |
var mongoose = require('mongoose');
var _ = require('lodash');
var async = require('async');
module.exports = (new function() {
var self = this;
self.docBiztranParams = ["UseDogovorArt","UseDogovor","UseOrg","UseProd"];
self.getSourceDoc = function(CodeDoc,done){
mongoose.model("d... |
mostrarTareasObjetivos();
$('#form, #fat, #formComentarios').submit(function() {
$.ajax({
type: 'POST',
url: $(this).attr('action'),
data: $(this).serialize(),
success: function(data) {
var idNegociacion = $('#idNegociacion').val();
... |
/** *****
*
*
* Hey there. Glad you found your way here. Please be sure to alphabetize your constants.
*
*
****** */
export const AUDIO = 'audio';
export const AUDIO_BANDWIDTH_LIMIT = '64000';
export const AUDIOINPUT = 'audioinput';
export const ALTERNATE_REDIRECT_TRUE = 'alternateRedirect=true';
export const AN... |
'use strict';
const fs = require('fs');
const path = require('path');
const Web3 = require('web3');
const { yellow, gray, red, green } = require('chalk');
const commander = require('commander');
const program = new commander.Command();
const { toWei } = require('web3-utils');
require('dotenv').config();
const snx... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _c... |
// Copyright (C) 2011 Google Inc.
// Copyright (C) 2018 Agoric
//
// 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 ap... |
var _watch;
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.... |
/*
* layerWindow class
*
* layerWindow method: constructor
* Syntax
* var myLayerWindowInstance = new layerWindow([options]);
* Arguments
* 1. options - (object, optional) The options object.
* Options
* - id (string: default to null) The id attribute of the window container
* - bodyId (string: de... |
/*
* Loads general content (e.g. header, menu) and provides common functionalities.
*
* requires jQuery 2.1.1
* requires jquery.tablesorter.js
* loads navbar.css
*/
/*
* Redirect to login page if not logged in.
* Else initialize request sender.
*/
var path = window.location.pathname.split('/');
if(path[path.l... |
/**
* This script is used for adding geolocation data to a Wordpress post
*/
var DEFAULT_ZOOM = 13; // default zoom level
var DEFAULT_LAT = 52.2721924; // Braunschweig latitide
var DEFAULT_LNG = 10.527885; // Braunschweig longitude
var geocoder = new google.maps.Geocoder(); // Google Maps Geocoder
var m... |
const express = require('express');
const path = require('path');
const favicon = require('static-favicon');
const logger = require('morgan');
const cookieParser = require('cookie-parser');
const session = require('express-session');
const bodyParser = require('body-parser');
const fs = require('fs');
const async = req... |
//**********************************************//
//**Extendiendo las funciones del core OL, para buscar un layer mediante su id, ej.: map.getLayer(<lyrID>);
if (ol.Map.prototype.getLayer === undefined) {
ol.Map.prototype.getLayer = function (id) {
var layer = null;
this.getLayers().forEach(function (lyr) {
if... |
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
function test(pivot) {
var output = [0, 0];
var prec = getRandomInt(2);
var now = 42;
var counter = 0;
for(var i = 0; i < pivot; i++) {
now = getRandomInt(2);
if(now == prec) {
counter... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
... |
/**
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not recei... |
////////////////////////////////////////////////////////////////////
// <NAME>
// <EMAIL>
////////////////////////////////////////////////////////////////////
//
// A JavaScript library that implements
// the spherical harmonic transform for real spherical harmonics
// and some useful transformations in the spher... |
'use strict';
import React from 'react'
import PropTypes from 'prop-types'
import ReactNative, {
requireNativeComponent,
NativeModules,
UIManager,
PanResponder,
PixelRatio,
Platform,
ViewPropTypes,
processColor,
Dimensions,
} from 'react-native'
import { requestPermissions } from './handlePermissions... |
var sceneIsready = false;
var allGalleryTexturesAreLoaded = false;
var whiteScreen;
var floor;
var floorLeft;
var floorRight;
var moulure;
var rightMoulure;
var leftMoulure;
var board;
var floorAO;
var sign;
var signResolution = 1080;
var collectButton;
var creationScaleFactor = 0.92;
var loader;
var erin;
var henLog... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("bcb77b03ed13784489484535627fca54.js");
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at h... |
'use strict'
import { CompositeDamageCalculator } from './damagecalculator.js'
import {
isNiceDiceEnabled,
parseFloatFrom,
parseIntFrom,
generateUniqueId,
objectToArray,
i18n,
displayMod,
locateToken,
} from '../../lib/utilities.js'
import * as settings from '../../lib/miscellaneous-settings.js'
import... |
var MyScore=0;
H = 960;
function qp_a(a) {}
var qp_b = 30,
qp_c, qp_d = 5,
qp_e = 3,
qp_f = qp_e,
qp_g = 420,
qp_h = 0,
qp_i = [],
qp_j = 20,
qp_k = 0,
qp_l,
qp_m = 0,
qp_n = 0,
qp_o = 0;
function qp_p() {
qipaStage.stage.arrow.visible = !0;
qp_q = MyScore = 0;
qp_n = qp_b;
qp_m = -1;
qipaStage.stage.num.txt.text ... |
import React from 'react'
import PropTypes from 'prop-types'
import { Alert, Icon, Tag, Progress, Tooltip } from 'antd'
import { formatDate } from '../../../utils/formatDate'
import classnames from 'classnames'
import { formatMib } from '../../../utils/formater'
import { isSchedulingFailure, getHealthState, needToWaitD... |
/* sensorsAPI.js
*
* Written by <NAME> in 2012
* Faculty of Engineering, Monash University (Australia)
*
*/
// These API should probably all be included under one global object called: sensorsAPI
//format the data for live display on screen
function formatDate(timestamp) {
//console.log(timestamp);
var date ... |
/* File: profile_image_scripts.js
Called From: index.cfm Associated Files: index.cfm, profile_image_scripts.js, image_cropper.js, up_action.cfm, up.cfc
Purpose: Implements image upload functionality with error handling.
Custom Functions:
0. Display_Dialog_Modal(m_title, m_msg, m_class, m_mode)... |
/*
* Copyright 2016 Danish Maritime Authority.
*
* 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 ... |
/*
File: ~/js/scrabble.js
91.461 Assignment 9: Implementing a Bit of Scrabble with Drag-and-Drop
<NAME> - student at UMass Lowell in 91.461 GUI Programming I
Contact: <EMAIL> or <EMAIL>
MIT Licensed - see http://opensource.org/licenses/MIT for details.
Anyone may freely use this code. Just don't... |
/*
Derechos de autor 2017 <NAME> y <NAME>
Autorizado en virtud de la Licencia de Apache, Versión 2.0 (la "Licencia");
se prohíbe utilizar este archivo excepto en cumplimiento de la Licencia.
Podrá obtener una copia de la Licencia en:
Inglés: http://www.apache.org/licenses/LICENSE-2.0
Español... |
/**
* Copyright 2017 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... |
import Node from "https://wsa-path-finding.herokuapp.com/public/browser/node.js";
import dfs from "https://wsa-path-finding.herokuapp.com/public/browser/Algorithms/DFS.js";
import bfs from "https://wsa-path-finding.herokuapp.com/public/browser/Algorithms/BFS.js";
import dijkstra from "https://wsa-path-finding.herokuapp... |
const Alerts = require('../../utils/Alerts')
const LanguageUtils = require('../../utils/LanguageUtils')
const Events = require('../../contentScript/Events')
const Criteria = require('../../model/schema/Criteria')
const Level = require('../../model/schema/Level')
const Review = require('../../model/schema/Review')
const... |
function formatDate(date) {
var d = new Date(date),
minutes = '' + d.getMinutes(),
hours = '' + d.getHours(),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (minutes.length < 2)
minutes = '0'+minutes
if (hours.length < 2... |
'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; descriptor.configurable = true; if ("va... |
import React, { useState, useEffect, useRef } from 'react'
import ReactGA from 'react-ga'
import { useTranslation } from 'react-i18next'
import styled, { css, keyframes } from 'styled-components'
import { darken, transparentize } from 'polished'
import { isAddress, amountFormatter, shortenAddress } from '../../utils'
i... |
//Get elementByID loca so we can add text to it "<NAME>".
var x = document.getElementById("lat");
var y = document.getElementById("long");
// forecast display elements -Brittani Gongre-
let cityName = document.getElementsByClassName("cityName");
let weatherIcon = document.getElementsByClassName("icon");
let weatherDes... |
import {widgetsBase} from './widgets.base';
import {widgetsHandle as widgetsHandleFactory} from './widgets.handle';
import CoreUtils from '../core/core.utils';
/**
* @module widgets/freehand
*/
const widgetsFreehand = (three = window.THREE) => {
if (three === undefined || three.Object3D === undefined) {
re... |
const fs = require('fs');
const toTS = (date) => {
return Math.floor(new Date(date).valueOf() / 1000);
};
const showEvents = (receipt) => {
if (receipt.events) {
console.log(
"events",
receipt.events.map(({ eventSignature, args }) => ({
eventSignature,
args,
}))
);
} els... |
/*===================================================================*
MIT License
===========
Copyright (c) 2005 <NAME>. All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the ... |
import React from "react"
import Layout from "../components/Layout"
import { navigate } from "gatsby-link"
import { graphql, useStaticQuery, Link } from "gatsby"
import BackgroundImage from "gatsby-background-image"
import { Helmet } from "react-helmet"
import { StaticImage } from "gatsby-plugin-image"
import Stars fro... |
import React, { Component } from 'react';
import classnames from 'classnames';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import _get from 'lodash/get';
// import * as d3 from 'd3-selection';
import {
// AppBar,
CustomTabs,
CustomMobileTabs,
Dialog,
Loader,
// Logout,
Noti... |
const fs = require('fs-extra')
const {
prefix,
botName
} = JSON.parse(fs.readFileSync('./settings/settings.json'))
// NÃO REMOVA OS CREDITOS POR FAVOR, LEVOU MUITO TEMPO PRA SE FAZER UM BOT ASSIM!
exports.help = help()
function help() {
return `*Lista de comandos 🤖*
*-${prefix}sticker*
_Faço suas imagen... |
export const lang = {
"af": {
"639-1": "af",
"639-2": "afr",
"family": "Indo-European",
"name": "Afrikaans",
"nativeName": "Afrikaans",
"wikiUrl": "https://en.wikipedia.org/wiki/Afrikaans_language"
},
"ar": {
"639-1": "ar",
"639-2": "ara",
... |
const { BaseModel } = require('lib/base-model.js');
const { Database } = require('lib/database.js');
const { Logger } = require('lib/logger.js');
const SyncTargetRegistry = require('lib/SyncTargetRegistry.js');
const { time } = require('lib/time-utils.js');
const { sprintf } = require('sprintf-js');
const { _, supporte... |
const Web3 = require('web3');
const Tx = require('ethereumjs-tx').Transaction;
let Common = require('@ethereumjs/common').default;
const chains = require('./chains');
var web3 = null;
var defaultChain = 'mainnet';
var gasPriceStep = 10; //percent
var startGasPrice = null;
var dontRetryFailedTx = false;
/**
* Initial... |
import {Map, fromJS} from 'immutable';
import {loop, Effects} from 'redux-loop';
import {generateRandomNumber} from '../../services/randomNumberService';
// Use statistics data from sheet
// https://docs.google.com/spreadsheets/d/13PQVkGncIi7qtmZdnQhLsfv88zR4CIc65M60Cyowacc/htmlview?sle=true#gid=134545558
var POKEMON ... |
// Utilities for filtering rows, joins, and evaluating expressions.
// function getTableFromPath(path) {
// if (!path) throw Error('Cannot get table from missing path: ' + path);
// return path[path.length - 1];
// }
const OP_FNS = {
'<': (l, r) => l < r,
'<=': (l, r) => l <= r,
'==': (l, r) => l === r,
... |
"use strict";
var $ = require("common:jquery");
//引入锦囊组件
// var jn = require.async(["jinnang"]).then(function(jinnang){
// var gw1 = {
// txt:'此关通关秘诀在于快速点击发亮的怪物,否则游戏失败结束',
// ps:'PS:注意把握时间'
// }
// jinnang.init(gw1.txt,gw1.ps);
// // 加载背景音乐
// // music.load("mmgd");
// })
function i... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ExchangeNotAvailable } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = clas... |
'use strict'
const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')
// for Delivery Record
const async = require('async')
const GoogleSpreadsheet = require('google-spreadsheet')
var date = new Date();
var... |
$(document).ready(function() {
// setup global variables
$confirmIt = $('#confirmIt');
$remoteModal = $("#modal");
// handler for "shown" event in modals
$remoteModal.on( 'shown', function() {
var modal = $remoteModal;
// only run if modal is in delayed mode
if( modal.data( ... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2018-2020 Toha <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to... |
'use strict';
function DSMCModel(settings) {
this.changeSettings(settings, true);
};
DSMCModel.prototype.changeSettings = function (settings, restart) {
var n = settings.parameters.n;
if (!this.settings || this.settings.parameters.n !== n) {
this.x = new Float64Array(n);
this.y = new Float64Array(n);
... |
const keyframes = require('./keyframes/keyframes');
const keyframesLightSpeed = require('./keyframes/lightspeed');
const keyframesFlip = require('./keyframes/flip');
const keyframesRotateIn = require('./keyframes/rotateIn');
const keyframesRotateOut = require('./keyframes/rotateOut');
const keyframesRoll = require('./k... |
let dragulaJs = document.createElement('script');
dragulaJs.setAttribute('src', '/static/plugins/Sortable.min.js');
document.body.appendChild(dragulaJs);
let cropperCss = document.createElement('link');
cropperCss.setAttribute('rel', 'stylesheet');
cropperCss.setAttribute('href', '/static/plugins/cropper/cropper.min.c... |
import { useEffect, useState } from 'react';
import React from 'react';
const allEmojis = [
{ title: 'mouthless', code: '\u{1F636}' },
{ title: 'angry', code: '\u{1F620}' },
{ title: 'pouting', code: '\u{1F621}' },
{ title: 'unamused', code: '\u{1F612}' },
{ title: 'confused', code: '\u{1F615}' },
{ title... |
const bodyParser = require('body-parser')
const Donation = require('../models/donation')
const Notification = require('../models/notification')
const User = require('../models/User')
const Category = require('../models/category')
const httpResponseCode = require('../helpers/httpResponseCode')
const httpResponseMessage ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy... |
// Copyright 2021 Quantap 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/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
const katex = require('katex');
const flatten = require('lodash/flatten');
const attachInteractions = require('./interactions');
const glsl = require('glslify');
const createCamera = require('inertial-turntable-camera');
const icosphere = require('icosphere')(5);
const vec3scale = require('gl-vec3/scale');
const vec3tr... |
/* exported queryReports, queryGAData*/
// Replace with your view ID.
//var VIEW_ID = '10995661';
var VIEW_ID = '69390283';
var gGADataStatus = '';
var startDate = '7daysAgo';
var endDate = 'today';
var queryJSON = {};
var textnode;
var textnode2;
var textnode3;
function findContainer(ele) {
var eleContainer = ele;
... |
import { template, delegateEvents, insert, effect, setAttribute, createComponent, addEventListener } from 'solid-js/web';
import { createSignal, Show, For } from 'solid-js';
import { Transition } from 'solid-transition-group';
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(ob... |
const fetch = require('node-fetch');
const { groupBy } = require('lodash');
const { duration, asyncForEach } = require('./utils');
const { getPrisma } = require('./prisma');
const url =
'https://www.easports.com/fifa/ultimate-team/api/fut/item?jsonParamObject=';
// An example response object is commented out at the... |
//加载文件
function urlToBlob() {
let xhr = new XMLHttpRequest();
xhr.open("GET", "hotel.csv", true);
xhr.responseType = 'blob';
xhr.onload = function() {
if (this.status == 200) {
console.log(this.response);
const reader = new FileReader();
reader.onload... |
'use strict';
var getPicElem = document.getElementById('level-img');
var alphabetElem = document.getElementById('alphabet');
var slots = document.getElementById('slots');
var allAlphabets = [];
console.log('allAlphabets', allAlphabets);
var levelOnePics = [];
console.log('levelone', levelOnePics);
var levelTwoPi... |
"use strict";
/*
Copyright (c) 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... |
function buble(ruta=''){
var svg = d4.select("svg"),
diameter = +svg.attr("width"),
g = svg.append("g").attr("transform", "translate(2,2)"),
format = d4.format(",d");
var pack = d4.pack()
.size([diameter - 4, diameter - 4]);
d4.json(ruta+user+'/flare.json', function(error, root) {
... |
import { inject as service } from "@ember/service";
import Component from "@ember/component";
import { on, observes } from "discourse-common/utils/decorators";
import { findRawTemplate } from "discourse/lib/raw-templates";
import { emojiUrlFor } from "discourse/lib/text";
import {
extendedEmojiList,
isSkinTonableEm... |
/* Dateselector for TMG Front End Assesment
Version: 1.0 Beta
Build: Initial
Developed by <NAME> (<EMAIL>)
Required jQuery library to use these scripts */
//Global data variables set by default
var dataVar = {
fullMonthNames: ["January", "February", "March", "April", "May",
"June", "July", "August", "September", "... |
'use strict';
// from config.js and domhelpers.js
/* global qs, qsa, el, el2, CONF, L, addClass, removeClass, empty */
/************************
Core Data Structures
*************************/
function API(conf) {
const server = conf.api_server;
let info = null;
// load server info
this.load = () =>
fetch(`${s... |
"use strict";
var resources = module.exports = {};
var async = require("async");
var etag = require("etag");
var fs = require("graceful-fs");
var jb = require("json-buffer");
var mime = require("mime-types").lookup;
var mkdirp = require("mkdirp");
var path = ... |
var LIST_DISTANCES = [
"marathon",
"half marathon",
"10 K race",
"10000 meters race",
"ultra marathon",
"trail marathon",
"trail half marathon",
"road marathon",
"road race",
"road half marathon",
"race",
"5 K race",
"5000 meters race",
"10 miles race",
"trail race"];
var LIST_COUNTRIES = [
"Albania",
"Algeria... |
/**
* Generate reuslt table
*
* @param data - result table from server side.
* @param action - User action.
* @returns result table.
*/
function tabulate(data, action) {
// remove existing table
d3.select("#table").selectAll('table').remove();
d3.select("#table").style("display", "inline-block");
var tabl... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*<NAME>*/
$(document).ready(function () {
$("#idc").val($("#id").val());
//$("#id").val(null);
//Verifico si el toke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.