text
stringlengths
3.22k
29.5k
var year = 2008; var replaceData = { 'hdi_value': 'HDI_Value', 'hdi_rank': 'HDI_Rank', 'fgi_value': 'FSI_Value', 'fgi_rank': 'FSI_Rank', 'hfi_value': 'HFI_Value', 'hfi_rank': 'HFI_Rank', 'clustering_coeff': 'Clustering_Cofefficient', 'sorted_tri': 'Num_Triangles', 'indegree_centrali...
var mqant=window.mqant var username; var users; var roomName; var base = 1000; var increase = 25; var reg = /^[a-zA-Z0-9_\u4e00-\u9fa5]+$/; var LOGIN_ERROR = "There is no server to log in, please wait."; var LENGTH_ERROR = "Name/Channel is too long or too short. 20 character max."; var NAME_ERROR = "Bad character in Na...
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import styled from "styled-components" import { useIntl } from "gatsby-plugin-intl" import { Twemoji } from "react-emoji-render" import PageMetadata from "../components/PageMetadata" import Translation from "../components/Transla...
var _ = require('lodash'); var Promise = testPromise; var Builder = require('../../lib/builder').Builder; var Common = require('../../lib/common').Common; var Raw = require('../../lib/raw').Raw; describe('Builder', function () { var builder; beforeEach(function() { builder = new Builder({ que...
/*jshint moz:true */ // vi: sw=2 sts=2 et // const Gdk = imports.gi.Gdk; // const Gio = imports.gi.Gio; // const GLib = imports.gi.GLib; // const GnomeDesktop = imports.gi.GnomeDesktop; const Lang = imports.lang; const Shell = imports.gi.Shell; const St = imports.gi.St; const Clutter = imports.gi.Clutter; const Main ...
function shopcatchange(x) { var base = document.getElementById("baseline"); var shopbody = document.getElementById("shop_body"); var lst = shopbody.querySelectorAll(".bdy"); var c = Number(x.getAttribute("data-cat")); for (var i = 0; i < lst.length; i++) { lst[i].style.display = "none"; } lst[c].style...
/* eslint-disable semi */ /* eslint-disable no-alert */ /* eslint-disable prettier/prettier */ import React, {Component} from 'react'; import { ActivityIndicator, Image, Keyboard, Modal, PermissionsAndroid, Platform, ScrollView, Text, TouchableOpacity, View, } from 'react-native'; import ActionShee...
import _ from 'lodash'; import { isNil } from 'lodash/fp'; import { Component, Fragment } from 'react'; import { button, div, h, img, span } from 'react-hyperscript-helpers'; import { SearchBox } from '../components/SearchBox'; import { DAR, PendingCases, User} from '../libs/ajax'; import { Storage } from '../libs/stor...
import * as SQLite from 'expo-sqlite'; const db = SQLite.openDatabase('transactions.db') // returns Database object import transactions from './shakepay/transactions' export const init = async () => { db.transaction(tx => { tx.executeSql('CREATE TABLE IF NOT EXISTS transactions (transactionId TEXT PRIMARY...
/*** Routes controller, of sorts All routes logic and management goes here ***/ var _ = require('underscore'), fs = require('fs'), async = require('async'), event_bus = require('bus'), caching = require("./caching.js"), validate = require('./validate.js'), utils = require('../../../lib/...
import React from 'react'; import { services, data } from './liveeditordata'; import { CodeHighlight } from './codehighlight'; import { TabPanel } from '../../lib/tabview/TabView'; import pkg from '../../../package.json'; const vPrimeReact = '^7.0.0'; // latest let currentProps = {}; const contents = (name, content,...
// world.js - represent the physics world import {jst} from "jayesstee"; import {Matter} from "./matter.js"; import {Portal} from "./portal.js"; import {FixedBody} from "./fixed-body.js"; import {Emitter} from "./emitter.js"; import {Event} ...
import React, { useState, useEffect } from 'react'; import { classes, cornerstone as OHIFCornerstone } from '@ohif/core'; import { Range } from '@ohif/ui'; import dcmjs from 'dcmjs'; import DicomBrowserSelect from './DicomBrowserSelect'; import moment from 'moment'; import './DicomTagBrowser.css'; import DicomBrowserSe...
import './index.sass' import React, {useState} from 'react'; import {get_items, get_oders, useFetch} from "../../../../utils/requests"; import {useLocation} from "react-router-dom"; import {get_item} from "../../../../utils/helpers"; function useQuery() { return new URLSearchParams(useLocation().search); } const ...
import Parse from 'parse'; import { tagsColorMatcher } from './Utils'; import placeholder from './../assets/placeholder350x350.svg'; const normalizeParseResponseData = data => { let dataInJsonString = JSON.stringify(data); return JSON.parse(dataInJsonString); }; export const parseLocation = location => location...
'use strict'; // ========================================================================= // // Controller for vcs // // ========================================================================= var path = require('path'); var _ = require('lodash'); var DBModel = require(path.resolve('./modules/core/server/controllers...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); // Configure axios. axios.defaults.baseURL ...
import React from 'react'; import PropTypes from 'prop-types'; // @material-ui/core components import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import TableBody from...
import React, { Component } from "react"; import { UncontrolledAlert, Alert } from "reactstrap"; import SweetAlert from "react-bootstrap-sweetalert"; import Paper from "@material-ui/core/Paper"; import Switch from "@material-ui/core/Switch"; import MenuItem from "@material-ui/core/MenuItem"; import TextField from "@mat...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Platform from '../../../core/platform/platform.js'; import * as LitHtml from '../../lit-html/lit-html.js'; export function isExpandableNode(nod...
var convertTobyte = function(d){ var bArray = new Int16Array(ppp); for (var i = 0; i < d.length; i++) { //var y = data[i] >> 4; // takes the y index //var x = data[i] & 0XF; // takes the x index //byteArray[y] |= 1<<15-x; // create a number of 16bits each bit represents a pixel of the char...
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
// entrypoint.js const { Toolkit } = require("actions-toolkit"); const tools = new Toolkit(); const webPageTest = require("webpagetest"); const argv = tools.arguments; const { event, payload, sha } = tools.context; // check pre-requirements if (!checkForMissingEnv) tools.exit.failure("Failed!"); // run the script ru...
'use strict'; /* global exports, require */ var utils = require('./utils'); function setWallpaper(settings, config) { // Grab the default wallpaper and convert it into a base64 string let devpixels = ''; if (config.GAIA_DEV_PIXELS_PER_PX != '1') { devpixels = '@' + config.GAIA_DEV_PIXELS_PER_PX + 'x'; } ...
/* * Copyright (C) 1998-2020 by Northwoods Software Corporation * All Rights Reserved. * * Floorplan Filesystem Class * Handles Floorplan-specific saving / loading model data events * Attached to a specific instance of Floorplan (via constructor); can be assigned to Floorplan.floorplanFilesystem * Currently only...
'use strict' var path = require('path') var config = require('../config') var Wechat = require('../wechat/wechat') var menu = require('./menu') var wechatApi = new Wechat(config.wechat) // wechatApi.deleteMenu().then(function () { // wechatApi.createMenu(menu) // }).then(function (msg) { // console.log(msg) /...
import {getUrlParameter, parseUser, parseText, formatPttDateTime, parseContent, awaitTx} from './utils.js' let dev = false let dett = null let tx = '' let isLoggedIn = false let isShowReply = false, isShowReplyType = false const render = async (_account) => { if (_account){ isLoggedIn = true $('#reward-lin...
import React, { useState, useEffect } from "react" import Layout from "../components/layout" import SearchForm from "../components/search/search" import OfficeSpaceLocationSwitch from "../components/officespacelocationswitch" import MonthlyListingCard from "../components/Card/monthlylistingcard" import SEOHeader from "...
/** * Copyright 2017 The AMP HTML Authors. 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 require...
import Cesium from "cesium/Cesium"; import { shequ, xiaoqu, community_build } from "../../data/community"; import { tileset3dtilesUrl } from "../../config/data.config"; import xiaoqupoi from "../img/xiaoqupoi.png" import poi33 from "../img/poi33.png" let viewer const communityInit = (viewers, shequidCommunity) => { ...
import { bisector } from "d3-array"; import { event, select, mouse } from "d3-selection"; import _ from "lodash"; import { scaleLinear, scaleTime } from "d3-scale"; import { axisBottom, axisLeft } from "d3-axis"; import { format } from "d3-format"; import { line } from "d3-shape"; import { timeFormat } from "d3-time-fo...
// added code for version 16 or lower var devTools = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; var reactInstances = devTools._renderers; var rid = Object.keys(reactInstances)[0]; var reactInstance = reactInstances[rid]; var fiberDOM; var currState; var initialState; var reduxStore15; var runFifteen = false; // get initia...
'use strict' const defaults = require('lodash.defaults') const mongoose = require('mongoose') const ensureArray = require('ensure-array') const util = require('util') const Filter = require('./resource_filter') let customDefaults = null const excludedMap = {} const includedMap = {} function getDefaults() { return d...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
// Dave: checkout https://css-tricks.com/gulp-for-beginners/ // Sass configuration: // https://code.visualstudio.com/docs/languages/css // .js stuff: // https://www.npmjs.com/package/gulp-minify // https://www.npmjs.com/package/gulp-concat // https://www.npmjs.com/package/gulp-htmlmin // https://github.com/kangax/html...
'use strict'; const axios = require('axios'); const axiosRetry = require('axios-retry'); const { isNetworkOrIdempotentRequestError, isNetworkError, isRetryableError } = require('axios-retry'); const chalk = require('chalk'); const { Bar } = require('cli-progress'); const fs = require('fs'); const config = require('./c...
$.ajaxSetup({ beforeSend: function(xhr, settings) { if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') { function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var co...
/** * UNDERSTAND: * - Find the FIRST triangle number that has MORE THAN 500 divisors. * - What is a "triangle number"? * - A triangle number is a number from a sequence of sums that are made up * by adding a natural number to its previous adjacent natural number * (beginning with 1 as the first natu...
'use strict' import React from 'react' import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native' import { connect } from 'react-redux' import { fbt } from 'fbt-runtime' import { ethers } from 'ethers' import get from 'lodash.get' import { decodeTransaction } from '../utils/contractDecoder' import...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Chips = undefined; 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...
/** * uWaterloo Schedule Exporter * (c) 2015-Present, <NAME> * (c) 2018-Present, Xierumeng with permission from <NAME> */ /** * Converts a Date object into the required calendar format. * @param {Object} date * @return {String} formatted date ('20150122') */ function getDateString(date) { var month = date.getMon...
/* Copyright (c) 2018 Keitaro AB Use of this source code is governed by an MIT license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ var PUZZLE_DIFFICULTY = 2; const PUZZLE_HOVER_TINT = '#009900'; var _stage; var _canvas; var _img; var _pieces; var _puzzleWidth; var _puzzleHeig...
/* * 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 ...
import React from 'react' import { Button, DatePicker, Table, message, Spin, TreeSelect, Select, Popover } from 'antd' import axios from '@src/utils/axios' import urls from '@src/config' import Tools from '@src/utils' import moment from 'moment' import DeptTreeSelect from '@src/components/DeptTreeSelect' import './inde...
// Imports - React import React, { Component } from 'react'; // Imports - Redux import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; // Imports - Frameworks (Semantic-UI and Material-UI) import { Message } from "semantic-ui-react"; import Grid from '@material-ui/core/Grid'; import Butto...
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 *...
function FormGrader(base_url, submission_id) { this.base_url = base_url; this.submission_id = submission_id; this.current_index; this.last_selected; this.grades; this.grade_uis; this.comments; this.comment_uis; this.$feedback_wrapper = null; this.$feedback_button = null; ...
import Ember from 'ember'; const { keys, create } = Object; // jshint ignore:line const {computed, observer, $, A, run, on, typeOf, debug, defineProperty, get, set, inject, isEmpty} = Ember; // jshint ignore:line const snake = thingy => { return thingy ? Ember.String.underscore(thingy) : thingy; }; import layout fro...
import EventEmitter from 'events'; import fs from 'fs'; import http from 'http'; import https from 'https'; import merge from 'lodash.merge'; import path from 'path'; import pem from 'pem'; import os from 'os'; import polka from 'polka'; import serveStatic from 'serve-static'; import compression from 'compression'; imp...
import React, { createRef, useState, useContext, useEffect, useRef, } from 'react'; import { useHistory } from 'react-router-dom'; import styled from 'styled-components'; import ReactPlayer from 'react-player'; import screenfull from 'screenfull'; import PropTypes from 'prop-types'; import { NavbarContext } f...
/* The MIT License (MIT) Copyright (c) 2015 University of East Anglia, Norwich, UK Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
import React from 'react'; import {Button, Form, Icon, Input, Select, Switch} from 'antd'; import intl from 'react-intl-universal'; import config from 'common/config' import * as datas from 'common/config/data' import * as fm from 'LoopringJS/common/formatter' import {calculateGas} from 'LoopringJS/common/utils' import...
import path from 'path' import slash from 'slash' import statsd from '../lib/statsd.js' import { firstVersionDeprecatedOnNewSite, lastVersionWithoutArchivedRedirectsFile, deprecatedWithFunctionalRedirects, } from '../lib/enterprise-server-releases.js' import patterns from '../lib/patterns.js' import versionSatisf...
import { vec3 } from 'gl-matrix'; import WebworkerPromise from 'webworker-promise'; import macro from 'vtk.js/Sources/macro'; import vtkImageData from 'vtk.js/Sources/Common/DataModel/ImageData'; import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray'; import vtkPolygon from 'vtk.js/Sources/Common/DataModel/Po...
"use strict"; //SETTINGS of this demo : var SETTINGS={ rotationOffsetX: 0, //negative -> look upper. in radians cameraFOV: 40, //in degrees, 3D camera FOV pivotOffsetYZ: [-0.2,-0.2], //position the rotation pivot along Y and Z axis detectionThreshold: 0.5, //sensibility, between 0 and 1. Less -> ...
import inspect from 'object-inspect' import 'mithril/promise/promise' import { endsWith, toposort } from '../utils' let id = window.name let currentScript = {} let consoleCount = 0 const parent = window.parent const blobMap = {} const blobUrls = [] const moduleExports = {} const isModuleRegex = /(^\s*|[});\n]\s*)(im...
#!/usr/bin/env node "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(valu...
// The names var names = []; // Divs to hold names var divs; var selected; // Canvas for wheel var canvas; // Size of circle var w; // Spin button var button; // Angle and speed var angle; var dangle = 0; // Size of pie slice var sz = 0; // Total number of students var total = 0; // Entry state var state = 0; ...
const express = require('express') const { response } = require('express'); const cheerio = require('cheerio'); const superagent = require('superagent'); // const apiKey = require('./apiKeys.json') const fs = require('fs') var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser') var app = ex...
"use strict"; var _interopRequireDefault3 = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireDefault2 = _interopRequireDefault3(require("@babel/runtime/helpers/interopRequireDefault")); Object.defineProperty(exports, "__esModule", { value: true }); var _asyncToGenerator2 = require("@bab...
// @ts-check import '@agoric/zoe/exported.js'; import '@agoric/zoe/src/contracts/exported.js'; // The vaultFactory owns a number of VaultManagers and a mint for RUN. // // addVaultType is a closely held method that adds a brand new collateral type. // It specifies the initial exchange rate for that type. It depends o...
const SQLColumn = require("./sql_column") const SQLNormColumn = require("./sql_norm_column") const SQL = require("./sql") var _ = require('lodash'); const helper = require("./../../helpers") const config = require('../../app.json'); const dateColumnName = process.env.REDSHIFT_DATE_COLUMN_NAME || config.env.REDSHIFT_DA...
// constant const address = require("./constant/addresses.js"); const ABI = require("./constant/abis.js"); // internal const Internal = require("./internal.js"); // utils const Erc20 = require("./utils/erc20.js"); const Cast = require("./utils/cast.js"); const Txn = require("./utils/txn.js"); const Math = require("./...
const plugin = require('tailwindcss/plugin'); const { NODE_ENV } = process.env; const config = { important: '.mds', darkMode: false, // or 'media' or 'class' theme: { boxShadow: { 0: '0 0 #0000;', 1: '0px 0px 2px rgba(0, 0, 0, 0.04), 0px 2px 2px rgba(0, 0, 0, 0.02), 0px 1px 3px rgba(0, 0, 0, 0.0...
/** * Database abstract model * @author alphakevin */ var util = require('util'); var mysql = require('mysql'); var validate = require('validate.js'); var _ = require('underscore'); var Promise = require('bluebird'); var DbError = require('./error'); module.exports = BaseModel; util.inherits(DbError, Error); /*...
import React, { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import "../GlobalStyles.css"; import styled from "styled-components"; import axios from "axios"; const userLoggedIn = "Phil2"; const StyledDashboard = styled.div` display: flex; flex-direction: column; min-height: 100vh...
/** * A promise-based Q-JSGI server and client API. * @module */ /*whatsupdoc*/ var HTTP = require("http"); // node var HTTPS = require("https"); // node var URL = require("url2"); // node var Q = require("q"); var Reader = require("./reader"); /** * @param {respond(request Request)} respond a JSGI responder fun...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isFunction2 = require('lodash/isFunction'); var _isFunction3 = _interopRequireDefault(_isFunction2); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (va...
//Challenge 1. Swap characters to get the same word. let w = 'ebcda'; function swapFirstLastChar(stringtoswap){ let letters = stringtoswap.split(''); console.log(letters); // console.log(letters.length); letters.unshift(letters[letters.length -1]); console.log(letters); letters.splice(letters.l...
import React from 'react' import { graphql } from 'gatsby' import { Helmet } from 'react-helmet' import styled from 'styled-components' import { remarkForm } from 'gatsby-tinacms-remark' import IndexLayout from 'layouts' import { Heading, Paragraph } from 'components/foundations' import Button from 'components/foundat...
import React, {Component} from "react"; import {withRouter} from 'react-router-dom'; import moment from "moment"; import {withStyles} from "@material-ui/core/styles"; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import CardContent from "@material-ui/core/CardContent"; import Ch...
var Wells_list = ['preliminary']; function redir(){ window.location.replace(window.location.origin); } $(document).ready(function (){ var startdate = new Date().toJSON().slice(0,10); document.getElementById("sdate_select").value = startdate; var enddate = new Date(new Date().setDate(new Date().getDa...
const { expect } = require("chai"); //const { ethers } = require("ethers"); const { ethers, web3, assert } = require("hardhat"); const toBN = web3.utils.toBN describe("BAMM", async () => { let knc let feePoolAddress let bamm let oracle let treasuryAddress let liquidationStrat let kncWhale...
var custom_btn = document.getElementById('custom_button'); var btn_preview = document.getElementById('preview'); var btn_code = document.getElementById( 'code'); var btn_html = null, alignment = "left", text_color = "#ffffff", bg_color="#000000", font_family="'Open Sans', Arial, sans-serif", padding="9px 10px", border...
import { completeContactLoad, failedContactLoad, getTimezoneByZip, sendJobToAWSLambda } from "../../../workers/jobs"; import { r, datawarehouse, CampaignContact, Campaign } from "../../../server/models"; import { getConfig, hasConfig } from "../../../server/api/lib/config"; import { getFormattedPhoneNum...
/* * @Author: ayipzz * @Date: 2016-10-18 19:50:17 * @Last Modified by: ayipzz * @Last Modified time: 2016-10-22 13:50:32 */ var app = angular.module('virtualExpo', ['ngMap']); app.controller('mapController', function($scope,$http,NgMap) { var vm = this; NgMap.getMap().then(function(map) { vm.map = map; ...
var args = require('yargs').argv; var config = require('./gulp.config')(); var gulp = require('gulp'); var path = require('path'); var cp = require('child_process'); var $ = require('gulp-load-plugins')({ lazy: true }); var del = require('del'); var mocha = require("gulp-mocha"); var gutil = require("gulp-util"); va...
/* * mkstubs.js - ilib tool to extract stubs for * * Copyright ยฉ 2015, 2020 JEDLSoft * * 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-...
/** * @version 0.30 */ import React, { Component } from 'react' import { connect } from 'react-redux' import { View, Text, TouchableOpacity } from 'react-native' import LetterSpacing from '../../../../components/elements/LetterSpacing' import { strings } from '../../../../services/i18n' import { showModal } from '...
'use strict'; const assert = require('assert'); const fill = require('fill-range'); const match = require('./support/match'); const { isMatch } = require('..'); describe('braces', () => { it('should not match with brace patterns when disabled', () => { assert.deepStrictEqual(match(['a', 'b', 'c'], '{a,b,c,d}'),...
/* * The MIT License (MIT) * * Copyright (c) 2014 Apigee Corporation * * 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 path = require('path'); const glob = require('glob-promise'); const pluralize = require('pluralize'); const camelCase = require('camelcase'); const pascalCase = require('pascalcase'); const mongoose = require('mongoose'); const createMongooseSchema = require('json-schema-to-mongoose'); c...
import React, { Fragment, useEffect, useState } from "react"; import AceEditor from "react-ace"; import "ace-builds/src-min-noconflict/ext-searchbox"; import "ace-builds/src-min-noconflict/ext-language_tools"; import "ace-builds/src-noconflict/mode-jsx"; import { AppBar, FormControl, InputLabel, makeStyles, M...
/* artifact generator: C:\My\wizzi\stfnbssl\stfnbssl.github.io\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: C:\My\wizzi\stfnbssl\stfnbssl.github.io\guidedb\.wizzi\ittf\server\src\features\wizzi\productions.js.ittf utc time: Mon, 20 May 2019 09:09:19 GMT */ 'use stri...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const Template = require("../Template"); const WebAssemblyUtils = require("./WebAssemblyUtils"); /** @typedef {import("../Module")} Module */ // Get all wasm modules function getAllWasmModules(chunk) { const wa...
function empty_table(){ var div = document.getElementById("queryDataInner"); div.innerHTML = `<table cellspacing="0" cellpadding="5" id=queryTable> <tr> <th> Select </th> <th> Voter ID </th> <th> First Name </th> <th> Last Name </th> ...
const CmdServer = require("./CmdServer"); const path = require("path"); const express = require("express"); const fs = require("fs"); const os = require("os"); const dgram = require("dgram"); const ntp_server = dgram.createSocket("udp4"); const time_diff = 60 * 23; const client_pool = []; const time_server_ip = "1...
function resettimers() { player.prestigecounter += 0.05; player.transcendcounter += 0.05; player.reincarnationcounter += 0.05; } function displayRuneInformation(i,updatelevelup) { updatelevelup = (updatelevelup === null || updatelevelup === undefined) ? true : u...
/** * @license * Copyright 2018 Google Inc. 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
import Translate from 'nyc/lang/Translate' import Goog from 'nyc/lang/Goog' const languages = { en: {code: 'en', name: 'English'}, ar: {code: 'ar', name: 'Arabic' , hint: 'Translate-ar'}, bn: {code: 'bn', name: 'Bengali', hint: 'Translate-bn'}, cn: {code: 'cn', name: 'Chinese', hint: 'Translate-cn'}, ...
'use strict'; var testHelper = require('../../support/test-helper'); var assert = require('../../support/assert'); const mapnik = require('@carto/mapnik'); var semver = require('semver'); var cartodbServer = require('../../../lib/server'); var ServerOptions = require('./support/ported-server-options'); var testClient...
// THIS FILE HAS BEEN MODIFIED for use with the mediawiki wikiEditor // It no longer requires etherpad.collab.ace.easysync2.Changeset // THIS FILE WAS ORIGINALLY AN APPJET MODULE: etherpad.collab.ace.contentcollector /** * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License")...
/** public/js/schedule.js */ /* global $, moment,fail */ /* eslint-disable no-console */ /** * intervals for refreshing schedule, in seconds * * If the date being displayed is equal or later than the current date, the * schedule is considered "current" and we refresh it at frequent intervals. * Otherwise, it's h...
import React, { useState, useEffect } from "react"; import "./MusicPlayer.css"; import {msToMinAndSec} from './../helper' import Nouislider from "nouislider-react"; import "./nouisliderModified.css"; //import { act } from "react-dom/test-utils"; // Class components should always call base consturctor with props functi...
/** * one, two, delay touch * ๋งˆ์šฐ์Šค ๋˜๋Š” ํ„ฐ์น˜ up ์ด ๋ฐœ์ƒํ•˜๊ณ , ํŠน์ •์‹œ๊ฐ„ ์ดํ›„๊นŒ์ง€ down์ด ๋ฐœ์ƒํ•˜์ง€ ์•Š์•˜์„ ๋•Œ, ํด๋ฆญ์ด ๋ช‡๋ฒˆ๋ฐœ์ƒํ–ˆ๋Š”์ง€ ์นด์šดํŠธ๋ฅผ ์‹œ์ž‘ํ•œ๋‹ค. */ /* - ์‚ฌ์šฉ์˜ˆ touch.on('#ysm', { 'one': function(e) { console.log('one touch'); }, 'two': function(e) { console.log('two touch'); }, 'delay': function(e) { console.log('delay touch'); } } ); to...
/* Copyright (C) 2017 <NAME> - All Rights Reserved * You may use, distribute and modify this code under the * terms of the MIT license. */ var socket = io.connect(), KBL; // Keyboard layout socket.on("init", layout => { KBL = JSON.parse(layout) || {}; KBL.state = { mode: "LeftAlt", // LeftAlt | CtrlShiftu...
'use strict'; // We Copy this from https://github.com/yolopunk/joi2json // to Convert Joi schema to JSON schema; // We added schema.properties[property.key].meta = property.schema._meta // to keep the meth that includes ref data const assert = require('assert'); // Converter helpers for Joi types. let TYPES ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.MegaMenu = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descrip...
import * as echarts from '../../ec-canvas/echarts'; const configHead = require('../../config.js'); const getOption = require('./option.js'); const screen = wx.getSystemInfoSync(); const z = screen.screenWidth / 750; Page({ data: { startDate: false, //ๅผ€ๅง‹ๆ—ถ้—ด endDate: false, //็ป“ๆŸๆ—ถ้—ด ec: { ...
// Copyright (c) Microsoft. All rights reserved. import React, { Component } from 'react'; import { Radio } from 'react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from "redux"; import Rx from 'rxjs'; import Drawer from './drawer'; import JsonViewer from '../jsonViewer/jsonViewer'...