text
stringlengths
3.22k
29.5k
import React from 'react'; import { getSystemConfig, daysArr, translateDayToThai, } from '../functions/systemFunctions'; import * as enroll from '../functions/enrollCourseFunction'; import LoadingPage from '../components/LoadingPage'; import ErrorPage from '../components/ErrorPage'; import Footer from '../components/...
var g_height = 800 var g_width = 800 var g_padding = 50 var g_center = { x : g_width/2, y : g_height/2} var svgContainer = d3.select("body") .append("svg") .attr("width", g_width) .attr("height", g_height) .style("background-color", "black"); var test = [ {x: 5, y: 5}, {x:50, y: 50} ] var xScale = d3.scaleL...
import Head from 'next/head' import Locate from '../components/Locate' import Cuckoo from '@torufurukawa/cuckoo' import 'bootstrap/dist/css/bootstrap.min.css' import { Carousel } from 'react-bootstrap' import '@torufurukawa/cuckoo/dist/style.css' const path = '/types' class App extends React.Component { get initialS...
import {tryParseJson, minimalNewNodeJoinRaDeposit, expectNumberOfRemoteAttestatorsToBeVoted} from '../constValue' import {sha256} from 'js-sha256'; import { ecvrf, sortition} from 'vrf.js'; import Big from 'big.js'; import {log} from '../PotLog'; export default (ipfs, room, options)=>{ return async (m)=>{ const...
"use strict" const express = require("express"); const passport = require("passport"); const cookieSession = require("cookie-session"); const GoogleStrategy = require("passport-google-oauth20"); const dbo = require("./databaseOps"); const db = require("./sqlWrap"); const hiddenClientID = process.env["ClientID"] con...
import React, { useCallback, useRef, useState, useEffect, useMemo } from 'react' import styled from 'styled-components/macro' import Rete from 'rete' import ReactRenderPlugin from 'rete-react-render-plugin' import ConnectionPlugin from 'rete-connection-plugin' import AreaPlugin from 'rete-area-plugin' import { VERSION_...
/*///////////////////////////////////////////////////////////////////////////// Author : @qodeninja /////////////////////////////////////////////////////////////////////////////*/ "use strict"; /*///////////////////////////////////////////////////////////////////////////// // λ - Includes ///////////////////////...
var graph; var all_data = null; function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css( { position: 'absolute', display: 'none', top: y + 5, left: x + 5, border: '1px solid #fdd', padding: '2px', 'background-color': '#fee' ...
const Scene = require('./Scene'); const keypress = require('./lib/keypress'); const getAbsoluteBoundingRect = require('./lib/getAbsoluteBoundingRect'); class RaycastGroup{ constructor(items, callback, collectionQuery, recursive){ this.items = items; this.callback = callback; this.recursive...
// Assignment Code -- Please note that for simplicity I also placed the default // value for my created variables up here. var generateBtn = document.querySelector('#generate'); var passcodeLength = ""; var backupCharacters = ""; var passwordString = ""; var testPasscode = ""; var userChoice = 0; // Random Number Ge...
var datasets = ["data.csv", "data2.csv", "xyang-collection.csv"], mediaTypes = ["icon", "image"], colorThemes = ["green", "red", "blue", "purple"]; var state = {}; state.svg = null; state.boxClicked = false; state.clickedBox = null; state.clickedMediaLabel = null; state.clickedTagLabel = null; state.heatmapCha...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var http_1 = require("@angular/common/http"); var amigo_service_1 = require("../appdb/amigo.service"); var app_settings_1 = require("../app.settings"); var DikotaService = /** @class */ (function () { ...
import _ from 'lodash/fp' import { Fragment, useState } from 'react' import { div, h, label, p, span } from 'react-hyperscript-helpers' import { ButtonOutline, ButtonPrimary, IdContainer, Link, Select, spinnerOverlay, WarningTitle } from 'src/components/common' import { icon } from 'src/components/icons' import { Numbe...
//显示报警信息 var last; var model; var tree; var root; var id=1; var tab; var viewport; var filter; var westPanel; var maxWindows=15; function show(moduleName){ if(westPanel.collapsed){ westPanel.expand(true); } var i=0; var module=westPanel.getComponent(i); while(module!=undef...
"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...
function componentTime (state) { const now = Date.now() state.time.deltaTime = (now - state.time.lastTime) / 1000 state.time.lastTime = now state.time.runTime += state.time.deltaTime } function componentInput (state) { const mouseDown = game.mouseDown const lastMouseDown = state.input.mouseDown state.in...
"use strict"; class GrubMenuSimulator { constructor( canvas, width, height ){ this.canvas = canvas; this.context = canvas.getContext("2d"); this.context.imageSmoothingEnabled = false this.resize( width || 800, height || 600 ); this.model = null; this.images = new Map(); }...
import { Meteor } from 'meteor/meteor' import logger from '/imports/lib/log' import moment from 'moment' import Messages from './schema' import { getCfgs } from '/imports/api/settings/server/helper' import Transporter from './server/transports' import { push } from '/imports/api/notifications/server/helper' import HTML...
/* eslint-disable no-nested-ternary */ /* eslint-disable consistent-return */ /* eslint-disable react/jsx-curly-newline */ /* eslint-disable react/prop-types */ /* eslint-disable react/jsx-wrap-multilines */ /* eslint-disable indent */ /* eslint-disable react/jsx-indent */ /* eslint-disable operator-linebreak */ /* esl...
/** ##************************************************************** ## ## Copyright (C) 2018-2020, OneDataShare Team, ## Department of Computer Science and Engineering, ## University at Buffalo, Buffalo, NY, 14260. ## ## Licensed under the Apache License, Version 2.0 (the "License"); you ## may not use this ...
var dgram = require('dgram'); var sleep = require("sleep"); require('colors'); module.exports = (function() { var r = { time:0, // for send max_time:0, // for receive seq:0, // for send max_seq:0, // for receive SSRC:0, RTP:0, ip:0, port:0, buf:0, packet_size:40960, receiver_event:0, nexttime...
const fs = require("fs"); const readline = require("readline"); const { google } = require("googleapis"); //add momment var moment = require("moment"); //const pts = require("./jsonToIcal.js"); // If modifying these scopes, delete token.json. // const SCOPES = ['https://www.googleapis.com/auth/calendar.readonly']; co...
/** * Copyright 2016 IBM All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
#!/usr/bin/env node /*! * __NAME__@__VERSION__ build * Bundled by bpkg on __TIME__ */ /* eslint "no-var": "off" */ /* eslint "no-unused-vars": "off" */ /* global __MODULES__ global __LINKS__ global __ENGINE__ global __ENCODED__ */ 'use strict'; var cp = require('child_process'); var fs = require('fs'); ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
import axios from 'axios'; import { filter } from 'lodash'; import { Icon } from '@iconify/react'; import { sentenceCase } from 'change-case'; import { useState, useEffect } from 'react'; import plusFill from '@iconify/icons-eva/plus-fill'; import { Link as RouterLink } from 'react-router-dom'; // material import { C...
/* * Orwell http://github.com/gettocat/orwell * Platform for building decentralized applications * MIT License * Copyright (c) 2017 Nanocat <@orwellcat at twitter> */ var config = require('../config'); var protocol = require('./protocol'); var netevent = require('../events/network') var nodes = require('../db/entity/n...
import React, { Component } from 'react'; // import ReactDOM from 'react-dom'; import {Message,Form, Grid, Button, Icon, Dropdown} from 'semantic-ui-react' import 'whatwg-fetch' import {urlPrefix} from '../../utils.js' // import update from 'immutability-helper' import RawDataModal from '../RawDataModal.js' // import C...
import React, { useState, useEffect } from "react"; import styled from "styled-components"; import axios from "axios"; const TimerDisplay = styled.div` width: 100%; font-size: 2.8rem; font-weight: 800; color: white; filter: drop-shadow(0 0 0.25rem black); position: absolute; bottom: 0; ...
/* eslint-disable no-tabs */ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import { toWidgetEditable } from '@ckeditor/ckeditor5-widget/src/utils'; import Widget from '@ckeditor/ckeditor5-widget/src/widget'; import Command from '@ckeditor/ckeditor5-core/src/command'; import blockAutoformatEditing from '@cke...
import React, { Component, Fragment } from 'react'; import { Link } from 'react-router-dom'; import classnames from 'classnames'; import _ from 'lodash'; import computeCompoundInterest from './utils/compute-compound-interest'; import formatOutputDollars from './utils/format-output-dollars'; import { getUpdatedFormState...
/* * Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL) * * 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. * * U...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import {Text} from 'react-native'; import {intlShape} from 'react-intl'; import {Posts} from 'mattermost-redux/constants'; import {displayUsern...
// Module to handle output to the console, the client and the log file const clc = require('cli-color'); // Make CLI colors fancy const md5 = require('md5'); // Used to ensure that the same message is not displayed multiple times const fs = require('fs'); // Filesystem const eol = require('os').EO...
/** _ _____ _ _ * | ||_ _| |_| | * | |_ | | | _ | * |___||_| |_| |_| * @author lo.th / https://github.com/lo-th * * Description: Environement HDR from .hdr or .jpg * */ function Environement ( renderer, scene, resolution ) { this.renderer = renderer; this.scene = scene; this.resolution ...
// // Page entièrement chargé, on lance le jeu // document.addEventListener("DOMContentLoaded", function () { // new Game('renderCanvas'); // }, false); Game = function(canvasId,playerConfig,props) { // Canvas et engine défini ici var canvas = document.getElementById(canvasId); var engine = new...
const assert = require('assert') const path = require('path') const _ = require('lodash') const libclang = require('libclang') const Cursor = libclang.Cursor const Index = libclang.Index const TranslationUnit = libclang.TranslationUnit const Type = libclang.Type /* * Accepts an object as defined below ...
import React from "react"; import PropTypes from "prop-types"; const UndrawDelivery = props => ( <svg style={{height:props.height, width:'100%'}} className={props.class} id="a2be76dc-ded0-4276-979b-9321ffa4ea47" data-name="Layer 1" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 896.26...
// @ts-check /* eslint-disable no-unused-vars, react/no-danger, react/no-unused-prop-types */ import { sanitizeDangerousMarkup } from "@asu-design-system/components-core"; import { Formik, Form } from "formik"; import PropTypes from "prop-types"; import React, { useEffect, useState } from "react"; import { Button, Prog...
import { login, getUserInfo, sendRegisterEmail, register, sendForgetPasswordEmail, forgetPassword, logout, updatePhoto, updateMessage, queryUserMsg, userSet, login_baidu, getUserInfo_baidu, logout_baidu, updatePosition, getUserSetting, signIn } from '@/api/user.js' import localStore from '@/helpers/loc...
"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...
//if(document.getElementById("events-app")){ const usacAPI = axios.create({ // baseURL: 'https://ccnbikes.com/rest/v2', baseURL: "/API", timeout: 100000, withCredentials: false }); var isProcessing = false; var query = "?"; var pageCount = 0; var resultsActive = false; var searchParams =...
const Demo = require('../index'); const ParseMode = require('../build/Demo').ParseMode; const fs = require('fs'); const argv = require('minimist')(process.argv.slice(2), {boolean: true}); if (argv._.length !== 1) { console.log('Usage: "node analyse [--strings] [--slow] [--dump] [--head] [--event-list] [--create-ev...
/************************************************************************** WARRANTY DISCLAIMER. General. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MISTY ROBOTICS PROVIDES THIS SAMPLE SOFTWARE “AS-IS” AND DISCLAIMS ALL WARRANTIES AND CONDITIONS, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING THE WARRANTIE...
/* eslint-disable jsx-a11y/anchor-is-valid */ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/alt-text */ /* eslint-disable no-underscore-dangle */ import React, { useMemo } from 'react'; import PropTypes from 'prop-types...
// Make sure to check the environment variables in the README.md file - there is no fault tolerance here. const puppeteer = require('puppeteer'); const http = require('http'); const Google = require('googleapis'); const moment = require('moment-timezone'); const fs = require('fs'); const os = require('os'); co...
const fUtil = require("../misc/file"); const stuff = require("./info"); const http = require("http"); function toAttrString(table) { return typeof table == "object" ? Object.keys(table) .filter((key) => table[key] !== null) .map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(table[key])}`) .j...
import moment from 'moment' // 时间按fmt格式化 export function fmtDateFormat(date, fmt) { const o = { 'M+': date.getMonth() + 1, // 月份 'd+': date.getDate(), // 日 'h+': date.getHours(), // 小时 'm+': date.getMinutes(), // 分 's+': date.getSeconds(), // 秒 'q+': Math.floor((date.getMonth() + 3) / 3), // ...
import useAxios from 'axios-hooks' import { useContext, useState } from 'react' import { v4 as uuidv4 } from 'uuid' import { Button, Checkbox, Divider, Dropdown, Form, Grid, Header, Icon, Input, Segment, Table } from 'semantic-ui-react' import CsvImportEdit from './CsvImportEdit' import CsvImportStatus from './CsvImpo...
/** * @file Middleware to track user events. * @author <NAME> <<EMAIL>> */ const debug = require("debug")("middleware:analytics"); const axios = require("axios"); const emailAddresses = require("email-addresses"); const EventEmitter = require("events"); const { v4: uuidv4 } = require("uuid"); const { EVENTS, PROP...
import React, { useEffect, useRef, useCallback, useState } from 'react'; import { connect } from 'react-redux'; import L from 'leaflet'; import bboxPolygon from '@turf/bbox-polygon'; import bbox from '@turf/bbox'; import parseGeoraster from 'georaster'; import GeoRasterLayer from 'georaster-layer-for-leaflet'; import p...
/* * Copyright 2021, <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: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and...
import Polyfill from 'classlist-polyfill'; // import MojsPlayer from 'mojs-player' import Module from './components/module'; import Ball from './components/ball'; import Ball1 from './components/ball1'; import Ball2 from './components/ball2'; import Ball3 from './c...
import React from 'react'; import {StyleSheet, View, ScrollView,Image , TouchableOpacity, ImageBackground, Dimensions, FlatList} from 'react-native'; import { Icon,Card,Button, Text, Block} from 'galio-framework'; //import { LinearGradient } from 'expo'; import TextTicker from 'react-native-text-ticker'; import Textar...
var selectedProvince = null; var refreshProvince = false; $(function() { $('.resItem').bt({ contentSelector: "$('.name', this).html()", fill: 'gray', positions: 'bottom', width: '60px', padding: '3px', shadow: true, spikeGirth: 10, spikeLength: 5, ...
// Arguments passed into this controller can be accessed off of the `$.args` object directly or: var args = $.args; $.AudioStop.open(); $.stopModel.set(args.stopModel.attributes); var player = Ti.Media.createSound({url:args.stopModel.attributes.audioPath}); player.volume = Alloy.Globals.soundVolume; var isPlaying ...
/** * External dependencies */ import classnames from 'classnames'; /** * WordPress dependencies */ const {__} = wp.i18n; const { compose, withState, } = wp.compose; const { PanelBody, RangeControl, withFallbackStyles, SelectControl, ToggleControl, } = wp.components; const { Fragment, Component } = wp....
function DemoWidget(cfg) { this.selector = cfg.selector; this.wsport = cfg.wsport; this.uioff = cfg.uioff; this._serviceList = []; this._clientId = 0; if (cfg.client_id) this._clientId = cfg.client_id; this._drawbox = null; this.init(); } DemoWidget.prototype.init = function() { var form = $("<d...
import React from 'react'; import { connect } from 'react-redux'; import { Select, Form, Input, Radio, Button, Modal, Row, Col } from 'antd'; import PropTyeps from 'prop-types'; import Compatibility from '../Compatibility/'; import { withRouter, browserHistory } from 'react-router' import './less/edit.less'; import 'r...
class ArenaRender { constructor(arenaStructure) { this._tankSprite = new Image(); this._tankSprite.src = 'images/tank_sprite.png'; this._heartImage = new Image(); this._heartImage.src = 'images/heart.png'; this._canvas = $('#tanx-canvas'); this._arenaStructure = arenaStructure; this._ca...
'use strict' var util = require('util') , uri = require('uri') , events = require('events') , SpriteBatchNode = require('./BatchNode').SpriteBatchNode , Sprite = require('./Sprite').Sprite , TMXOrientationOrtho = require('../TMXOrientation').TMXOrientationOrtho , TMXOrientationHex = require('../TMXOrient...
var http = require('http'); var url = require('url'); var crypto = require('crypto'); var promise=require('promise'); var XMLJS = require('xml2js'); var builder=new XMLJS.Builder(); var parser=new XMLJS.Parser(); var config=require('./../config/config'); var mysql=require('./mysql'); function weixin(req,res){ //验证to...
import { useState } from "react"; import { useSelector } from "react-redux"; import axios from "axios"; import Swal from "sweetalert2"; const PengerjaanHelper = () => { const baseUrl = process.env.REACT_APP_LARAVEL_URL; const currentUser = useSelector((state) => state.currentUser); const fields = [ { k...
import React from "react"; import { Appear, BlockQuote, Cite, Code, CodePane, Deck, Fill, Heading, Image, Layout, Link, ListItem, List, Markdown, Quote, Slide, Spectacle, Text, } from "spectacle"; import CodeSlide from 'spectacle-code-slide'; import preloader from "spectacle/lib/utils/preloader"; import createTheme...
import { _parse } from './parser'; import { CronosDate, CronosTimezone } from './date'; import { flatMap } from './utils'; const hourinms = 60 * 60 * 1000; const findFirstFrom = (from, list) => list.findIndex(n => n >= from); export class CronosExpression { constructor(cronString, seconds, minutes, hours, days, mon...
function MovingObject(x, y) { rtge.DynObject.call(this); this.x = x; this.y = y; this.z = 1; this.anchorY = 11; this.animation = null; this.path = []; this.movingTime = 0; this.origin = null; this.onMove = null; this.onStopMove = null; this.tickers = {}; this.tick = function(timeElapsed) { for (var ti...
const formatDistanceToNow = require("date-fns/formatDistanceToNow"); const { MessageEmbed, MessageAttachment } = require("discord.js"); const fs = require("fs"); const path = require("path"); const adminIds = require("../ranks.json"); const { createCanvas, loadImage, registerFont } = require("canvas"); String.prototyp...
var Web3 = require("web3"); var contract = require("truffle-contract"); var Whitelist = contract(require("../build/contracts/Whitelist.json")); var Allocations = contract(require("../build/contracts/AllocationsManager.json")); var axios = require('axios'); require("bootstrap"); var deployedContracts = require('../migr...
/** * @copyright 2013 <NAME> * @copyright 2016 commenthol * @license MIT * @module coord */ /** * Coord: Chapter 13, Transformation of Coordinates. * * Transforms in this package are provided in two forms, function and method. * The results of the two forms should be identical. * * The function forms pass a...
import React, { useEffect, useState } from "react"; import { Form } from "react-bootstrap"; import { useForm } from "react-hook-form"; import { ToastContainer, toast } from "react-toastify"; import { useHistory } from "react-router"; import { CircularProgress } from "@mui/material"; import { useParams } from "react-rou...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.isJSON = void 0; var _asyncStorage = _interopRequireDefault(require("@react-native-async-storage/async-storage")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }...
/* Adapted from <NAME>'s Flocking Birds */ var flock; var song; var songidx = 0; var slider; var button_play, button_next; var amp; var histamp = 0; var height, width; function preload() { song = loadSound('music/despacito.mp3'); //0 } function setup() { var x = window.innerWidth/2; var y ...
function listarTabla(objeto, metodo, idTabla) { var consulta = { object: objeto, process: metodo }; ajax = new ajaxObject(consulta); ajax.prepareCall().done(function (result) { var object = JSON.parse(result); if (object.status == 'complete') { crearTabla(id...
//Made by <NAME> in 2020! /*Cooldown is a tool that slows down the use of certain commands. Not all of them need it, just ones that can get annoying fast*/ /*This object is basically like a directory structure. It's sorted as follows: uses - an integer that states how many uses can happen in one spurt guild - object ...
import React, { useEffect, useState } from "react"; import { produce } from "immer"; import { useParams, useHistory } from "react-router-dom"; import User from "./user.js"; import { Hackathon } from "./index.js"; import firestore from "./Firestore.js"; import emailjs from "emailjs-com"; import styled from "styled-compo...
import React, { Component } from 'react'; import RouterContext from 'react-router'; const GAME_MODES = [ 'classic', 'advanced' ]; export default class GameCreate extends Component { state = { availableTeams: [], addedTeams: [], selectedTeam: null, currentWidth: 17, currentHeight: 17, cur...
"use strict"; /** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.dynamicSuperpositionTest = exports.StaticSuperpositionTestData = exports.buildStaticSuperpositio...
function fullUri(ref, query) { var loc = /^([^\?#]+)/.exec(location.href)[1]; return ref ? loc + (query ? "?id=" : "#") + $(ref).attr("id") : loc; } function updateExportUri(ref) { $("#export span.src").text(fullUri(ref, true)) } var last_def = false; function scrollTo(def) { $(window).scrollTo( def, 300, { onAf...
import React from 'react'; import { makeStyles } from '@material-ui/styles'; import { TextField, Grid, Button, CircularProgress } from '@material-ui/core'; import Autocomplete from '@material-ui/lab/Autocomplete'; import axios from 'axios'; import { useCookies } from 'react-cookie'; import PropTypes from 'prop-types'; ...
function getLottery(country, region){ // clear table data var tableData = []; var url = "https://app.lotteryegg.com/lotteries"; var xhr = Ti.Network.createHTTPClient({ onload: function(e) { json = JSON.parse(this.responseText); var length = 0; if(!country){ ...
import WCPolyfill from '../thirdparty/webcomponents-polyfill'; import configuration from "../Configuration"; import { fetchThemeBundle } from "../ThemeBundle"; // Shorthands const d = document; // shadow DOM templates per tag const shadowDOMTemplates = new Map(); const styles = new Map(); const customCSSMap = new M...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
/** * @Description: * @Author: lp1 * @LastEditors: lp1 * @Date: 2019/4/17 4:32 PM * @LastEditTime: 2019/4/17 4:32 PM */ import React, { Component } from 'react'; import { ScrollView, StyleSheet, View, Text, Dimensions, Modal, Platform, ViewPagerAndroid,TouchableOpacity,SafeAreaView } from 'react-native';...
//list_appointment javascript var path = window.location.pathname.split('/'); var http = window.location.origin + '/' + path[1]; $(document).ready(function () { var date = new Date(); date.setDate(date.getDate()); $('#date,#datex').datepicker({ format: 'dd/mm/yyyy', daysOfWeekHighlighted: ...
/** * Copyright 2016 OpenStack Foundation * 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 in ...
'use strict'; /** * The program interface for Fresnel commands. * * Interacts with: {@link external:puppeteer/Browser puppeteer/Browser}, * {@link Writer}, {@link Probe}, and {@link Report}. * * @module conductor */ const fs = require( 'fs' ); const path = require( 'path' ); const puppeteer = require( 'puppetee...
/* eslint-disable react/prop-types */ import React, { useState } from 'react'; import styled from 'styled-components'; import Fa from '../../utils/fontawesome'; import { media, growOverParentPadding } from '../../styles'; import RequiredAuthFragment from '../RequiredAuthFragment'; // -- FUNCTIONS // https://codegolf.s...
var _ = require('underscore'); var $ = require('jquery'); var cdb = require('cartodb.js'); var d3 = require('d3'); var WidgetHistogramChart = require('../../../src/widgets/histogram/chart'); describe('widgets/histogram/chart', function () { var onWindowResizeReal; var onWindowResizeSpy; afterEach(function () { ...
import { vNode, containsWord } from '../helpers'; import setGroupDetails from './set-group-details'; import splitGroups from './split-groups'; /** basicSelector[pseudo] | combinator 1: Separate by combinators and store accordingly 2: Separate selectors from pseudo and store accordingly 3: execute each selector with...
let context = document.querySelector(".context") let titleElement = document.createElement("h1") let pElement = document.createElement("p") function getTitle(fragmentId, callback){ var titles = { home: "Forside", nyheder: "Nyheder", historik: "Historik", vedtaegter: "Vedtægter...
const Splitter = require('./splitter'); function getDefaultSettings() { return { compare: 'lines', // lines|words|chars ignoreWhitespace: false, ignoreCase: false, ignoreAccents: false }; } /** * Encodes text into diff-codes to prepare for Myers diff. */ class Encoder { constructor() { this.code = 0; ...
var global_picture_id = 0; function picture_load(element) { element.schemas = new Array("aqds:image", "aqds:picture"); if (element.m_rootdiv == null) { var oTable = window.document.createElement("TABLE"); element.appendChild(oTable); if (element.detailsHead == null) oTable.className = "si...
require('style.css'); import data from "data.json"; import { inherits } from "util"; (function () { d3.fisheye = { scale: function (scaleType) { return d3_fisheye_scale(scaleType(), 3, 0); }, circular: function () { var radius = 200, distortion = 2, ...
import _ from 'lodash'; import d3 from 'd3'; import debug from 'debug'; import React from 'react'; import { Map as makeMap } from 'immutable'; import timely from 'timely'; import { clickCloseDetails } from '../actions/app-actions'; import AppStore from '../stores/app-store'; import Edge from './edge'; import { EDGE_ID...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LockFile = exports.LockFileEvents = exports.LockFileStatus = void 0; const tslib_1 = require("tslib"); const events_1 = require("events"); const utils = tslib_1.__importStar(require("./utils")); const debug_1 = tslib_1.__importDefault(...
let pos; let gridWidth = 100; let gridHeight = 100; let pxSize = 800 / gridHeight; let env; let ctx; function setup() { // Init p5.js canvas let p5canvas = createCanvas(gridWidth * pxSize, gridHeight * pxSize); // Use default js canvas instead of p5.js for faster performance let canvas = document.getElementBy...
Object.defineProperty(exports, "__esModule", { value: true }); const express_1 = require("express"); var dbFactory = require("../db.factory"); var moment = require('moment'); var sql = require("mssql"); var http = require("http"); const smsRouter = express_1.Router(); exports.smsRouter = smsRouter; smsRouter.post("/sen...
function updateTowerStats(msg) { var element; switch (msg[0]) { // TOWER PREFAB STATS case "1": updateTowerPrfbStat("money", msg[1], msg[2]); break; // price case "8": updateTowerPrfbStat("dmg", msg[1], msg[2]); break; // damage case "9": updateTowerPrfbSt...
"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...
/** * benchmarks.js - Utility module for running benchmarks cli. */ const util = require('util'); const async = require('async'); const commandUtil = require('./commandUtil.js'); const types = require('./types.js'); const logger = require('../config/logger'); const parserUtil = require('./parserUtil'); const MAX_STA...