text
stringlengths
3.07k
16k
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.sendByDrive = exports.Email = exports.setConfigEmail = undefined; 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.prot...
const electron = require('electron') const path = require('path') const fs = require('fs') const CronJob = require('cron').CronJob; const StoreTasks = require('./StoreTasks') const StoreLog = require('./StoreLog') const { exec } = require('child_process'); const { isAfter, isBefore, isEqual, getDate } = require('date-f...
const url = 'http://172.16.31.10:8090/project-1/'; document.getElementById("man-body").onload = function() {loadData()}; var user; function loadData() { let data = localStorage.getItem("userData"); user = JSON.parse(data); if(user) { let row = document.createElement("tr"); let id = docume...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
'use strict'; var validator = require('validator'), path = require('path'), config = require(path.resolve('./config/config')); var request = require('request'); var cheerio = require('cheerio'); var FB = require('fb'); var Twitter = require('twitter'); var fb = new FB.Facebook({ appId: config.facebook.clientID, ap...
/* # Kronos.js ## Introduction The contents of this file can be found in `demo.js` and are compiled into `README.md`, so you can consume the readme while running the JavaScript program with [Node.js](http://nodejs.org/) (`make demo`) to understand how it works. The kronos.js library provides support for browsers and ...
"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]; } } }...
import { Label } from '../label'; import { View, CSSType, CustomLayoutView } from '../core/view'; import { Property } from '../core/properties'; import { layout } from '../../utils'; import { StackLayout } from '../layouts/stack-layout'; import { ObservableArray } from '../../data/observable-array'; import { addWeakEve...
var request = require('request'); var signature = require('../utils/signature'); var settings = require('../settings'); var log4js = require('log4js'); log4js.configure(settings.log4js); var logger = log4js.getLogger(__filename); var order_logger = log4js.getLogger('order'); var async = require('async'); var signature ...
import React, {useEffect, useState} from 'react'; import {Link as RouterLink, withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; import validate from 'validate.js'; import {makeStyles} from '@material-ui/styles'; import {Button, Link, TextField, Typography} from '@material-ui/core'; import {notifi...
if (this.opera) { Object.getOwnPropertyNames(window).forEach(function(name){ this[name] = window[name]; }); } var g = this; var extension_path = function(){ if (g.chrome) { return chrome.extension.getURL('grease.html'); } else if (g.safari) { return g.safari.extension.baseURI + 'grease.html'; } el...
import React, { useState, useRef } from 'react' import styled from 'styled-components' import BarlowText from './BarlowText' import SectionHeader from './SectionHeader' import AnimatedHighlight from './AnimatedHighlight' import { gsap } from 'gsap' const Products = ({ products }) => { const { topTitle, description, ...
import React, { Component } from "react"; import DoughnutChart from "../../Components/DoughnutChart"; import DailyCalories from "../../Components/DailyCalories"; import NewDayBtn from "../../Components/NewDayBtn"; import './style.css' class Calories extends Component { state = { data: [], search: "", foo...
var assert = require('assert'); var util = require('./util'); const filesFolder = './'; var path = require('path'); var chai = require('chai'); var assert = chai.assert; // Using Assert style var expect = chai.expect; // Using Expect style var should = chai.should(); // Using Should style var folder = process.env.npm_...
var EventEmitter = require('events').EventEmitter; var path = require('path'); var util = require('util'); var spawn = require('child_process').spawn; function toArray(source) { if (typeof source === 'undefined' || source === null) { return []; } else if (!Array.isArray(source)) { return [sourc...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); ...
import React from 'react' import Map from 'ol/map' import View from 'ol/view' import TileLayer from 'ol/layer/tile' import OSM from 'ol/source/osm' import olProj from 'ol/proj' import olInteractionSelect from 'ol/interaction/select' import olFill from 'ol/style/fill' import olCircle from 'ol/style/circle' import olStyl...
/* eslint camel-case: 0 */ import $ from 'jquery'; import Mustache from 'mustache'; import vizMap from '../../visualizations/main'; import { getExploreUrl } from '../explore/exploreUtils'; import { applyDefaultFormData } from '../explore/stores/store'; import { QUERY_TIMEOUT_THRESHOLD } from '../constants'; const util...
function checkCart() { alert("ok"); (cart = JSON.parse(localStorage.getItem("cart"))), null == cart || 0 == cart.cartProduct.length ? ((cart = { cartProduct: [] }), (count.style.display = "none"), (document.querySelector(".empty").style.display = "flex")) : ((document.querySelec...
export const IMAGE_DATA = 'image_data'; export const NEW_GPS_STATE = 'new_gps_state'; export const LIVESTACK_IMAGE = 'livestack_image'; export const LIVESTACK_LOG = 'livestack_log'; export const GET_CONNECTION = 'get_connection'; export const GET_STATES = 'get_states'; export const GET_CAMERAS = 'get_cameras'; export...
import {forward} from '@enact/core/handle'; import {is} from '@enact/core/keymap'; import hoc from '@enact/core/hoc'; import {clamp} from '@enact/core/util'; import {validateRangeOnce, validateSteppedOnce} from '@enact/ui/internal/validators'; import PropTypes from 'prop-types'; import {createRef, Component} from 'reac...
class Tank { /** * * @param {BABYLON.Scene} scene */ constructor(scene) { this.scene = scene; this.inputStates = {}; this.skills = { "pushAway": false, "attract": false } this.createTank(); this.createBounder(); this....
'use strict'; function Ready( interactive, complete ) { complete = complete || function () {}; interactive = interactive || function () {}; document.onreadystatechange = function () { if ( document.readyState === 'interactive' ) { interactive(); } if ( document.readyStat...
'use strict'; const net = require('net'); const tls = require('tls'); const SMTPConnection = require('./smtp-connection').SMTPConnection; const tlsOptions = require('./tls-options'); const EventEmitter = require('events'); const shared = require('node4mailer/lib/shared'); const CLOSE_TIMEOUT = 30 * 1000; // how much ...
// default values: var endDate = "20170628"; var beginDate = "20170627"; var hits = 10; var round = 0; var page = 0; var articlesPerSite = 10; // first a user picks dates $( "#date-from" ).datepicker({ changeMonth: true, changeYear: true, yearRange:"1851:2017", dateFormat: 'yy-mm-dd' }); $( "#date-to" ).datepi...
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * 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 right...
/** * Provides Moonstone styled grid list image item components and behaviors. * * @example * <GridListImageItem * caption="image0" * source="http://placehold.it/100x100/9037ab/ffffff&text=Image0" * subCaption="sub-image0" * /> * * @module moonstone/GridListImageItem * @exports GridListImageItem * @ex...
/* * Copyright (c) 2020, <NAME> (https://www.hevs.ch) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * ...
$('#formulario_r_compras_p').css("display","none"); $('#msg_decimales').css("display","none"); $('#formulario_b_compras').css("display","block"); $("#proveedor_r_compras_b").prop("disabled", true); $("#categoria_r_compras_b").prop("disabled", true); cargar_proveedores_b(); console.log("esta funcionando el js");...
import datasheet from "/static/data.js"; const knownTiles = new Map(); const CHUNK_SIZE = 48; const tileForTexture = async (i) => { let multiple = typeof i === 'object'; return await datasheet.LoadTexture(i) }; const tileForEntity = (entity_name, {index, count, theme}) => { const entity = entitiesMap.get(entity...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var fp = require('lodash/fp'); var flatten = require('flat'); var flatten__default = _interopDefault(flatten); const titles ...
import React, { useState, useEffect } from "react"; import { StyleSheet, Image, View, Text, Platform, Dimensions, Alert, AsyncStorage, TouchableWithoutFeedback, Keyboard, KeyboardAvoidingView} from 'react-native' import { TextInput } from 'react-native-gesture-handler' import { FontAwesome5 } from '@expo/vector-icons' ...
// @author <NAME> // game logic on screen const cardsOnScreen = [ '#card1', '#card2' ]; let cardSet1 = []; let cardSet2 = []; // fwrxh array "cards" from theDoubleAlgorithm.js const gameCards = cards; // create template for number buttons const buttonsOnCardTemplate = document.querySelector('._gameset_zen bu...
/* global alert */ import { qs, escapeHtml, config } from './red_util.js' const knownReqHdrs = { 'Accept-Language': ['', 'en', 'en-us', 'en-uk', 'fr'], 'Cache-Control': ['', 'no-cache', 'only-if-cached'], Cookie: null, Referer: null, 'User-Agent': [ 'RED/1 (http://redbot.org/about)', 'Mozilla/5.0 (M...
var project = angular.module('myTestApp', ['ngMaterial']); project.controller('testController', function($rootScope, $scope, $http, $window, $mdDialog) { // EXAMPLE CODE $scope.testCases = []; var testCase1 = { name: "Simple Square", user: "vontell", votes: -1, ...
import React, { useCallback, useContext, useEffect, useRef, useState, } from 'react'; import { Box, Button, Form, FormField, Heading, Markdown, Text, TextArea, } from 'grommet'; import { Blank, Close, Edit, Trash } from 'grommet-icons'; import DesignContext from '../DesignContext'; import { ap...
window.onload = () => { document.getElementsByClassName("product-section")[0].style.width = "0%"; fetch("https://store-manager-app.herokuapp.com/api/v2/products", { headers: { "x-access-token": localStorage.getItem("token") } }) .then((res) => res.json()) .then((...
import React, { Component } from "react"; import { graphql, Link } from "gatsby"; import Layout from "./../../components/layout"; import Header from "./../../components/header"; import { removePre } from "./../../util/common"; import SEO from "./../../components/seo"; import AboutProject from "./../../components/aboutp...
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import CssBaseline from '@material-ui/core/CssBaseline'; import T...
export const valueTabs = { response: 'RESPONSE', request: 'REQUEST', none: null } const maxEntriesInDom = 13; export function isValueExistsInElement(shouldInclude, content, domPathToContainer){ it(`should ${shouldInclude ? '' : 'not'} include '${content}'`, function () { cy.get(domPathToContai...
/** * @module Hook */ // Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/api/hooks.html const { AbilityBuilder, Ability } = require('@casl/ability') const { //rulesToQuery, //rulesToFields, //permittedFieldsOf, unpackRules } = require('...
function dropzone() { $("#photoForm").dropzone({ maxFiles: 5, addRemoveLinks:true, acceptedFiles: ".png, .jpg",//is this correct? I got an error if im using this dictRemoveFile:"Remove", dictDefaultMessage:"Drag or Drop Image here<br>(Or)<br>Browse File (Click)", url:...
const fs = require("fs"); const ncp = require("ncp"); const { spawn } = require("child_process"); const pkg = require("./package.json"); const platform = process.platform; const v8Version = process.versions.v8; const nodeVersion = process.versions.node; const architecture = process.arch; ncp.limit = 16; const dawnV...
/* global require, marionette, setup, suite, test, __dirname */ 'use strict'; var assert = require('chai').assert; var ThreadGenerator = require('./generators/thread'); var Messages = require('./lib/messages.js'); var Storage = require('./lib/storage.js'); var InboxView = require('./lib/views/inbox/view'); var Utilit...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Button, Classes, Intent, MenuItem, Position, Popover, PopoverInteractionKind } from '@blueprintjs/core'; import { Select } from '@blueprintjs/labs'; import '@blueprintjs/labs/dist/blueprint-labs.css'; import { actions as listsAc...
// RSI_Hourly_Frontend_Hash001 Strategy // ATM Straddle at 9:21 with 25% const logger = require("pino")(); const utils = require("../utils"); //---------------------INPUT-------------------------// const lotSize = 25; const tradeSquareOffHour = 15; const tradeSquareOffMinute = 10; const S...
//check auth const user = localStorage.getItem('auth') ? JSON.parse(localStorage.getItem('auth')) : null; // --------------------- SOCKET ---------------// const socket = new WebSocket('ws://localhost:3000/websocket'); socket.addEventListener('open', e => { socket.send(JSON.stringify({ "msg": "con...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Redirect } from 'react-router-dom'; import { formatedDate } from '../../utils'; import { PATH } from '../../constants/routes'; import Button from './Controllers/Button'; import Modi...
let board = null const game = new Chess() const $maindiv = $('#main-div') const $status = $('#status') const $statuses = $('#statuses') const $fen = $('#fen') const $pgn = $('#pgn') const $submit = $('#submit') const $load = $('#load') const $reset = $('#reset') const $results = $('#results') const $whiteResults = $('#...
/** * * NoMustache * * A simple tool for processing data stored in a Google spreadsheet through * a Mustache-based HTML template. Outputs an HTML file for each row or * column of data as specifed by user input. * */ const fs = require('fs'); const path = require('path'); const mustache ...
const view = new View(); view.append(); //Spritework from https://cluly.itch.io/space-eaters const PlayerSprite = new AnimRect(); PlayerSprite.addSequence('idle', [ [0, 0, 8, 8], [8, 0, 8, 8] ]); PlayerSprite.setSequence('idle'); const PlayerShot = new AnimRect(); PlayerShot.addSequence('default', [ [0, ...
const fs = require('fs') const express = require('express'); const app = express(); var cors = require('cors'); const BodyParse = require('body-parser') var request = require("request"); var user = "bitcoin"; var password = "<PASSWORD>" var port = 16112; var data; getMNInfo(function(d){ data = d; console.log("Tota...
import React, { useState, useContext, useEffect } from "react" import { get } from "lodash" import { NavLink, Link } from "react-router-dom" import Select from "react-select" import styled from "styled-components" import config from "config" import BRANDLOGO from "assets/icons/zerotheft.svg" import { getNations } fro...
import React, { useEffect, useState } from "react"; import { Table, Form, Button, Input, Modal, Space, Switch, Select } from 'antd'; import { connect } from "react-redux"; // components const mapStateToProps =({dispatch, category}) =>({ dispatch, categories:category.categories, parentCategories:category.parentC...
/* eslint-disable no-console */ /** * * @summary A commitizen adapter * @author <NAME> * * Created at : 2018-08-28 17:17:02 * * Heavily inspired by: * - https://github.com/commitizen/cz-conventional-changelog * - https://github.com/commitizen/cz-cli * - https://github.com/leonardoanalista/cz-customizab...
import React, { Component } from 'react'; import quizQuestions from './api/quizQuestions'; import Result from './components/Result'; import Category from './components/Category'; import { Button, Popup } from 'semantic-ui-react' import './App.css'; class App extends Component { constructor(props) { super(props...
/** * PaySwarm access keys tool. * * Copyright (c) 2011-2013, Digital Bazaar, Inc. * 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 abo...
window.addEventListener("load",start); // array dos dias da semana, a função getDay, pega o dia da semana como a possição de um array. Exemplo: Domingo ele retorna o número 0. Esse array serve para pegar o valor da posição 0. let semana = ["Domingo","Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]; // mesma...
import axios from 'axios' import * as R from 'ramda' import * as d3 from 'd3' // import * as d3 from 'd3' import makeMap from '@/map2/make-map' import MapManager from '@/map2/map-manager' import LineChart from '@/components/charts/LineChart' const defaultOption = () => ({ responsive: true, title: { display: f...
import React, {Component} from 'react'; import Container from "react-bootstrap/Container"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import { Card } from 'primereact/card'; import {InputText} from "primereact/inputtext"; import { connect } from "react-redux"; import {deleteSection, g...
import { getDate, removeLoader } from "/js/modules/helpers.js"; // Astrononmy overview section export function renderAstronomy(data) { // Remove loading animation removeLoader(); // Set data value to local variable and select the overview container. const astronomyData = data; const container = document.qu...
/* globals artifacts */ /* eslint-disable no-console */ import { EVALUATOR, WORKER, MANAGER_ROLE, EVALUATOR_ROLE, WORKER_ROLE, MANAGER_RATING, WORKER_RATING, RATING_1_SALT, RATING_2_SALT, RATING_1_SECRET, RATING_2_SECRET, SPECIFICATION_HASH, DELIVERABLE_HASH, SECONDS_PER_DAY } from "../helpe...
import axios from 'axios' const deckCheck = async (format, decklist, deckName) => { const {data: cardData } = await axios.get('/api/data/cards') const {data: historic} = format === 'historic' ? await axios.get('/api/data/historic') : {data: undefined} let cards = {} let main = {} let side = {} let size = 0...
/**--------------------------------------------------------------------------------------------------------------------- * tgi-interface-onsen2/test/html-play.js **/ const tgi = TGI.CORE(); const ui = new (TGI.INTERFACE.ONSEN2().Onsen2Interface)({vendor: Date}); // no vendor function TODO wtf const app = new tgi.Appl...
const fs = require('fs') const path = require('path') // ensure the filename passed to html-webpack-plugin is a relative path // because it cannot correctly handle absolute paths function ensureRelative (outputDir, _path) { if (path.isAbsolute(_path)) { return path.relative(outputDir, _path) } else { retur...
/** * 980. Unique Paths III Hard On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. There is exactly one starting square. 2 represents the ending square. There is exactly one ending square. 0 represents empty squares we can walk over. -1 represents obstacles that we cann...
'use strict'; import ImageryLayer from 'cesium/Scene/ImageryLayer'; import TileMapServiceImageryProvider from 'cesium/Scene/TileMapServiceImageryProvider'; export const imageryNames = [ { id: '1942', label: '1942', children: [ { id: '1942_13592', label: '13592' }, { id: '1942_13594', label: '...
/** * Created by YX on 2016/9/10. */ 'use strict'; var util = require('util'); var events = require('events'); var EventEmitter = events.EventEmitter || events; var _ = require('underscore'); var net = require('net'); var MODBUS_PORT = 4001; // modbus port var MAX_TRANSACTIONS = 64; // maximum transaction to wait for...
/** * * Social Media * */ import { push } from 'connected-react-router'; import React, { memo, useEffect, useState } from 'react'; import { Helmet } from 'react-helmet'; import { FaPencilAlt, FaPlus, FaSearch, FaTrash } from 'react-icons/fa'; import { connect } from 'react-redux'; import { compose } from 'redux'; ...
/* jshint esnext: true */ const fs = require('fs'); const path = require('path'); const http = require('http'); const ostype = require('os').type(); const child_process = require('child_process'); var playProcess = 0; var isPaused = false; /** * Windows Music Player Configs * ... */ var playerWindows = function(son...
var _regeneratorRuntime = require('babel-runtime/regenerator').default; // Generated by CoffeeScript 1.10.0 var EventEmitter, MessageIO, Packet, ReadablePacketStream, StreamParser, TYPE, crypto, isPacketComplete, packetHeaderLength, packetLength, tls, extend = function (chil...
import fetch from 'node-fetch' import { Translator } from '../translations.js' export async function getRemoteVersion(config){ //return some value to identify the version of the remote content const response = await fetch( config.url, { method:'HEAD' } ) const headers = response.headers return headers....
/** * Created by lijinchao(joshua) on 17/3/16. */ import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); import * as types from "@/store/mutation-types"; import api from "@/conf/api"; import { CacheKeys } from "@/conf/constants"; import menus from "@/conf/menus"; import rentalMapModule from "./modules/rent...
import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import { Row, Col, ListGroup, Image, Form, Button, Card, Container, Modal } from 'react-bootstrap'; import ErrorMessage from '../components/ErrorMessage'; import Loading f...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { SessionContext } from "./session"; import Paper from '@material-ui/core/Paper'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText...
MailChimpManagementController = RouteController.extend({ waitOn: function () { }, action: function () { if (this.ready()) this.render('mailChimpManagement'); else this.render('loading'); } }); MailChimpConfigurationSchema = new SimpleSchema({ apiKey: { type: String, custom: functio...
/* Specify environment to include mocha globals */ /* eslint-env node, mocha */ /* eslint-disable require-jsdoc */ 'use strict'; const fs = require('fs'); const path = require('path'); const assert = require('chai').assert; const Procedure = require('./Procedure'); const TimeSync = require('./TimeSync'); const expe...
/* (c) 2016 Enchanted Engineering. See the file LICENSE for copying permission. */ /* Module for building and operating simple finite state machines (FSM) for Espruino program control. States can be added as needed and each may define enter, signal, and exit operations. Create a state machine object by ... var sm =...
const serveStatic = require.lazy('serve-static'); const URL = require('url'); const Path = require('path'); const fs = require('fs').promises; const bundlers = { js: require.lazy('postinstall-js'), css: require.lazy('postinstall-css') }; exports = module.exports = function(opt) { if (!opt.statics) opt.statics = {}...
/****************************************************************************** Copyright (c) 2015, Intel Corporation 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 abov...
/*! * Copyright 2018 - Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
"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"; var userAgreementRecords; // JSON array of the user agreements /* var timestampOfUser = []; */ $(document).ready(function() { LASLogger.setCurrentLevel(LASLogger.LEVEL_INFO); LASLogger.instrEvent('application.userAgreementAdjudicator.startPage'); var tblUserAgreements = $('#t...
/* * Sagas controlling effects in pomodoro nagger * * Basically the nerve centre of the nagger app, coordinating * incoming messages and corresponding state changes */ import { exec, spawn } from 'child_process'; import { delay } from 'redux-saga'; import { call, take, cps, race } from 'redux-saga/effects'; impo...
import React, { useContext, useEffect } from "react"; import { BrowserRouter as Router, Switch, Route, Link, useRouteMatch } from "react-router-dom"; import AppBar from '@mui/material/AppBar'; import Box from '@mui/material/Box'; import Toolbar from '@mui/material/Toolbar'; import IconButton from '@mui/materi...
undo_rgb = null; rgb_values = [0, 0, 0]; hsl_values = [0, 0, 0]; relative_brightness = 0; $(document).ready(function() { $('input#led-red, input#led-green, input#led-blue').on('input', function() { on_rgb_sliders_changed(true, false); }); $('input#led-hue, input#led-saturation, input#led-lightness'...
import sketch from 'sketch' import fs from '@skpm/fs' import dialog from '@skpm/dialog' var UI = require('sketch/ui') var constants = require('./constants') var path = require('path') var XLSX = require('xlsx') let document = sketch.getSelectedDocument() var contentLanguage = 'en-US' // set en-US as standard var rena...
import React, { useState, useEffect } from 'react'; import { Input, Form, Button, message, Upload, Row, Col, Popconfirm } from 'antd'; import { CloudUploadOutlined, LoadingOutlined, DeleteOutlined, ArrowLeftOutlined } from '@ant-design/icons'; import { useAuth } from "../context/user"; import { useParams, useHistory } ...
/** * * Web Starter Kit * Copyright 2015 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 *...
import {ProductModel} from '@/models'; import {insertIndex, insertOrder, INSERT_BY_ORDER} from '@/services/db/ordering'; import generateId from '@/services/db/id'; import {selectActionState, selectMutationState} from '@/utils/select-state'; let dummyId = -1; const findProduct = (state, id, throwWhenNotFound=true) => ...
// PROJECT SH 01 const express = require('express'); const app = express(); const bodyParser = require('body-parser'); // Import Mongoose package const mongoose = require('mongoose'); // Connect to Mongoose var url = 'mongodb://localhost/' + 'test' var uri = 'mongodb+srv://chinmaykh:<EMAIL>/test?retryWrites=true&w=ma...
/** * @copyright Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Asignatura: Programación de Aplicaciones Interactivas (PAI) * Curso: 3º Itinerario 1 * Práctica 7 PAI - Mandelbrot. Numero complejos * @author: <NAME> <EMAIL> * @description: Progr...
import React, { Component } from 'react' import { Link, Redirect } from 'react-router-dom' import geoplasma from './geoplasmamap.png' import mapimage2 from './map.svg' import SVG from 'react-inlinesvg'; import getTranslation from '../../i18n' /** * The stage of the web-portal (the map with the pilotareas with links t...
const { unlinkSync } = require('fs') const Recipes = require('../models/recipes') const File = require("../models/file") const RecipeFiles = require("../models/recipesFile") const LoadRecipes = require("../services/loadRecipes") module.exports = { async index(req, res) { try { let recipes = "...
import oktaUnderscore from '../util/underscore-wrapper.js'; import Model from './Model.js'; const hasProps = function (model) { const local = oktaUnderscore.omit(model.local, oktaUnderscore.keys(model._builtInLocalProps)); return oktaUnderscore.size(model.props) + oktaUnderscore.size(local) > 0; }; const props =...
/** * @fileoverview The main output when users call for the /unlink command * Shows an prompt for the user to unlink their account the the bot * @author Potor10 */ const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js'); const { ERR_COMMAND, NENE_COLOR, FOOTER } = require('../../constants')...
"use strict"; window.addEventListener("load", initialize); // Globale Variabelen let divAnalysis; let inpSentence; let divNumberObject; let divMathObject; let divDateObject; let divObject; // Functies function initialize() { const btnAnalyseSentence = document.getElementById("analyse-sentence"); ...
const fragmentShaderSource = ` // ------------------------------------ // GLSL code // ------------------------------------ precision lowp float; #if __VERSION__ == 300 #define gl_FragColor FragColor out vec4 gl_FragColor; #define overlap u_overlap #else #define overlap 4 #endif // -------------------- Parameters -...
// Name: <NAME> // Student Number: 12451096 var legendNamesMap = ["Highest 20% > 45%", "Highest 20% = 40 - 45%", "Highest 20% < 40%", "No info of 2015", "No info"]; var colorMapLegend = ["rgb(66,146,198)", "rgb(107,174,214)", "rgb(158,202,225)", "red", "black"]; // function for making map function makeDataMap (countr...
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // no transitoin in demo site const shouldUseTransition = !/transition=none/.test(location.href) const utilStore = { state: { getLocalStorage: function (key) { var data = localStorage.getItem(key) if (data) { var dataObj = JSON.par...