text stringlengths 3.22k 29.5k |
|---|
import * as alt from 'alt';
import * as native from 'natives';
//import * as panelsPanelStatus from 'client/panels/panelstatus.js';
//import { WebView } from 'client/utility/webview.js';
import { View } from '/client/utility/view.js';
import { getLevel } from '/client/systems/xp.js';
import { showCursor } from '/client... |
import { useRouter } from "next/router";
import { Fragment, useEffect, useRef, useState } from "react";
import ProductList from "./ProductList";
import ProductDetails from "./ProductDetails";
import CompareProducts from "./CompareProducts";
import { Dialog, Transition } from "@headlessui/react";
import { ArrowDownIcon,... |
window.DEBUG = true; //TODO: remove/replace with proper thing
//Adding a last item in array macro
Object.defineProperty(Array.prototype, "last", {get: function(){
return this.length === 0 ? 0 : this[this.length - 1];
}});
if (chrome.runtime) {
// UI.planner.init();
//UI.battle.init();
UI.initButtons();... |
import colors from './colors';
const ALPHABET = 'abcdefghijklmnopqrstuvwxyz'.split('');
const JACKETS = [
'jacket',
'vest',
'leather jacket',
'other jacket',
'suit jacket',
'windbreaker',
'letterman jacket',
'trenchcoat'
];
const HAT_CASES = [
'baseballcap-hightop-short',
'baseballcap-hightop-medium',
'bas... |
// =============================== STARTUP ===============================
var rootSteal = false;
// essentially ... we need to know when we are on our first steal
// then we need to know when the collection of those steals ends ...
// and, it helps if we use a 'collection' steal because of it's natural
// use for goi... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var GlobalQuickSearch_1 = tslib_1.__importDefault(require("../GlobalQuickSearch"));
var performance_now_1 = tslib_1.__importDefault(require("../../util/perform... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const net = require("net");
const dgram = require("dgram");
const events_1 = require("events");
const log_1 = require("../util/log");
const LANConnection_1 = require("./LANConnection");
const Message_1 = require("./messages/Message");
const Se... |
/**
* @license Copyright 2020 The Lighthouse Authors. 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... |
/*
Copyright 2017 Google 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 writing, software
dis... |
import React, { PureComponent, Fragment } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import debounce from 'lodash/debounce';
import isEmpty from 'lodash/isEmpty';
import { Popup } from 'react-map-gl';
import {
Legend,
LegendListItem,
LegendItemToolbar,
LegendItemButto... |
// (protected) r = this >> n
function bnpRShiftTo(n,r) {
r.s = this.s;
var ds = Math.floor(n/this.DB);
if(ds >= this.t) { r.t = 0; return; }
var bs = n%this.DB;
var cbs = this.DB-bs;
var bm = (1<<bs)-1;
r[0] = this[ds]>>bs;
for(var i = ds+1; i < this.t; ++i) {
r[i-ds-1] |= (this[i]&bm)<<cbs;
r[... |
import React, {Component} from 'react'
import {geoAlbers} from 'd3-geo'
import {timer} from 'd3-timer'
import {ascending} from 'd3-array'
import {easeCubicInOut} from 'd3-ease'
import ContextBox, {ContextBoxValue} from './ContextBox'
import {countFormat} from '../../lib/utils/formats'
import {HEADER_HEIGHT, HEADER_HEI... |
'use strict';
const Chat = require('./Chat');
const Conversation = require('./Conversation');
const EventEmitter = require('eventemitter3');
const express = require('express');
const bodyParser = require('body-parser');
const crypto = require('crypto');
const fetch = require('node-fetch');
const normalizeString = requi... |
'use strict';
// Support for Netflix Hystrix, serves a stream of Hystrix command stats
const _ = require('underscore');
const extend = _.extend;
const oauth = require('abacus-oauth');
const moment = require('abacus-moment');
process.env.SECURED = 'true';
const getBearerToken = (authServer, username, password, scop... |
const Alexa = require('ask-sdk-core');
const AWS = require('aws-sdk');
const axios = require('axios')
if (process.env.NODE_ENV == 'test') {
AWS.config.update({
region: 'local',
endpoint: 'http://localhost:8001'
});
} else {
AWS.config.update({region: 'us-east-1'});
}
var docClient = new AWS.DynamoDB.Docu... |
var tableIsInit = false;
function loadRecord(id) {
$.ajax({
type: "POST",
url: "/people/call/json/record",
data: {
'id' : id
},
dataType: "json",
success: function(data) {
$.each(data, function(k, v) {
if (k != 'pic')
if (v && typeof(v) != "boolean")
$('#' + k).val(String(v));
el... |
import prepareColors from 'themer/lib/prepare';
import JSZip from 'jszip';
import { render as renderAlfred } from 'themer-alfred';
import { render as renderAtomSyntax } from 'themer-atom-syntax';
import { render as renderAtomUi } from 'themer-atom-ui';
import { render as renderBbedit } from 'themer-bbedit';
import { r... |
let courses;
// ----------
// How course selection works
// ----------
//
// The search box ultimately controls what happens with the selectedCourses
// list. The filter box controls the filteredCourses list by filtering from the
// selectedCourses list. This allows changes to the offerings filter without
// changing ... |
// Source Week 10
/* M18 T1
* Change the attack() subroutine to:
* 1. Adapt current code to only use charged MeleeWeapon
* 2. Add function to find target for RangedWeapon and code to attack any
* target found if I have any charged RangedWeapon
* 3. Do similar to (2) but with SpellWeapon instead, and include cu... |
"use strict";
// Copyright © 2019 <NAME> and other contributors, MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.intern = exports.generate = void 0;
const Fs = require("fs");
const Path = require("path");
//import { Jsonic } from 'jsonic'
const Jsonic = require('jsonic');
const Ejs =... |
/* Triggers.js */
// Keeps track of triggers, which mainly consist of key presses,
// and messages, which would be from an index.html UI
function resetTriggers() {
// Make the controls object
window.controls = new Controls({
left: [37, 65, "AXIS_LEFT", "DPAD_LEFT"], // a, left
... |
import Path from 'path'
import fs from 'graceful-fs'
import child_process from 'child_process'
import { Map } from 'immutable'
import http from 'http'
import url from 'url'
import * as constants from '../constants/helper.js'
export const checkRivinePath = () => new Promise((resolve, reject) => {
fs.stat(RivineAPI.con... |
import * as THREE from "../../jsm/three/three.module.js";
import { OrbitControls } from "../../jsm/three/OrbitControls.js";
import { GLTFLoader } from "../../jsm/three/GLTFLoader.js";
var camera, scene, renderer;
var orbit_control;
var anim_params = {};
var color_params = {};
function create_camera(){
var container... |
/**
* @file gulp plugin
* @author zhangjingyuan02
*/
/* eslint-disable fecs-no-require */
/* eslint-disable no-native-reassign */
/* eslint-disable fecs-min-vars-per-destructure */
/* eslint-disable fecs-camelcase */
const through = require('through2');
const gutil = require('gulp-util');
const PluginError = gut... |
const DW_TAG_map = {
0x01: 'DW_TAG_array_type',
0x02: 'DW_TAG_class_type',
0x03: 'DW_TAG_entry_point',
0x04: 'DW_TAG_enumeration_type',
0x05: 'DW_TAG_formal_parameter',
0x08: 'DW_TAG_imported_declaration',
0x0a: 'DW_TAG_label',
0x0b: 'DW_TAG_lexical_block',
0x0d: 'DW_TAG_member',
0x0f: 'DW_TAG_point... |
import packageName from './package-name';
import Environment from './environment';
import { compile, helper, Helper, Component, DOMHelper, InteractiveRenderer } from './helpers';
import { equalsElement, equalTokens, regex, classes } from './test-helpers';
import run from 'ember-metal/run_loop';
import { runAppend, runD... |
// GroupMe Bot
// Copyright 2018
// <NAME>
// <EMAIL>
// Test mode runs this on a different port.
// Useful for having two different groupme groups -
// one group with the test bot/port in it,
// good group with the normal bot/port.
// Allows for dev work without shutting down.
var TEST_MODE = false;
var TEST_PO... |
'use strict';
/* jshint node: true */
/*
@module gulp.istanbul-instrument
Collection of gulp tasks related to front end code instrumentation and coverage reports with istanbuljs
Deploy front end insturmented code that will post information to "coverage-server":
gulp deploy --instrument-frontend --coverage-server h... |
import lib from './lib/index.js';
import refs from './lib/refs.js';
import allOf from './lib/all-of.js';
import parameters from './lib/parameters.js';
import properties from './lib/properties.js';
import ContextTree from './lib/context-tree.js';
const HARD_LIMIT = 100;
const noop = () => {};
class SpecMap {
static ... |
/* eslint-disable object-shorthand */
// Fork of hyperapp version 1 under MIT License
// at https://github.com/JorgeBucaran/hyperapp
// Copyright © <NAME> < https://jorgebucaran.com>
// on 14/05/2019 at https://github.com/jklarenbeek/futilsjs
// Copyright © Joham <https://<EMAIL>>
//
// Permission is hereby granted, fr... |
import {
SEMANTIC_POSITION,
PRIMITIVE_TRISTRIP
} from '../../graphics/constants.js';
import { Shader } from '../../graphics/shader.js';
import { shaderChunks } from '../../graphics/program-lib/chunks/chunks.js';
import { BLEND_NORMAL } from '../../scene/constants.js';
import { BasicMaterial } from '../../scen... |
'use strict';
var fs = require('fs');
var http = require('http');
var kernel = require('./kernel');
var defaultSettings = require('./data/defaultSettings.json');
defaultSettings.fePath = __dirname + '/../fe';
var dbSettings;
var generalSettings;
var MAX_ATTEMPTS = 4;
exports.zeroSettingsExceptions = [ 'boardCreation... |
import lightColor from '../static/lightColor';
import darkColor from '../static/darkColor';
import { IoClose, IoChevronUp, IoChevronDown } from 'react-icons/io5';
import { memo } from 'react';
import { Button } from '@nextui-org/react';
import gosegu from '../static/image/gosegu_300_300.png';
import viichan from '../s... |
var util = require('./fx_util')
function createPixel(temp) {
return {
maxTemp: temp,
minTemp: Math.max(5, temp / 10),
// speed: Math.random()*temp/8 + 2,
speed: Math.random()*temp/128 + 1,
counter: Math.random()*200
}
}
function createSmoothedPixel(pixel1, pixel2) {
var temp2 = rndTemp()
var temp = util.... |
#!/usr/bin/env node
const stableStringify = require('json-stable-stringify');
const { logger } = require('lognographer');
const program = require('commander');
const JSON5 = require('json5');
const path = require('path');
const fs = require('fs');
const { generateReport } = require('./src/js/report');
const { asyncExe... |
'use strict';
/*
* RecordEditor
*
* Edit single record, provide corresponding options based on input record type
*/
import _ from 'lodash';
import moment from 'moment';
import React, { Component, PropTypes } from 'react';
import { Button, DatePicker, InputNumber, Input, message } from 'antd';
import Tabs from '... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
import '../layouting.css';
import React, { useCallback } from 'react';
import ReactFlow, {
ReactFlowProvider,
addEdge,
isNode,
removeElements,
} from 'react-flow-renderer';
import { arrowType, edgeType, position } from '../assets/initial-elements';
import { generateColour, getMethodStats } from './Helpers';
i... |
/*
gallery.js
<NAME>
6 December 2019
*/
const THUMBNAIL_WIDTH = 200
const TOP_RATED_COUNT = 15
const EDITORS_CHOICE_COUNT = 15
const TOP_PLAYED_COUNT = 15
let scroll_view_size = 5
let jwindow
let top_rated_container
let jtops
let top_rated_scroll
let choice_container
let jchoices
let choice_scroll
let top_played_c... |
import React from 'react'
import {Redirect} from 'react-router'
import socket, {socketRoomInit} from '../socket'
import { withStyles } from '@material-ui/core/styles'
import {servers} from '../data'
import { Canvas , Chat} from './index'
import {connect} from 'react-redux'
import {dispatchAddChatText} from '../store'
... |
import React from 'react';
import Measure from 'react-measure';
import './BubbleEditor.scss';
const COLOURS = ['#F79F1F', '#A3CB38', '#0652DD', '#9980FA', '#EA2027'];
const DEMO_POINTS = {
'id-1': {
id: 'id-1',
from: 0,
to: 60000,
depth: 1,
label: 'Composition',
summary: 'some summary',
... |
/**
*
* DashboardOverviewPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { injectIntl } from 'react-intl';
import { compose } from 'redux';
import styled from 'styled-components';
import Grid... |
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import { reduxForm } from "redux-form";
import { initialize, submit } from "redux-form";
import { notify, clearNotifications } from "../store/notifications";
import { saveYaml, setVersions } from "../store/cache";
import { APP_FO... |
/*
* Starboard discord bot written in nodejs: react to posts and have it post to a pin
* channel after a configurable threshhold. originally meant for moonmoon_ow discord server.
* Developed by Rushnett and Keiaxx.
*/
// discord init
const Discord = require('discord.js')
const client = new Discord.Client({
parti... |
let rows = 50
let cols = 80
let random = 0.5
let refreshInterval = 500
let cellsize = 15
let alivecolor = "#009900"
let deadcolor = "#000000"
let backgroundcolor = "ffffff"
let timerOnOff = "off"
// let callSpacing = 0
let board = createBoard (rows, cols)
//draws html on screen
function drawBoard () {
var newHTML ... |
import React from 'react';
import PropTypes from 'prop-types';
/* ---------------- STRING FORMATTING ---------------- */
const newlineRegex = /(\r\n|\r|\n)/g;
export const nl2br = (text) => {
if (typeof text === 'number') {
return text;
}
if (typeof text !== 'string') {
return '';
}
return text.sp... |
// @ag-grid-community/react v24.0.0
"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) ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
// Copyright 2019 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 {LitElement, html, css} from 'lit-element';
import {connectStore} from 'reducers/base.js';
import * as userV0 from 'reducers/userV0.js';
import * ... |
var fs = require('fs');
var guid = require('guid'); // random guid generator
var async = require ('async'); // async package for use of waterfall in upload resumable
var chalk = require('chalk'); // coloring terminal console logs https://github.com/chalk/chalk
var logs = console.log;
var ForgeSDK = require('forge-apis... |
//------------------------ Game Project---------------------------
//Do you remember the game Battleship we created before? well .... it is time to make it with the DOM!!
//We are providing you with the design of a board (in the DOM) for a player1, you have to create the board
//for the player2 using the id property 'b... |
var dataChart = [
{"group": "FS", "company": "飞利浦有限公司", "code": "62391", "date": 66, "money": 3},
{"group": "FS", "company": "东森有限公司", "code": "63839", "date": 75, "money": 5},
{"group": "FS", "company": "台积电有限公司", "code": "65271", "date": 92, "money": 15},
{"group": "FS", "company": "苹果有限公司", "code": "61062", "dat... |
//imports
$(document).ready(function () {
window.setTimeout(function () {
$(".alert").fadeTo(500, 0).slideUp(500, function () {
$(this).remove();
});
}, 4000);
//deshabilitar el modal delcard
btn = $("[class*='.unrecive']");
btn.click(function () {
//funciones para la seccion de ADMINIST... |
'use strict';
var buffer = require('buffer');
var Signature = require('../crypto/signature');
var Script = require('../script');
var Output = require('./output');
var BufferReader = require('../encoding/bufferreader');
var BufferWriter = require('../encoding/bufferwriter');
var BN = require('../crypto/bn');
var Hash ... |
var g_debug
var g_edit_code = false;
var g_dg_edit = false;
var g_font_size = 14;
function init_app() {
//translate
$('#cc_layout').layout('panel', 'west').panel({title: T('elenco esempi di codice')}); //panel west
//$('#cc_code').layout('panel', 'center').panel({title: T('Pagina codice')}); //panel west
... |
import BasicLayout from '@/lib/BasicLayout';
import { lazy } from '@/lib/Router';
// const TableHeadSearch = lazy(() =>
// import(/* webpackChunkName: "tableheadsearch" */ '@/components/ui/tableheadsearch'),
// );
// const FormItemCreator = lazy(() =>
// import(/* webpackChunkName: "formitemcreator" */ '@/componen... |
/*global, describe,it,afterEach,beforeEach,System,process*/
import { expect } from "mocha-es6";
import { tmpdir } from "./util.js";
import { join as j } from "path";
import { execSync, exec } from "child_process";
const { resource, createFiles } = lively.resources;
import {
addDependencyToPackage,
installDependenc... |
/*
Copyright 2019-present OmiseGO Pte Ltd
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,... |
/* eslint no-use-before-define: "warn" */
const fs = require("fs");
const chalk = require("chalk");
const { config, ethers, tenderly, run } = require("hardhat");
const { utils } = require("ethers");
const R = require("ramda");
const main = async () => {
console.log("\n\n 📡 Deploying...\n");
let WETHAddress;
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
//===============================================
// Example 14.2
// JavaScript source: index.js
//===============================================
//Create the media object that will be the focus of our efforts
//in this application
var theMedia;
//The application sets up a timers so the screen can be regularly
//upda... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import Dexie from 'dexie'
import Fuse from 'fuse.js'
import format from 'date-fns/format'
import { dataURLToBlob, except, pathFor } from '../'
import { replace } from 'react-router-redux'
// NOTE ids are integers in the database but strings in redux
const schema = {
pages: "++id,title,content,is_trashed,is_favo... |
'use strict';
// dep modules
const ci = require('ci-info');
// own modules
const StreamPrinter = require('./lib/StreamPrinter');
const StyleFactory = require('./lib/StyleFactory');
const TestStats = require('./lib/TestStats');
const utils = require('./lib/utils');
const INDENT_CHAR = ' ';
const INDENT_UNIT = 3;
/**
... |
import Dashboard from './containers/MainContent/dashboard/dashboard';
import ChartApex from './containers/MainContent/charts/charts-apex';
import ChartEchart from './containers/MainContent/charts/charts-echart';
import ChartChartist from './containers/MainContent/charts/charts-chartist';
import ChartChartjs from './co... |
/* <copyright>
Copyright (c) 2012, Motorola Mobility LLC.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditio... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/// <reference path="common.js" />
/// <reference path="../ashirvad.js" />
$(document).ready(function () {
ShowLoader();
LoadCourse();
var IsEdit = $("#IsEdit").val();
if (IsEdit == "True") {
checkstatus('old');
}
// var check = GetUserRights('BranchClassMaster');
var studenttbl =... |
import { is } from '@itsjonq/is';
import axios from 'axios';
import { useCallback, useEffect, useRef, useState } from 'react';
import { v4 as uuid } from 'uuid';
import { useLocalState } from './useLocalState';
import { useOnline } from './useOnline';
import { TYPES, useMoxieDefaultProps, warning } from './utils';
co... |
/**
* JSONP : Implémentation du protocole JSONP de la plateforme Géoportail
*
* @module JSONP
* @private
* @alias Gp.Protocols.JSONP
*/
import Logger from "../Utils/LoggerByDefault";
// cf. https://github.com/sobstel/jsonp.js
var JSONP = {
/**
* Construction d'un identifiant statique basé sur le timest... |
import { MOL_REPRESENTATION, MOL_REPRESENTATION_BUFFER, ELEMENT_COLORS } from './constants';
import {
assignRepresentationArrayToComp,
createRepresentationsArray,
createRepresentationStructure
} from './generatingObjects';
import { Shape, Matrix4, MeshBuffer } from 'ngl';
import { refmesh } from './constants/mesh... |
import React from 'react'
import {Helmet} from 'react-helmet'
import {withPrefix} from 'gatsby'
import styled from 'styled-components'
import Footer from './Footer'
// import './global.scss'
import useSiteMetadata from './SiteMetadata'
import Header from './Header'
const TemplateWrapper = ({children, white, stickyFoo... |
'use strict'
const MINE = '💣';
const MARK = '🚩';
const LIFE = '❤';
const HINT = '❓';
const HINT_CLICKED = '❔';
const SMILEY_FACES = ['😀', '😨', '🤯', '😎'];
const EMPTY = ' ';
const LEFT_CLICK = 0;
const RIGHT_CLICK = 2;
const NUM_OF_HINTS = 3;
var gBoard;
var gLevel;
var gGame;
var gNumOfLives;
var gTimerInter... |
const uuid = require('uuid').v4
const _ = require('lodash')
const { DOMAIN } = require('../config')
let numbertwo = 0
var rcp = require("./rcp")
var ru = require("./rusian")
var coin = require("./coin")
var ud = require("./ud")
var mod = require("./mod")
var soil = require("./rankdb")
let gamekind = 0
let gameop = 0
le... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
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 ... |
import { Mongo } from 'meteor/mongo';
import { Tracker } from 'meteor/tracker';
import { FlowRouter } from 'meteor/kadira:flow-router';
import s from 'underscore.string';
import React, { useCallback, useMemo, useState, useEffect, useRef } from 'react';
import { Box, Icon, TextInput, Callout } from '@rocket.chat/fuselag... |
import React, {useState} from "react";
import styled from "styled-components";
import ReactDOM from "react-dom";
import {Steps, Icon, Button, Alert, Modal, message, LocaleProvider, Input, Spin, Tag} from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
import compareVersions from 'compare-versions'
import axi... |
function roundRect(ctx, x, y, width, height, radius, fill, stroke, alpha) {
if (typeof stroke === 'undefined') {
stroke = true;
}
if (typeof radius === 'undefined') {
radius = 5;
}
if (typeof radius === 'number') {
radius = {tl: radius, tr: radius, br: radius, bl: radius};
... |
// Require electron modules
const {app, BrowserWindow, ipcMain} = require('electron');
const path = require("path");
const fs = require('fs');
const mkdirp = require('mkdirp');
const exec = require('child_process').exec;
var jsonfile = require('jsonfile');
var inject = require('./inject');
const configPath =... |
var pizza =[{name: "Meat",
id: "Meat-data",
sizes:[{name:"small",price:300},{name:"medium",price:600},{name:"large",price:1000}],
crusts:[{name:"crispy",price:60},{name:"stuffed",price:100},{name:"gluten",price:200}],
toppings:[{name:"cheese",price:90},{name:"Mozz... |
'use strict';
var __importStar =
(this && this.__importStar) ||
function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result['default'] = mod;
return result;
};
Objec... |
import Position from '../model/position.js';
import Box from '../model/box.js';
import Weapon from '../model/weapon.js';
import Player from '../model/player.js';
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1) + min); //The maximum ... |
// Générateur de Labyrinthe
// Jeu crée et développé par <NAME>
// Le but du jeu est évidemment de traverser des labyrinthes qui sont génénés aléatoirement grâce
// à un algorithme appelé le Recursive Backtracker (voir sur http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking)
// Instanciation... |
var
kind = require('enyo/kind'),
job = require('enyo/job'),
utils = require('enyo/utils'),
Button = require('enyo/Button'),
Checkbox = require('enyo/Checkbox'),
Img = require('enyo/Image'),
Input = require('enyo/Input'),
Popup = require('enyo/Popup');
var
FittableColumns = require('layout/FittableColumns'),
... |
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var net = require('net');
var _net_socket = net.Socket;
var _net_server = net.Server;
var tls = {
constants: net.constants,
Socket: function(options, connectListener) {
var self = this;
this.established = false;
var s... |
import React, { useState } from "react"
import { graphql, Link } from "gatsby"
import Layout from "../components/layout"
import Seo from "../components/seo"
import { Icon } from "@iconify/react"
import { timeFormatChange, getWorks, skills } from "../tools/tool.js"
import { AnchorLink } from "gatsby-plugin-anchor-links"... |
/**
* Javascript object that models and represents the Atlona AT-UHD-SW-510W 5-input presentation switcher
* https://atlona.com/product/at-uhd-sw-510w/
*/
var Atlona_messageTypes = {
ACTIVE_INPUT_NOTIFICATION:0,
CONNECTION_STATE_NOTIFICATION:1,
VOLUME_STATE_NOTIFICATION:2,
TEMPERATURE_NOTIFICATION:3,
DISPLAY_N... |
/**
* Creates a form on `message`.
* @throws If message, or buttons is empty, or if the user
* doesn't have ADD_REACTIONS privileges in the channel of `message`.
* @param {import('discord.js').Message} message
* @param {string[]} buttons
* @param {import('.').TCallbackMapLike} callbacks
* @returns {im... |
import { BaseException, ReflectiveInjector } from '@angular/core';
import { DEFAULT_OUTLET_NAME } from './constants';
import { EventEmitter, ObservableWrapper, PromiseWrapper } from './facade/async';
import { ListWrapper, StringMapWrapper } from './facade/collection';
import { isBlank, isPresent } from './facade/lang';... |
import React from 'react';
import { Route, Switch, withRouter } from 'react-router-dom';
import CssBaseline from '@material-ui/core/CssBaseline';
import Bar from './layout/Bar/Bar';
import Bottom from './layout/Bottom/Bottom';
import './firebaseInit';
// import * as firebaseui from 'firebaseui';
import ArrangerConten... |
/* global clear_blocks */
/* global formatMoney */
/* global in_array */
/* global new_block */
/* global formatDate */
/* global nDig */
/* global randStr */
/* global bag */
/* global $ */
var ws = {};
var user = {
username: bag.session.username,
name: bag.session.name,
role: bag.session.role
};
var panel... |
/* Chris
Victoria Road : Kerning City Repair Shop (103000006)
Refining NPC:
* Minerals
* Jewels
* Special - Iron Hog's Metal Hoof x 100 into Steel Plate
* Claws
*/
var status = 0;
var selectedType = -1;
var selectedItem = -1;
var item;
var mats;
var matQty;
var cost;
var qty;
var equip;
var last_use; //last i... |
/*
Copyright (c) 2020, <NAME>
All rights reserved.
@description ASIDE.IO Help, About, Updates, Shortcuts code helpers
@date 11.26.2016
*/
var ANIMATION_LENGTH = 350;
var SCROLL_TO_BUFFER = 15;
var SCROLL_TO_LENGTH = 1000;
var OUTLINE_OPEN_LENGTH = 700;
var CORRECTION_OFFSET = 140;
var COLLAPSED_HEADER_HEIGHT = 60... |
const Profiler = require('./profiler')
const OS = require('os')
const path = require('path')
const CompileError = require('./compileerror')
const expect = require('@truffle/expect')
const find_contracts = require('@truffle/contract-sources')
const Config = require('../Config')
// Most basic of the compile commands. Ta... |
import React, {
useMemo, useEffect, useRef, Suspense, useState,
} from 'react';
import ReactDOM from 'react-dom';
import dynamicImportPolyfill from 'dynamic-import-polyfill';
import register from 'higlass-register';
import { ZarrMultivecDataFetcher } from 'higlass-zarr-datafetchers';
import packageJson from '../../..... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by <NAME>
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyrigh... |
var executionId;
$(document).ready(function () {
populateNavBar();
$.ajax('/api/reports').done(createTable);
$("#execution_edit_form").submit(function(){
if(confirm('Update Execution #' + executionId + ' description / comment?')) {
var newDesc = $('#execution_edit_form [name="executionDescription"]').... |
/*!
* Localizer (https://tinywebex.github.io/Localizer/)
* Copyright (c) 2018 rugk and contributors
* MIT License (https://raw.githubusercontent.com/TinyWebEx/Localizer/master/LICENSE.md)
* Modified by Polish Filters Team for using with XUL extensions.
*/
/**
* Translates WebExtension's HTML document by attribut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.