text stringlengths 5.97k 41.2k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vscode_1 = require("vscode");
const resource_1 = require("./resource");
const TAGS = require("element-helper-json/element-tags.json");
const ATTRS = require("element-helper-json/element-attributes.json");
const prettyHTML = require('pret... |
import log from '../logger.js';
import { parseJsonData } from '../helpers.js';
import _ from 'lodash';
import { util, timing } from '@appium/support';
import { waitForCondition } from 'asyncbox';
import { imap } from 'utf7';
import { SubProcess } from 'teen_process';
import B from 'bluebird';
const SETTINGS_HELPER_ID ... |
// Preset timeline sequences
const MORNING = [{name: "Now", subpages: [{name: "current-page", duration: 9000}, {name: "radar-page", duration: 8000}]},{name: "Today", subpages: [{name: "today-page", duration: 10000}]},{name: "Tonight", subpages: [{name: "tonight-page", duration: 10000}]},{name: "Beyond", subpages: [{nam... |
/**
* Objective is to verify the table data with the chain data.
*
* Usage: node tools/verifiers/originChainSetup.js
*
* @module tools/verifiers/originChainSetup
*/
const rootPrefix = '../..',
CoreAbis = require(rootPrefix + '/config/CoreAbis'),
VerifiersHelper = require(rootPrefix + '/tools/verifiers/Helper... |
window.onbeforeunload=function(){
if (editing) {
return 0;
}
};
// 页面加载 筛选 按钮功能实现
$(function () {
// 全局变量
tryingGettingNextPage = true;
pageNum = 1;
paramsMap = new Map();
totalDiaries = 2147483647;
paramsMap.set("pageNum", pageNum);
editing = false;
loadComplete = false... |
//==================================================================
//
//==================================================================
function map(cb) {
var f = '['+(fc++)+'] '+arguments.callee.toString().replace(/function\s+/,'').split('(')[0],
dbg=0, fEnd=function(){ dbg&&console.timeEnd(f); console.gro... |
// ----------- MODALS: settings
ispy.invertColors = function() {
ispy.inverted_colors = ! ispy.inverted_colors;
if ( ! ispy.inverted_colors ) {
ispy.renderer.setClearColor(0x000000,1);
for ( var k in ispy.event_description ) {
var obj = ispy.event_description[k];
if ( obj.sty... |
function ajaxurl(id){
var Mid = new Array();
//var Mid = id.substring(0,3);
var Mid = id.split("&");
$(Mid[1]).empty();
$.ajax({
method: "GET",
url: "http://data.kaohsiung.gov.tw/Opendata/MrtJsonGet.aspx?site="+Mid[0],//+id,//
})
.done(functio... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _util = require('./util');
var util = _interopRequireWildcard(_util);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.pro... |
const express = require("express")
const config = require("./config.json")
const app = express()
const Discord = require('discord.js')
const fs = require("fs")
const client = new Discord.Client({"partials": ['CHANNEL', 'MESSAGE', 'REACTION']})
const RBX = require('@mfd/rbxdatastoreservice');
const { MessagingService, I... |
import { numberWithComma } from '@/common/utils';
import dayjs from 'dayjs';
import Canvas from '../helpers/helpers.canvas';
const modules = {
/**
* Draw TextTip with tip's locationInfo
* @param {object} [tipLocationInfo=undefined] tip location information
*
* @returns {undefined}
*/
drawTips(tipL... |
$(document).ready(function(){
var d = new Date();
var thisYear = d.getFullYear();//今年
var thisMonth = d.getMonth()+1;//今月
if(thisMonth <10){thisMonth = "0" + thisMonth}
var selectedmonth = thisYear + "-" + thisMonth;
var select_day_style_pulldown=1;
//先月
$('#last_month_for_week').click(function(){
alert('... |
/**
* Returns a number whose value is limited to the given range.
*
* Example: limit the output of this computation to between 0 and 255
* (x * 255).clamp(0, 255)
*
* @param {Number} min The lower boundary of the output range
* @param {Number} max The upper boundary of the output range
* @returns A number in th... |
/**
* Copyright 2019 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
import "../../backend/js/entry.js"
import { surveyHelpText } from "./content.js"
import { getLang } from "./util.js";
let layout = globalThis.schema.layout;
class SurveyUtil {
constructor() {
this.valPrep = {
single: (this.singlePrep).bind(this),
multiple: (this.multiPrep).bind(this)
}
Sur... |
var mainApp = angular.module("mainApp", []);
function config($interpolateProvider)
{
$interpolateProvider.startSymbol("{|");
$interpolateProvider.endSymbol("|}");
}
config.$inject = ["$interpolateProvider"];
mainApp.config(config);
function mainController($scope, $http)
{
$scope.isLoading = true;
$sc... |
/** Vraća well known tekst reprezentaciju geometrije za predati feature */
function wktGeometrije(feature) {
let format = new ol.format.WKT();
let wktgeom = format.writeGeometry(feature.getGeometry());
//console.log("wkt geom", wktgeom);
return wktgeom;
}
/**Kreiranje vektorskih lejera za snaponvanje */
functi... |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor... |
const productDetails = [
{
name: "<NAME>",
price: 99,
imageUrl:
"https://kabadiwala.com/wp-content/uploads/2018/02/Bamboo_Keychain.png",
qty: 10,
heading: "ECO-FRIENDLY KEYCHAIN",
des:
"Bamboo keychain is made of eco friendly bamboo material with 100% handmade crafts, it is nontoxic, non irritation, fle... |
"use strict";
var oSignIn_inline = (function( doc, aClasses ){
var eSignInLink = doc.getElementsByClassName( aClasses[0] ); // Sign in link
var eSignInSum = doc.getElementsByClassName( aClasses[2] ); // View Summary link
return {
"init": function(){ // Wire click events
if( eSignI... |
var map;
var layer;
var infoWindow;
var creativeSizeArray=[];
var MOBILE_CREATIVE_SIZE_ARRAY=['300x50', '320x50', '300x250', '728x90', '768x1024'];
//var MERGE_TABLE_ID= '1cTLtS6TAMB3N9Bv4cfq6BaBgjGBUtN6VR0nxMN8' ;
var ALL_DMA_TABLE_ID='1QTnVfSO-agR4ueOAVa-uUzYrmNwE4DQ6l0e22EA';
var LIN_MEDIA_SITES_T... |
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import Divider from '@material-ui/core/Divider'
import MenuItem from '@material-ui/core/MenuItem'
import { withRouter } from 'react-router'
import parse from 'autosuggest-highlight/parse'
import match from 'autosuggest-highlight/match... |
'use strict';
/**
* Emulates Node's `path` module. This module contains utilities for handling and
* transforming file paths. **All** of these methods perform only string
* transformations. The file system is not consulted to check whether paths are
* valid.
* @see http://nodejs.org/api/path.html
*/
// Split a fi... |
/**
* 公共方法
*/
//登录注册提示效果方法
var InputTip = {
"blurTip": function(id){
$("#" + id).prev("div").fadeOut().animate({
marginTop: "-20px"
},300);
},
"focusTip": function(id){
$("#" + id).prev("div").show().animate({
marginTop: "10px"
},300);
}
};
/**
*
* @param id 获取城市的的省份id
* @returns {Array} 返回包含省份/... |
//some changes taken from: http://bl.ocks.org/nbremer/6506614
//wraps text to a new line if longer than width
//source: http://bl.ocks.org/mbostock/7555321
function wrap(text, width) {
text.each(function() {
var text = d3.select(this),
words = text.text().split(/\s+/).reverse(),
wor... |
/**
* @author yomotsu / http://yomotsu.net
* ported from http://webgl-fire.appspot.com/html/fire.html
*
* https://www.youtube.com/watch?v=jKRHmQmduDI
* https://graphics.ethz.ch/teaching/former/imagesynthesis_06/miniprojects/p3/
* https://www.iusb.edu/math-compsci/_prior-thesis/YVanzine_thesis.pdf
*/
//THREE.JS
... |
pensionApp.directive("salaryGraph", function(){
function link($scope, element, attrs){
var salaryGraph=new SalaryGraph(element[0]);
salaryGraph.setup();
salaryGraph.render($scope.vals);
$scope.$on("reviseSalaryGraph", function(event){ salaryGraph.render($scope.vals)})
$scope.$on("salaryGraphEditBa... |
const hre = require('hardhat')
const { expect } = require('chai')
const BigNumber = require("bignumber.js");
const fs = require("fs");
const file = fs.createWriteStream("../deploy-logger.js", { 'flags': 'w'});
let logger = new console.Console(file, file);
const decimalStr = (value) => {
return new BigNumber(value).... |
const SAFE_ZONE_WIDTH = 640;
const SAFE_ZONE_HEIGHT = 960;
var game = new Phaser.Game(SAFE_ZONE_WIDTH, SAFE_ZONE_HEIGHT, Phaser.AUTO, '', {
preload: preload,
create: create,
update: update
});
/*
============= Variables ==============
*/
// Game boolean variables
var running = false;
var isPressed = f... |
import React from 'react';
import useSWR, { mutate } from 'swr';
import AuthorNamePlate from 'components/NamePlate/AuthorNamePlate';
import CommenterNamePlate from 'components/NamePlate/CommenterNamePlate';
import { useRouter } from 'next/router';
import { useState } from 'react';
import {
Star as RemixLineStar,
Ch... |
import _ from 'lodash';
import Configuration from './util/Configuration';
import EventBridgeSignaling from './signaling/EventBridgeSignaling';
import { EventEmitter } from 'events';
import Logger from './util/Logger';
import Request from './util/Request';
import Routes, { WORKER_INSTANCE } from './util/Routes';
import... |
mapboxgl.accessToken = '<KEY>';
var ros_server_url = document.location.hostname + ":9090";
var ros = new ROSLIB.Ros();
var rosConnected = false; //control variable
var prevControl = new Array();
//map style 'Ları burada tanımlanıyor-----
var itu_map_bound = new mapboxgl.LngLatBounds([29.012778611801405, 41.09411018... |
import React from 'react';
import './OrderPizzaApp.css';
import ItemModal from './ItemModal';
import spinner from './PizzaLoader.GIF';
import {amount} from './toppings';
import classnames from 'classnames';
import slice1 from './PizzaSlice1.png';
import slice2 from './PizzaSlice2.png';
import slice3 from './PizzaSlice3... |
//
// /COE/RBP_PAM_NOTIFICATION_GET exception: 0 struct: 1 table: 10 var: 2
//
// abap 2.3.0 at: 2021-04-23 11:59:34
//
// prettier-ignore
const parameters = {
// IMPORT PARAMETERS
IV_NOTIFNO : "", // CHAR (12) ALPHA=ALPHA no text (undefined) SU3=IQM
// IV_DOCUMENT : "", // CHAR (1... |
function httpGet(theUrl) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", theUrl, false); // false for synchronous request
xmlHttp.send(null);
return xmlHttp.responseText;
}
function httpGetAsync(theUrl, callback) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = funct... |
function inArr(str, strArray) {
for(var i=0;i<strArray.length;i++) {
if(strArray[i].match(str)) return true;
}
return false;
}
function isEmpty (val_arr, total, data_arr) {
data_arr[0] = {subj: val_arr[0] ,pred_obj: [[val_arr[1], val_arr[2]]]}; //pred_obj = 2D arr
console.log(data_arr);
//console.log((val_arr[0... |
// set the dimensions and margins of the graph
var mainFullWidth = 1600,
mainFullHeight = 1500
var margin = {top: 40, right: 40, bottom: 40, left:40},
width = mainFullWidth - margin.left - margin.right,
height = mainFullHeight - margin.top - margin.bottom;
var legendFullWidth = 1400,
legendFullHeight ... |
const id = "rubiks-cube";
const COLORS = {
WHITE: '#FFFFFF',
YELLOW: '#FFD500',
RED: '#B71234',
ORANGE: '#FF5800',
BLUE: '#0046AD',
GREEN: '#009B48',
NULL: '#000000',
// WHITE: '#000000',
// YELLOW: '#000000',
// RED: '#000000',
// ORANGE: '#000000',
// BLUE: '#000000',
// GREEN: '#000000',
... |
/**
* Component class.
*
* @exports component
*/
var registeredComponents = {}; //require(""); - something here
var registeredAttributes = require("./attributes/attributeHandlers");
/* BindingContext class */
var ElementBindingContext = function(domElement, model, parent) {
this.domElement = domElement;
this.... |
const deploymentHelper = require("../utils/deploymentHelpers.js")
const testHelpers = require("../utils/testHelpers.js")
const SortedTroves = artifacts.require("SortedTroves")
const SortedTrovesTester = artifacts.require("SortedTrovesTester")
const TroveManagerTester = artifacts.require("TroveManagerTester")
const LUS... |
console.log("Loading src.main.mainjs Please wait .........");
const { app, ipcMain , ipcRenderer, Menu, MenuItem, BrowserWindow, dialog } = require('electron');
//Expirmental Reuqires
//Expirmental requires ends :D
const { exec } = require('child_process');
const net = require('net');
const fileUrl = require('file-url'... |
'use strict';
const i2c = require('i2c-bus');
const Constants = require('./constants');
const Bme680Data = require('./bme680Data');
const CalibrationData = require('./calibrationData');
const constants = new Constants();
const bme680Data = new Bme680Data();
let wire;
module.exports = class Bme680 {
constructor(... |
/* Non-interactive tests *ONLY* in this file! */
var cvs = "$Id: js_document.js 4838 2006-01-18 05:59:01Z hallvord $";
testmodule( "JavaScript 1.3 document test", cvs );
testcase( "document exists" );
tdef( 'defined', window.document );
testcase( "tostring" );
test( 'tostring #1', window.document + "", "[object H... |
import prettier from 'prettier';
import parsePo from './parse-po.js';
const flatten = function (output, item) {
if (item instanceof Array) {
item.reduce(flatten, output);
} else {
output.push(item);
}
return output;
};
const divide = function (strings, index) {
const output = [];
... |
// 0x07009900 - 0x07009918
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsSP1Triangle, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
/* REQUIRED DEPENDENCIES */
var superagent = require('superagent');
var reload = require('require-reload');
var fs = require('fs');
/* LOCAL VARIABLES */
var logger = new (reload('./Logger.js'))((reload('../config.json')).logTimestamp);
/**
* Contains various functions.
* @module utils
*/
/**
* S... |
'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 ('v... |
/*
* SUNNY LAND Demo Code
* @copyright 2017 Ansimuz
* @license {@link https://opensource.org/licenses/MIT | MIT License}
* Get free assets and code at: www.pixelgameart.org
* */
var game;
var background;
var middleground;
var gameWidth = 288;
var gameHeight = 192;
var hurtFlag = false;
var hurtTimer;
var ... |
import React from "react";
import {connect} from 'dva'
import styles from './index.less'
import Hot from "./hot";
import NotFound from "./notfound";
import Result from "./result";
import bg from '../../public/Imgs/search/index/bg.jpg'
import search from '../../public/Imgs/search/index/search.png'
import line from '../... |
/* eslint-disable react/state-in-constructor */
/* eslint-disable react/jsx-props-no-spreading */
import React, { Component } from 'react';
import {
Button,
Form,
Input,
Row,
Col,
Table,
Icon,
Spin,
Select,
Tooltip,
Menu,
Dropdown,
Switch,
Popconfirm,
} from 'hzero-ui';
import { isEmpty } fr... |
/* Copyright (c) Business Objects 2006. All rights reserved. */
var L_bobj_crv_MainReport = "Informe principal";
// Viewer Toolbar tooltips
var L_bobj_crv_FirstPage = "Ir a primera p\u00E1gina";
var L_bobj_crv_PrevPage = "Ir a p\u00E1gina anterior";
var L_bobj_crv_NextPage = "Ir a p\u00E1gina siguiente";
var L_... |
import { gWorld } from "./game.js";
import * as Util from "./util.js";
export var GenerationShape;
(function (GenerationShape) {
GenerationShape[GenerationShape["Box"] = 0] = "Box";
GenerationShape[GenerationShape["Circle"] = 1] = "Circle";
GenerationShape[GenerationShape["Regular"] = 2] = "Regular";
Ge... |
var tr = require('./timeroutines'),
extend = require('../core.js').extend,
advance = tr.dateArithmetics.advance,
areSameDate = tr.dateArithmetics.areSameDate,
adjust = tr.adjust,
twentieth = tr.twentieth,
Period = tr.Period,
calendars = require('./calendars');
function CHECK(condition, mess... |
var decklistChangeTimer = null;
var pdfChangeTimer = null;
var cardQuantity = 1;
$(document).ready(function() {
// bind events to all the input fields on the left side, to generate a PDF on change
$('div.left input, div.left textarea').on('input', pdfChangeWait);
$("#download").button();
$("#cardtodeck... |
jQuery(document).ready(function() {
"use strict";
var pluginName = "Morphext",
defaults = {
animation: "bounceIn",
separator: ",",
speed: 2000,
complete: jQuery.noop
};
function Plugin (element, options) {
this.element = jQuery(element);
this.settings = jQuery.extend({}, defaults, op... |
/* global lib */
'use strict'
import './neighbor.css'
const DEFAULT_INTERVAL = 3000
const DEFAULT_NEIGHBOR_SPACE = 20
const DEFAULT_NEIGHBOR_ALPHA = 0.6
const DEFAULT_NEIGHBOR_SCALE = 0.8
const TRANSITION_DURATION = 400
const MAIN_SLIDE_SCALE = 0.9
const MAIN_SLIDE_OPACITY = 1
let extend, Component
function idle... |
var Engine = Matter.Engine,
Events = Matter.Events,
Render = Matter.Render,
World = Matter.World,
Bodies = Matter.Bodies;
Body = Matter.Body;
var timeFormatOptions = {
hour: 'numeric', minute: 'numeric', second: 'numeric',
hour12: false,
timeZone: 'America/Los_Angeles'
};
var timeFormat = new Intl.DateTimeForma... |
/** Author: nejevoli
NPC Name: NimaKin
Map(s): Victoria Road : Ellinia (180000000)
Description: Maxes out your stats and able to modify your equipment stats
*/
importPackage(java.lang);
var status = 0;
var slot = Array();
var stats = Array("Strength", "Dexterity", "Intellect", "Luck", "HP", "MP", "Weapon Atta... |
let base,
ship,
bullets,
stars,
hp_bar,
ship_image,
bullet_image,
bg_image,
start_bg,
star_image,
particleImage,
particleImage2,
particleImage3,
bullet_sound,
star_sound,
basehit_sound,
start_sound,
special_sound,
bgm,
gameoverbgm,
startmenu_sound,
blink_text,
yellow_star,
... |
/*
Copyright © 2014 <NAME> <<EMAIL>>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the COPYING file for more details.
*/
//Base function for displaying the IAT trial screens
//
//Clears the sc... |
'use strict';
const methodConteiner = {};
methodConteiner.method = (obj) => {
obj.field = 'value';
return obj;
};
const config = {
characters: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
secret: 'secret',
length: 64
};
const CONFIG_FILES_PRIORITY = [
'sandbox.js',
'log.js',
'sca... |
import React, { Component } from 'react';
import 'semantic-ui-css/semantic.min.css';
import logo from './logo.svg';
import './App.css';
import agenda from './data/agenda.json';
//import conference from './data/conference.json';
import meeting from './data/meeting.json';
//import news from './data/news.json';
//impor... |
// custom forms script
var maxVisibleOptions = 20;
var all_selects = false;
var active_select = null;
var selectText = "please select";
function initCustomForms() {
getElements();
separateElements();
replaceRadios();
replaceCheckboxes();
replaceSelects();
// hide drop when scrolling or resizing win... |
/* globals $ */
import Static from './static'
import Events from './events'
import Navigation from './navigation'
import Hammer from 'hammerjs'
const debug = require('debug')('init')
function StoryGist (element, options) {
var encodedShareURL = encodeURIComponent(window.location.href)
// Define icons to be used i... |
"use strict";
//Possible directions a user can move
//their character. These are mapped
//to integers for fast/small storage
var directions = {
DOWNLEFT: 0,
DOWN: 1,
DOWNRIGHT: 2,
LEFT: 3,
UPLEFT: 4,
RIGHT: 5,
UPRIGHT: 6,
UP: 7
};
//size of our character sprites
var spriteSizes = {
WIDTH: 50,
HEIG... |
/***
* @author <NAME>
* @date Dec 2021
* @description LWC Component to display a record as main section and subtabs.
* @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
*
* Legal Notice
*
* MIT License
*
* Copyright (c) 2021 pegros
*
* Permission is hereby granted, free of charge, to any person obtaining... |
import { maybe, oneOf, evaluate, t, lift, oneOfCanRepeat, oneOfWeighted } from "./dsl"
import { upperFirst, random, range, nth, kebabCase } from "lodash/fp"
import { wordList, prependAll, nOf, natListFi, mapAll, compoundFi, __ } from "./util"
import { fullName, surname, firstName } from "./name"
const maybeWord = x =>... |
"use strict";
require("dotenv").config();
const express = require("express");
const bodyParser = require("body-parser");
const Web3 = require("web3");
const cookieParser = require("cookie-parser");
const HDWalletProvider = require("@truffle/hdwallet-provider");
const admin = require("firebase-admin");
const serviceAcco... |
import React, { Component, Fragment } from 'react';
import { View, Text, Platform, ScrollView, KeyboardAvoidingView, Alert } from 'react-native';
import { WebView } from 'react-native-webview';
import { injectIntl } from 'react-intl';
import Slider from '@esteemapp/react-native-slider';
import get from 'lodash/get';
im... |
recognition = new webkitSpeechRecognition();
recognition.continuous = true;
recognition.lang = "en-IN";
recognition.interimResults = true;
function startTranscribe() {
recognition.onstart = function () {
console.info("started recognition");
};
recognition.onerror = function (event) {
c... |
/* The states we can be in are as follows:
*
* REQUEST_SELECTION
* This is the initial state. All keys are enabled, button10 is "10" not "0".
* If the selection input contains between 2 and 6 numbers, the main
* button reads "Next" otherwise it is disabled.
* If any number keys are pressed, the appropriate number... |
//localStorage.clear();
function flashCard(uniqueId, front, back, correct) {
var self = this;
self.id = uniqueId; //int
self.front = front; //string
self.back = back; //array of strings
//gets correctness from uniqueId
self.isCorrect = ko.observable(correct);
}
function ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Coherent Labs AD. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------... |
var iniRegisterDailyReport = function(appKey){
$('.loader').show();
var mydata = {timeOffset:timeOffset},
mydataStr = $.toJSON(mydata),
res={};
$.ajax({
url:"reportDetail/getRegisterDailyReport",
type:"POST",
dataType:"json",
data:mydataStr,
... |
import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import axios from 'axios';
import Typography from '@material-ui/core/Typography';
import FormControl from '@material-ui/core/FormControl';
import InputLabel from '@material-ui/core/InputLabel';
import Select from '@material... |
/* Emoticons Plugin
* This is a chat-plugin for an Emoticons system on PS
* You will need a line in parser to actually parse
* this so that it works. Also, you will need need to
* add a few lines to the PM command.
* Credits: panpawn, jd
*/
var fs = require('fs');
var serialize = require('node-serialize');
var... |
const Form = require("./form-data"),
ip = require("./ip"),
statusCodes = require("./status-codes"),
mime = require("./mime-types"),
JSS = require("./jss-functions"),
url = require("url"),
path = require("path"),
fs = require("fs"),
zlib = require("zlib");
class Connection {
// Initialize the connection
const... |
const __version__ = "2.2.6";
const emptyCardText = 'Click to add audio';
class Song{
constructor(file){
this.file = file;
this.url = URL.createObjectURL(this.file);
}
}
class SongList{
constructor(){
this.list = [];
this.selectedSongIndex = -1;
this.selectedPage = ... |
/**
* PartView
* ----------------------------------------
* I am an *abstract* webcompoent CustomElement
* that serves as the generic view for any Part
* models.
* I should not be instantiated directly, nor should
* I be added to any web page's registry of CustomElements.
* I am indended to be extended (subclas... |
import React from "react";
import {
Text,
View,
ScrollView,
Image,
FlatList,
TouchableHighlight,
TouchableOpacity,
RefreshControl,
StatusBar,
Alert,
StyleSheet,
SafeAreaView,
} from "react-native";
import { useFocusEffect } from "@react-navigation/native";
import * as Animatable from "react-nati... |
import BlockchainAPI from "./BlockchainAPI";
import {Apis} from "bitsharesjs-ws";
import {
PrivateKey,
PublicKey,
TransactionBuilder,
Signature,
FetchChain
} from "bitsharesjs";
import RendererLogger from "../RendererLogger";
import {formatAsset, humanReadableFloat} from "../assetUtils";
const logge... |
let util = require("../base/util");
const REGS = {
k: /\r/g,
l: /\n/g,
a: /</g,
b: />/g,
d: /<%|%>/g,
e: /^=.*;$/,
i: /\r\n/g,
f: />[\s]+</g,
g: /<%[\s\S]*%>/,
h: /\<\!\-\-[\s\S]*?\-\-\>/g,
startdot: /</g,
enddot: />/g,
isDoctype: /\<\!DOCTYPE[\s\S]*?\>/g... |
//=============GLOBAL VARIABLES DECLARATION & ASSIGNMENT============
//create an array that stores the questions selected from the topic submit button
let quizBank= [];
//counts the number of questions we ask, starting at zero for an array
let counter = 0;
//tracks index of the quizBank array
let index=0;
// creat... |
/* Copyright (C) 2016 NooBaa */
'use strict';
const _ = require('lodash');
const fs = require('fs');
const Ajv = require('ajv');
const util = require('util');
const mongodb = require('mongodb');
const EventEmitter = require('events').EventEmitter;
const P = require('./promise');
const dbg = require('./debug_module')(... |
import * as Phaser from 'phaser'
import nipple from "nipplejs";
import {times, random} from 'lodash'
import BaseGameScene from '@module/BaseGameScene';
const SPEED = 500;
const IS_MOBILE = window.innerWidth < 450;
const SCALE = IS_MOBILE ? 1 : 2;
const ENEMY_SPEED_MIN = IS_MOBILE ? 300 : 400;
const ENEMY_SPEED_MAX = ... |
import BreadcrumbBox from '@/components/BreadcrumbBox';
import { delNillObject,toParseInt,momentToString ,delHtmlTag} from '@/utils/utils';
import Uploader from '@/components/Uploader/index';
import { replyFeed } from '@/services/message';
import emitter from '@/utils/eventemitter.js';
import { connect } from 'dva'... |
/**
* This is a script to convert the original CSV data to JSON files
* specific for our application
*
* Use flag "--no-providers" to not update providers, which means, not
* running geocoding
*
* Note that DC is considered a state in this data.
*
* For reference
* 0: 'DRG Definition',
* 1: 'Provider Id',
*... |
//Vars
var bodyMsg = document.getElementById('bodyMsg');
var divMsg = document.getElementById('divMsg');
var body = document.getElementById('body');
var nmUser = document.getElementById('nmUser');
var inputMsg = document.getElementById('inputMsg');
var emailUser = localStorage.getItem("emailUser");
var senhaUser... |
let DEBUG = false;
const fodebug = (...args) => {if (DEBUG) console.log(...args)};
// Make sure the feathersjs-offline wrappers for own-data, own-net, and server are available
/* eslint-disable no-undef */
if (!(feathersjsOfflineClient)) {
alert('Could not load the \'feathersjs-offline\' library. Please check.');
}
... |
import React from 'react';
class Mttq extends React.Component{
componentDidMount(){
//set styles
var allLines = document.getElementById('svg-container').getElementsByTagName('line');
for(var t of allLines){
t.setAttribute('stroke',"#2975d9");
t.setAttribute('str... |
import {getDocuments, getSelectedDocument, DataSupplier, Settings, UI} from 'sketch';
import BrowserWindow from 'sketch-module-web-view';
import MochaJSDelegate from 'mocha-js-delegate';
import constants from '../../common/constants';
import * as tokenPopover from './token-popover';
import * as selectPopover from './... |
import React, { useState, useEffect, Fragment } from 'react';
import styled from 'styled-components';
import { rgba } from 'polished';
import { useSelector, useDispatch } from 'react-redux';
import { useTranslation } from 'react-i18next';
import { TiFeather } from "react-icons/ti";
import { useParams, useHistory, Link,... |
const moment = require('moment')
const FORMAT = 'DD.MM.YYYY'
const DAYS_IN_WEEK = 7
class DropDown {
constructor(selector) {
this.item = selector
this.current = this.item.querySelector('.curr-value')
this.drop = this.item.querySelector('.filter-list')
this.list = this.drop.querySel... |
require('dotenv').config()
const web3 = require('./web3').web3
const flip = require('./contracts/flip')
const db = require('./db').getDB('flip')
const moment = require('moment');
const conf = require('./config')
const BigNumber = require('bignumber.js')
let state
let savedStates = []
const blockQueue = []
let isInitia... |
// Debug Panel Object
var global = window
var MAX_TRY = 100
var pollCount = 0
var PREFIX = 'seajs-debug-'
var STATUS_BUTTON_ON_CLS = PREFIX + 'status-on'
var MIN_CLS = PREFIX + 'mini'
var HIT_CLS = PREFIX + 'hit'
function DebugPanel() {
this.element = null
this._rendered = false
this.c... |
import React, { useCallback, useEffect, useState } from "react";
import { Block, Button, Input, Text, Select } from "../components";
import { Image, StyleSheet, KeyboardAvoidingView, ScrollView, ToastAndroid, ActivityIndicator, Alert } from "react-native";
import { Colors, Layout } from "../constants";
import AsyncStor... |
$(function() {
$('[data-toggle="tooltip"]').tooltip();
});
$('tr').bind('mouseover', function() {
onHover($(this)[0]);
$('tr').bind('mouseout', function() {
offHover($(this)[0]);
});
});
$('#fileTypeButton').on('click', function(event) {
console.log('hello');
$('#searchDropdown').toggleClass('show');
});
$(... |
/** revlibjs.js
* Common Javascript libraries for HTML pages.
*/
// http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
/*
function qualifyURL(url)
{
var a = document.createElement('a');
a.href = url;
return a.cloneNode(false).href;
}
*/
//////////////////////... |
"use strict";
var canvas;
var gl;
var numVertices;
var numChecks = 8;
var texSize = 64;
var program;
var c;
var flag = false;
var positionsArray = [];
var colorsArray = [];
var normalsArray = []
var nMatrix, nMatrixLoc;
var radius = 5.0;
var theta = 55.0;
var phi = 102.0;
var scaling = 1
var near = 2.0;
var far = 7... |
// Copyright 2012 <NAME>, all rights reserved.
//
// Server routines
"use strict";
const Net = require( "net" );
const Dgram = require( "dgram" );
const { EventEmitter } = require( "events" );
const { DNSMessage, DNSRecord } = require( "./message" );
const { seconds: asSeconds, serial: asSerial } = require( "./conve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.