text
stringlengths
5.97k
41.2k
/** * This file is part of Totara Enterprise Extensions. * * Copyright (C) 2020 onwards Totara Learning Solutions LTD * * Totara Enterprise Extensions is provided only to Totara * Learning Solutions LTD's customers and partners, pursuant to * the terms and conditions of a separate agreement with Totara * Learni...
// vim: ts=4 et sw=4 si // from http://stackoverflow.com/questions/16722424/how-do-i-create-an-angularjs-ui-bootstrap-popover-with-html-content var app = angular.module('vizApp',['ngRoute', 'uiSlider', 'ui.bootstrap']) .filter('to_trusted', ['$sce', function($sce){ return function(text) { retur...
// Copyright 2012 <NAME>, Inc. All rights reserved. 'use strict'; var http = require('http'); var sprintf = require('util').format; var url = require('url'); var assert = require('assert-plus'); var mime = require('mime'); var errors = require('restify-errors'); var httpDate = require('./http_date'); var utils = r...
import $ from "../../core/renderer"; import { getWindow } from "../../core/utils/window"; import eventsEngine from "../../events/core/events_engine"; import browser from "../../core/utils/browser"; import { isObject, isString } from "../../core/utils/type"; import positionUtils from "../../animation/position"; import {...
'use strict'; var Promise = require('bluebird'), path = require('path'), gulp = require('gulp-param')(require('gulp'), process.argv), browserify = require('browserify'), buffer = require('vinyl-buffer'), source = require('vinyl-source-stream'), fs = require('fs'), header = require('gulp-hea...
// Copyright Joyent, Inc. and other Node contributors. // // 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 use, copy, modi...
function UI() { var btn = new ButtonDecorator(); var chx = new CheckboxDecorator(); var slc = new SelectDecorator('select'); } $(function() { UI(); $('#case-study3 .detail-slider .bg .slides').cycle({ speed: 600, slides: '> figure', pager: '> .handles', log: false, swipe:true, }); $('#case-stu...
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo...
/*eslint-disable */ const Cheerio = require('cheerio'); const get = require('./modules/autoRetryGet'); const { downloadTinied } = require('./modules/autoRetryDownload'); const pinyin = require('pinyin'); const Fse = require('fs-extra'); const Path = require('path'); const _ = require('lodash'); const md5 = require('md5...
/* 增强B站收藏夹 */ const europeanSet = { loopNumOnload: 0, loopNumOnloadMax: 20, timerOnload: null, cardW: 0, loopNum: 0, timer: null, timerOff: false, userArr: [], userArr2: [], userAtArr: [], addUser: [], winArr: [], card: null, winnerNum: 0, upName: null, start: true, autoLoadOffset:...
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Formik, Form, Field } from 'formik'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/c...
$(document).ready(function () { //$('#themeswitcher').wijdropdown(); $('#themes').bind("change", function () { $(".wijmo-stylesheet-wijmo_theme").attr("href", $(this).val()); //executeCallback("theme=" + $(this).val()); }).wijdropdown(); $("div.wijmo-wijdropdown").width("136px"); var wijwidth = $('article ....
// main proc for Agama const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const path = require('path'); const url = require('url'); const os = require('os'); const { randomBytes } = require('crypto'); const md5 = require('agama-wallet-lib/src/crypto/md5'); con...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/// <reference path = "../phaser.d.ts" /> { // variables var config; var game; var enemyspawned = false; var gamestart = false; var player; var playerInvincible = true; var enemies; var activeEnemies = []; var enemyHealth1 = 16; var particle1; var upgrade; var bulletLevel = 1; var bulletLevelUpAlive = 0...
/* * Copyright(c)2021-2099, 江苏省特种设备安全监督检验研究院扬州分院 * 项目名称:单线图手机端在线绘制 * 文件名称:app.js * Date:2021/3/22 下午10:50 * 作者:周啸天 */ // let screenW = document.documentElement.clientWidth; // let screenH = document.documentElement.clientHeight; // 初始化主画布 const canvas = document.getElementById("canvas")...
'use strict'; import * as _3d from 'd3-3d'; import * as scale from 'd3-scale'; import * as transition from 'd3-transition'; import * as drag from 'd3-drag'; import * as array from 'd3-array'; import * as color from 'd3-color'; import { select, selectAll, mouse } from 'd3-selection'; import { event as currentEvent } fr...
"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...
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { ret...
'use strict'; const defaultTo = require('lodash/defaultTo'); const throttle = require('lodash/throttle'); const EventType = require('../../event/EventType'); const TileEvent = require('../../event/TileEvent'); const LRUCache = require('../../util/LRUCache'); const Tile = require('./Tile'); const TilePartial = require(...
import React from 'react'; import PropTypes from 'prop-types'; import {Input, InputGroup, InputGroupAddon, InputGroupText, Popover, PopoverHeader, PopoverBody} from 'reactstrap' import DatePickerHeader from './DatePickerHeader' import DatePickerCalendar from './DatePickerCalendar' const getInstanceCount = () => { if...
const path = require('path') const ProductionLine = require('productionline') const Parser = require('cherow') const JSCommentParser = require('comment-parser') const traverse = require('traverse') const EE = require('events').EventEmitter global.BUS = new EE() // global event bus // See the global doc variable befor...
var testSeries = [[{value: 35, name: 'Cooling', color: '#1087C9'}, {value: 19, name: 'Heating', color: '#AB3E2C'}, {value: 15, name: 'Hot Water', color: '#663366'}, {value: 15, name: 'Appliances', color: '#C2B59B'}, {value: 10, name: 'Lighting', color: '#65D9C5'}, {value: 5, name:'Other', color: '#8...
import React, { Component } from 'react'; import { connect } from 'dva'; import StandardTable from 'components/StandardTables'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import styles from './TableList.less'; import moment from 'moment'; import { Menu, Dropdown, Icon, Avatar, Card, Form...
var tape = require("tape"); var JSONParser = require("./index.js"); // Convenience method function parseNextJSONValue(string, from) { return (new JSONParser()).parse(string, from); } tape("parse value", function(test) { test.deepEqual(parseNextJSONValue(""), { value: undefined, index: 0, errorCode: "MISSING_VALUE" ...
'use strict'; // ============================================================================ // Settings System // ============================================================================ import Module from 'utilities/module'; import {deep_equals, has, debounce} from 'utilities/object'; import {IndexedDBProvide...
// Nivel 1 /* Comentarios ======== Empecemos con los comentarios. Esto es un comentario. Comentarios son notas que la gente puede leer, pero las computadoras las van a ignorar. Nos van a servir como guía en la introducción a JavaScript Un comentario puede ser de 1 sola línea, o multi-línea....
import moment from 'moment'; import noUiSlider from 'nouislider'; import 'nouislider/distribute/nouislider.css'; import {logger} from './logger'; import {ReadPages} from './components/pagination'; import { getOrCreateElement, millisToSplitTime, millisToTime, splitTimeToMillis, validateDateRange ...
/* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blo...
var screen_max = 5;//大图数 var focus_max = 5;//小图组数 var pic_max = 4;//组内小图数 var screen_obj = {}; var ap_obj = {}; var upload_obj = {}; var focus_obj = {}; var focus_ap_obj = {}; var focus_upload_obj = {}; $(function(){ $('#screen_color').colorpicker({showOn:'both'});//初始化切换大图背景颜色控件 $(...
require('@nomiclabs/hardhat-truffle5'); const configByTokenAddress = require('./config/ylaPool'); const fs = require('fs'); task('deploy-mainnet-instant-rebind-strategy', 'Deploy Mainnet Instant Rebind Strategy').setAction(async (__, {ethers, network}) => { const {impersonateAccount, gwei, fromEther, ethUsed, deplo...
// Dependencies const {app, BrowserWindow, dialog, ipcMain, Menu, shell} = require('electron'); const {createConnection} = require('mariadb'); const {GITHUB_USER, GITHUB_KEY, DEV_TOOLS} = require('./env.json'); const fs = require('fs'); const {homedir} = require('os'); const {Octokit} = require('@octokit/core'); const ...
/* jshint esversion: 6 */ const config = require('./config.json') const tokml = require('tokml') const tp = require('tedious-promises') const _ = require('lodash') const Promise = require('promise') const fs = require('fs') const CronJob = require('cron').CronJob const replace = require('replace-in-file') const turf = ...
import React, { useState, useEffect, useRef, useCallback } from "react"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import Typography from "@material-ui/core/Typography"; import { makeStyles } from "@material-ui/core/styles"; import Container from "@material-ui/...
/** * This module contains the code that tells the EtherBandBattles contract to pay a game participant, player or * band member. */ const EnumEthereumTransactionType_ebb = require('../ethereum/ethereum-globals').EnumEthereumTransactionType_ebb; const common_routines = require("../common/common-routines"); // cons...
/* This code demonstrates a AJAX call to a Server object using Javascript Ecmascript 5 and Jquery. This implementation is a stripped down version of a current implementation and should be considered 'gibberish' when out of context. This code is intended to be used as a 'copy and paste reference' when ...
import { getAttrKey } from '../helpers/check-attr'; import _ from 'lodash'; /** * Get Global manifest.json and return global variables as CSS variables. * * @param {array} globalManifest - Global variable data. * * @return {string|void} * * Global Manifest: * ```js * const manifestGlobal = { * "globalVaria...
window.AudioContext = window.AudioContext || window.webkitAudioContext; function Jessibuca(opt) { this.canvasElement = opt.canvas; this.contextOptions = opt.contextOptions; this.videoBuffer = opt.videoBuffer || 0 if (!opt.forceNoGL) this.initContextGL(); this.audioContext = new window.AudioContext()...
/* globals pageDetect */ 'use strict'; const mergedPullRequestIcon = '<svg aria-label="pull request" class="octicon octicon-git-pull-request type-icon type-icon-state-merged" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0...
require("ember-data/system/model_array"); require("ember-data/system/transaction"); var get = Ember.get, set = Ember.set, getPath = Ember.getPath, fmt = Ember.String.fmt; var OrderedSet = Ember.Object.extend({ init: function() { this.clear(); }, clear: function() { this.set('presenceSet', {}); this...
var serverPath = '/FileManager/Main/'; var addressBar = $('input[name="current-path"]'); var uploaderWrapper = $('.uploaders'); var bdy = $(document.body); const updateBtn = $('#update'); const updateIcon = updateBtn.find('> i'); const uploaderSample = $( '<div class="uploader">' + ' <div class="input-group ...
/* jslint node: true */ /* global window */ 'use strict'; var _ = require('lodash'); var FontProvider = require('./fontProvider'); var LayoutBuilder = require('./layoutBuilder'); var PdfKit = require('pdfkit'); var PDFReference = require('pdfkit/js/reference'); var sizes = require('./standardPageSizes'); var ImageMeas...
// -*- 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. //...
import React, { useState, useRef, useEffect } from 'react'; import styled from 'styled-components'; import Powder from '../../images/powder.inline.svg'; import Offer_1 from '../../images/offer_1.jpg'; import Offer_2 from '../../images/offer_2.jpg'; import Offer_3 from '../../images/offer_3.jpg'; import { animationScrol...
$(document).ready(function() { JaSON.init(); }); var JaSON = { init: function() { JaSON.startTime = 0; JaSON.endTime = 0; // set focus on the URL field $("#url").focus(); JaSON.loadSavedRequests(false); JaSON.registerEventHandlers(); }, /** * Re...
import React, { useState, Fragment } from 'react'; import styled from 'styled-components'; import axios from 'axios'; import moment from 'moment'; import { ArrowIosForwardOutline } from '@styled-icons/evaicons-outline'; import { CheckCircle } from '@styled-icons/material'; import { useHistory } from "react-router-dom";...
import React, { Component } from 'react' import munkres from 'munkres-js' import _ from 'lodash' // const socket = new WebSocket('ws://localhost:8080/ws') const socket = io.connect('http://localhost:8080/') import Robot from './Robot' import User from './User' import VirtualObject from './VirtualObject' import Point ...
import uuid from 'uuid'; import * as THREE from 'three'; import { DATA_PREFIX } from '../../constants'; import { sizeModelByMachineSize } from './ModelInfoUtils'; import ThreeUtils from '../../components/three-extensions/ThreeUtils'; const EVENTS = { UPDATE: { type: 'update' } }; // const materialSelected = new ...
// ==UserScript== // @name e6 User Level // @version 0.2 // @description enter something useful // @author reBane // @match https://e621.net/users/* // @grant none // @run-at document-end // ==/UserScript== let aa_ul_level = 1; let aa_ul_ephave = 0; let aa_ul_epneed = aa_ul_leve...
/* jslint node: true, white: true, sloppy: true */ /* * Flushes stats to AppOptics Metrics (https://my.appoptics.com). * * To enable this backend, include 'statsd-appoptics-backend' in the * backends configuration array: * * backends: ['statsd-appoptics-backend'] * * The backend will read the configuration op...
"use strict"; /** * # @harmony-js/staking This package provides a collection of apis to create, sign/send staking transaction, and receive confirm/receipt. ## Installation ``` npm install @harmony-js/staking ``` ## Usage Create a Harmony instance connecting to testnet ```javascript * const { Harmony } = require(...
/* Copyright 2020 Croquet 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 law or agreed to in writing, sof...
// Refresh et affiche la liste des messages function refreshlistmsg(){ var idm, msgajax; var tab, ligne = new Array(); $('#miss').PeriodicalUpdater('controllers/accueil/messages.php', { method: 'GET', // méthode; get ou post //data: {}, // tableau de valeurs passées à l'URL ...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function _defineProperty(obj, key,...
const candidateSelectors = [ 'input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details', ]; const candidateSelector = /* #__PURE__ */ candidateSelec...
// Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: cyan; icon-glyph: tint; // Skript: Water level value // Source: https://github.com/coderafk/waterlevel //#region definitions //#region global widget settings Location.setAccuracyToThreeKilometers(); const searchR...
/*! compost-client - v0.0.1-SNAPSHOT - 2016-01-17 */ var compostServices = angular.module('compostServices', ['ngResource']); compostServices.factory('UserFoods', function($resource) { return $resource('api/v1/people/me/foods/:id', {id: '@id'}); }); function AuthService($injector, $rootScope) { this.injector_...
// twister_newmsgs.js // 2013 <NAME> // // Periodically check for new mentions and private messages (DMs) // Update UI counters in top bar. Load/save state to localStorage. // --- mentions --- var groupChatAliases = [] function saveMentionsToStorage() { var twists = [], length = 0; for (var j in twister.ment...
import { startPositioning, stopPositioning, Direction, } from 'lightning/positionLibrary'; import { setFocusActiveCell, reactToTabBackward, reactToTabForward, getActiveCellElement, getCellElementByIndexes, updateActiveCell, } from './keyboard'; import { updateRowsAndCellIndexes, getR...
/** * cvi_edge_lib.js 1.41 (21-Mar-2009) * (c) by <NAME> * All Rights Reserved * Source: edge.netzgesta.de * Distributed under Netzgestade Software License Agreement * http://www.netzgesta.de/cvi/LICENSE.txt * License permits free of charge * use on non-commercial and * private web sites only * syntax: cv...
//Translation function function trans(key, replace = {}) { let translation = key.split('.').reduce((t, i) => t[i] || null, window.translations); for (var placeholder in replace) { translation = translation.replace(`:${placeholder}`, replace[placeholder]); } ...
var letterwidth; var letterheight; var letterxheight; var lettergap; var letterrounding; var letterstroke; var lettercount; var typecolor; var letterstrokeB; var letterTotal = 25; var letterpos = []; var isOverPlayButton; var isOverNextButton; var mode; var On = true; // var rSlider; var palettebluepink; //i can make...
import React, {useState, useEffect} from 'react'; import {Link} from 'react-router-dom'; import { useForm } from "react-hook-form"; import { yupResolver } from "@hookform/resolvers/yup"; import swal from 'sweetalert'; import Menu from '../LayoutComponents/Menu'; import Header from '../LayoutComponents/Header'; import ...
$.ajaxSetup ({ cache: false, beforeSend: function(xhr){ xhr.withCredentials = true; }, xhrFields: { withCredentials: true }, crossDomain: true }); /* // Initializes the page, clears the local storage, retrieves the list of plugins and available articles // Stores the results in local storage, and sets t...
var util = require('util'); var async = require("async"); var xmlescape = require('xml-escape'); var Q = require('q'); var AlexaSkill = require('./AlexaSkill'); var dateFormat = require('dateformat'); var AWS = require('aws-sdk'); AWS.config.update({ region: "us-east-1" }); var dynamodb = new AWS.DynamoDB.DocumentClie...
import { Howl } from 'howler' import anime from 'animejs' import { Errors, parseItem, parseCase } from '@/utils' import sortBy from 'lodash-es/sortBy' import uniqBy from 'lodash-es/uniqBy' import groupBy from 'lodash-es/groupBy' import shuffle from 'lodash-es/shuffle' import Inventory from '@/components/inventory' i...
"use strict"; // eslint-disable-line quotes,semi const BufferList = require('bl') const Transform = require('stream').Transform const uint = require('cuint').UINT32 const implodeDecoder = require('implode-decoder') const streamSplicer = require('stream-splicer') const cryptTable = require('./crypt-table') const hashF...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoDiscoveryAction = exports.AutoDiscovery = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProper...
//'use strict'; import * as widgets from '@jupyter-widgets/base'; import _ from 'lodash'; import $ from 'jquery'; import { new_id } from './base'; import { elementReady } from './es6-element-ready'; import { Config, Interpreter } from 'multiclass-density-maps'; import * as colormaps from './colormaps'; import * as d3 f...
import { getInstance } from 'd2/lib/d2'; import React from 'react'; import FormBuilder from 'd2-ui/lib/forms/FormBuilder.component'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import DropDown from '../../../forms/form-f...
/** * 日期操作 * @namespace dates * @see module:utils */ /** * DOM操作 * @namespace dom * @see module:utils */ /** * 字符串操作 * @namespace strings * @see module:utils */ /** * 路径操作 * @namespace paths * @see module:utils */ /** * 一些常用公共方法 * @module utils * @see dates * @see dom * @see strings * @see path...
/* globals App */ var rome = require('rome'); var moment = require('moment'); var autosize = require('autosize'); var API = require('./../../../lib/api'); var Events = require('./../../../lib/events'); Class(CV, 'EditablePost').includes(CV.WidgetUtils, CustomEventSupport, NodeSupport, BubblingSupport)({ MAX_LENGTH...
#!/usr/bin/env node 'use strict'; /* globals process */ const createFile = require('fs').createWriteStream, execFile = require('child_process').execFile; /** * Throws when got error. * @param {?Error} error * @throws {Error} */ const defaultCallback = error => { if (error) throw error; }; const KB = 10...
var d3 = require('d3') , gaapi = require('./gaapi') , processor = require('./processor') , physics = require('./physics') , graphic = require('./graphics/canvas') , prbr = require('./prbr') , getData = require('./gendata') ; function log(label, data) { if (arguments.length < 2) { ...
import { // take, call, put, select, // takeLatest, all, takeLeading, } from 'redux-saga/effects'; import { loadingError, setLoading, showSuccess, showWarning, } from 'containers/App/actions'; import find from 'lodash/find'; import { localstoreUtilites } from 'utils/persistenceData'; import * as s...
function waitForPlayerToBecomeReady(){ var player = window.THEOplayer.players[0]; if( !player || player === undefined || !player.addEventListener ){ console.debug("Player instance not ready, waiting"); setTimeout( waitForPlayerToBecomeReady, 1000); return; } console.debug("Player instance READY"...
/** * URL跳转设定 * @returns {{url: jQuery, change: (function(*, *): $.fn.urlparam), gourl: gourl}} */ $.fn.urlparam = function(){ var _this = $(this); var turl = _this.attr("url"); if(turl == undefined || turl == "") turl = window.location.href; var ind = turl.indexOf('#'); if (ind > 0) { tu...
'use strict'; // external imports function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Sym...
"use strict"; /* variable which prevents the entities to render and update themselves automatically. * this variable will become true only when you click on the starGame button.which is * reqired to start timer,rendering of objects and player movements. */ var play = false; // timer function global variable var minu...
/** * @license Copyright 2020 The Lighthouse 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 required by applica...
'use strict' const { pvec, rot: rotv, rotab, sub: subv } = V /**/let createView = function(options) { let Max = 10, id = 'view', font = 'Arial', fontSize = 15, fontColor, wRatio, hRatio, offLeftRatio, offTopRatio const opts = options || {} if (typeof opts ...
import React, { PureComponent } from 'react'; import { View, Image, Text, InteractionManager, ProgressViewIOS, ProgressBarAndroid, Platform, Modal, StyleSheet, Dimensions, ScrollView, NativeModules, TouchableOpacity, Linking } from 'react-native'; import { connect } from 'react-redux'; // import codePush from "react-na...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
import React, { useState, useEffect, useRef, useContext } from 'react' import { SyncOutlined, LeftOutlined, RightOutlined, PlusOutlined, CarryOutTwoTone, } from '@ant-design/icons' import { Row, Col, Table, Button, DatePicker, Space, Form, message } from 'antd' import './index.less' import moment from 'moment...
/** * Drawing utilities * * In this package, any object defines a property "type" equal to it's class. */ // import {np} from "../static/np.js" /** Class representing a point. */ export class Point { /** * Creates a new point. * * @param {Array} a_list - A two element {number} array, containi...
/* global TrelloPowerUp */ // we can access Bluebird Promises as follows var Promise = TrelloPowerUp.Promise; const HELPER = window.helper({key: "9ed85a487eb0b08bff2f11e84cc80c16"}); var GLITCH_ICON = './images/glitch.svg'; var WHITE_ICON = './images/icon-white.svg'; var GRAY_ICON = './images/icon-gray.svg'; var bo...
/* This file belongs to a CrossBrowdy.com example, made by <NAME>. Creative Commons Attribution 4.0 International License. */ CB_init(main); //It will call the "main" function when ready. //This function will be called when CrossBrowdy is ready: function main() { //Process the number at the beginning: processNumbe...
import * as Vue from 'vue/dist/vue.esm-bundler.js' import QRCode from 'qrcode' import hashbow from 'hashbow' import marked from 'marked' import domready from './app/lib/ready' import i18n from './app/i18n' import api from './app/api' import lnurl from './app/lnurl' import utils from './app/utils' // import count from ...
/** * Calculate the Z-gap between two RGB pixels * @param red1 - red component of the first pixel * @param green1 - green component of the first pixel * @param blue1 - blue component of the first pixel * @param red2 - red component of the second pixel * @param green2 - green component of the second pixel * @para...
const express = require('express'); const fetch = require('node-fetch') const moment = require('moment') const bodyParser = require('body-parser'); const app = express(); const port = process.env.PORT || 5000; const cors = require('cors'); const spawn = require("child_process").spawn; app.use(bodyParser.urlencoded({ e...
const isUpperCase = v => v[0] === v[0].toUpperCase(); const shouldIgnoreFile = file => !!file .split("\\") .join("/") .match(/node_modules\//); const skipPattern = /^\s*@proton-hot-disable/; module.exports = function plugin(args) { if (this && this.callback) { throw new Error(); } const { types: t, templ...
var mgr; //V1 TO DO //Work on Diplay Text Design (transparen overlay) //Resize User input boxes //GUI for User input? //TO DO - These require a configuration of the Logic. A potential future project. The code will be made available via Github // Allow users to change the number of decision-making units: // Allow user...
var DefferredDirectLight=1; var ForwardDirectLight=1; var VoxelLight=40; var TexMax=8; var BoneMax=100; var InstanceMax = 50; function CShader() { } CShader.prototype.constructor =CShader; function CShaderGL() { var m_com=null; var m_glC=null; var m_glA=null; var All=null; var Vs=nu...
const date = require('date-and-time'); const sql = require('mssql'); const retrieve = require("./Resources/retrieve"); const gs1js = require('gs1js'); const config = require("./config"); const {verifyKitId} = require("./kit-verify"); const { sqlDateNow } = require('./sql.js'); const { getOptions } = require('./sel...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
/* ### Statements ### */ let cardDefaultFlag = false; let preferences = {}; const toDetailTask = idTask => window.location = '/detail-task?idTask=' + idTask /* ### Main Functions ### */ const verifyLengthCards = () => { $('.cards').each(function (index,element) { $(element).children().leng...
'use strict'; /* * Created with @iobroker/create-adapter v2.0.1 */ // The adapter-core module gives you access to the core ioBroker functions // you need to create an adapter const utils = require('@iobroker/adapter-core'); // Load your modules here, e.g.: //const puppeteer = require('puppeteer'); const crypto = r...
/* eslint-disable */ /* https://curl.haxx.se/docs/manpage.html http://www.mit.edu/afs.new/sipb/user/ssen/src/curl-7.11.1/docs/curl.html https://github.com/tj/parse-curl.js/blob/master/index.js */ const t = { Boolean: Boolean, String: String, Number: Number, Array: Array, // <String> requires 'separato...
//TODO //gpio load spi [buffer size in KB] przed zalaczeniem spi var bind = require('./build/Release/wirebind'), Epoll = require('epoll').Epoll, $ = require('enderscore'), fs = require('fs'), util = require("util"), bufferIO = new Buffer(1), Emitter = require('events').EventEmitter, gpioPath = '/sys/class/gpio/...
import React from 'react'; import PropTypes from 'prop-types'; import MDNRComponent from '../common/MDNRComponent'; import InfiniteLoader from 'react-virtualized/dist/es/InfiniteLoader'; import MultiGrid from 'react-virtualized/dist/es/MultiGrid'; import AutoSizer from 'react-virtualized/dist/es/AutoSizer'; import cn ...