text
stringlengths
3.22k
29.5k
/* * query-params-mongo * * Convert URL Query parameters to a Mongo db criteria. Typical usage is * to filter/sort a collection and display as a table. * * See test/sample.js for example usage. * */ var validOperators = ['eq','ne','gt','gte','lt','lte','in','nin','all','exists', 'eqa', 'sw','swin','isw','is...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; im...
"use strict"; var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic'); var core_1 = require('@angular/core'); var http_1 = require('@angular/http'); var app_1 = require('../components/app/app'); var click_block_1 = require('../util/click-block'); var dom_1 = require('../util/dom'); var config_1 = ...
/* eslint-disable quotes */ import "../scss/styles.scss"; import Warp from "warpjs"; import gsap from "gsap"; import Draggable from "gsap/Draggable"; import dropZone from "./chunks/dropzone"; import generateMeshPoints from "./chunks/generateMeshPoints"; import saveResult from "./chunks/saveResults"; import moveCanvas ...
var debug = require('debug')('MyFlix-API-Aggregate'); var config = require('../config.json'); var fs = require('fs'); var path = require('path'); var url = require('url'); var sqlite3 = require('sqlite3'); var xml2js = require('xml2js'); var utils = require('./utils'); var db = null; var sqls = {}; function sqlParams...
$(document).ready(function(){ $('#tgl_reservasi').on('change',function(){ var timeSuggest = suggestTime($(this).val(), 'kliniklaktasi'); var waktuTampil = ''; for(indeks in timeSuggest){ waktuTampil += '['+timeSuggest[indeks].pukul_reservasi_awal+'-'+timeSuggest[indeks].pukul_reservasi_akhir+'] '; ...
/** @namespace datalist */ var datalist = { /** * Creates an instance of datalist * * @method factory * @param {Object} target Element to receive the DataList * @param {Object} store Data store to feed the DataList * @param {Mixed} template Record field, template ( $.tpl ), or String, e.g. "<p>thi...
var stopAutocard = false; var autocardTimeout = null; window.globalTagColors = window.globalTagColors || []; window.globalShowTagColors = window.globalShowTagColors !== false; function getTagColorClass(tag) { const tagColor = window.globalTagColors.find((tagColor) => tag === tagColor.tag); if (window.globalShowTa...
var SHA256 = require('crypto-js/sha256'); var HmacSHA256 = require('crypto-js/hmac-sha256'); var uuidv4 = require('uuid/v4'); var accessKey = null; var secretKey = null; var primaryKey = null; var sortKey = null; var valueKey = null; var tableName = null; var regionList = null; function init(config) { accessKey =...
/** * File containing main functions for map window of the Analyst web application * @author <NAME> * @license BSD 3-clause license */ 'use strict'; var mymap; var crs_krovak; var layerGeoJsonGeog; var layerGeoJsonProj; var centr_lat = 49.78552637558463; var centr_lon = 15.646784349776558; function ...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom' import { FormGroup, Button, Col, Input, Label,Card,CardHeader,CardBody } from 'reactstrap'; import { Control } from 'react-redux-form'; import Select from "react-select"; import DatePicker...
import React from 'react'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import CreateUser from './create'; imp...
/** * This class keeps a logical mapping of lines to messages. * It doesn't actually render or send messages, it delegates * that task to the renderer. * * FIXME: do something to prevent extremely long messages to be * sent (and rejected) when too many lines are inserted in between * a message. **/ var escapeH...
// String.trim polyfill if (!String.prototype.trim) { String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, ''); }; } /** * Activates typeahead behavior for given element. * @param element (required) The DOM element to infect. * @param source (optional) The custom data source. */ Meteor.typea...
/** * Talk to the data/compute server. */ import rx from '/imports/common/rx'; import userMsg from '/imports/common/userMsg'; import util from '/imports/common/util'; var UPLOAD_MAX_GIGABYTES = 4, UPLOAD_MAX_BYTES = 1024 * 1024 * 1024 * UPLOAD_MAX_GIGABYTES, retryLimit = 3, jobStatusPollInterval = 1, //...
import data from "./chords.js"; import { init, reset, get, getNew, update } from "./db.js"; import { supermemo } from "./sm.js"; import { setCookie, getCookie } from "./cookie.js"; var chordNames = document.getElementById("chord-names"); _.forEach(_.uniq(_.map(data, (c) => c.name)), (option) => { chordNames.insertAd...
var fs = require('fs'); var path = require('path'); var url = require('url'); var password = ''; if(fs.existsSync(path.join(__dirname, 'config.js'))) { password = require('./config').password; } var PORT = 29231; var PONG_DELTA = 10E3; var NOT_FOUNT_MSG = 'ๅฐ่ƒกๅญๅ“ฅๆ้†’ๆ‚จ๏ผš404 ไบ†๏ผ'; var FAVICON = fs.readFileSync(path.join(__...
/* * khrizenriquez <<EMAIL>> */ //'use strict'; var map, myPosition, watchID, geoLoc; var placesArr = [], mapMarkers = []; var menuArrow = 'left'; var mapContainer = document.getElementById('mapContainer'); var mapOptions = { zoomControl: true, mapTypeControl: true, scaleControl: ...
/* * Write an SQL query in <pre><code class="hlsql" data-trim contenteditable>...</pre> * and create a <span class="sqlresult"></span> on the same slide. * The result of the query is displayed as a table in the sqlresult span. * Add data-sql="some_id" to the <code> element and the result will be * displayed in the...
const controller = new AbortController(); const container = document.querySelector('.card--showpage'); const images = container.querySelectorAll('.carousel__image'); const length = images.length; let user = {}; // Function that shows form buttons when relevant input is focused function toggleButtons() { co...
import React, { useRef, useEffect, useState } from "react"; import PropTypes from "prop-types"; import { Card } from "tabler-react"; import * as echarts from "echarts"; import cn from "classnames"; import { formatToFrenchTime, tickFormatDate, percentToString, bytesToString, bitsToString, iopsToString, } fro...
const inquirer = require('inquirer'); const chalk = require('chalk'); const ora = require('ora'); const path = require('path'); const fs = require('fs'); const execa = require('execa'); const log = console.log; const normal = chalk.bold.green; const error = chalk.bold.red; const warning = chalk.bold.grey; const sett...
var rows = 7; var columns = 6; var rows_to_show = 6; var cell_size = 50; var max_obstacles_per_row = 1; var speed_of_game = 1000; var form_selector = "#mturk_form"; var board = []; var top_row; var ship_location = 0; var gameboard; var player; var collective; var counter; var reward = 0; var collective_reward = 0; var ...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { val...
import { hash, stringify, str } from "../common/util.js"; export default function compileGlobalScope() { globalThis.file = ""; globalThis.global_var_list = []; globalThis.function_list = []; compileScope(scopes.global, global_var_list); for (const function_name of function_list) compileFunction(function_na...
import React, { PropTypes } from 'react' import debounce from 'lodash.debounce' import * as d3 from 'd3' const distance = (a, b) => { return Math.sqrt( ((b.x - a.x) * (b.x - a.x)) + ((b.y - a.y) * (b.y - a.y)) ) } export class ClusterBrowser extends React.Component { constructor (props) { super(prop...
var automovilSeleccionado=''; var usuario=''; var editar = false; documentos={}; document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { //request(); //obtenemos el usuario firmado usuario = almacenamiento.dameUsuario(); console.log(usuario); //obtenemos l...
// Navigation function initalizeNavMenu(selector) { setTimeout(function () { $(selector).gutabslider(); }, 800); } function setTabActive(tab) { $(".top-bar_li").removeClass("active"); $(tab).addClass("active"); setTimeout("$('.top-bar_ul').gutabslider('active-tab-changed')", 100); } fun...
// Copyright 2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
var underscore = require('ep_etherpad-lite/static/js/underscore'); var padeditor = require('ep_etherpad-lite/static/js/pad_editor').padeditor; exports.aceAttribsToClasses = function(name, context) { if (context.key == 'img') { return ['img:' + context.value]; } if (context.key == 'imgSize') { return ['i...
import React, { Component, Fragment } from "react" import Helmet from "react-helmet" import styled from "styled-components" import link_arrow_button from "../assets/ui/link_arrow_button.svg" import tech_for_better_splash from "../assets/splashes/tech_for_better_splash.jpg" import photo_splash from "../assets/splashes/...
import {basicTypes} from "resources/schema/defaults.js" const required = (message) => { throw new Error(message) } export class jDS2Handler { baseJSON constructor(json) { json = json || { $tables: {} ,$schemas: {} ,$types: basicTypes ,$definitions: {} } this.baseJSON = json } /...
let BASE_URL = $('body').attr("base_url"); let PATIENT_ID = $('body').attr("sessionid") ?? 0, LAST_ID = 0; let IS_WEBSITE = $('body').attr("website") == "true"; // ----- RENDER MESSAGE ----- function renderMessage(data = [], msg = false, index = 0, isWebsite = false) { let html = ''; let { message_...
/** * Welcome to Pebble.js! * * This is where you write your app. */ var UI = require('ui'); var Vibe = require('ui/vibe'); var legacyKeys = [ 'p.singles', 'p.doubles', 't.traditional', 't.ninegr', 't.sevengr', 't.fivegr', 'm.single', 'm.twoofthree', 'g.traditional', 'g.variations', 'g.crash...
/* * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/) * * 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 req...
var asSongs = [ "rocklobster", "peoplearepeople", "onceinalifetime", "sweetdreams", "missionaryman", "safetydance", "onlyalad", "whipit", "99redballoons", ]; var usableChars = [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R"...
var initTable1 = function () { var table = $('#sample_1'); // begin first table table.dataTable({ // Internationalisation. For more info refer to http://datatables.net/manual/i18n "language": { "aria": { "sortAscending": ": activate...
var Spot = require('spot-framework'); var PageView = require('./base'); var templates = require('../templates'); var app = require('ampersand-app'); var csv = require('csv'); var $ = require('jquery'); var DatasetCollectionView = require('./datasets/dataset-collection'); module.exports = PageView.extend({ template:...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.downloadImage = exports.downloadStreamFile = exports.downloadJson = exports.loadJS = exports.getExplore = exports.IsPC = exports.isSupportWebP = exports.isMobile = exports.getMobileSystem = exports.removeCookie = exports.getCookie = ...
const socket = io('/') const videoGrid = document.getElementById('video-grid') const peer_id = localStorage.getItem("user_id") const myPeer = new Peer(peer_id, { path: '/peerjs', host: '/', port: '443' }); const myCam = document.getElementById('myCam') let counter = false; // For tracking screen // Init...
var emoji_list = ["๐Ÿ˜€","๐Ÿ˜","๐Ÿ˜‚","๐Ÿ˜ƒ","๐Ÿ˜„","๐Ÿ˜…","๐Ÿ˜†","๐Ÿ˜‡","๐Ÿ˜ˆ","๐Ÿ‘ฟ","๐Ÿ˜‰","๐Ÿ˜Š","โ˜บ๏ธ","๐Ÿ˜‹","๐Ÿ˜Œ","๐Ÿ˜","๐Ÿ˜Ž","๐Ÿ˜","๐Ÿ˜","๐Ÿ˜‘","๐Ÿ˜’","๐Ÿ˜“","๐Ÿ˜”","๐Ÿ˜•","๐Ÿ˜–","๐Ÿ˜—","๐Ÿ˜˜","๐Ÿ˜™","๐Ÿ˜š","๐Ÿ˜›","๐Ÿ˜œ","๐Ÿ˜","๐Ÿ˜ž","๐Ÿ˜Ÿ","๐Ÿ˜ ","๐Ÿ˜ก","๐Ÿ˜ข","๐Ÿ˜ฃ","๐Ÿ˜ค","๐Ÿ˜ฅ","๐Ÿ˜ฆ","๐Ÿ˜ง","๐Ÿ˜จ","๐Ÿ˜ฉ","๐Ÿ˜ช","๐Ÿ˜ซ","๐Ÿ˜ฌ","๐Ÿ˜ญ","๐Ÿ˜ฎ","๐Ÿ˜ฏ","๐Ÿ˜ฐ","๐Ÿ˜ฑ","๐Ÿ˜ฒ","๐Ÿ˜ณ","๐Ÿ˜ด","๐Ÿ˜ต","๐Ÿ˜ถ","๐Ÿ˜ท", "๐Ÿ’ฉ"]; fun...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var core = require('@theme-ui/core'); var css = require('@theme-ui/css'); var react = require('@emotion/react'); function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } var React__def...
/** * Copyright 2022 F5 Networks, Inc. * * 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 agr...
function delay(fn, ms) { let timer = 0; return function (...args) { clearTimeout(timer); timer = setTimeout(fn.bind(this, ...args), ms || 0) } } function SortableSpan() { $('#sortable span').each(function (i) { var numbering = i + 1; ...
import React from "react"; import { Tag, Input, Tooltip, Upload, message, Button, Divider, Row, Col, } from "antd"; import { PlusOutlined, UploadOutlined, CloseOutlined } from "@ant-design/icons"; // antd ๆ ‡็ญพ็ป„ไปถ class EditableTagGroup extends React.Component { state = { tags: ["Unremovable", "Tag...
var connected = true; function refresh() { var progressCPU = $("#cpu"); var textCPU = $("#cpu-text"); var progressRAM = $("#ram"); var textRAM = $("#ram-text"); var progressTPS = $("#tps"); var textTPS = $("#tps-text"); var errorBar = $("#error-bar"); if (connected) { $.ajax(...
/*jshint esversion: 6 */ const session = require('electron').remote.session; var ses = session.fromPartition('persist:name'); var login = false; var lname = ""; // Create Rotation upon document load // Converts the month number to a readable string var stringMonth = function(monthInteger) { switch (monthInteger...
const _ = require('lodash') const nl = '\r\n' const voidTags = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'] // https://html.spec.whatwg.org/multipage/syntax.html#void-elements class HtmlMe { constructor ({ tag, content = [], attrib = {}, ...
import BoxModel from "./lib/BoxModel.js"; import {APPEND, PREPEND} from "../consts"; import {getStyleNames, assignOptions, toZeroArray, cloneItems} from "../utils"; function getCost(originLength, length) { let cost = originLength / length; if (cost < 1) { cost = 1 / cost; } return cost - 1; } function fitArea...
const crypto = require('crypto') let dgram = require('dgram') let fs = require('fs') const key = require('./keys') const initBlock = { index: 0, previousHash: '0', timestamp: 1538669227813, data: 'Welcome to iblockchain!', hash: '00000aa1fbf27775ab79612bcb8171b3a9e02efe32fa628450ba6e729cf03996', nonce: 97...
const path = require('path') const util = require('util') const outputPath = path.join(__dirname, 'forecast-data') const defaults = (options) => ({ id: 'weacast-arpege', model: 'arpege', dbUrl: process.env.DB_URL || 'mongodb://127.0.0.1:27017/weacast', request: {}, subsets: {}, nwp: {}, elements: [{ ...
//Quick check to see if everything is legit function QuickCheck(msg) { if (msg[4] == null && msg[1] != null && msg[2] != null && msg[3] != null) { return false; } else if (msg[4] != null) { //Check numbers... var n1 = msg[2].split(':'); var n2 = msg[3].split(':'); var ...
/* eslint no-shadow: "off", "no-console": off, no-unused-vars: 0, no-param-reassign: 0, guard-for-in: 0, no-restricted-syntax: 0, no-underscore-dangle: 0, global-require: 0, import/no-dynamic-require: 0, prefer-destructuring: 0, no-bitwise: 0, prefer-rest-params: 0, no-unused-expressions: 0, func-names: 0 */ // Po...
import Phaser from "phaser"; var progressBar; var progressBox; var background_loading; var tapSign; export class Loading extends Phaser.Scene{ constructor(){ super({ key: 'Loading', pack: { files: [ // { type: 'image', key: 'background_loading', url: 'src/assets/background-loading...
import { TweenLite } from 'gsap' import Draggable from 'gsap/Draggable' function DiagramFunction () { SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function (toElement) { return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()) } // CONNECTOR // ...
import { sequelizePostgres, pool, sequelize } from '../../../../utils' import config from '../../../../config/config' import moment from 'moment' import fs, { copyFileSync } from 'fs' import { POINT_CONVERSION_COMPRESSED, WSAESOCKTNOSUPPORT } from 'constants'; // import { pool } from '../../../../utils' const branchLis...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { notification, Avatar, Row, Col, Card, Upload, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, Skeleton, DatePicker, Layout, Modal, message, ...
/* eslint-disable react/jsx-wrap-multilines */ /* eslint-disable no-nested-ternary */ /* eslint-disable prefer-destructuring */ import React, { useState, useEffect, useCallback } from 'react'; import styled, { css } from 'styled-components'; import VisibilityIcon from '@material-ui/icons/Visibility'; import { Link, ...
import React, { useEffect, useState, useRef, useCallback } from 'react' import { connect, useDispatch, useSelector } from 'react-redux' import { parseISO, format, isAfter } from 'date-fns'; import { Link } from 'react-router-dom'; import CircularLoading from '../Loading/CircularLoading' import { Box, Container, FormG...
import React, { useState, useEffect } from "react"; import { Button, Typography, TextField, FormControlLabel, Checkbox, Box, Grid, InputAdornment, IconButton, useMediaQuery, Card, Divider, useTheme, makeStyles } from "@material-ui/core"; import Loader from "../components/Loader"; import { us...
var async = require("async"); var util = require("util"); var path = require("path"); var fs = require("fs"); var repoServer = require("./ObjectRepositoryServer"); function getGroups(userDB, cb) { var groups = userDB.users.reduce(function(allGroups, user) { var groups = user.custom.groups || []; if...
import React from "react" import { graphql, Link } from "gatsby" import Layout from "../components/layout" import ApartmentCard from "../components/ApartmentCard" import ApartmentButtonGroup from "../components/ApartmentButtonGroup" import ApartmentCardGroup from "../components/ApartmentCardGroup" //importat link od g...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/** * Created by vedi on 18/03/2017. */ import 'pixi-layers'; import 'pixi-filters'; import { Container, WebGLRenderer, display, Graphics } from 'pixi.js'; import ResourceManager from './ResourceManager'; import PROCESSORS from './processors'; import actionHelper from './utils/actionHelper'; import GameObject from ...
"use strict"; /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.linkify = exports.generateBlogPosts = exports....
'use strict'; var async = require('async'), extend = require('node.extend'), fs = require('fs'), mime = require('mime-types'), _ = require('lodash'), path = require('path'), Storage = require('./storages/storage'), S3 = require('./storages/s3'), File = require('./storages/file'); function isInt(value) { retu...
var MeshData = require('../../renderer/MeshData'); var Vector2 = require('../../math/Vector2'); var Vector3 = require('../../math/Vector3'); var Vector4 = require('../../math/Vector4'); var Matrix4 = require('../../math/Matrix4'); var Camera = require('../../renderer/Camera'); var MathUtils = require('../../math/MathUt...
import { vesselControlMode } from '../../util/enums'; /** * Calculate maximum force, both directions, using IMCA's rules. * @param {string} type - Thruster type: tunnel, azimuth, propeller or waterjet. * @param {Object} maxPowerPositive - Maximum power, positive and negative direction. * @returns {Object...
// TODO: when a parameter is updated its connections should be restored let componentType = {GNODE : 0, GNODE_PIN : 1, WIRE_START : 2, WIRE_END : 3}; function loadNode(sidewindow, node){ sidewindow.open(); while(sidewindow.content.firstChild) sidewindow.content.removeChild(sidewindow.content.firstChild); ...
// target elements with the "draggable" class interact('.draggable') .draggable({ // enable inertial throwing inertia: true, // keep the element within the area of it's parent restrict: { restriction: "parent", endOnly: true, elementRect: { top: 0, left: 0, bottom: 1, right: 1 } ...
const Vue = require('vue/dist/vue.common.js'); const { ipcRenderer } = require('electron'); const BezierEasing = require('bezier-easing'); const util = require('../shared/util.js'); require('../shared/components/timer.js'); const desc = { data: { ready: false, switching: false, mode: null, connec...
/** * Created by DemonRay on 2019/3/22. */ import utils from '../../utils' let defaults = { handleColor: '#000000', // the colour of the handle and the line drawn from it enabled: true, // whether to start the plugin in the enabled state minNodeWidth: 30, minNodeHeight: 30, triangleSize: 10, selector: '...
import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity, TouchableHighlight, TextInput, ListView, Alert, Button, RefreshControl, Image, ScrollView, ImageBackground, AsyncStorage, Animated, Platform, StatusBar, Dimensions } from 'react-native'; import _ from 'unde...
// Generated by purs version 0.13.2 "use strict"; var Control_Applicative = require("../Control.Applicative/index.js"); var Data_Bifunctor = require("../Data.Bifunctor/index.js"); var Data_Bifunctor_Wrap = require("../Data.Bifunctor.Wrap/index.js"); var Data_Coyoneda = require("../Data.Coyoneda/index.js"); var Data_Fol...
'use strict' import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import injectTapEventPlugin from 'react-tap-event-plugin' import PouchDB from 'pouchdb-browser' import SeamlessAuth from 'pouchdb-seamless-auth' import CryptoJS from 'crypto-js' // import App from '....
// // Skybox background rendering in WebGL - antongerdelan.net // Copyright: <NAME> <antonofnote _at_ gmail _dot_ com> 15th April 2018 // var canvas; var cube_shader_vs_id = "skybox.vert"; var cube_shader_fs_id = "skybox.frag"; var cube_texture; var cube_program; var cube_program_R_loc; var cube_vp_vbo; var cube_nvert...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, Button, Picker, NetInfo, Alert } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import RNSecureStorage from 'rn-secure-storage'; import DatePicker from 'react-nat...
const metawear = require('node-metawear'); const ws281x = require('rpi-ws281x-native'); const _ = require('lodash'); function scanForControllers() { return new Promise((resolve, reject) => { metawear.discover((device) => { console.log('Found', device.id); device.connectAndSetup((error) => { ...
import React, { Component } from 'react'; import { Text, View, Modal, TouchableOpacity, Picker, Content, Image, Label } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { CardSection, Button, Input, Card } from './common'; import DatePicker from 'react-native-datepicker'; import DateTimeP...
const {Command, flags} = require('@oclif/command') const {cli} = require('cli-ux') const chalk = require('chalk') const shell = require('shelljs') class EasyAndroidEmulatorCommand extends Command { async run() { const {flags} = this.parse(EasyAndroidEmulatorCommand) const {args} = this.parse(EasyAndroidEmula...
/* Copyright 2018 Insights Network Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ...
/* global interpolate, gettext, ngettext */ import { Handle, Handler, template, many, one, gqlc, notify, userIsAuthenticated } from "./utils" import { showMessageDialog, showBlockDialog } from "./dialog" import { isTouchDevice } from "./mql" function entryAction (type, pk, redirect = false) { return gqlc({ query:...
'use strict'; /* global require, describe, it, afterEach, beforeEach */ const Assert = require('assertly'); const expect = Assert.expect; const Enum = require('../../lib/Enum'); describe('Enum', function () { class B extends Enum {} B.define({ values: { B1: 'E10: This is B1', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _debug = _interopRequireDefault(require("debug")); var _makeNewBuild = _interopRequireDefault(require("./makeNewBuild")); var _utils = require("./utils"); var graphql = _interopRequireWildcard(require("grap...
import React, { useRef } from "react"; import styles from "./AddProduct.module.css"; import { useSelector } from "react-redux"; import { ADD_PRODUCT_POPUP_DATA } from "../../Utils/Constants/StaticData"; import notify from "./../../Utils/Helpers/notifyToast"; import Button from "../Button"; import { Checkbox } from "...
import React, { Component, Fragment } from 'react' import styled from 'styled-components' import { key } from 'styled-theme' const Svg = styled.svg` min-width: 650px; height: 500px; z-index: 1; @media (max-width: 1199px) { margin-left: -110px; } transition: all .2s ease-in-out; ` const Map = styled.di...
import { useState, useEffect, useRef } from "react"; import colorMaps from "../colorMaps"; import * as d3 from "d3"; window.d3 = d3; const Bokeh = window.Bokeh; const initialParams = { zmax: 100, tone: 20, contour_on: true, colorMap: "Inferno", }; const apiEndpoint = "http://localhost:8000/api/file"; func...
//////////////////////////////////////////////////////////////////////////// // // ๅทฅๅ…ท็ฑป // //////////////////////////////////////////////////////////////////////////// var TimeUtil = { startTime: Now(), getTimer: function () { return Now() - TimeUtil.startTime; } } const fpsArr=[]; /** * FPSๆต‹่ฏ•ๅทฅๅ…ท *...
var MacysFinder = Class.extend({ init: function() { this.pages = {}; this.currentPage = false; this.loadingDisplay = new LoadingDisplay(); this.poolCache = new PoolCache(); this.setupURLHandling(); jQuery.ajaxSetup( { cache: false }); this.templates = {}; this.skava = new SkavaI...
/* * Modified output from : https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ // Implementing foldLeft so we can apply lists of operations export const foldLeft = function(iterable, zero, f) { const foldLeftArray = function(iterable, zero, f) { let memo = zero; for (let n of A...
import React, { useState, useEffect } from 'react'; import { makeStyles, withStyles, fade } from '@material-ui/core/styles'; import Fab from '@material-ui/core/Fab'; import AddIcon from '@material-ui/icons/Add'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import TextField fro...
const Hierarchy = require('@antv/hierarchy'); const Util = require('../util'); const Graph = require('./graph'); function indexOfChild(children, child) { let index = -1; Util.each(children, (former, i) => { if (child.id === former.id) { index = i; return false; } }); return index; } class ...
'use strict'; var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var _express = require('express'); var _...
// See LICENSE.MD for license information. 'use strict'; /******************************** Dependencies ********************************/ var express = require('express'),// server middleware mongoose = require('mongoose'),// MongoDB connection library bodyParser = require('body-parser'),// parse HTTP request...
//khoi tao doi tuong danhSachSinhVien var danhSachSinhVien = new DanhSachSinhVien(); function ThemSinhVien() { //Lแบฅy ฤ‘แป‘i tฦฐฦกng tแปซ ngฦฐแปi dรนng nhแบญp vร o trรชn mร n hรฌnh var masv = document.getElementById("masv"); var hoTen = document.getElementById("hoTen"); var diaChi = document.getElementById("diaChi"); ...
import { useState } from "react"; import styled from "styled-components"; import Link from "next/link"; // Posts data import { postsByDate, favoritePosts } from "../../GetAllPosts"; import Layout from "components/Layout/Layout"; import Title from "components/Title"; import { BlogContainer } from "../../styles/global"...
let struct = require('varstruct') let VarInt = require('varint') let { sha256, ripemd160 } = require('./common.js') const nullHash = Buffer.alloc(20) let VarString = struct.VarString(VarInt) let adapter = struct([ ['hash', struct.Buffer(20)], ['kvHash', struct.Buffer(20)], ['leftHeight', struct.UInt8], ['righ...
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn"...
function adminGroupCreateItem(value) { var $item = listAppend(listMatch('step-1-items')) .attr('data-item', value.id) .data('value', value); domFillItem($item, value); return $item; } function adminGroupGetData() { var $pane = paneMatch('group-edit'), data = { nam...
var audio_context; var isPlaying = false; // Are we currently playing? var startTime; // The start time of the entire sequence. var currentSubdivision; // What note is currently last scheduled? var tempo = 108.0; // tempo (in beats per minute) var lookahead = 25.0; // How frequen...