text stringlengths 3.07k 16k |
|---|
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import Asc from './asc.svg'
import Desc from './desc.svg'
// Square
// Board
// Game
// 判断初胜者
function calculateWinner(squares) {
const lines = [
[0, 1, 2],
[3, 4, 5],
[... |
'use strict'
//array that will hold each Picture
Picture.allPictures = [];
//grab image section
var sectionElement = document.getElementById('image-section');
//three previous images array
Picture.previousRandomImages = [];
//total picture votes
var picVotes = [];
//total votes/clicks
var maxClicks = 10;
Picture.c... |
import { RequiredArgumentError } from './exceptions/index.js';
import Modifier from './modifiers/Modifier.js';
import ResultGroup from './results/ResultGroup.js';
import StandardDice from './dice/StandardDice.js';
const modifiersSymbol = Symbol('modifiers');
const expressionsSymbol = Symbol('expressions');
/**
* A `... |
/*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
const determinant = require('laplace-determinant')
const multiplication = require('matrix-multiplication')
const multiDimArrayIndex = require('multidim-array-index')
const staticProps = require('static-props')
const tensorContraction = require('tensor-contraction')
const itemsPool = require('./itemsPool.js')
const toD... |
#!/usr/bin/env node
/* eslint-disable no-console */
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
const chalk = require("chalk");
const meow = require("meow");
const fs = require("fs");
const path = require("path");
const ora = require("ora");
const latestversion = require("latest-v... |
const Command = require("../base/slashCommand");
const factionMap = require("../data/factionMap");
class Faction extends Command {
constructor(Bot) {
super(Bot, {
name: "faction",
aliases: ["factions"],
guildOnly: false,
category: "Star Wars",
per... |
/**
* Copyright 2020 Google Inc. 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... |
/****
Last Modified: 28/04/06 16:23:20
GreyBox - The pop-up window thingie
Copyright <NAME> 2006
AUTHOR
<NAME> (http://amix.dk) - <EMAIL>
VERSION
1.92
LICENSE
LGPL (read more in LGPL.txt)
SITE
http://amix.dk/greybox
****/
var GB_HEADER = null;
var GB_WINDOW = null;
var GB_IFRAME = null;
var GB_OVERLA... |
// this is https://github.com/cryptocoinjs/base-x, adapted for the browser
// here's their copyright notice:
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 base-x contributors Copyright (c) 2014-2018 The Bitcoin Core developers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
*... |
'use strict';
var RE_IDENT = /^((?: {2})*)([^:]+): *([^\n]*)\n*/
, RE_ERROR = /(identify|convert): *([^@]+?)(?:`([^']+)')? @ (.+?)$/m
, RE_FIX_KEY = /^(\S+): /
, RE_CAMEL = /[ -](\w)/ig;
/**
* Parse the results from an `identify -verbose` command.
*
* Converts the indented output of stdout, passed in as `inp... |
const url = require('url')
const express = require('express')
const app = express()
const server = require('http').Server(app)
const idgen = require('./idgen.js')
const dir = 'C:\\Dev\\Klaesh-Proto-Build'
//const dir = 'D:\\Klaesh-Proto-Build-Dev'
app.use(express.static(dir))
const WebSocket = require('ws')
const w... |
import React, { useContext } from 'react'
import { useLocation, useHistory } from 'react-router-dom'
import { Previous, Menu } from 'grommet-icons'
import { Builds, Components, Nodes, Configuration, Incidents, Dashboard, Logs, Audits, Group, Runbook } from 'forge-core'
import { Box, Text, Drop } from 'grommet'
import {... |
/**
* @module client/ge
*/
import HeroControl from './controls/hero-control';
import Cursor3d from './cursor-3d';
import Highlight from './highlight';
import Stats from 'stats.js';
import { GridHelper, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
/**
* Handles working with the browser
* @memberOf clien... |
import React from 'react';
import { ScrollView, View, StatusBar, ActivityIndicator, Text, Platform, NativeModules } from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { FAB } from 'react-native-paper';
import { connect } from 'react-redux';
import updateNavigation from '../Navigation... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { Form, Button, Tag, Input, DatePicker, Table, Upload } from 'antd';
import router from 'umi/router';
import { uploadFileUrl, baseurl } from '@/config';
import path from 'path';
import moment from 'moment';
import styles from ... |
import XRegExp from "xregexp";
import { seq, toSeq, _isSeq, _first, subsequence, remove, head, tail, count, reverse, insertBefore, string } from "xvtype";
import { element, attribute, text, _isNode } from "xvnode";
function cache(depth){
var c = function(){
this.depth = depth || 1;
this.memo = {};
};
c.protot... |
'use strict';
var path = require('path'),
fs = require('fs'),
shelljs = require('shelljs'),
Q = require('q'),
inquirer = require('inquirer'),
TaskBase = require('./../task-base'),
Package = cb_require('utils/package'),
cordova = cb_require('utils/cordova'),
CloudBridgeProject = cb_require('project/project');
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ART, Animated } from 'react-native';
import Wedge from './Wedge';
const { Surface, Group } = ART;
const AnimatedWedge = Animated.createAnimatedComponent(Wedge);
const circumference = 360;
export default class PieChart extends Compo... |
var tipbox;
var tipboxToolbar;
var tipbox_large;
var tipbox_largeToolbar;
var stickit;
function initTooBars() {
//have to re-init every time, cuz of something weird in IE?
//tipboxToolbar = $('tipboxToolbar');
tipboxToolbar = new Element('div',{id: 'tipboxToolbar'});
tipboxToolbar.setStyle({
fontSize: '100%',
... |
function AqbPTSMain(oOptions) {
this._sBaseURL = oOptions.sBaseURL;
this._iMigratePerOperation = oOptions.iMigratePerOperation;
}
AqbPTSMain.prototype.toggleTypeStatus = function (iType) {
var $this = this;
$.post($this._sBaseURL + 'action_toggle_status/' + iType, function() {
$('#types_list').load($this._sBase... |
import React, { PropTypes } from 'react'
import ReactTooltip from 'react-tooltip'
import LabeledDropdownList from 'components/common/LabeledDropdownList'
import { userPoolId } from 'utils/settings'
import { regions } from 'utils/status'
import classes from './CloudWatchMetricsSelector.scss'
const statisticsList = [
... |
//WeeksViewSection Component Constructor
function WeeksViewSection(monthYear, displayValueUtil) {
var CC = require('ui/calendar/CalendarConstants').CalendarConstants;
var UIC = require('ui/common/UIConstants').UIConstants;
var weeksViewSection = Ti.UI.createTableViewSection();
var DAYS_OF_THE_WEEK = new Array("... |
var xtend = require('xtend');
var jwt = require('jsonwebtoken');
var UnauthorizedError = require('./UnauthorizedError');
function noQsMethod(options) {
var defaults = { required: true };
options = xtend(defaults, options);
return function (socket) {
var server = this.server || socket.server;
if (!serve... |
import React, {Component} from "react";
import {createCards, deleteCards, getCards} from "./api/api_cards";
import Card from './Card'
import CardForm from './CardForm'
import {createDecks, getDecks, listDeck} from "./api/api_decks";
import DeckForm from "./DeckForm";
import Deck from "./Deck";
import DeckCard from "./D... |
var SW,SH,myIScroll,
isTouchPad = (/hp-tablet/gi).test(navigator.appVersion),hasTouch = 'ontouchstart' in window && !isTouchPad,
START_EV = hasTouch ? 'touchstart' : 'mousedown',
MOVE_EV = hasTouch ? 'touchmove' : 'mousemove',
END_EV = hasTouch ? 'touchend' : 'mouseup',
CANCEL_EV = hasTouch ? 'touchcancel' : 'mous... |
'use strict';
let net = require('net');
// This file contains the event handlers for the mpv module
// These function should not be called on their own, they are just bound
// to the respective events when the module is initialized
//
// Since they need access to some member variables they have to included to
// the ... |
let handler = async (m, { conn, args, usedPrefix }) => {
let type = (args[0] || '').toLowerCase()
let rubah = global.db.data.users[m.sender].rubah
let kuda = global.db.data.users[m.sender].kuda
let kucing = global.db.data.users[m.sender].kucing
switch (type) {
case 'rubah':
if (r... |
//component used for signup and login forms because there were a lot of similarites between the two.
//Most elements are conditionally rendered
import React, { useState } from "react";
import { Link, useHistory } from "react-router-dom";
import { useDispatch, useSelector } from "react-redux";
import { login, signup }... |
import React from "react";
import "@elastic/eui/dist/eui_theme_light.css";
import AppSearchAPIConnector from "@elastic/search-ui-app-search-connector";
import moment from "moment";
import {
ErrorBoundary,
Facet,
SearchProvider,
SearchBox,
Results,
PagingInfo,
ResultsPerPage,
Paging,
Sorting,
With... |
import { mapPropertyErrors } from 'src/app/service/map-errors.service';
import template from './sw-settings-shipping-detail.html.twig';
import './sw-settings-shipping-detail.scss';
import swShippingDetailState from './state';
const { Component, Mixin, Context } = Shopware;
const { mapState } = Shopware.Component.getCo... |
/**
*
* UserNotificationForm
*
*/
import React, { memo, useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { Input, message... |
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/)
// Released under MIT License: https://opensource.org/licenses/MIT
/* eslint-env browser */
/*
Convert models to GLB with:
node_modules\.bin\gltf-pipeline.cmd -t -i src/client/models/box.gltf -o src/client/models/box.glb
// The -t tells it not to emb... |
#!/usr/bin/env node
'use strict';
const updateNotifier = require('update-notifier');
const subarg = require('subarg');
const sudoBlock = require('sudo-block');
const logSymbols = require('log-symbols');
const arrayUniq = require('array-uniq');
const arrayDiffer = require('array-differ');
const arrify = require('arrify... |
// Dependencies
const fs = require('fs')
const https = require('https')
const { witLanguages } = require('./language/languageConstants')
const cloud = require('./cloud')
const ffmpeg = require('fluent-ffmpeg')
const temp = require('temp')
const tryDeletingFile = require('./deleteFile')
/**
* Function that converts ur... |
import React, { Component } from 'react';
import Dropzone from 'react-dropzone';
import Rodal from 'rodal';
import { t } from 'ttag';
import { getLoggedInErrorMsg } from '../../junk/ConstMessages';
import './PinTools.scss';
import {
convertToNewFormat,
savePinsToSessionStorage,
savePinsToServer,
isPinValid,
... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const {shell} = require('electron')
const { app } = require ('electron').remote;
const electron = require('electron');
const atPath = app.getPath ('... |
import {
Button,
Card,
CardBody,
Container,
FormGroup,
Grid,
Heading,
HStack,
ListGroup,
ListGroupHeader,
Slider,
Spacer,
Surface,
Text,
TextInput,
VStack,
} from '@wp-g2/components';
import { Schema } from '@wp-g2/protokit';
import { css, styled, ui } from '@wp-g2/styles';
import React from 'react';
im... |
const debug = require('@tryghost/debug')('routing');
const _ = require('lodash');
const StaticRoutesRouter = require('./StaticRoutesRouter');
const StaticPagesRouter = require('./StaticPagesRouter');
const CollectionRouter = require('./CollectionRouter');
const TaxonomyRouter = require('./TaxonomyRouter');
const Previe... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
process.env['APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL'] = t... |
import fs from 'fs-extra'
import chalk from 'chalk'
import path from 'path'
import git from 'git-promise'
import { execSync } from 'child_process'
import inquirer from 'inquirer'
import autoCompletePrompt from 'inquirer-autocomplete-prompt'
import matchSorter from 'match-sorter'
import downloadGitRepo from 'download-gi... |
/**
* App Redux Action Types
*/
export const COLLAPSED_SIDEBAR = 'COLLAPSED_SIDEBAR';
export const DARK_MODE = 'DARK_MODE';
export const BOXED_LAYOUT = 'BOXED_LAYOUT';
export const RTL_LAYOUT = 'RTL_LAYOUT';
export const MINI_SIDEBAR = 'MINI_SIDEBAR';
export const SEARCH_FORM_ENABLE = 'SEARCH_FORM_ENABLE';
export con... |
// *********************************************************************************
// File: fsRSSDelete.js
// Notes: You must run this file with cscript.exe (i.e. not wscript.exe)
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// ************************************************************... |
'use strict';
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function ownKeys(object, enumerableOnly) {
var ... |
import { CreativeLinear } from '../creative/creative_linear';
import { Icon } from '../icon';
import { MediaFile } from '../media_file';
import { parserUtils } from './parser_utils';
/**
* This module provides methods to parse a VAST Linear Element.
*/
/**
* Parses a Linear element.
* @param {Object} creativeEle... |
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a... |
import * as tslib_1 from "tslib";
import { Gain } from "../../core/context/Gain";
import { connectSeries, ToneAudioNode } from "../../core/context/ToneAudioNode";
import { optionsFromArguments } from "../../core/util/Defaults";
import { readOnly, writable } from "../../core/util/Interface";
import { isNumber } from "..... |
let PanelWindow;
const pageRefs = [];
chrome.devtools.network.onRequestFinished.addListener(requestHandler);
function requestHandler(request) {
if (!PanelWindow) {
return;
}
try {
const headers = request.response.headers;
// Check if response header contains X-Server-Log
co... |
import React from 'react';
import {
Container,
IntroContainer,
Title,
SecondTitle,
Section,
SectionOne,
SectionThree,
SectionFour,
SectionThreeContainer,
SectionThreeImg,
SectionFourContainer,
SectionFourImg,
SectionFourDiagramIconContainer,
SectionThreeDiagramIconContainer,
BottomSection,... |
/* **********************************************************
** BEGIN klasse Auto **
********************************************************** */
class Auto {
constructor(g) {
this.schaal = 0.75
this.x = g * (1 - this.schaal)/2;
this.y = g * (1 - this.schaa... |
const path = require('path');
const chalk = require('chalk');
const fs = require('fs');
const deepExtend = require('deep-extend');
const jsonFormat = require('json-format');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlReplaceWebpackPlugin = require('html-repla... |
'use strict';
const os = require('os');
const util = require('util');
const chalk = require('chalk');
const utility = require('utility');
const iconv = require('iconv-lite');
const levels = require('./level');
const circularJSON = require('circular-json-for-egg');
const hostname = os.hostname();
const duartionRegexp ... |
import LedgerNode from '@ledgerhq/hw-transport-node-hid';
import { tx, wallet, u } from '@cityofzion/neon-js';
const VALID_STATUS = 0x9000;
const MSG_TOO_BIG = 0x6d08;
const APP_CLOSED = 0x6e00;
const TX_DENIED = 0x6985;
const TX_PARSE_ERR = 0x6d07;
function evalTransportError(err) {
switch (err.statusCode) {
c... |
/*
* 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.
*/
var btnFinish = '';
$(document).ready(function(){
$(".select2").select2({ "placeholder": "Pilih.." });
$('#data2_5, #data6_13... |
'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 React from 'react'
import styled from 'styled-components'
import backgroundTexture from '../images/sandpaper.png'
import { XelectricKeyframeNeg, electricPullKeyframe } from '../animations/keyframes'
export const StyledBrickBox = styled.div`
grid-column: span 7 / 13;
grid-row: 2 / 3;
height: 42vh;
backg... |
import wrapRegion from "./region";
import { getFixedGeometry } from "./geometryDecode";
/**
* recombination
* @param regionsData
* @param query
* @returns {*}
*/
function recombineRegion(regionsData, query) {
var regions = regionsData.regions,
inpaths = regionsData.paths,
passRegions = {},
paths = []... |
function compareAreaData(obj1, obj2) {
return obj1.time === obj2.time && obj1.value === obj2.value;
}
function compareLineData(obj1, obj2) {
return obj1.time === obj2.time
&& obj1.value === obj2.value
&& obj1.color === obj2.color;
}
function compareCandlestickData(obj1, obj2) {
return obj1.time === obj2.time
... |
/*
* Copyright 2018 Google Inc. 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 appli... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
var express = require('express');
const router = express.Router();
var multer = require('multer');
var storage = multer.memoryStorage();
var upload = multer({ storage: storage });
fs = require('fs');
const FieldName = require('../../models/FieldName');
const ColliPack = require('../../models/ColliPack');
var Excel = re... |
// Copyright (c) 2016 <NAME> (<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, copy, modify, merge, publi... |
/*
* Kvasir Javascript functions
*/
/*
# extends jQuery to make GetUrlVar(s) which will pull the GET variables from window.location.href
#
# Use: $.getUrlVars(); // gets all variables and returns an array
# $.getUrlVar('var') // returns only one variable name
#
*/
$.extend({
getUrlVa... |
import React, { useState } from 'react';
import {
Button,
Text,
View,
SafeAreaView,
ActivityIndicator,
StyleSheet,
} from 'react-native';
//import { ApolloProvider, useQuery, gql } from '@apollo/client';
import { Picker } from '@react-native-picker/picker';
import { NavigationContainer } from '@react-naviga... |
/**
* @license Copyright 2019 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
var historyList = JSON.parse(localStorage.getItem("cityHistory")) || []
renderHistory();
searchWeather(historyList[historyList.length - 1])
function searchWeather(citySearch) {
var queryURL = "https://api.openweathermap.org/data/2.5/weather?q=" + citySearch + "&appid=a1d5f0111e093d1e307cd296b74d63f2";
$.ajax(... |
/**
* Scalar
* Copyright 2013 The Alliance for Networking Visual Culture.
* http://scalar.usc.edu/scalar
* <EMAIL>
*
* Licensed under the Educational Community 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 ... |
/* eslint-disable camelcase */
import client from 'part:@sanity/base/client'
import {uuid as generateUuid} from '@sanity/uuid'
import {isString} from 'lodash'
import {throwError, of, from, concat, defer} from 'rxjs'
import {mergeMap, catchError, mergeMapTo, switchMap} from 'rxjs/operators'
import studioClient from 'par... |
const loggerNamespace = 'dx-service:bots:SellLiquidityBot'
const AuctionLogger = require('../helpers/AuctionLogger')
const Bot = require('./Bot')
const Logger = require('../helpers/Logger')
const assert = require('assert')
const logger = new Logger(loggerNamespace)
const auctionLogger = new AuctionLogger(loggerNamespa... |
"use strict";
var _ = require("lodash");
var async = require('async');
var defaults = {
relationshipPathName: "relationship",
triggerMiddleware: false
};
var operationMap = {
func: {
add: '$set',
remove: '$unset'
},
obj: {
add: '$addToSet',
remove: '$pull'
}
};... |
function fill_meta(ref_key)
{
var send_to = document.getElementById('sl_'+ref_key).options[document.getElementById('sl_'+ref_key).selectedIndex].value;
document.getElementById('wr_'+send_to).value = document.getElementById('pre_val_'+ref_key).innerHTML;
}
function photo_metadata_submit()
{
document.getElementB... |
function showVariantDetail (row, tabName) {
if (row == undefined) {
return;
}
var detailDiv = document.getElementById('detaildiv_' + tabName);
if (! detailDiv) {
return;
}
var outerDiv = detailDiv.getElementsByClassName('detailcontainerdiv')[0];
$outerDiv = $(outerDiv);
// Remembers widget layout.
var w... |
//Required modules
const ipfsAPI = require('ipfs-api');
const express = require('express');
const fs = require('fs');
const nem = require("nem-sdk").default;
const nodemailer = require('nodemailer');
const path = require("path");
//app.use(express.urlencoded())
// init app
const app = express();
//puerto de aplicacio... |
import copyToClipboard from 'copy-to-clipboard'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'
import { withRouteData, withRouter } from 'react-static'
import { Grid, Visibility } from 'semantic-ui-react'
import { examplePathToHash, getFormattedHash, repoURL, scr... |
import PropTypes from 'prop-types';
const optionShape = PropTypes.shape({
id: PropTypes.number.isRequired,
option: PropTypes.string.isRequired,
correct: PropTypes.bool,
});
export const testCaseShape = PropTypes.shape({
identifier: PropTypes.string.isRequired,
expression: PropTypes.string.isRequired,
expe... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _toConsumableArray2 =... |
/*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
var _ = require('underscore');
var x11 = require('../../lib');
var Exposure = x11.eventMask.Exposure;
var PointerMotion = x11.eventMask.PointerMotion;
var ButtonPress = x11.eventMask.ButtonPress;
var draw;
var useConvo3 = true;
x11.createClient({ debug: true}, function(err, display) {
var X = display.client;
va... |
$(document).ready(function() {
var dom = document.getElementById("transactions");
var myChart = echarts.init(dom);
var app = {};
option = null;
app.title = 'Hellaplus';
option = {
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
... |
/*This software is released under the MIT License
Copyright (C) 2015 <NAME> http://www.csaladen.es
This website accompanies the research paper entitled
A Net Energy-based Target Setting for a Climate-constrained Energy Transition
by <NAME>, <NAME> & <NAME>
*/
//set global database path
//var datapath = "https://d... |
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var uglify = require('gulp-uglify');
var del = r... |
/* eslint-disable linebreak-style */
// ======================================================================
// Opening the Turing Lock
// Advent of Code 2015 Day 23 -- <NAME> -- https://adventofcode.com
//
// JavaScript implementation by Dr. <NAME> III
// ===========================================================... |
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... |
import GameField from './GameField.js';
import Snake from './Snake.js';
import SnakeBody from './SnakeBody.js';
import Food from './Food.js';
import Stone from './Stone.js';
import * as Helper from './helper.js';
// This array contains all objects on the field
var gameObjects = [],
gameField = new GameField(document.... |
import React from 'react';
import * as R from 'ramda';
import { Box, Flex } from 'rebass';
import Select from 'react-select/async';
import { navigate } from '@reach/router';
import { NotificationManager } from 'react-notifications';
import PropTypes from 'prop-types';
import getPhoneConfig from '../../../../../../serv... |
/* eslint-disable no-undef */
import { html, css, LitElement } from 'https://cdn.klimapartner.net/modules/lit-element/lit-element.js'
import { unsafeHTML } from 'https://cdn.klimapartner.net/modules/lit-html/directives/unsafe-html.js'
import { RadioERP1, ByteArray } from '../../packages/enocean.js'
import './eojs-eep-... |
import React, {useState,useEffect} from 'react';
import {Link,useHistory} from 'react-router-dom';
const TeacherPage = () => {
const history = useHistory();
const [data, setData]=useState([]);
const [data2, setData2]=useState([]);
useEffect(()=>{
var requestOptions={
meth... |
/* Copyright <NAME> 2020 */
"use strict";
const { Switch } = require("./switch");
const { SchemaError } = require("./error");
const types = require("./types");
const { cloneDeep } = require("lodash");
/*
* Initialize the schema - must validate the schema elements
*/
module.exports.Schema = function Schema(options, ... |
import React, { Component } from 'react';
import { Text, View, FlatList, TouchableOpacity, StyleSheet, SafeAreaView, AsyncStorage, ImageBackground, Dimensions } from 'react-native';
import { SearchBar, List, ListItem, FormInput, FormLabel, Avatar, FormValidationMessage, Button } from "react-native-elements";
import {C... |
// Copyright 2014 Traceur 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 applicable law or agreed ... |
const hideForms = e => {
const modals = document.querySelectorAll('.modal');
const forms = document.querySelectorAll('.form');
modals.forEach(el => {
if (e.target === el) {
const elem = el;
elem.style.visibility = 'hidden';
forms.forEach(fr => {
const form = fr;
form.style.tr... |
/**
* @typedef {object} CanvasContainer
* Wrapper around canvas element with reference to rendering context and size.
*
* @prop {HTMLCanvasElement} canvas The referenced canvas element.
* @prop {CanvasRenderingContext2D} ctx Rendering context for `canvas`.
* @prop {number} size Width and height of the square `can... |
import Module, {executeBeforeDoNotUseOrYouWillBeFired} from 'parser/core/Module'
import {isDefined} from 'utilities'
import {AdditionalEvents} from './AdditionalEvents'
import {SimpleRow, StatusItem} from './Timeline'
// Are other jobs going to need to add to this?
const RAID_BUFFS = [
{key: 'THE_BALANCE', group: 'ar... |
import { serviceWorker, waitMs } from './index';
const CROSSFADE_DURATION = 2;
/** @type {AudioContext} */
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
/**
* Responsible for getting and controlling the playback of a song
* from local database
* @class
* @extends EventTarget
*/
exp... |
/* Copyright (C) 2020 <NAME>.
Licensed under the GPL-3.0 License;
you may not use this file except in compliance with the License.
WhatsAsena - Yusuf Usta
*/
const fs = require("fs");
const path = require("path");
const { handleMessages } = require("./Utilis/msg");
const chalk = require("chalk");
const { DataTypes }... |
import { Type } from '../constants.js'
import { createNode } from '../doc/createNode.js'
import { warn } from '../log.js'
import { addComment } from '../stringify/addComment.js'
import { Collection } from './Collection.js'
import { Node } from './Node.js'
import { Scalar } from './Scalar.js'
import { YAMLSeq } from './... |
'use strict';
//Get the users name so we can greet them greet the user
let username = prompt('What is your name?');
alert('Nice to meet you '+ username+ ' , I\'m Jae and this is a site About Me!');
let score = 0;
// Question 1
function questionOne(){
let answerOne = prompt('I live in New York City. Have you ever v... |
import cn from 'classnames'
import React from 'react'
import PropTypes from 'prop-types'
import Listbox from 'react-widgets/lib/Listbox'
import BaseVirtualList from 'react-list'
import ListOption from 'react-widgets/lib/ListOption'
import ListOptionGroup from 'react-widgets/lib/ListOptionGroup'
import { groupBySortedKe... |
import React, { PropTypes } from 'react';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import wehelpjs from 'wehelpjs';
import { Form, Icon, Input, Button } from 'antd';
import { accountExist } from '../../utils/validator';
import './Sign.less';
import { Link } from 'react-router';
class Sign ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.