text stringlengths 3.22k 29.5k |
|---|
const canvas = document.getElementById("playGame");
const ctx = canvas.getContext('2d');
const pillarWidth = 10;
const pillarHeight = 210;
const pillarX = (canvas.width - 3*pillarWidth)/6;
const bricksWidth = [
[190, 130, 70],
[190, 160, 130, 100, 70],
[190, 170, 150, 130, 110, 90, 70]
];
const br... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
//https://www.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/apsg/src/tpc/db2z_hostvariablecobol.html
//https://www.ibm.com/support/knowledgecenter/SS6SG3_4.2.0/com.ibm.entcobol.doc_4.2/PGandLR/ref/rlddecom.htm
const USAGE = ['BINARY', 'COMP', 'COMP-1', 'COMP-2', 'COMP-3', 'COMP-4', 'COMP-5', 'PACKED-DECIMAL', 'DISPLAY... |
function initLoadedPage_main_report() {
$('.datepicker1').datepicker();
$('.datepicker2').datepicker();
loadListVerileri('idTetkik', 'tetkikler');
loadListVerileri('idUygulamaturu', 'uygulama_turleri');
loadListVerileri('idSirket', 'sirketler');
$('#btnMainReportYukle').click(function ... |
import React from 'react';
import { navigate } from 'gatsby-link';
import styled from '@emotion/styled';
import * as Yup from 'yup';
import { Formik, Form, Field, ErrorMessage } from 'formik';
import { graphql, StaticQuery } from 'gatsby';
import { withPreview } from 'gatsby-source-prismic-graphql';
const ContactFormS... |
const CROSSOUT = 'X';
const MAX_INPUT = 12;
const DECK_MAX = 12;
const HAND_MAX = 4;
const USE_MAX = 4;
const LS = {
BATTLE_DECK: 'battleDeck',
};
const DRAW_WEIGHT = [1, 0.375, 0.04, 0.003];
const MATCH_TYPE_CONST = {
MATCH: 'MATCH',
APPEARS: 'APPEARS',
CONSECUTIVE: 'CONSECUTIVE',
STARTS: 'STARTS',
ENDS: '... |
"use strict";
var _ = require('lodash');
var fs = require('fs');
var cheerio = require('cheerio');
var request = require('request');
var queue = require('./queue.js');
var url = require('url');
var re = /\/web\/[\d]+\//;
var default_timestamp = "19950101";
var min_score = 0;
var max_year = 1998;
var pages = require... |
"use strict"; // use strict mode at top level, and one level down
let wellCols = 10;
let wellRows = 20;
const blockSize = 20; // The size of one block pixel
let blockColor = "green";
let lockedColor = "blue";
let lineColor = "red";
// Create board Canvas
const boardCanvas = document.getElementById('board');
const ... |
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Home.css';
import { stringify } from 'query-string';
class Home extends React.Component {
constructor() {
super();
this.state = {
visionResult: {},
visi... |
import React from 'react';
import '../assets/stylesheets/newpt.css';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { Form, Dropdown, Checkbox, Input, Button, Modal, Image, List, Divider, Message } from 'semantic-ui-react';
import NavBarOpener from '../componentsNavBar/Na... |
class Cluster {
constructor() {
this.regions = [];
this.ds = 0.1; // length of segments
// computed:
this.chains = [];
this.triple_points = [];
this._perimeter = null;
}
clear_cache() {
this._perimeter = null;
this.regions.forEach(function(... |
import {
ContentWrapper,
FeedWrapper,
LayoutWrapper,
MenuWrapper,
SiderWrapper,
} from "components/Feed/FeedWrappers";
import React, {
useCallback,
useEffect,
useReducer,
useRef,
useState,
} from "react";
import { postsActions, selectPosts } from "reducers/posts";
import { useDispatch, useSelector }... |
const isArr = Array.isArray;
const isStr = s => typeof s === 'string' || typeof s === 'number';
const MEMO = 0;
function h(type, attrs, ...args) {
let props = attrs || {};
let key = props.key || null;
let ref = props.ref || null;
let children = [];
for (let i = 0; i < args.length; i++) {
let vnode = arg... |
import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {MDCTextField} from '@material/textfield/index';
import classnames from 'classnames';
import ReactGA from 'react-ga';
import {getUrlParamsFromSearch} from './hero/urlHelper';
import './styles/TextFieldCatal... |
//Comment for test commit
//Map of all opened tabs keyed by tabId
var allOpenTabs = {};
//Map of recently closed tabs keyed by timestamp
var rcts;
//Array of RCT timestamps
var rctTimestamps = [];
//Array of URL blacklist filters
var filters;
//Maximum number of rcts shown on popup page
var maxPopupLengthDefault = 15;
... |
// This file is part of MusicBrainz, the open internet music database.
// Copyright (C) 2014 MetaBrainz Foundation
// Licensed under the GPL version 2, or (at your option) any later version:
// http://www.gnu.org/licenses/gpl-2.0.txt
const _ = require('lodash');
const test = require('tape');
import formatDate from '.... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
Col,
Nav,
NavItem,
NavLink,
Row,
TabContent,
TabPane,
} from 'reactstrap';
import ApiErrorCard from '../../Cards/ApiErrorCard';
import CreateSeoEntry from '../CreateSeoEntry';
import DestroyRes... |
/* widget setup code */
var $frame, $widget, $widget_config, $widget_config_defaults;
var fixHeaderPosition = (function() { }); // to be replaced by a function with the same name in interface.js
var initWidgetSetup = (function() {
$widget_config = {
width: localStorage.getItem("widget_width") || 640,
... |
import Taro, { Component } from "@tarojs/taro";
import {
Swiper,
SwiperItem,
Image,
View,
Text,
Picker
} from "@tarojs/components";
import { AtIcon } from "taro-ui";
import { HCdistrict } from "../../../../components";
import * as Server from "../../../../actions";
import { dateFormat } from "../../../../ut... |
import React, { useEffect } from 'react';
import { useFormik, yupToFormErrors } from 'formik';
import * as Yup from 'yup';
import { clearAppKeyState, createAppKey } from '../../store/userStorage/appKey';
import store from '../../store';
import { DateTime } from 'luxon';
import { connect } from 'react-redux';
const AddA... |
/********************
* Site *
*********************/
var playerRdy = false;
$(document).ready(function () {
showModalPopup();
// Get the element with id="defaultOpen" and click on it
$("#defaultOpen").click();
$("#playerName1").focus();
addListeners();
});
function make_responsive() {
var... |
// MIT License
//
// Copyright (c) 2021 <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, merg... |
var marginOffset = 10; // extra space around staves
var staffSystemHeight = 240;
var spaceBetweenChords = 500;
var chords = [[]]; // cached chord data, organized by chord
var staveNotes = [[]]; // cached VexFlow staveNote data, organized by melody
var httpRequest;
function showMusicArea() {
$('#tutdiv').hide(); // ... |
import React, { Component } from 'react';
import {
Container,
Row,
Col,
UncontrolledDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem,
} from 'reactstrap';
import GoogleButton from 'react-google-button';
import BrowserNotification from 'react-web-notification';
import NotificationStack from './Componen... |
// Pipes - Script.js - Javascript - February 5, 2011
// **** Global Variable Declarations ****
var nNumDirections = 4; // Up, right, down, and left (in clockwise order).
var aPowersOfTwo = [1, 2, 4, 8]; // aPowersOfTwo.length == nNumDirections
var adx = [0, 1, 0, -1]; // adx.length == ... |
"use strict";
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.hasOwnPrope... |
//Determines if the mouse was pressed on the previous frame
var cl_mouseWasPressed = false;
//Last hovered button
var cl_lastHovered = null;
//Last pressed button
var cl_lastClicked = null;
//All created buttons
var cl_clickables = [];
//This function is what makes the magic happen and should be ran after
//each draw ... |
var dictionaryIndicadoresPorArea = {};
$(function () {
jQuery('.detalleGrafico').css("visibility", "hidden");
jQuery.noConflict();
var margin = { top: 18, right: 0, bottom: 0, left: 30 };
var heatMap = obtenerHeatMapViewModel();
var cantIndicadoresPorArea = contarIndicadoresPorArea(heatMap)
... |
/* @requires mapshaper-encodings, mapshaper-encoding-detection */
//
// DBF format references:
// http://www.dbf2002.com/dbf-file-format.html
// http://www.digitalpreservation.gov/formats/fdd/fdd000325.shtml
// http://www.clicketyclick.dk/databases/xbase/format/index.html
// http://www.clicketyclick.dk/databases/xbase/... |
import React from 'react';
import { Text, View, Image, StyleSheet } from 'react-native';
import Home from '~/component/Home/Home/Home'
import Chart from '~/component/Chart/Chart'
import Book from '~/component/Book/Book/Book'
import BookDetail from '~/component/Book/BookDetail/BookDetail'
import None from '~/component/... |
var url = " t.co/vRBKRZOs6N";
var decodeUrl = " https://chrome.google.com";
var urlLen = 23;
function decode(encoded) {
var data = "";
if(!encoded)
return null;
//var urlIndex = encoded.indexOf(decodeUrl);
//if(urlIndex >= 0) {
// encoded = encoded.substring(0, urlIndex);
//}
for(var i=0;i<encoded.length;i+... |
//
const setLanguages = [];
function TextNode( engText, frText ) {
frText = frText ? frText : engText;
const node = document.createTextNode( engText );
setLanguages.push( ( language ) => {
node.nodeValue = language === 'english' ? engText : frText;
})
return node
};
//
function setLanguage( language ... |
import React from 'react';
import { StyleSheet, ScrollView, View, Text, TouchableOpacity, TextInput, Image, Dimensions } from 'react-native';
import { deleteSkatePin, reviewSkater, reviewSkateSpot } from '../functions/skatePinFunctions'
import AsyncStorage from '@react-native-community/async-storage';
import Modal from... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Route, Link } from 'react-router-dom';
import Loading from './Loading';
import Axios from 'axios';
let ch;
class Routine extends Component{
constructor(props){
super(props);
this.state={
typ... |
"use strict";
//Database Adapter
var dataStore = {
databaseName: "helloo",
databaseVersion: 1,
datastore: null,
openDB: function(callback){
// Database version.
var version = 1;
var that = this;
if(that.datastore)
return void callback()
// Open a connection to the datastore.
var request = indexe... |
/* eslint-env jquery */
function drawGraph(jsonData, jsonPost, printRequests, anonymize) {
var data = jsonData;
var links = []; // dict = {source: , target: , value: ,}
var similarity;
var target;
for (var n = 0; n < data.length; n++) {
var clusterNodes = data[n].nodes;
var neighbors = data[n].neighbo... |
var e, t, n = function () {
return (n = Object.assign || function (e) {
for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
return e
}).apply(this, arguments)
}, o = function () {
function e() {
... |
var sc5d1 = document.getElementById("select-c5-d1");
var dc5d1 = document.getElementById("c5-d1");
sc5d1.onmouseover = function() {
dc5d1.style.transform = "scale(1.2) translate(92px, -10px)";
dc5d1.style.zIndex = "9999999";
dc5d1.style.filter = "drop-shadow(0 0 0.75rem black)";
};
sc5d1.onmouseout = functi... |
/**
Schema ACL options
Object level permissions, for example, an album owned by a user
Factors to be authorized against:
* model name: Album
* model instance properties: userId of the album, friends, shared
* methods
* app and/or user ids/roles
** loggedIn
** roles
** userId
** appId
** none
** everyone... |
var expect = require("chai").expect;
var jadb = require("../lib/Database");
const tablename = "insert";
const relatedTablename = "related";
describe("Inserting and deleting data", function () {
var db;
describe("Creating insert database", function () {
it("create instance", function () {
db = new jadb();
});... |
var SelectionManager;
var sel = require("./Selection");
var _ = require("underscore");
var Collection = require("backbone-thin").Collection;
// holds the current user selection
module.exports = SelectionManager = Collection.extend({
model: sel.sel,
initialize: function(data, opts) {
if ((typeof opts !== "und... |
// ==UserScript==
// @name stackexchange-quickcomment2
// @namespace http://keyboardfire.com/
// @grant none
// @license MIT
// @description Quick SE comments for quick SE people. (Vastly improved)
// @version 1.0.0
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
... |
const _DEBUG = window.location.href.indexOf('qizhit.com') < 0 && window.location.href.indexOf('neusoft.site') < 0;
const _CONFIG = {
api: _DEBUG ? 'http://be.socket-shop.lab/' : 'http://be.socket-shop.demo.qizhit.com/',
websocket: _DEBUG ? 'ws://127.0.0.1:8123' : 'ws://be.socket-shop.demo.qizhit.com:8123',
};
... |
// Grab the pertinent elements from the DOM
var barcodeInput = $('#barcode-input');
var eventDropdown = $('#event-dropdown');
var notificationBar = $('#notification');
var hackpointsPopup = $('#hackpoints-notification');
var pointValText = $('#point-value');
// The Airtable Basic information
var baseURL = 'https://api.... |
const EventEmitter = require('events');
const { parser } = require('@hkube/parsers');
const { Consumer } = require('@hkube/producer-consumer');
const { tracer, metrics, utils } = require('@hkube/metrics');
const storageManager = require('@hkube/storage-manager');
const Logger = require('@hkube/logger');
const stateMana... |
import io from 'socket.io-client';
// Class imports
import { EVENTS, INTERRUPT, REQUEST } from '../../shared/Consts';
import Controller from './Engine/Controller';
import Engine from './Engine/Engine';
import Renderer, { Layer } from './Engine/Renderer';
import Sprite from './Objects/Sprite';
import Terrain from './Ob... |
var util = require('../lib/util');
var restUtils = require('../lib/restUtils');
var Command = require('ronin').Command;
var Q = require('q');
var chalk = require('chalk');
var _ = require('lodash');
var config = require('../lib/config');
var bbrest, cfg;
module.exports = Command.extend({
desc: 'Backbase REST API C... |
// import cos from Math;
const { PI, sin, cos, ceil, abs } = Math
var max_w = 600;
var max_h = 400;
var margin = {top: 60, right: 30, bottom: 30, left: 60};
var width = max_w - margin.left - margin.right;
var height = max_h - margin.top - margin.bottom;
var minN = 2;
var maxN = 50;
var x = d3.scaleLinear()
... |
/**
* Controller pagina descrição de ticket
*/
// Utilitários e módulos
const Prototype = require('../utils/Prototypes');
const Notification = require('../utils/Notification');
const Util = require('../utils/Utils');
const Ticket = require('../modules/Ticket');
const User = require('../modules/User');
cons... |
/* eslint-disable*/
import {Decoder} from '../../ffplay'
import {EventEmitter} from 'events';
import fs from 'fs'
let frameSize = [
11727,
4582,
1456,
664,
776,
3797,
1434,
703,
677,
4446,
1476,
702,
743,
5640,
1655,
1037,
830,
4764,
1016,
697,
485,
4279,
957,
451,
541... |
// These are the tags at the beginning of a document DocSpider grabs and inserts into the web presentation
var applicationNameRegEx = /\[ApplicationName:(.*)\]/;
var applicationCategoryRegEx = /\[ApplicationCategory:(.*)\]/;
var applicationRepositoryRegEx = /\[ApplicationRepository:(.*)\]/;
var applicationDirectoryRe... |
import TransparentFooter from "components/Footers/TransparentFooter";
import React, { useState } from "react";
import { Button } from "reactstrap";
import Container from "reactstrap/lib/Container";
import Row from "reactstrap/lib/Row";
import CardTitle from "reactstrap/lib/CardTitle";
import { Link, useHistory, usePara... |
import React, { Component } from 'react';
import {
Select,
DatePicker,
Cascader,
Button,
Table,
Pagination,
Spin,
Icon,
notification,
Row,
} from 'antd';
import st from './PersonStatistic.less';
import {
url_GetUserWindows,
url_ExportMPBusinessUserTJ,
url_GetDistrictTreeFromDistrict,
url_Ge... |
import React from "react";
import Grid from "@material-ui/core/Grid";
import Button from "@material-ui/core/Button";
import SvgIcon from "@material-ui/core/SvgIcon";
import InfoIcon from "@material-ui/icons/Info";
import OutlinedDropDown from "../../common/OutlinedDropdown";
import FileUploader from "../../common/File... |
var $5w = new $5W('/data');
class MainApp {
constructor() {
this.bindEvents();
$5w._init();
$5w.login();
}
isUIBusy() {
return this._uibusy > 0;
}
enterUIBusy() {
this._uibusy++;
}
leaveUIBusy() {
this._uibusy--;
}
startSessionRefresh() {
var _this = this;
if (_thi... |
var Route = require('./route');
exports = module.exports = Router;
/**
* Initialize a new `Router` with the given `options`.
*
* @param {Object} options
* @api private
*/
function Router(options) {
var self = this;
options = options || {};
this.routesByMethod = [];
this.routesByMethodAndPath = {};
thi... |
import React, { useState } from "react";
import styled from "styled-components";
import Button from "@material-ui/core/Button";
import MultipleSelect from "../common/MultipleSelect";
import ImageInput from "../common/ImageInput";
import TimeSlider from "../common/TimeSlider";
import Typography from "@material-ui/core... |
var StreamStack = require('stream-stack').StreamStack;
var Put = require('put');
var BufferList = require('bufferlist').BufferList;
var Binary = require('bufferlist/binary').Binary;
var inherits = require('util').inherits;
var client = require('./client');
var server = require('./server');
var slice = Array.prototype.s... |
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" viewBox="0 0 22 31" version="1.1... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
var _extends = require('@babel/runtime/helpers/extends');
var _regeneratorRuntime = require('@babel/runtime/regenerator');
function _interopDefaultLegacy (e) { retu... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as IssuesManager from '../../models/issues... |
import React from 'react';
import { Primitive, valueOf, ObjectType, ArrayType } from 'microstates';
import { Transaction, TransactionComputed } from './transactions.js';
import { Account, AccountComputed } from './accounts.js';
import { Charts } from './charts.js';
import { Stats } from './stats.js';
import { Forms } f... |
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import computed from "ember-addons/ember-computed-decorators";
import {
PRIVATE_MESSAGE,
CREATE_TOPIC,
CREATE_SHARED_DRAFT,
REPLY,
EDIT,
NEW_PRIVATE_MESSAGE_KEY
} from "discourse/models/composer";
// Component can get destr... |
import { isInSomething } from './lib/utils'
const functionTypes = ['ArrowFunctionExpression', 'FunctionExpression']
const callExpressions = ['JSXExpressionContainer', 'CallExpression']
export const PROXY_RENDER_PHASE_MESSAGE =
'Using proxies in the render phase would cause unexpected problems.'
export const SNAPSHOT... |
// See: Using RDF in JavaScript and Node.js
// This program explores different, possibly layered approaches
// for using RDF in JavaScript and more specifically Node.js
// apps.
//
// The resouce we'll use is the RTC ServiceProvider resource
// to be sure there are no issues parsing and manipulating
// an OSLC2 resou... |
var slider = document.getElementById("range");
var output = document.getElementById("output");
var open = false;
var type = 'cafe';
var map;
var rank = 'name';
var currentLat;
var currentLng;
output.innerHTML = slider.value; // Display the default slider value
// Update the current slider value (each time you drag th... |
'use strict';
require('colors');
var fs = require('fs');
var path = require('path');
var JsonStream = require('jsonstream3');
var csv = require('csv-parser');
var stream = require('readable-stream');
var Transform = stream.Transform;
var PassThrough = stream.PassThrough;
var shapefile = require('shp-stream').reader;
va... |
const titulos = [
'Hunter X Hunter',
'Attack On Titan',
'Steins;Gate',
'Death Note',
'High Score Girl',
'One Punch Man',
'Ascendance Of A Bookworm',
'3-gatsu no Lion',
'Dorohedoro',
'Kill la Kill',
];
const desc = [
// Hunter X Hunter
'Gon é um jovem que vive em uma pequ... |
let arenaTopHeight = 0;
let arenaBottomHeight = 600;
let arenaWidth = 900;
let paddleHeight = 85;
let paddleWidth = 12;
let ballRadius = 15;
let speedOfPaddle1 = 0;
let positionOfPaddle1 = (arenaBottomHeight / 2 - paddleHeight / 2);
let speedOfPaddle2 = 0;
let positionOfPaddle2 = (arenaBottomHeight / 2 - paddleHeight /... |
import React from "react";
import { useD3 } from "../hooks/useD3.js";
import * as d3 from "d3";
function Top10Pie({ repData, width }) {
const ref = useD3(
(parent) => {
let margin = {
left: 30,
right: 175,
height: 440, //hardcoded, if we want we can fix that.
top: 40,
... |
let core;
window.onload = ()=>{
let p1 = new Range({ width: 500, value: .005, class: `input`, min: .001, max: .01, scale: 1, label: `Orange oscillator frequency`, labelWidth: 220, formula: v=>Math.floor(v*10000), step: .0005})
let p2 = new Range({ width: 500, value: .005, class: `input`, min: .001, max: .01, scale: ... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Alert } from "reactstrap";
import Modal from "../components/Modal";
import Difficulties from "../constants/Difficulties";
import { init } from "../scripts/init";
import {
addMember,
getMembers,
removeMember,
setItems,
getIt... |
const express = require("express");
const mongoose = require("mongoose");
const passport = require("passport");
// Importing db models
const Person = require("../../models/Person");
const Profile = require("../../models/Profile");
// Initializing router
const router = express.Router();
// @type - GET
// @route ... |
/*
* speedy-vision.js
* GPU-accelerated Computer Vision for JavaScript
* Copyright 2020-2021 <NAME> <<EMAIL>martf(at)gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
var vue ;
$(function(){
vue = new Vue({
el: '#main',
data:{
blockItemList:[], //当前页面解析的block元素
currentField:{}, //用户新建的字段信息
fieldList:[], //用户已经选取的业务字段
templateList:[], // 模板列表L
pageCount:0,
// ... |
const express = require('express');
const Model = require('../models/model');
const Algorithm = require("../models/algorithm.js");
//const tf = require("@tensorflow/tfjs");
const tf = require('@tensorflow/tfjs-node');
let router = express.Router();
let headers;
let featureNames;
let points;
let numOfFeatures;
let nor... |
import React, { Component } from 'react';
import axios from 'axios';
import host from "../../host.js";
import UnAuth from '../UnAuth/UnAuth';
import AccountProfile from './AccountProfile';
import Account from './Account';
import AccountPlanDetails from './AccountPlanDetails';
import AccountBilling from './AccountBilli... |
function getResources() {
var resources = {
baseUrl: "https://raw.githubusercontent.com/mingrammer/diagrams/master/resources/",
oci: {
compute: {
AutoscaleWhite: "autoscale-white.png",
Autoscale: "autoscale.png",
BMWhite: "bm-white.png",
BM: "bm.png",
ContainerWhite: "container-white.png"... |
import React from "react"
import { withPrefix } from "gatsby"
import Img from "gatsby-image"
import path from "path"
const textReplacementRegex = /{{tr:(.+)}}/
const imgRegex = /\[\[img:(.+)\]\]\[\[\/img\]\]/
const locUIEffectRegex = /\[\[col:(green|red)\]\](.+)\[\[\/col\]\]/
const hiddenStats = ["stat_in_combat_rage"... |
// ~~~~~ Map Area ~~~~~:
// Instantiation of map object given instance of HTML element
var map = L.map('map').setView([43.72, -79.355], 10.5);
// Load map area
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=<KEY>',
{ maxZoom: 17,
id: 'mapbox/outdoors-v11',
attribution: '<s... |
'use strict';
var Sk = require('../lib/skulpt.js');
function splat(e) {
console.log("GOT ERROR!");
console.log(e, e.extra);
console.log(JSON.stringify(e.extra.node, function(k, o) {
if ( k == 'type' ) return Sk.nameForToken(o);
else if ( k == 'children' ) return o;
else if ( k === '' ) return o;
else if ... |
import { config } from "dotenv";
config();
import fs from 'fs';
import { checkThatFilesExist } from "./utilities/checkThatFilesExist.js";
import getFilesForSpeakerAndAgent from "./utilities/getFilesForSpeakerAndAgent.js";
import { makeGPTRequest } from "./utilities//makeGPTRequest.js";
import { replaceAll } fro... |
// Get ?user=XYZ parameter value
const urlParams = new URLSearchParams(window.location.search);
const parameterUsername = urlParams.get('user');
// URL must include ?user=XYZ parameter. If not, redirect to homepage.
if (!parameterUsername) {
window.location.replace('/');
}
var imgs = [];
var imgText... |
"use strict";
const stats = new Stats();
stats.showPanel( 0 ); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild( stats.dom );
window.onresize = () => {
const w = window.innerWidth,
h = window.innerHeight;
renderer.setSize( w, h );
camera.aspect = w / h;
camera.updateProjectionMatrix();
};
// ....... |
// Game global config vars [MOVE TO SETTINGS]
var WALL_MARGIN = 80;
var DIR_CHANGE_MIN_TIME = 0;
var SHOOT_DELAY = 100;
var MIN_INVADERS = 4;
var INITIAL_INVADERS = 6;
var MIN_GENERATION_TIME = Phaser.Timer.SECOND * 2;
var BLUE = 0x15AFF0;
var ORANGE = 0xEF7D10;
invadersApp.GameState = {
PAUSED : 0,
RUNNING :... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStateObject = exports.JSON_replaceCyclicParent = exports.Store = void 0;
var Manager_1 = require("./Manager");
var _ = require("lodash");
var StateMutationDiagnostics_1 = require("./StateMutationDiagnostics");
/**
* Facade that joi... |
(function () {
'use strict';
var module = {
options: [],
header: [navigator.platform, navigator.userAgent, navigator.appVersion, navigator.vendor, window.opera],
dataos: [
{ name: 'Windows Phone', value: 'Windows Phone', version: 'OS' },
{ name: 'Windows', va... |
steem.api.setOptions({
url: 'https://api.steemit.com'
});
var link;
var author;
var permlink;
var votes = [];
var p_date;
var post_pay_sbd;
var curation_pay_sbd;
var total_pay_sbd;
var is_paid;
var feed;
var total_net_rshares;
// get feed history fro... |
var CILJS = require("../CilJs.Runtime/Runtime");
var asm1 = {};
var asm = asm1;
var asm0 = CILJS.findAssembly("mscorlib");
asm.FullName = "NestedGenericDelegate.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* System.Void A`1.X()*/
asm.x6000001_init = function (arg0)
{
(asm1["A`1+D`1"](((a... |
'use strict'
setOneTouchAtAtime()
let score = 0;
const turnHistory = [];
const dimensions = [6, 6], //there is a bug
colorsNum = 5,
squareColorClasses = ['green', 'red', 'yellow', 'blue', 'purple', 'brown', 'orange'],
squareColorClassesString = squareColorClasses.slice(0, colorsNum).join(' '),
colo... |
/*
Copyright 2011-2016 Marvell Semiconductor, 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 applicabl... |
/* eslint-disable max-len */
import React, { useCallback, useEffect, useContext } from 'react'
import moment from 'moment'
import $ from 'jquery'
import styled from 'styled-components'
import { observer } from 'mobx-react'
import isDateField from '../../src/isDateField'
import validateDate from '../../src/validateDat... |
import React, { Fragment, useState, useEffect, useMemo } from 'react';
import { connect } from 'dva';
import { Card, Menu, Button, Form, Modal, Icon, message } from 'antd';
import GridContent from '@/components/PageHeaderWrapper/GridContent';
import WithTableName from '@/components/HOC/WithTableName';
import Wrapp... |
// window.axios = require('axios');
// window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Next we will register the CSRF Token as a common header with Axios so that
* all outgoing HTTP requests automatically have it attached. This is just
* a simple convenience so we don't have to ... |
'use strict';
var __awaiter =
(this && this.__awaiter) ||
function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
? value
: new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (reso... |
// JS-to-WebAssembly bridge, since wasm can't reference JS objects or services directly.
let imports = {}; // JS functions, memory, tables to import to wasm instance
let wmemory; // wasm linear memory, sharable between instances and JS
// --- Map JS objects to an integer id that wasm can use as a handle
let wasmOb... |
/**
* Created by Dell on 2016/5/21.
*/
var svg_width = 500;
var svg_height =500;
var svg = d3.select("#map")
.append("svg")
.attr("width",svg_width)
.attr("height",svg_height);
var rect_width = 5;
var rect_height = 5;
var circle_r = 3;
var offset_xy = rect_width/2;
var offset_r = circle_r/2;
var radio_nu... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require("react");
const CompLibrary = require("../../core/CompLibrary.js");
const MarkdownBlock = CompLibrary.Mark... |
//Problem 1. Planar coordinates
document.getElementById('check1').onclick = firstProblem;
function firstProblem() {
var line1 = {
x1: document.getElementById('input1-1-x').value,
y1: document.getElementById('input1-1-y').value,
x2: document.getElementById('input1-2-x').valu... |
let storage;
let canvas;
let context;
let width;
let interval_id;
let score_box;
let table;
let tabledata;
let body;
let grid_size = 25;
let grid;
let size;
let half_size;
let snake_size;
let length;
let move_up;
let move_down;
let move_left;
let move_right;
let snake = {
x : 0,
y : 0,
colour : '#ebe9e9'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.