text stringlengths 3.07k 16k |
|---|
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { TextField, Button, Box } from '@material-ui/core';
import useAxiosGet from 'src/components/useAxiosGet';
import { useNavigate } from 'react-router-dom';
import { useForm } from 'react-hook-form';
import NoticeList from ... |
"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 = R... |
const playerShapeBasic = function(parent) {
translate(parent.pos.x, parent.pos.y);
rotate(parent.dir);
stroke(100);
fill(parent.color[0]);
triangle(-20, 20, -20, -20, 40, 0);
ellipse(0, 0, 24, 18);
quad(-15, 15, -10, 10, -15, 5, -30, 10);
quad(-15, -15, -10, -10, -15, -5, -30, -10);
rotate(-parent.d... |
///
/// code by <NAME>
///
/// https://technostalgic.tech
/// twitter @technostalgicGM
///
// used for creating visual effects like explosions in the game
class effect{
constructor(){
this.pos = new vec2();
this.dead = false;
}
static createPoof(pos){
// creates a poof effect at the specified position
if(... |
const mongo = require('../mongo');
const config = require('../config.json')
const mongoose = require('mongoose')
const lastFMSchema = require('../schemas/lastfm-schema')
const { MessageEmbed } = require('discord.js')
const{prefix, lastfm} = require('../config.json');
const http = require('http')
module.exports = {
... |
import angular from 'angular';
import _ from 'underscore';
import template from './compare.html';
import './compare.scss';
export function StatRangeFilter() {
// Turns a stat and a list of ranges into a 0-100 scale
return function(stat, statRanges) {
const statRange = statRanges[stat.statHash];
if (stat.qu... |
/**
This function converts a list of Postman environments into a single .stoplight environment file
inputEnvs must be an array of JSON strings
*/
function convertPostmanEnv2Stoplight(inputEnvs) {
var stoplightEnvironment = {
"stoplight": "1.0",
"environments": {}
};
var unorderedEnvs = {};
for (var i = 0; i <... |
/*
(The MIT License)
Copyright (C) 2005-2013 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p... |
// rurn date picker if existed
if ($('[data-datepicker]').length) {
var datepickerOptions = {
format: 'yyyy-mm-dd',
// startDate: '0d',
autoclose: true
};
$('[data-datepicker]').datepicker(datepickerOptions);
};
// rurn select2 if existed
if ($('.select2').length) {
$('.select2').select2();
};
// rurn dater... |
const gridSize = 15;
const dim = [600, 600]
let gameOver = false;
let grid = [];
const TOTAL = 1000;
let snakes = [];
let savedSnakes = [];
let bestSnake;
let generation;
let slider;
let start = false;
let stop = false;
let reset = 0;
let maxFitness = 0;
let globalFitness = 0;
let showone = false;
document.addEventLis... |
import * as React from "react";
import * as THREE from "three";
const newScene = () => {
return new THREE.Scene();
}
const newCamera = () => {
return new THREE.OrthographicCamera(-0.5, 0.5, 0.5, -0.5, 0.0, 1000.0);
};
const newRenderer = (canvasElement, width, height) => {
const canvas = canvasElement.current;... |
const { dest, series, src, watch } = require('gulp');
const { eslint } = require('rollup-plugin-eslint');
const autoprefixer = require('autoprefixer');
const babel = require('rollup-plugin-babel');
const browserSync = require('browser-sync').create();
const commonJS = require('rollup-plugin-commonjs');
const cp = requi... |
/* compile needles to hierarchical map object */
const parser = require('./parser');
const iterator = require('../generic/iterator');
const traverser = require('../generic/traverser');
const { defineProperty } = require('../generic/helper');
const { Wildcard } = require('./wildcard');
const LEAF = Symbol('leaf');
cons... |
import React from "react";
import { connect } from "react-redux";
import { TOGGLE_VISUALIZER_STYLE } from "../../actionTypes";
const OSCILLOSCOPE = 1;
const BAR = 2;
// Return the average value in a slice of dataArray
function sliceAverage(dataArray, sliceWidth, sliceNumber) {
const start = sliceWidth * sliceNumbe... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { Stack, StackItem } from '@fluentui/react/lib/Stack';
import { Text } from '@fluentui/react/lib/Text';
import { UxpColors } from '../_helpers/uxpcolorutils';
import { UxpNumberParser } from '../_helpers/uxpnumberparser';
const innerStac... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("lodash");
var pag = require("pag");
var ob = require("./index");
var dotPatterns;
var charToIndex;
var context;
function init(_context) {
context = _context;
var letterCount = 66;
var letterPatterns = [
0x4... |
"use strict";
const fs = require("fs-extra");
const path = require("path");
const database = require("lib/database");
const plugin = require("lib/plugin");
const prometheus = require("lib/prometheus");
const routes = require("./routes");
const dole = require("./dole");
const exportCounter = new prometheus.Counter(
... |
"use strict";
const doctrine = require("doctrine");
function format(str) {
return str.trim().replace(/^\s+/gm, "\\t\\t").replace(/\n/g, "\\n");
}
function isEmpty(object) {
return Object.keys(object).length === 0;
}
function last(array) {
return array && array[array.length - 1];
}
function toMethodName(metho... |
'use strict';
var Curry = require("bs-platform/lib/js/curry.js");
var Fetch = require("bs-fetch/src/Fetch.bs.js");
var Rebase = require("@glennsl/rebase/src/Rebase.bs.js");
var Refetch__Mime = require("./Refetch__Mime.bs.js");
var Refetch__Headers = require("./Refetch__Headers.bs.js"... |
/*jslint node: true*/
/* turn off lint errors caused by http_proxy environment variable */
/* jshint -W106 */
'use strict';
/* Copyright (c) 2014 Intel Corporation. All rights reserved.
* Use of this source code is governed by an Apache v2 license that can be
* found in the LICENSE-APACHE-V2 file. */
// script to d... |
import React from "react";
import _ from "lodash";
import PropTypes from "prop-types";
import resolveXYScales from "./utils/resolveXYScales";
import { innerSize } from "./utils/Margin";
import { inferScaleType } from "./utils/Scale";
import { methodIfFuncProp } from "./util";
function indexOfClosestNumberInList(numbe... |
import { __assign, __read } from '../../node_modules/tslib/tslib.es6.js';
import { snapshot } from '../../node_modules/rrweb-snapshot/es/rrweb-snapshot.js';
import { EventType, IncrementalSource } from '../types.js';
import { polyfill, on, getWindowWidth, getWindowHeight, mirror } from '../utils.js';
import initObserve... |
import React from 'react';
import Relay from 'react-relay/classic';
import { browserHistory } from 'react-router';
import { FormattedMessage } from 'react-intl';
import util from 'util';
import config from 'config'; // eslint-disable-line require-path-exists/exists
import globalStrings from './globalStrings';
const fe... |
import React, { useContext } from "react";
import { Badge, Menu, Dropdown, Typography } from "antd";
import styled from "styled-components";
import arrow from "assets/icons/blue-down-arrow.svg";
import subMenuIcon from "assets/icons/submenu.svg";
import { mq } from "constants/theme";
import TextAvatar from "components/... |
/* eslint-disable prettier/prettier */
/* eslint-disable react-native/no-inline-styles */
import React, { useState, useEffect } from 'react';
import {
View,
Text,
Image,
TouchableOpacity,
StyleSheet,
ActivityIndicator,
} from 'react-native';
import {icons, COLORS, SIZES, FONTS, FONTS2} from '../constants';... |
if (typeof $ === 'undefined') {
loadScript("https://code.jquery.com/jquery-3.1.1.min.js", run);
} else {
run();
}
function run() {
if (typeof d3 === 'undefined') {
loadScript("https://d3js.org/d3.v3.js", showTree);
} else {
showTree();
}
}
function loadScript(url, callback)
{
c... |
/* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhAirplay = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height="${size}"
... |
var http = require('http');
var querystring = require('querystring');
var errorTemplate = require('../templates/error.js');
const snip = require('../snip.js');
const genReqLogLine = ({ head, method, path, params, suffix }) =>
!process.appParams.color
? [
head,
method,
path[0] + (path.leng... |
import merge from 'lodash/merge';
import semver from 'semver';
import isArray from 'lodash/isArray';
import isFunction from 'lodash/isFunction';
import { newLogger } from '@dbux/common/src/log/logger';
import { whichNormalized } from '@dbux/common-node/src/util/pathUtil';
import Process from './util/Process';
import { ... |
/*global $ */
// Get Date
function getTopDate() {
"use strict";
Date.prototype.getMonthName = function () {
var monthName = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
return monthName[this.getMonth()];
};
var topDate = new Date(),
... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Table, Card, Row, Col, Input, Button, Form, Select, DatePicker } from 'antd';
// import Link from 'umi/link';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import styles from './List.less';
const FormItem = Form.It... |
var $ = require("common:widget/ui/jquery/jquery.js");
var UT = require("common:widget/ui/ut/ut.js");
var CON = conf.headerTest,
direct = (conf.dir == "ltr" ? "left" : "right"),
headerTop = $("#top"),
parentHead = headerTop.parent(),
favBar = $("#addFavBar"),
isScrolled = fal... |
// Copyright 2012 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 ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*-------------------------------------------------------------------... |
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { injectIntl, FormattedDate, FormattedTime } from 'react-intl';
import styled from 'styled-components';
import { useLocation, useHistory, useRouteMatch } from 'react-router';
import { Switch, Route } from ... |
import CONFIG from '../../globals/config'
const createRestoDetailTemplate = (resto) => `
<h2 class="resto__title">${resto.name}</h2>
<picture>
<source type="image/webp" media="(max-width: 600px)" data-srcset="${CONFIG.SMALL_IMAGE_URL}${resto.pictureId}">
<source type="image/png" media="(max-width: 60... |
import ICON_T from 'images/t.svg';
import ICON_M from 'images/m.svg';
import ICON_F from 'images/f.svg';
import ICON_S from 'images/s.svg';
import ICON_TYPOLOGY from 'images/typology.svg';
import ICON_X from 'images/explore.svg';
import ICON_ANALYSIS from 'images/analysis.svg';
import ICON_LOGO from 'images/logo_RLE_ic... |
"use strict";
/* jshint -W058 */
var d = require("describe-property");
var isBinary = require("bodec").isBinary;
var decodeBase64 = require("./utils/decodeBase64");
var encodeBase64 = require("./utils/encodeBase64");
var stringifyQuery = require("./utils/stringifyQuery");
var Promise = require("./utils/Promise");
var ... |
//Default
export const LOADING_START = 'LOADING_START';
export const LOADING_END = 'LOADING_END';
// Modal
export const TOGGLE_MODAL = 'TOGGLE_MODAL';
export const OPEN_MODAL = 'OPEN_MODAL';
export const CLOSE_MODAL = 'CLOSE_MODAL';
//Auth
export const LOGIN_REQUEST = 'LOGIN_REQUEST';
export const LOGIN_SUCCESS = 'LO... |
import React, {Fragment} from 'react'
import {Dialog, Transition} from '@headlessui/react'
import {XIcon, TrashIcon} from '@heroicons/react/outline'
// import {DotsVerticalIcon} from '@heroicons/react/solid'
import {useSelector, useDispatch} from 'react-redux'
import * as actions from '../redux/actions/cartActions'
co... |
/* Particle Explosion by <NAME> https://codepen.io/deanwagman/pen/EjLBdQ */
let canvas = document.querySelector("#canvas"),
ctx = canvas.getContext('2d');
// Set Canvas to be window size
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
// Configuration, Play with these
let config = {
particle... |
import Log from '../utils/logger.js';
import {
setInterval
} from 'timers';
class DanmuItem {
constructor(parent, config) {
this.TAG = 'DanmuItem';
Log.v(this.TAG, parent);
this.stage = parent;
console.log(this.stage.name)
this.stageWidth = 960;
this.stageHeight = 920;
this.load = new ... |
import React from "react"
import { Input , Pagination, Divider, Popover, Popconfirm, Button, } from "antd"
import styles from '../common.less'
import { getFormat, getYearFormat } from 'utils'
import { TableCom } from 'components'
const { TextArea, Search } = Input;
const UserTable = ({
count,
...tableProps,
pageNu... |
import React, { useMemo, useState, useRef, useEffect } from 'react'
import { Drawer } from '@mui/material'
import clsx from 'clsx'
import PropTypes from 'prop-types'
import MenuContext from './MenuContext'
import SEOLinks from './SEOLinks'
import MenuBody from './MenuBody'
const PREFIX = 'RSFMenu'
const defaultClasse... |
//Auto genterated by Cody
import {JAXEnv,$JXV,$V} from "/jaxweb/lib/JAXEnv.js"
import {jaxHudState} from "/jaxweb/lib/JAXHudState.js"
import {BoxPathInfo} from "../gear/BoxPathInfo.js";
import {BoxVsnInfo} from "../gear/BoxVsnInfo.js";
/*#{1FE671SEU0Imports*/
/*}#1FE671SEU0Imports*/
/*App界面*/
//-----------------------... |
import SlideText from "scripts/shared/comp/slide/text";
import SlidePlayer from "scripts/shared/comp/slide/player";
import SlideFrame from "scripts/shared/comp/slide/frame";
import paging from "2pi-paging";
import {$,TM,_} from "scripts/shared/vendors";
import key from "keymaster";
import Hammer from "hammerjs"
class ... |
import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import Artifacts from '../../../components/artifacts';
import SEO from '../../../components/seo';
import BackToProjects from '../../../components/backToProjects';
const AbSplitMultivariateTesting = ({
children,
transitionStatus,
entry,
... |
"use strct";
import * as accountController from "./accountControler.js";
import {
userManager,
partials,
get,
post,
put,
del
} from "./controler_base.js";
// contentType,// authType,// endPoint,// data
var app = Sammy("body", function() {
this.use("Handlebars", "hbs");
this.get("/", getIndex);
this.g... |
/**
* The workflow module exports APIs for running automation tasks as workflows and jobs. Workflows
* can be easily configured, while jobs are extensible, which facilitates flexible and extensible
* automations.
*/
import {
isArray, isEmpty, isNil, has, every,
} from 'lodash';
import { validateCommandArgs } fro... |
$(document).ready(function() {
//get suppliers
$('#supplier_id').select2({
ajax: {
url: '/purchases/get_suppliers',
dataType: 'json',
delay: 250,
data: function(params) {
return {
q: params.term, // search term
... |
/*
* Copyright (c) 2018-2021 Samsung Electronics Co., Ltd 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... |
import React, {Component} from 'react';
import {StyleSheet, TouchableNativeFeedback, TouchableOpacity, View} from 'react-native';
import {updatePhone} from '../actions';
import {connect} from 'react-redux';
import Icon from 'react-native-vector-icons/FontAwesome';
import Nav from './../components/common/Nav';
import {A... |
/* Simple Json Grafana Plugin requires to implement the following endpoints
/ should return 200 ok. Used for "Test connection" on the datasource config page.
/search used by the find metric options on the query tab in panels.
/query should return metrics based on input.
/annotations should return annotations.
/tag-key... |
/* mysql-live-select, MIT License <EMAIL>, <EMAIL>
lib/LiveMysql.js - Main class */
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var _ = require('lodash');
var ZongJi = require('zongji');
var mysql = require('mysql2');
var EJSON = require('ejson');
// Maximum duration to wait for Z... |
/**
* Utility functions for testing
*/
const { unpad } = require('ethereumjs-util')
const { stringToBN } = require('../src/util')
const { EVENT_SIG_PROXYCREATION } = require('./const')
/**
* Wait for a transaction to be mined and a receipt return
* @param txHash {string} - The transaction hash to be mined
* @para... |
import React, { Component } from 'react';
import { Rating, TextArea } from 'semantic-ui-react'
import { API_PLANT, API_ROOM_PLANT } from '../constants';
class FormPlant extends Component {
state = {
nickname: "",
commonName: "",
scientificName: "",
temp: "",
tempTol: "",
humid: "",
light: "",
lightTo... |
export const DRAW_LAYER = 0; // drawing layer is always first layer of the track
export const MAX_BYTE_VALUE = 255; // used for some default values
export const MAX_HUE_VALUE = 255; // maximum hue value
export const MAX_FORCE_VALUE = 255; // maximum force value
export const E... |
import React, {useEffect, useState} from 'react';
import {View, Text, StyleSheet, Image, Dimensions, TextInput, Keyboard} from 'react-native';
import LoadingActionContainer from '../../Components/LoadingActionContainer';
import useAppTheme from '../../Themes/Context';
import { Button } from 'react-native-paper';
import... |
import Config from './Config'
import Stats from 'libs/stats.min'
import * as dat from 'dat.gui'
if(Config.debug) {
window.gui = new dat.GUI({
width: 300
})
}
import Emitter from 'libs/emitter'
import { isMobile } from 'libs/Util'
//canvas dom,model params
class Scene {
cameraParams = {
fov... |
// <NAME>
// 12460796
// Description: this script makes the sunburst
// source: https://bl.ocks.org/vasturiano/12da9071095fbd4df434e60d52d2d58d
// this function makes the sunburst
function makeSunburst (data) {
var root = getHierarchical(data);
// set the height and width of the svg and the radius of the sunburst
... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var frame = {}; Components.utils.import('resource://mozmill/modules/frame.js', frame);
/**
* Console listener w... |
// Include gulp
var gulp = require("gulp");
// Include Our Plugins
var jshint = require("gulp-jshint");
var sass = require("gulp-sass");
var concat = require("gulp-concat");
var uglify = require("gulp-uglify");
var rename = require("gulp-rename");
var moreCSS = require("gulp-more-css");
var cssnano = require("gulp-css... |
import { exec } from 'child-process-promise';
import fs, { pathExists, copy } from 'fs-extra';
import path from 'path';
import Promise from 'bluebird';
import tmp from 'tmp-promise';
import targz from 'tar.gz';
import { buildNodeProject } from './node';
import { writeJsonFile, readJsonFile } from './data';
import { spi... |
import React, { Component } from 'react';
import FormErrors from "../FormErrors";
import Validate from "../utility/FormValidation";
import { Auth } from "aws-amplify";
class LogIn extends Component {
state = {
username: "",
password: "",
errors: {
cognito: null,
blankfield: false
}
};
... |
const util = require('./util.js');
const Draft = require('../models/draft');
const Filter = require('../dist/util/Filter');
function matchingCards(cards, filter) {
if (filter === null || filter.length === 0 || filter[0] === null || filter[0] === '') {
return cards;
}
return cards.filter((card) =>
Filter.... |
/**
* Quad helps to maintain a set of objects that are contained within the particular region
*/
/** @private */
var Quad = /** @class */ (function () {
/** @private */
function Quad(left, top, width, height, spatialSearching) {
this.objects = [];
this.left = left;
this.top = top;
... |
// Chart.js scripts
// -- Set new default font family and font color to mimic Bootstrap's default styling
Chart.defaults.global.defaultFontFamily =
'-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = "#292b2c";
// -- Area Chart Exa... |
import React from "react"
import { Link, graphql } from "gatsby"
import styled from "styled-components"
import { GatsbyImage, getImage } from "gatsby-plugin-image"
import Helmet from "react-helmet"
import Layout from "../components/Layout"
import Seo from "../components/SEO"
import { PageContainer } from "../componen... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import Box from '@material-ui/core/Box';... |
import * as THREE from "../../thirdParty/build/three.module.js";
import { ShaderEffect } from "../ShaderEffect.js";
import { starNestEffect_uniforms } from "./starNestEffect_uniforms.js";
import { Animation } from "../Animation.js";
/*
parameters = {
object: baseObject, //BaseObject to add this effct
meshName:... |
var Main = (function($, window, document, undefined) {
"use strict";
var getCookie = function(check_name) {
var a_all_cookies = document.cookie.split(";");
var a_temp_cookie = "";
var cookie_name = "";
var cookie_value = "";
var b_cookie_found = false;
var i = ""... |
"use strict";
window.chat = {
debug: true,
connect: null,
uid: 0,
to_uid: 0,
myMessageRunTwinkleInterval: null,
url: "ws://192.168.127.12:9501",
messageCountStatus: 0,
messageContent:'',
searchContent:'',
init: function (uid, messageContent, searchContent) {
this.uid = ui... |
/* eslint max-statements: [ 1, 20 ] */
"use strict";
const path = require("path");
const { keyword } = require("esutils");
const utils = require("rollup-pluginutils");
const Processor = require("modular-css-core");
const output = require("modular-css-core/lib/output.js");
// sourcemaps for css-to-js don't mak... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import _pt from "prop-types";
function _extends() { _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]; } } } return target; }; return _exten... |
import React from 'react'
import ReactDOM from 'react-dom'
import isEqual from 'lodash/isEqual'
const dataKeys = {
'line': 'data',
'radar': 'data',
'bar': 'data',
'horizontalBar': 'data',
'bubble': 'data'
}
var updatePoints = function(nextProps, chart, dataKey) {
var name = chart.config.type
var nextPro... |
import '@brightspace-ui/core/components/button/button-subtle.js';
import '@brightspace-ui-labs/multi-select/multi-select-list.js';
import '@brightspace-ui-labs/multi-select/multi-select-list-item.js';
import { css, html, LitElement } from 'lit-element/lit-element.js';
import { announce } from '@brightspace-ui/core/help... |
"use string";
const {xml2js} = require("xml-js");
const tag = [
"verticalTab",
"beep",
"partialCut",
"cut",
"cashDrawer",
"style",
"p",
"table",
"tr",
"separator",
];
const fonts = [
"bold",
"underline",
"underlineThick",
"upsideDown",
"invert",
];
const sizes = [
"normal",
"double... |
// codebee company limited
// http://www.codebee.co.th
//var baseURL = "http://www.12tees.com/";
//var baseURL = "http://localhost/tees/";
//var baseURL = "http://10.1.17.162/tees/";
//var localURL = "http://10.1.17.162/";
var baseURL = "http://www.12tees.com/";
var localURL = "http://www.12tees.com/";
var currency ... |
/**
* @version 0.43
* @author Vadym
*/
import { showModal } from '@app/appstores/Stores/Modal/ModalActions'
import { strings } from '@app/services/i18n'
import { AppWalletConnect } from '@app/services/Back/AppWalletConnect/AppWalletConnect'
import { LockScreenFlowTypes, setLockScreenConfig } from '@app/appstores/St... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MeteorLoader = exports.TextTemplateLoader = undefined;
exports.toUpperFirst = toUpperFirst;
exports.toCamelCase = toCamelCase;
exports.toUpperCamelCase = toUpperCamelCase;
exports.meteorRequire = meteorRequire;
var _aureliaMetadata... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import '../css/history.css';
import foto from '../cerrar.png';
let lastScrollY = 0;
let lastHeight = 0;
let documentheight = 0;
class History extends Component{
constructor(props){
super(props);
this.state = {
sharep: this.p... |
// import GameWin from "./gameWin";
var config = {
type: Phaser.AUTO,
width: 1900,
height: 600,
parent: "phaser-example",
physics: {
default: "arcade",
arcade: {
gravity: { y: 100 }, //The gravity is set so the gas will fall
debug: false,
},
},
scene: {
preload: preload,
c... |
import { firestore } from './firebase';
export const createOpportunity = (data) =>
firestore.collection('Opportunities').add(data)
export const onceGetOpportunities = () =>
// db.ref('Opportunities').once('value');
firestore.collection('Opportunities').where('authority', '<', 2).get()
export async function cre... |
import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as contactActions from '../actions/contactActions';
import ContactForm from '../components/ContactForm';
import toastr from 'toastr';
import validator from 'validator';
import moment from 'mom... |
import React, { Component, useState } from "react";
import {
View,
Text,
TouchableOpacity,
TextInput,
StyleSheet,
Alert,
Image,
ScrollView,
style,
} from "react-native";
import styles from '../../styles/commonStyles';
import RadioForm, { RadioButton, RadioButtonInput, RadioButtonLabel } from 'react-n... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
function Spin() {
this.Sx = 0; this.Sy = 0; this.Sz = -1
this.advance_paulis = function(dt, Wx, Wy, Wz)
{
this.Sx += (Wy*this.Sz - Wz*this.Sy)*dt
this.Sy += (-Wx*this.Sz + Wz*this.Sx)*dt
this.Sz += (Wx*this.Sy - Wy*this.Sx)*dt
}
} // end Spin
function cabinet_projector(theta)
{
const pi = Math.PI, sin ... |
'use strict';
var heardLog = [];
var isFilterJapanTrust;
var isFilterOpenquad;
var initialDelayTimerID;
const initialDelayStoreEntries = [];
function onDSTARNowReceiveTimerTimeout() {
if(initialDelayTimerID){
clearTimeout(initialDelayTimerID);
initialDelayTimerID = undefined;
}
while(ini... |
'use strict';
/**
* Returns true if word occurrs in the specified word snaking puzzle.
* Each words can be constructed using "snake" path inside a grid with top, left, right and bottom directions.
* Each char can be used only once ("snake" should not cross itself).
*
* @param {array} puzzle
* @param {array} sear... |
/*******************************/
/* Control and Simulation Code */
/*******************************/
// PID controller
class PID {
constructor(Kp, Ki, Kd, set_point) {
this.Kp = Kp;
this.Ki = Ki;
this.Kd = Kd;
this.set_point = set_point;
this.int_term = 0
this.derivative_term = 0
this.la... |
"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... |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import Helmet from 'react-helmet';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { provideHooks } from 'redial';
import Select from 'react-select';
import {
Button, Table, Glyphicon, Navbar, Form... |
/**
* MobileEmoji module. Responsible for automatically replacing emoji with Discourse emoji codes
* @module emoji
*/
'use strict';
var discourse,
configuration;
var emojiLookup = {
//Miscellaneous Symbols block (U+2600–U+26FF)
'☹': ':worried:',
'☺': ':smile:',
'☻': ':smile:',
//Emoticons bl... |
import 'babel-core/register'
import 'babel-polyfill'
import { readFileSync, createReadStream } from 'fs'
import { createHash } from 'crypto'
import FormData from 'form-data'
import cheerio from 'cheerio'
import apisauce from 'apisauce'
const VTEXID = JSON.parse(readFileSync('.vtexid', 'utf8'))
const create = (baseUR... |
const {root, paragraph, text, heading, brk, link, html} = require("mdast-builder");
const {Term} = require("../model/term");
const {getFileLinkUrl} = require("../path/tools");
const {getLinkUrl, getNodeText} = require("../ast/tools");
const {getIndex, group, byGroupHeading} = require("../indexer");
const {collator} = ... |
import React from 'react'
import PropTypes from 'prop-types'
import useSWR from 'swr'
import { CircularProgress } from '@material-ui/core'
import * as API from '../../../constants/api'
import { TextField, InfoTip } from '../../common'
import * as strings from '../../../constants/strings'
import {
formatDateFromServer... |
const auth = require('../middleware/auth');
const jwt = require('jsonwebtoken');
const config = require('config');
const bcrypt = require('bcryptjs');
const _ = require('lodash');
const {User, validatelogin , validatesignup , covert_to_array , exist_or_not ,validateChangeUser ,delete_obj } = require('../models/user');
... |
/*
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { LightningElement, api, track } from 'lwc';
import { classSet } from 'c/utils';
import {
assert,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.