text stringlengths 3.22k 29.5k |
|---|
import WebSocket from 'ws';
import readline from 'readline';
import { Buffer } from 'buffer';
import { Client } from '@replit/crosis';
import { compile } from 'gitignore-parser';
import * as utils from './utils.js';
/* eslint-disable no-control-regex */
function addslashes(str) {
return (str + '').replace(/[\\"']/g... |
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
const mongoose = require('mongoose');
const chalk = require('chalk');
module.exports = {
config: {
name: "trade",
aliases: ["t"],
description: "Trade a character.",
category: "Inventory",
... |
// Variable for repeat function
var repeatTarget = null;
// HELPER FUNCTION
function setWaitingWarning(tr) {
tr.addClass("table-warning");
tr.attr("title", "Questa prenotazione verrà messa in attesa di approvazione.");
var select = $("select[name*='status']", tr);
if (select.val() == 0) {
selec... |
import assert from "assert";
import { wrap } from "optimism";
import { Profile } from "../tool-env/profile.js";
import { watch } from "./safe-watcher.js";
import { sha1 } from "./watch.js";
import {
pathSep,
pathDirname,
pathIsAbsolute,
pathJoin,
statOrNull,
lstat,
readFile,
readdir,
dependOnPath,
} f... |
/*jshint globalstrict:true, node:true, trailing:true, unused:true */
'use strict';
var binding = require('bindings')('LDAPCnx');
var LDAPError = require('./LDAPError');
var assert = require('assert');
var util = require('util');
var _ = require('lodash');
function arg(val, def) {
if (val !== undefined) {
... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {
Button,
Checkbox,
Divider,
ExpansionPanel,
ExpansionPanelActions,
ExpansionPanelDetails,
ExpansionPanelSummary,
FormControl,
FormGroup,
FormLabel,
IconButton,
InputLabel,
MenuItem,
Se... |
// Copyright 2021-2022, University of Colorado Boulder
/**
* Transpiles *.ts and copies all *.js files to chipper/dist. Does not do type checking. Filters based on
* perennial-alias/active-repos and subsets of directories within repos (such as js/, images/, and sounds/)
*
* See transpile.js for the CLI usage
*
*... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import {
Typography,
withStyles,
IconButton,
Menu,
MenuItem,
ListItemIcon,
ListItemText
} from "@material-ui/core";
import Grid from "@material-ui/core/Grid";
import MoreHorizIcon from "@material-ui/icons/MoreHoriz";
import Dashbo... |
import React, { Component } from 'react';
import {
Card,
Row,
Col,
Form,
Breadcrumb,
Drawer,
} from 'antd';
import { connect } from 'dva';
import { ableConvert } from '@/utils/convert';
import business from '../../dev/business.less';
import product from './Index.less';
import JewelryTable from '../../compo... |
import { getItems, getRealms, deleteItem, updateItem } from './api.js';
import { cleanxss } from './utils.js';
let allRealms = [];
let currentRealm = 0;
let currentRealmItems = [];
let selected = [];
let moving = false;
window.onload = async () => {
// Get realms from API
allRealms = await getRealms();
if (a... |
// utilise Moralis
const Moralis = require("moralis/node");
// canvas for image compile
const { createCanvas, loadImage } = require("canvas");
// import config
const {
layers,
width,
height,
description,
baseImageUri,
editionSize,
startEditionFrom,
rarityWeights,
} = require("./input/config.js");
const ... |
"use strict";
var _regenerator = require("babel-runtime/regenerator");
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator");
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _promise = require("babel-runtime/cor... |
/* eslint-disable no-unused-vars */
import './SysTable.scss';
import { Pagination, PaginationVariant } from '@patternfly/react-core/dist/esm/components/Pagination/index';
import React, { useEffect, useReducer } from 'react';
import {
SortByDirection,
Table,
TableBody,
TableHeader,
cellWidth,
so... |
import Parameters from './Parameters';
import UniqueList from './util/UniqueList';
import {array, error, id, isArray} from 'vega-util';
let OP_ID = 0;
const PULSE = 'pulse',
NO_PARAMS = new Parameters();
// Boolean Flags
const SKIP = 1,
MODIFIED = 2;
/**
* An Operator is a processing node in a data... |
'use strict';
// ------------ VARIABLES (DATA) ------------
// all unique ingredients list
var allIngredients = [];
// all currently user selected ingredients
var selectedIngredients = {};
// ------------ FUNCTIONS (User related) ------------
function User(userName, password, userIngredients, userRecipes) {
thi... |
/* eslint no-constant-condition:0 */
import ParseNode from "./ParseNode.js";
import ParseError from "./ParseError.js";
/**
* Parse the body of the environment, with rows delimited by \\ and
* columns delimited by &, and create a nested list in row-major order
* with one group per cell. If given an optional argument... |
/**
* Created by Alex on 29/10/2014.
*/
import Vector3 from "../core/geom/Vector3";
import Transform from './ecs/components/Transform';
import Hammer from 'Hammer';
import { Euler as ThreeEuler, Vector2 as ThreeVector2, Vector3 as ThreeVector3 } from 'three';
const keyboardRotationSpeed = 1.2;
// pass in distance i... |
import {tupleid} from './Tuple';
import {isArray, visitArray} from 'vega-util';
/**
* Sentinel value indicating pulse propagation should stop.
*/
export var StopPropagation = {};
// Pulse visit type flags
var ADD = (1 << 0),
REM = (1 << 1),
MOD = (1 << 2),
ADD_REM = ADD | REM,
AD... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { useRouter } from 'next/router';
import { motion } from 'framer-motion';
import classnames from 'classnames';
import { Category, COUNTRIES_SPECIAL_VALUES, EmbedTypes } from 'types';
// utils
import { Mobile, MediaContextProvider, De... |
import {
concat,
either
} from '../../lib/regex.js';
export const keywordWrapper = keyword => concat(
/\b/,
keyword,
/\w$/.test(keyword) ? /\b/ : /\B/
);
// Keywords that require a leading dot.
export const dotKeywords = [
'Protocol', // contextual
'Type' // contextual
].map(keywordWrapper);
// Keyword... |
// Library imports
import React, { useState, useEffect, useRef, useMemo } from "react"
import styled from "styled-components"
// Component imports
import { ButtonPrimary } from "./SharedStyledComponents"
import Translation from "./Translation"
import Icon from "./Icon"
// SVG imports
import FeedbackGlyph from "../asset... |
// To learn how to use this script, refer to the documentation:
// https://developers.google.com/apps-script/samples/automations/offsite-activity-signup
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may... |
const Two = require('two.js');
const _ = require('lodash');
const _fp = require('lodash/fp');
const two = new Two();
module.exports = (THREE) => {
var ThreeHelpers = {};
ThreeHelpers.drawShapes = function (jq_selection, fillOptions, lineOptions) {
/*
* Create a three.js group object for elem... |
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
_Object$defineProperty(exports, "__esModule", {
value: true
});
exports.replaceParams = exports.validatePath = ... |
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import { connect } from "react-redux";
import * as firebase from "firebase";
const db = firebase.database();
import Timer from "./utils";
// Material Components
import Divider from "material-ui/Divider";
import RaisedButton from "m... |
const log = require("./log");
const properties = require("properties");
const fs = require("fs");
const { workflowProps, PROPS_FILES_CONFIG } = require("./config");
/**
* Use IFFE to enscapsulate parameters
*/
module.exports = (function () {
// Read in parameter property files
let files = [];
try {
files =... |
import {tableContainerId} from '../../../docs/dom_constants.js';
import {convertEeObjectToPromise} from '../../../docs/ee_promise_cache.js';
import {currentFeatures} from '../../../docs/highlight_features';
import * as loading from '../../../docs/loading.js';
import {geoidTag, scoreTag} from '../../../docs/property_nam... |
const St = imports.gi.St;
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const Slider = imports.ui.slider;
const Soup = imports.gi.Soup;
const Lang = imports.lang;
const ExtensionUtils = import... |
// Use requires to ensure order of imports is maintained
const { displayedEvent, exitEvent, getCssFileName, launchEvent, livesync, lowMemoryEvent, notify, on, orientationChanged, orientationChangedEvent, resumeEvent, setApplication, suspendEvent, systemAppearanceChanged, systemAppearanceChangedEvent } = require('./appl... |
import React, { useState, useCallback, useEffect } from 'react';
import {
View,
Text,
StyleSheet,
FlatList,
Button,
Alert,
ActivityIndicator,
TouchableHighlight,
} from 'react-native';
import { useSelector, useDispatch } from 'react-redux';
import * as userActions from '../../store/actions/users.actions... |
/*
* Copyright 2017 Joyent, Inc., All rights reserved.
*
* 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, mod... |
import {connect} from 'react-redux';
import OrderPage from '../../../components/OrderPage';
import {Action} from '../../../action-reducer/action';
import {getPathValue} from '../../../action-reducer/helper';
import helper, {fetchJson, postOption, showError, showSuccessMsg, getJsonResult} from '../../../common/common';
... |
'use strict';
var assert = require('simple-assert');
var pathval = require('..');
describe('hasProperty', function () {
it('should handle array index', function () {
var arr = [ 1, 2, 'cheeseburger' ];
assert(pathval.hasProperty(arr, 1) === true);
assert(pathval.hasProperty(arr, 3) === false);
});
i... |
Ext.namespace('note_list_space');
var ds_note_list;
var note_gridPn;
note_list_space.note_list = function() {
var objForm = getNotFormObj();
function getNotFormObj() {
var objForms = document.getElementsByTagName('form');
var objForm ;
for(var ii=0; ii<objForms.length; ii++) {
if(objForms[ii].name == "f... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TouchableOpacity,
ActivityIndicator,
Text,
Platform,
FlatList,
ListView,
TextInput,
Image,
View
} from 'react-native';
import Dimensions from 'Dimensions';
const { width, height } = Dimensions.get('window');
import moment from 'momen... |
var feed_LikedBy = new Array();
var feedObj;
var feed = null;
var stop = false;
loadFeed = () => {
startFeed()
if ($("undernav") != null) {
$("undernav").style.display = "none";
}
$("content").onscroll = function() {
var offset = this.scrollTop;
var height = this.scrollHeight;
if ((offset+4500) >= he... |
'use strict';
var express = require('express');
var router = express.Router();
var conf = require('../lib/config');
var cors = require('../lib/cors');
var base58 = require('../lib/base58');
var oauthshim = require('oauth-shim');
var requireController = function (name) {
return require('../controllers/' + name);
};
... |
import React, { useState, useEffect, useContext, useCallback } from 'react'
import { useHistory } from 'react-router-dom'
import { useQuery, useMutation } from 'react-apollo'
import { BUILDS_Q, CREATE_BUILD, BUILD_SUB } from './graphql/builds'
import { Button, Reload, Check, Deploy } from 'forge-core'
import { Box, Tex... |
import { useState } from "react";
import Link from "next/link";
import Router from "next/router";
import Header from "../components/header.js";
import Footer from "../components/footer.js";
import HeadMetadata from "../components/headMetadata.js";
import getEditItemPageData from "../apix/items/getEditItemPageData.js"... |
import React from 'react'
import styled from 'styled-components'
import { SecureGrid, ResponsibleGrid } from './_icon-grid'
import device from 'themes/device'
import { SEO, SectionContainer, Flex, Container } from 'components/containers'
import Layout from 'components/layout/layout'
import { LinkButton } from 'componen... |
/******************************************************************************
Project: QPMS: Smartalpha
Author: <NAME>
Email: <EMAIL>
Website: https://www.smartalphatrade.com
For testing:
------------
global_qpms_master_id = '1GaluY25euzzojwkKw4-5cQmiJByWqMoPk0UDXryGuWw';
globa... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Component, Fragment } from 'react';
import PropTypes from 'pr... |
'use strict';
var compareDesc = require('../compare_desc/index.js');
var parse = require('../parse/index.js');
var differenceInSeconds = require('../difference_in_seconds/index.js');
var differenceInMonths = require('../difference_in_months/index.js');
var enLocale = require('../locale/en/index.js');
var MINUTES_IN_D... |
/*File: lexer.js, HL model lexer */
/*jshint esversion: 6 */
function isIDStart(ch) {
return (ch === "_") || (ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z");
}
function isIDchar(ch) {
return (ch === "_") || (ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z") ||
((ch >= "0") && (ch <= "9"));
... |
import LineString from './LineString';
import CoordinateList from './CoordinateList';
import Geometry from './Geometry';
import hasInterface from '../../../../hasInterface';
import Coordinate from './Coordinate';
import Point from './Point';
import Double from '../../../../java/lang/Double';
import extend from '../../.... |
import {
compose, prop, map, curry, assoc, eqProps, propEq, propSatisfies, over, lensProp, union, gte, curryN,
replace, not, flip, contains, merge, toUpper, adjust, join, props, ifElse, split, filter, equals, nthArg, identity, concat, __,
} from 'ramda'
import Twitter from 'twit'
import moment from 'moment'
import... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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... |
"use Strict";
const leftBtn = document.getElementById("left-btn");
const rightBtn = document.getElementById("right-btn");
const maxPage = document.getElementById("max-page");
const page = document.getElementById("page");
const popularEvents = document.getElementById("popular-events");
const addNewEventBtn = document.g... |
'use strict'
function _interopDefault(e) {
return e && 'object' == typeof e && 'default' in e ? e.default : e
}
var React = require('react'),
React__default = _interopDefault(React),
PropTypes = _interopDefault(require('prop-types')),
invariant = _interopDefault(require('invariant')),
sizeMe = _interopDefault... |
var mode="exploration";
var codetraceColor = 'white';
//codetrace highlight
function highlightLine(lineNumbers) { /* lineNumbers can be an array or a single number. Yay overloading! */
$('#codetrace p').css('background-color', colourTheThird).css('color',codetraceColor);
if (lineNumbers instanceof Array) {
for(va... |
/* eslint-env browser */
import SurveyViewer from "../js/views/SurveyViewer.js";
import Syntax from "../js/tasks/Syntax.js";
import SyntaxMark from "../js/controller/syntax-highlighting/SyntaxMark.js";
import SyntaxEvaluation from "../js/controller/syntax-highlighting/SyntaxEvaluation.js";
import SyntaxDiscussion from ... |
const m = require('makerjs')
const a = require('./assert')
const prep = require('./prepare')
const anchor_lib = require('./anchor')
const kicad_prefix = `
(kicad_pcb (version 20171130) (host pcbnew 5.1.6)
(page A3)
(title_block
(title KEYBOARD_NAME_HERE)
(rev VERSION_HERE)
(company YOUR_NAME_HERE)
)... |
'use strict';
import '../main.css';
import StatCache from './StatCache';
import Primitive from './Primitive';
import Player from './Player';
import Shaders from './shaders';
import Camera from './Camera';
import {
formatTime,
storeScore,
getScore,
getAllComponents,
repeat,
random,
calculateBB,
el
} fro... |
/*
* grunt-rpm
*
* Copyright (c) 2013 <NAME>
* Licensed under the MIT license.
*/
'use strict';
var path = require('path');
var _fs = require('fs');
var getDirName = require("path").dirname;
var fs = require('fs.extra');
var spec = require('./lib/default-spec-writer');
var tmpFolder = 'tmp';
var specFolder = 'S... |
/* global exports, require */
'use strict';
var utils = require('./utils');
// Optional partner provided preference files. They will be added
// after the ones on the extenedPrefFiles and they will be read
// from the GAIA_DISTRIBUTION_DIR directory
var PARTNER_PREF_FILES = ['partner-prefs.js'];
var PreferencesBuild... |
import browser from "./browser.js";
import dom from "./domObjects.js";
import * as domUtils from "./domUtils.js";
import hypot from "./hypot.js";
import is from "./is.js";
import pointerExtend from "./pointerExtend.js";
export function copyCoords(dest, src) {
dest.page = dest.page || {};
dest.page.x = src.page.x;
... |
'use strict';
const debug = require('debug');
const serve = debug('idx:vcs:git');
const log = debug('log:idx:vcs:git');
const _ = require('lodash');
const Commit = require('../../models/Commit.js');
const Module = require('../../models/Module');
const File = require('../../models/File.js');
class GitIndexer {
const... |
"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 (Object.protot... |
let map;
let position;
let axes;
let speedBarR;
let speedBarL;
let speedometer;
let turnRadZero;
let turnRadInf;
let turnRad;
let flash;
let displayLat;
let displayLng;
let displayAlt;
let displaySats;
let displayHDOP;
let flashStatus = 0;
let lastButtonB = 0;
let lastAnalogAxis = [0, 0];
let consoleDisplay;
let consol... |
/*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
/* eslint-env node */
'use strict';
var SDPUtils = require('sdp');
var utils = require('./utils... |
'use strict';
Product.allProducts = [];
var totalClicks = 0;
// Display product functions needs previous indices
var productIndexOnPage = [0, 1, 2];
function Product(liveClicks, name, src, timesRendered) {
this.liveClicks = liveClicks;
this.name = name;
this.itemSrc = src;
this.itemWidth = 250;
this.timesRe... |
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("tns-core-modules/utils/types");
var view_1 = require("tns-core-modules/ui/core/view");
var content_view_1 = require("tns-core-modules/ui/content-view");
var layout_base_1 = require("tns-core-modules/ui/layouts/layout-base");
var eleme... |
/**
* @file TraderController.js
* Controller TraderController
* @author : <NAME> - <NAME>
* @copyright : 2019 - 2020 All rights reserved
*/
const Trader = require('../models/traders')
const jwt = require('jsonwebtoken')
const jwt_decode = require('jwt-decode');
const validationHandler = require('../validations/va... |
// ***************************************************************************
// General
// ***************************************************************************
require('dotenv').config();
const conf = {
debug: JSON.parse(process.env.APP_DEBUG),
mainroom: process.env.CHAT_ROOM_MAIN
};
// External dependen... |
function wait(ms)
{
var d = new Date();
var d2 = null;
do { d2 = new Date(); }
while(d2-d < ms);
}
var util = util || {};
util.toArray = function(list) {
return Array.prototype.slice.call(list || [], 0);
};
var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
window.URL = window.URL ... |
const COLLISIONVELOCITYCONSTANT = true;
class Box {
constructor(points, ctx, color, margin, isHospital=false)
{
//points must be IN ORDER around square, order doesn't matter
if(margin > 0)
{
for(let i=0;i<2;i++)
{
for(let j=0;j<2;j++)
... |
/**
* app.js
*
* This is the first file loaded. It sets up the Renderer,
* Scene and Camera. It also starts the render loop and
* handles window resizes.
*
*/
import * as Dat from 'dat.gui';
import { WebGLRenderer, PerspectiveCamera, Vector2, MeshBasicMaterial } from 'three';
import { ShaderMaterial, Layers, R... |
var client;
var power_options_displayed = true;
var power_options = null;
function power () {
if (power_options == null) {
power_options = document.getElementById ("power_options");
}
if (power_options_displayed) {
power_options.style.display = 'none';
power_options_displayed = false;
} else {
po... |
import { isFunction, forEach } from 'min-dash';
import {
domify,
query as domQuery,
closest as domClosest,
attr as domAttr,
clear as domClear,
classes as domClasses,
matches as domMatches,
delegate as domDelegate,
event as domEvent,
} from 'min-dom';
const TOGGLE_SELECTOR = '.djs-collapse-header';
co... |
var Asteroids = {
version: '0.1',
svg: null
};
var ASTDATA = "ast-proper14.csv",
DATAPATH = "./data/",
LIMIT = 14,
LINECOL = "#fff",
LINEWIDTH = 1.2,
FONT = "12px sans-serif",
margin = {h:40, v:20},
width = 640 - margin.h * 2,
height = 640 - margin.v * 2,
halfwidth = width / 2,
... |
import * as GeoTIFF from 'geotiff'
// import _ from 'lodash'
import { createLinearGradient } from 'color-mapper'
import { XYToLnglat, getVortex } from '../utils.js'
import tiffURL from '../img/merge.tiff'
import point from '../img/point.png' // TODO: 16 * 16
const THREE = require('three')
const vertexShader3D = `
... |
////////////////////////MODEL //////////////////////////////////////
const angola = ['chi', 'chi', 'don', 'din'];
const angolaDelay = [250,400,600,1000];
const saoBentoPeq = ['chi', 'chi', 'din', 'don'];
const saoBentoPeqDelay = [250,400,500,1000];
const saoBentoGrande = ['chi', 'chi', 'din', 'don', 'don'];
const saoBe... |
import { cena2 } from "./cena2.js";
var player;
var player2;
var stars;
var bombs;
var platforms;
var cursors;
var pointer;
var touchX;
var touchY;
var score = 0;
var scoreText;
var cena1 = new Phaser.Scene("Cena 1");
cena1.preload = function() {
this.load.image("sky", "assets/sky.png");
this.load.image("ground"... |
/*
Author: <NAME>
Description: Main logic section of the game.
Document name: logic.js
Date: 6/3/2015 (6th March 2015)
*/
/*
TODO: Tidy code up
*/
// variables to track the game
var cardCount = 4;
var questionCount = 1;
var previousAnswer = 4;
var previousQuestion;
var counter = 0;
// when the document has load... |
var token = "";
var tuid = "";
var ebs = "";
var twitchscene = "";
var globalQuestion = ""
var globalAnswer = ""
var channelId = '';
var limitEnabled = false;
var responseLimit = 0
var submittedAnswer = false
var response = null;
var correctResponse = null;
var choicenum = 2;
var choice1 = "unloaded";
var choice2 = "un... |
"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... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
$(function() {
switch (menu) {
case 'About Us':
$('#about').addClass('active');
break;
case 'Categorys':
$('#cat').addClass('active');
break;
case 'Contact Us':
$('#contact').addClass('active');
break;
case 'Sign Up':
$('#register').addClass('active');
break;
case 'All Products':
$('#listProdu... |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: at.js 31619 2012-09-17 01:05:07Z monkey $
*/
if(typeof EXTRAFUNC['keydown'] != "undefined") {
EXTRAFUNC['keydown']['at'] = 'extrafunc_atMenu';
EXTRAFUNC['keyup']['at'] = 'extrafunc_atMenuKeyUp';
EXTRAFUNC['showEd... |
// elements
var startBtn = document.querySelector(".start-btn button");
var infoBox = document.querySelector(".info-box");
var exitBtn = infoBox.querySelector(".buttons .quit");
var continueBtn = infoBox.querySelector(".buttons .restart");
var quizBox = document.querySelector(".quiz-box");
var option_list = document.q... |
/*
Copyright (c) 2014, Intel Corporation
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 conditions and the following disclaime... |
"use strict";
/* vim: set expandtab ts=4 sw=4: */
/*
* You may redistribute this program and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in th... |
// initialization
document.addEventListener("DOMContentLoaded", function () {
var elems = document.querySelectorAll("select");
var instances = M.FormSelect.init(elems, {});
});
document.addEventListener("DOMContentLoaded", function () {
var elems = document.querySelectorAll(".sidenav");
var instances = M.Siden... |
/* global Cypress, cy */
const _ = require('lodash')
const $ = require('jquery')
const bytes = require('bytes')
const Promise = require('bluebird')
const $Screenshot = require('../../cypress/screenshot')
const $dom = require('../../dom')
const $errUtils = require('../../cypress/error_utils')
const $utils = require('..... |
/*
* Copyright 2014, <NAME>.
* 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 conditions a... |
import { useEffect, useState, useContext } from "react"
import styles from '../styles/boardslist.module.scss'
import { Card, CardBody, CardHeader, CardFooter, FormInput, Button, Container, Row, Col } from "shards-react";
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
import { EditText } fr... |
/**
* Copyright 2009 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 agree... |
import React, { useState, useMemo, useCallback, useRef } from 'react';
import PropTypes from 'prop-types';
import {
_cs,
isDefined,
getColorOnBgColor,
} from '@togglecorp/fujs';
import colorBrewer from 'colorbrewer';
import {
SketchPicker,
TwitterPicker,
GithubPicker,
} from 'react-color';
impo... |
import "./style.css";
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import Stats from "stats.js";
import { BufferGeometryUtils } from "three/examples/jsm/utils/BufferGeometryUtils.js";
const stats = new Stats();
stats.showPanel(0);
document.body.append(st... |
//COLORS
var Colors = {
red:0xf25346,
white:0xd8d0d1,
brown:0x59332e,
pink:0xF5986E,
brownDark:0x23190f,
blue:0x68c3c0,
bluef:938590,
};
// THREEJS RELATED VARIABLES
var scene,
camera, fieldOfView, aspectRatio, nearPlane, farPlane,
renderer, container;
//SCREEN & MOUSE VARIABLES
... |
import React, {Component} from 'react';
import {
Animated,
View,
Text,
Dimensions,
RefreshControl,
Modal,
ScrollView,
ListView,
StyleSheet,
StatusBar,
Image,
TouchableOpacity,
Keyboard,
Button,
TextInput,
KeyboardAvoidingView
} from 'react-native';
import... |
// get what I need for the app
const inquirer= require('inquirer');
// get the console table
require('console.table')
const mysql = require('mysql2');
// setting up dotenv need this or else dotenv will NOT work
require('dotenv').config();
// this is a separate file of all my connection variables use this to conn... |
/**
* 註冊ipcMan事件 - 操作MC伺服器
*
* call: /app.js
*/
const consoleTitle = '[/app/common/ipcManMCServer.js]';
const {app, BrowserWindow, ipcMain} = require('electron');
const myMCServerManager = require('./myMCServerManager'); //MC伺服器管理
const {
width,
height,
find_java_home,
regLocale,
regAutoUpdater... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Typography, withStyles } from "@material-ui/core";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableHead from "@materia... |
// Constants
const pi2 = Math.PI * 2;
const MULTX = 4200;
const MULTY = 3350;
const CENTERX = 0.447;
const CENTERY = 0.541;
// Global variables
var gpsPos;
var mapZoom = 1;
var gpsUpdateInterval;
// Math
function dist_sq(x1, y1, x2, y2)
{
var distx = x2 - x1;
var disty = y2 - y1;
return (distx * distx + disty * di... |
// *****************************************************
// Home Controller
//
// tmpl: home.html
// path: /
// *****************************************************
var isInArray = function(item, items) {
function check(linkedItem) {
if (!item.full_name) {
return linkedItem.org === item.login;... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
import {defaultValue} from "../utils/stuff";
import {
getFieldConfig, getOperatorConfig, getFieldWidgetConfig, getFuncConfig
} from "../utils/configUtils";
import {getWidgetForFieldOp} from "../utils/ruleUtils";
import {defaultConjunction} from "../utils/defaultUtils";
import {completeValue} from "../utils/funcUtils"... |
'use strict';
const statesMapping = require('./devices');
class Groups {
constructor(adapter) {
this.adapter = adapter;
this.adapter.on('message', this.onMessage.bind(this));
}
start(zbController, stController) {
this.zbController = zbController;
this.stController = stCon... |
const PI2 = Math.PI * 2
const Properties = {
Draw: {
Front: false,
Back: true
},
Noise: {
Simplex: 0,
Ridged: 1,
DomainWarping: 2,
VStripe: 3,
HStripe: 4,
Gradation: 5
},
Color: {
Analogous: 0,
Complementary: 1,
SplitComplementary: 2,
Triad: 3,
Cavity: 4,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.