text stringlengths 3.22k 29.5k |
|---|
///////////////// LAYOUTS //////////////////////////////////////
/// Raw plot layout
let raw_layout = { xaxis: {title: 'Time (s)',
zeroline: false,
range: [-2,8]},
yaxis: {title: 'Fluorescence (\u0394F/F)',
zeroline: false},
showlegend: false,
... |
/*
Copyright (C) 2017 Jimboy3100
This program is free software: you can redistribute it 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 the hope that... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; 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 ... |
const tap = require('tap');
const sinon = require('sinon');
require('sinon-as-promised');
process.env.TRELLO_API_KEY = 'trello-api-key';
process.env.TRELLO_API_TOK = 'trello-api-tok';
const trello = require('../../../trello');
const actions = require('../../../actions');
const createATCCard = require('../../../webhoo... |
const request = require('request');
// Auth token for the node
const OT_AUTH_TOKEN = '';
// Fixed configuration values
const OT_NODE_URL = 'https://origintrail.evrythng.io';
const WALLET = '0xE1E9c5379C5df627a8De3a951fA493028394A050';
const DEFAULT_SENDER_NAME = 'EVRYTHNG';
const DEFAULT_SENDER_EMAIL = '<EMAIL>';
con... |
'use strict'
const {promisify} = require('util')
const fs = require('fs')
const readFilePromised = promisify(fs.readFile)
const writeFilePromised = promisify(fs.writeFile)
const path = require('upath')
const rimraf = require('rimraf')
const chalk = require('chalk')
const console = require('../helpers/color-console')... |
let local = true;
console.log(`background script ran on ${local? "local server": "cloud server"}`);
let domain = local ? "http://localhost:8000/" : 'https://yeti-backend-v5omsitsja-uc.a.run.app/';
let recommendations = [
];
let payload;
chrome.runtime.onMessage.addListener(
function (message, sender, sendResponse... |
import React from 'react';
import ReactNative from 'react-native';
import PropTypes from 'prop-types';
import PopoverTooltipItem from './PopoverTooltipItem';
const {
View,
Modal,
Animated,
TouchableOpacity,
StyleSheet,
Dimensions,
Text,
Easing
} = ReactNative;
const window = Dimensions.get('window');... |
'use strict';
const
_ = require('lodash'),
path = require('path'),
B = require('bluebird'),
sqlite = require(__dirname + '/../lib/sqlite-api'),
config = require(__dirname + '/../config/config');
const fromJsonDate = val => {
if (!val)
return undefined;
let tv = val.substr(6);
... |
import * as types from "./types";
import * as aver from "./aver";
import * as strings from "./strings";
export const CULTURE_INVARIANT = "*";
export const CULTURE_US = "us";
export const ISO_LANG_ENG = "eng";
export const ISO_LANG_DEU = "deu";
export const ISO_LANG_FRA = "fra";
export const ISO_LANG_RUS = "rus";
expo... |
const http = require("http"), fs = require("fs-extra"), url = require("url"), stream = require("stream");
var client;
module.exports = client = function client({ of, pass, from, to, silence, ignores } = { of: process.env.of || process.env.app || process.argv[2] || "http://127.0.0.1:8080", pass: process.env.pass || "<PA... |
/** @preserve
(c) 2012 by <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 and the follow... |
'use strict';
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const pako = require('../index');
const loadSamples = require('./helpers').loadSamples;
const sample = loadSamples().lorem_en_100k;
// Helper used to compare pako deflate using various options
//... |
import React from "react";
import { TextScramble } from "@a7sc11u/scramble";
import CancelIcon from "@mui/icons-material/Cancel";
import ErrorIcon from "@mui/icons-material/Error";
import HourglassBottom from "@mui/icons-material/HourglassBottom";
import Pagination from "@mui/material/Pagination";
import Stack from "@... |
/**
* Template Name: Lumia - v2.0.0
* Template URL: https://bootstrapmade.com/lumia-bootstrap-business-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
!(function($) {
"use strict";
// Smooth scroll for the navigation menu and links with .scrollto classes
$(docume... |
import React, { Component } from 'react';
import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons';
import { Subheader, IconButton } from 'material-ui';
import { Link } from 'react-router-dom';
import { graphql, compose } from 'react-apollo';
import { queries, mutations } from '../helpers';
import... |
'use strict'
const url = require('url')
const Site = use('site')
const cache = use('cache')
const moment = require('moment')
const tagmap = use('tagmap')('ao3')
const wordmap = use('tagmap')('words')
const qr = require('@perl/qr')
const forEach = use('for-each')
const wordsFromDesc = use('words-from-desc')
class Archi... |
var html='';
var count='';
var page=1;
var cat=-1;
var m=3;
/******首屏加载******/
function ajaxLoad() {
//初始化数据
if(getM())
{
m=getM();
}
if(getCat())
{
cat=getCat();
}
if(getPage()){
page=getPage();
}
//AJAX加载
$.ajax({
url: '/category/ajax-cat',
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import omit from 'lodash/omit';
import keycode from 'keycode';
import get from 'lodash/get';
import Typeahead from '../Typeahead';
import theme from './Datalist.scss';
import FocusManager from '../FocusMan... |
// add dataset to database for v2 compliance
// 1. read metadata from JSON object
// 2. add dataset to lookup_datasources
const comongo = require('co-mongodb');
const co = require('co');
var _ = require('underscore')
var onError = function(e){ console.log(e); }
co(function *() {
var user = "oncoscape"
var ... |
import moment from 'moment'
import sql from 'node-transform-mysql'
import UAParser from 'ua-parser-js'
import axios from 'axios'
import url from 'url'
import querystring from 'querystring'
import {
SYSTEM
} from '../config'
import {
util,
mysql,
getsql,
} from '../tool'
const imgsrc = 'console.log(0)'
... |
'use strict';
var gulp = require('gulp');
var del = require('del');
var path = require('path');
var install = require('gulp-install');
var vinylPaths = require('vinyl-paths');
var less = require('less');
var map = require('map-stream');
var ejs = require('ejs');
var tap = require('gulp-tap');
var shell = require('gulp-... |
"use strict"
import "babel-polyfill"; /* Enable async/await keywords. */
import * as d3 from 'd3';
import Map from 'ol/map';
import View from 'ol/view';
import TileLayer from 'ol/layer/tile';
import XYZ from 'ol/source/xyz';
import VectorSource from 'ol/source/vector';
import VectorLayer from 'ol/layer/vector';
impor... |
const { resolve, join, sep } = require('path');
const { readFileSync, existsSync } = require('fs');
const { STATUS_CODES } = require('http');
const fsAsync = require('mz/fs');
const Router = require('./router');
const pathMatch = require('path-match');
const route = pathMatch();
const {
renderToHTML,
renderErrorT... |
import React, {useState} from 'react';
import {Animated, Text, View} from 'react-native';
import {useNavigation} from '@react-navigation/native';
import {Button} from 'react-native-elements';
import {useDispatch, useSelector} from 'react-redux';
import commonStyles from '../../shared/common.styles';
import {isEmpty, ... |
/*
* Worker-related tasks
*/
// Dependecies
const path = require('path');
const fs = require('fs');
const _data = require('./data');
const https = require('https');
const http = require('http');
const helpers = require('./helpers');
const url = require('url');
const _logs = require('./logs');
const util = require('uti... |
'use strict';
var nuls = require('nuls-sdk-js/lib/api/sdk');
var nuls2 = require('nuls-sdk-js/lib');
var Serializers = require("nuls-sdk-js/lib/api/serializers");
var newAddressInfo = nuls2.newAddress(2, "123456");
var pri = nuls.decrypteOfAES(newAddressInfo.aesPri, "123456");
//console.log(pri)
//console.log(newAddre... |
const fs = require("fs");
const path = require("path");
const mkdirp = require("mkdirp");
const low = require("lowdb");
const server = require('node-static');
const tmp = require('tmp');
const opn = require("opn");
const db = low('db.json');
const _Console = req("core/Console.js");
let Console = new... |
/*
Contains functions for setting up and
displaying google maps. Temporarily
contains test battery info
*/
//import * as Google from "https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY";
// Need to figure out how to source to google link ^^^ and possibly replace "google" with "Google.google" in file... |
"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... |
/** @format */
/**
**** WARNING: No ES6 modules here. Not transpiled! ****
*/
/* eslint-disable import/no-nodejs-modules */
/**
* External dependencies
*/
const _ = require( 'lodash' );
const { execSync } = require( 'child_process' );
const fs = require( 'fs' );
const path = require( 'path' );
const webpack = requ... |
// Overview
//#region
function getGraphColumn(dataGraph, powerGraph, name, index){
var column = document.createElement("div");
column.className = "col-md-6";
column.appendChild(dataGraph);
column.appendChild(powerGraph);
return column;
}
function getAbout(item){
var col= document.createElemen... |
// 瀑布流
class WaterFall {
constructor({ container, items, cols }) {
this.container = container;
this.items = [...items];
this.status = 0;
this.cols = cols;
this.colsType = (this.cols === -1)? 'auto' : 'fixed';
this.organize();
window.addEventListener('resize', ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Xcraft <<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
* t... |
const fs = require('fs')
const inquirer = require('inquirer')
//writeToFile parses user data and creates
function writeToFile(fileName, data) {
console.log (data.license, data.title, data.use)
const { title, description, install, use, credit, contribute, tests, license, github, email, name, date} = data
... |
/* eslint-disable react/jsx-wrap-multilines */
/* eslint-disable array-callback-return */
/* eslint-disable react/jsx-indent */
import React, { useEffect, useState, useReducer } from 'react';
import TextField from '@material-ui/core/TextField';
import Select from '@material-ui/core/Select';
import { makeStyles } from '... |
/**
* Copyright (c) 2019
* @author <NAME>
* @summary this javascript file contains the main logic of the Memory game
* application. A card can assume three different states indicated by the
* class of the HTML Element:
* status classes
*---------------------------
* - close: card
* - open: card show open
* - matc... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import CloseIcon from '@material-ui/icons/Close';
import Typography from '@material-ui/core/Typography';
import Dialog from '@material-ui/core/Dialog';
im... |
//<EMAIL>
var ccFile = require('../../utils/calendar/calendar-converter.js')
var calendarConverter = new ccFile.CalendarConverter();
var app = getApp();
//月份天数表
var DAY_OF_MONTH = [
[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
[31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
];
//判断当前年是否闰年
var isLeapYear = ... |
var Vec2 = require('../../lib/geom/vec2')
var Rect = require('../../lib/geom/rect')
function createGeometry(boxSize) {
function createTangentLine(pointA, pointB) {
var lengthX = pointB.x - pointA.x;
var lengthY = pointB.y - pointA.y;
return {
length: Math.sqrt(Math.pow(lengthX, 2) + ... |
import React, {Component} from 'react';
import {Redirect} from 'react-router-dom';
import {faEdit, faTrash} from '@fortawesome/free-solid-svg-icons';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import ReactDatatable from '@ashvin27/react-datatable';
import TambahNasabah from './TambahNasabah';
impo... |
import React, { useState, useEffect } from 'react';
import SubjectToTeach from './SubjectToTeach';
import { MenuItem, Button, Divider } from '@material-ui/core';
import { TextField } from 'formik-material-ui';
import axios from 'axios';
import { Formik, Form, Field } from 'formik';
import * as Yup from 'yup';
import mo... |
const MARSHAL_VERSION = ['04', '08']; // Ruby Marshal version: 4.8 (04 08 in hex)
const MARSHAL_ARRAY = '5b'; // [
const MARSHAL_FIXNUM = '69'; // i
const MARSHAL_IVAR = '49'; // I
const MARSHAL_STRING = '22'; // "
const MARSHAL_TRUE = '54'; // T
const MARSHAL_FALSE = '46'; // F
function hexToBytes(str) {
if (!st... |
$(document).ready(function(){
if ($( ".nric_autocomplete" ).length > 0){
$( ".nric_autocomplete" ).each(function(){
var nricInput = $(this);
nricInput.autocomplete({
source: function( request, response ) {
$.getJSON( baseUrl + "/search_nric", {
... |
class Utils {
static existFields(data, keys, requestDefault = "") {
const KEYS = keys.split(".");
let objectTest = data;
const VALIDATE = () => (
KEYS.every((key) => {
const REQUEST = (typeof objectTest[key] !== "undefined");
objectTest = objectTes... |
var PropTypes = require('prop-types');
var React = require('react');
var ReactDOM = require('react-dom');
var classnames = require('classnames');
class Autocomplete extends React.Component {
static displayName = 'Autocomplete';
static propTypes = {
options: PropTypes.any,
search: ... |
/**
* Copyright 2015 IBM Corp. 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... |
var budgetController = (function () {
var Expense = function (id, description, value) {
this.id = id;
this.description = description;
this.value = value;
this.percentage = -1;
};
Expense.prototype.calcPercentage = function(totalIncome)
{
if(totalIncome > 0){
this.percentage = Math.roun... |
import get from 'lodash.get'
import { processGeojson } from 'kepler.gl/processors'
const MAX_LATITUDE = 90
const MIN_LATITUDE = -90
const MAX_LONGITUDE = 180
const MIN_LONGITUDE = -180
export const GBFS_STATION_ID_PREFIX = 'GBFS_Stations_'
export function getLayerBounds(layers) {
// Taken from non-importable util... |
"use strict";
var turf = require('turf');
exports.METERS_PER_DEGREE_AT_EQUATOR = 111111;
function radiansToDegrees(radians) {
return radians * (180 / Math.PI);
}
exports.radiansToDegrees = radiansToDegrees;
function degreeToRadians(degrees) {
return degrees * (Math.PI / 180);
}
exports.degreeToRadians = degreeT... |
import React from 'react';
import Enzyme, { mount, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import PlaybackMonitor, { PropTableRow } from './PlaybackMonitor';
import ControllerContext from '../../player/PlayerController/ControllerContext';
Enzyme.configure({ adapter: new Adapter() });
c... |
import React, { useState, useEffect } from "react";
import { Drawer, IconButton, List } from "@material-ui/core";
import {
ArrowBack as ArrowBackIcon,
AssessmentOutlined,
AccountCircleOutlined,
PeopleAltOutlined,
TransferWithinAStationOutlined,
TimerOutlined,
} from "@material-ui/icons";
import { useTheme }... |
// Generated by CoffeeScript 2.0.0-beta8-dev
var ArrayInterface, ArrayType, checkAcceptableObject, clone, console, CS, initializeGlobalTypes, NumberInterface, ObjectInterface, ObjectType, pj, Possibilites, render, rewrite, Scope, Type, TypeSymbol, util, VarSymbol;
console = {
log: function () {
}
};
pj = function (... |
const axios = require("axios");
const Canvas = require("canvas");
const chalk = require("chalk");
const {MessageAttachment} = require("discord.js-light");
const {Command} = require("discord.js-light-commando");
const {checkMsg} = require("../functions/checkMsg.js");
const config = require("../../config.json");
const {... |
/*-----------------------------------------------------------------------------------------------*/
/*function for all */
function vietdecode(str)
{
var n = str.length;
for(i=1;i<=n;i++){
str = str.replace("."," .");
str = str.replace("?"," ?");
str = str.replace("ấ", "a");
str =... |
var self = this;
var prefix;
var version;
self.client = null;
self.config = null;
self.logger = null;
self.permissions = null;
self.muteRole = '';
self.messager = null;
exports.commands = [
'say',
'setgame',
'setstatus',
'setnickname',
'reset',
'purge',
'ping',
'tempmute',
'unmute... |
function logincheck() { // For form-alert.htm: using JS alert
if(document.getElementById("lname").value == ""){
alert("You forgot to enter your last name!");
return false;
}
if(document.getElementById("usrname").value == ""){
alert("Please enter your login name");
return false;
}
if(document.getElementById("pwd").valu... |
function CodeDefine() {
this.def = new Array();
this.def["rtB"] = {file: "autosar_multirunnables_c.html",line:68,type:"var"};
this.def["rtDWork"] = {file: "autosar_multirunnables_c.html",line:71,type:"var"};
this.def["Runnable1"] = {file: "autosar_multirunnables_c.html",line:74,type:"fcn"};
this.def["Runnable2"] ... |
import { fromLonLat, toLonLat } from 'ol/proj';
import { getCurrentMap } from "./mapTool.js";
/**
* @description 获取坐标点所在经度和屏幕垂直向上方向的偏移角度
* @param {*} coor 坐标点
* @returns
*/
export function getDeviationAngle(coor, map = getCurrentMap()) {
try {
if (Number.isNaN(coor[0]) || Number.isNaN(coor[1])) return ... |
// Copyright (c) 2021 <NAME>
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
const { expect } = require('test/utils')
const { curryv } = require('functions')
describe('curryv', () => {
it('will curry a 2-argument function', () => {
const sum = curryv((a, b) => a + ... |
const fs = require('fs-extra');
const path = require('path');
const request = require('superagent');
const cheerio = require('cheerio');
require('superagent-charset')(request);
/**
* 获取<省><市>数据
* 获取省数据: http://www.mca.gov.cn/article/sj/xzqh/2020/20201201.html
* @callback
* ```js
* {
* province: [
* {
... |
import React, { Component } from 'react';
import { View, StyleSheet, Dimensions, TouchableOpacity, Image, Text, BackHandler, StatusBar, Platform, Modal, Animated } from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import { connect ... |
const WIDTH = 800;
const HEIGHT = window.innerHeight;
const ZOOM_THRESHOLD = [0.3, 7];
const OVERLAY_MULTIPLIER = 10;
const OVERLAY_OFFSET = OVERLAY_MULTIPLIER / 2 - 0.5;
const ZOOM_DURATION = 500;
const ZOOM_IN_STEP = 2;
const ZOOM_OUT_STEP = 1 / ZOOM_IN_STEP;
const HOVER_COLOR = "#d36f80"
var w = WIDTH
var h = HEIG... |
/**
* https://github.com/iamdustan/smoothscroll
* - Added scroll to center of the element
*/
const w = window;
const d = document;
/*
* Aliases
* w: window global object
* d: document
* undefined: undefined
*/
/**
* Polyfill for smooth scrolling
*/
function polyfill() {
// Return when scrollBehavior inte... |
import React, { Component } from "react";
import VTMap from "./VTMap";
import PointGenerator from "./Components/PointGenerator";
import "./App.css";
import { GuessModal, selectedCounty } from "./Components/GuessModal";
import HelpModal from './Components/HelpModal'
import { WinModal, playerName } from './Components/Win... |
/**
* @copyright Copyright (c) 2019 <NAME> <<EMAIL>>
*
* metaAttrMap (only DENY and TARGET_ATTR data)
* reader:
* *
* read
* [] attr data
* create
* update
*/
'use strict';
const Base = require('areto/security/rbac/Inspector');
module.exports = class MetaAttrInspector extends Base {
s... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------... |
import React, { Component } from 'react';
import './Maker.css';
import {
Paper,
Grid,
InputLabel,
TextField,
Radio,
Fab,
Select,
MenuItem,
FormControl,
FormControlLabel,
FormLabel,
withStyles,
Typography,
Checkbox,
} from '@material-ui/core';
import ColorPicker from 'material-ui-color-picke... |
function blink(){
var f = document.getElementById('score');
setTimeout(function() {
f.style.display = (f.style.display == 'none' ? '' : 'none');
}, 500);
setTimeout(function() {
f.style.display = (f.style.display == 'none' ? '' : 'none');
}, 1000);
}
blink();
//Tell the l... |
/**
* # Screen Capture
*
* If screen capture is supported and appropriate hardware is attached, the video output of the DUT
* can be captured. For the testbot, this requires a compatible video capture device to be connected
* that works with v4L2 and enumerates on the `/dev/video0` interface. If that is the case, ... |
/*
add a constraint like this:
var cs = require('ConstraintSolver').getGlobal();
cs.parseConstraint(target,'x = parent.x + 20');
restrictions:
1) you must run cs.process() once after adding all constraints, or else the
first updates won't be refreshed. alternatively, set the value of the sources
after you add the... |
const path = require('path');
const fs = require('fs');
const compiler = require('solc-native');
const cmdLineParams = require('./cmdlineparams.js')
const Contract = require('./contract.js');
const helpers = require('./helpers.js');
const MULTI_COMPILE = 4;
//----------------------------------------------------------... |
var urlWithParam = "/sjk-market-admin";
$(document).ready(function() {
loadType(1);
$("#keyCatalog").bind("change",function(e){
var catalog= $(this).find("option:selected").val();
loadType(catalog);
});
$('#keyword').bind('keydown', function(e) {
if(e.which == 13) {
Sea... |
/*!
* rng.js - goosig signatures for javascript
* Copyright (c) 2018-2019, <NAME> (MIT License).
* https://github.com/handshake-org/goosig
*/
/* eslint camelcase: "off" */
'use strict';
const assert = require('bsert');
const BN = require('bcrypto/lib/bn.js');
const constants = require('../internal/constants');
... |
/* global hash */
// Scrollspy fluide
$('#tete .pageScroll').on('click', function(e) {
// remove all items all class
var liS = document.querySelectorAll('#tete li');
for (let i = 0; i < liS.length; i++) {
liS[i].classList.remove('active');
}
//this.classList.add("ac... |
/* eslint no-underscore-dangle: ["error", { "allowAfterThis": true }] */
import XML from './XML';
export const isArray = (obj) => Object.prototype.toString.call(obj) === '[object Array]';
export const toArray = (payload) => (isArray(payload) ? payload : [payload]);
export const isObject = (val) => (typeof val === 'ob... |
import React from 'react';
import {Modal} from 'react-bootstrap';
import {getLocations, updateInventory} from '../actions'
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import {Notification} from 'react-pnotify';
var site_id = localStorage.getItem('site_id')
class EditInventory extend... |
import React from 'react';
import ImageUploader from 'react-images-upload';
import PhoneInput from 'react-phone-input-2';
import 'react-phone-input-2/lib/style.css';
import 'antd/dist/antd.css';
import { Cascader } from 'antd';
// import UserHeader from './UserHeader';
import HostHeader from './Header/HostHeader';
impo... |
var count = 0;
var items = [];
var tag_arrs = [];
var maxTags = 3;
const SWIPER_RECOMMEND = 5;
const SWIPER_BANNER = 3;
var x, y;
var val = document.cookie.split(';');
var param = {
access_token: ''
};
try{
for (var i = 0; i < val.length; i++) {
x = val[i].substr(0, val[i].indexOf('='));
y = va... |
import React from "react";
import { View, StyleSheet, TouchableOpacity } from "react-native";
import { Container, Text, } from "native-base";
import colors from '../../assets/colors'
import firestore from '@react-native-firebase/firestore';
import auth from '@react-native-firebase/auth';
import moment from 'moment';
i... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
// import Input from "../Input";
import styled from "styled-components";
const PageContainer = styled.div`
width: 100vw;
`;
const Header = styled.div`
display: flex;
align-items: center;
justify-content: flex-start;
width: 100... |
import {
blockFirdiTable,
blockUI,
GROUP_LOADED_EVENT,
GROUP_UPDATED_EVENT,
LAST_CLICKED_GROUP_MANAGER,
loadData,
postData, QUERY_FILTER_EVENT, SELECT_ALL_EVENT,
SELECTION_UPDATE_EVENT,
setupCsrfForAjax,
unblockFirdiTable,
unblockUI
} from "../common";
import Awesomplete from... |
import { getReference } from '../Util/structReferences.js'
import ID from '../Util/ID.js'
import { RootFakeUserID } from '../Util/RootID.js'
import Delete from './Delete.js'
import { transactionTypeChanged } from '../Transaction.js'
/**
* Helper utility to split an Item (see _splitAt)
* - copy all properties from a ... |
/**
* Copyright 2018 Amazon.com, Inc. or its affiliates
*
* 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
*
* Unles... |
/**
* Virtual CPU for the Gameboy Color; a modified z80
*/
import { OPCODE } from '../const/opcode.js';
// import loadROM from './utils/loadROM.js';
// import rom from '../roms/flappyboy.json';
class CPU {
constructor(options = {}) {
// Create the memory banks
this.memory8bit = new Uint8Array(18);
this... |
//Game section
var game = {
isFight: false,
round: 1,
winner: null,
refill: function() {
console.log("Refillowanie w trakcie...");
this.isFight = false;
this.round++;
if (this.winner == "Player") {
console.log("Next gen start");
player.nextGeneration();
enemy.nextGeneration();
... |
var canvas, interval,run;
$(document).ready(function () {
canvas = new LCanvas('myCanvas');
run = function () {
canvas.clearCanvas();
canvas.fillCanvas();
};
interval = setInterval(run, 200);
});
var getCollorPattern = {
rainbow: ['#fe0000', '#ff7f00', '#ffff00', '#00ff01', '#0000f... |
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import { getContrastRatio } from '@material-ui/core/styles/colorManipulator'
import { duration, easing } from '@material-ui/core/styles/transitions'
import classNames from 'classnames'
import { getShortest... |
const jwt = require('jsonwebtoken');
const passport = require('passport');
const LocalStrategy = require('passport-local');
const JwtStrategy = require('passport-jwt').Strategy;
const { ExtractJwt } = require('passport-jwt');
const GoogleStrategy = require('passport-google-oauth20').Strategy;
const FacebookStrategy = r... |
'use strict';
class ParseError extends Error {
constructor(input, at, message) {
const before = input.slice(Math.max(at - 6, 0), Math.min(input.length, at));
const exact = input[at];
const after = input.slice(Math.min(input.length, at + 1), Math.min(input.length, at + 6));
const source = `${before}<${... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in m... |
var express = require('express');
var app = express();
var http = require('http').createServer(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 3000;
http.listen( port, function () {
console.log('listening on port', port);
});
app.use(express.static(__dirname + '/public'));
var players =... |
/* eslint-disable node/no-deprecated-api */
import { readdirSync, readFileSync, writeFileSync } from 'fs'
import { resolve as pResolve } from 'path'
import { promisify } from 'util'
import { parse as urlParse } from 'url'
import Glob from 'glob'
import { createRoutes } from '@nuxt/utils'
import serveStatic from 'serve-... |
"use strict"
var socket = io.connect('https://api.marketcapcompare.com');
// var socket = io.connect('http://localhost:3000');
socket.emit('subscribe_periodic');
socket.on('periodic', handle_periodic);
window.periodic = undefined;
window.default_selected_asset = 'NANO';
window.first_load = true;
if (document.referre... |
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.
//==================================================================================================
// import $ from '.././lib... |
import { StatusBar } from 'expo-status-bar';
import React, { useState } from 'react';
import { useEffect,AsyncStorage, Button, SafeAreaView, Alert ,
StyleSheet, TextInput, Text, View, FlatList, ScrollView } from 'react-native';
import 'react-native-gesture-handler';
import { NavigationContainer } from '@react-naviga... |
'use strict';
import {deepAccess, deepSetValue, getAdUnitSizes, isFn, isPlainObject, logWarn} from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {includes} from '../src/polyfill.js';
import {config} from '../src/config.js'... |
// setup Région options
html = "";
obj_old = {
"1": "Guadeloupe",
"2": "Martinique",
"3": "Guyane",
"4": "La Réunion",
"6": "Mayotte",
"11": "Île-de-France",
"24": "Centre-Val-de-Loire",
"27": "Bourgogne-Franche-Comté",
"28": "Normandie",
"32": "Hauts-de-France",
"44": "Grand... |
//设置页面高度
window.onload = function () {
$("#bgbody").height(window.innerHeight);
}
//滚动条改变改变页面高度
window.onresize = function () {
$("#bgbody").height(window.innerHeight);
}
//用户名
var accout="";
/**
* @description HomePagr页面初始化
*/
$(function () {
//判断浏览器是否支持localStorage
if(localStorage.Login!=null){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.