Skip to content

Instantly share code, notes, and snippets.

View valoricDe's full-sized avatar

Velten Heyn valoricDe

  • Germany
View GitHub Profile
@valoricDe
valoricDe / cloudSettings
Last active July 20, 2020 11:16
Visual Studio Code Settings
{"lastUpload":"2020-07-20T11:16:00.766Z","extensionVersion":"v3.4.3"}
import React, { useCallback, useEffect, useState } from 'react'
import CircularProgress from 'material-ui/CircularProgress'
import { useDropzone } from 'react-dropzone'
import cx from '../../helpers/classname'
import './drop-zone.scss'
const useProgress = (initial = { current: 0, total: 1 }) => {
const [{ current, total }, setProgress] = useState(initial)
return [
@valoricDe
valoricDe / main.js
Last active April 2, 2023 17:37
fraabe
async function getHtmlDocumentById(id) {
const baseUrl = 'http://portal.fotoraabe.de'
const response = await fetch(`${baseUrl}/EditCustomer?id=${id}`)
if (response.status >= 400) throw Error(await response.text())
const html = await response.text()
const {
window: { document },
} = new JSDOM(html)
return document
debug: > HNHBK:1:3+000000000145+300+0+1'HKIDN:2:2+280:12030000+9999999999+0+0'HKVVB:3:3+0+0+0+PRIVATE__________________+1.0'HKTAN:4:6+4+HKIDN'HNHBS:5:1+1'
debug: < HNHBK:1:3+000000009905+300+443095207784=415214300343BLDX=+1+443095207784=415214300343BLDX=:1'HIRMG:2:2+3060::Bitte beachten Sie die enthaltenen Warnungen/Hinweise.+0100::Dialog beendet.'HIRMS:3:2:3+3050::BPD nicht mehr aktuell, aktuelle Version enthalten.+0020::Informationen fehlerfrei entgegengenommen.'HIBPA:4:3:3+12+280:12030000+Deutsche Kreditbank Aktiengesellschaft+3+1+300'HIKOM:5:4:3+280:12030000+1+3:banking-dkb.s-fints-pt-dkb.de/fints30'HISHV:6:3:3+N+PIN:1'HICSUS:7:1:3+1+1+0+INTC;CORT:urn?:iso?:std?:iso?:20022?:tech?:xsd?:pain.001.001.03'HIPKBS:8:1:3+1+1+0+N'HIPKAS:9:1:3+1+1+0+N:N:N:N:N:N:N:N:N:N:N'HISALS:10:8:3+1+1+0+J'HIPCRS:11:1:3+1+1+0'HIPWES:12:1:3+1+1+0+J'HIPWLS:13:1:3+1+1+0+N:J:J'HIPWBS:14:1:3+1+1+0+N:N'HIPWAS:15:1:3+1+1+0+J'HIIPZS:16:1:3+1+1+0+;:urn?:iso?:std?:iso?:20022?:tech?:xsd?:pain.001.001.03'HIIPSS:17:1:3+1+1+0+10:urn?:iso?:std