This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
notebook: | |
image: jupyter/base-notebook | |
user: 0:0 | |
environment: | |
- GRANT_SUDO=yes | |
- NB_GID=100 | |
- GEN_CERT=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let datas = await Promise.all( | |
[...Array(pages).keys()].map(async i => await export_data(table, query_params, i, options)) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootCAs, err := x509.SystemCertPool() | |
if err != nil { | |
return nil, err | |
} | |
// rootCAs := x509.NewCertPool() | |
pemData, err := os.ReadFile(certfile) | |
if err != nil { | |
return nil, err | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
WORKDIR /lux | |
RUN apk add --no-cache \ | |
curl ca-certificates openssl \ | |
perl curl ffmpeg \ | |
tar gzip jq; \ | |
apkArch="$(apk --print-arch)"; Arch=""; \ | |
case "$apkArch" in \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ui | |
import ( | |
"embed" | |
"fmt" | |
"io/fs" | |
"net/http" | |
) | |
//go:embed all:public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrap"> | |
<img src="http://placehold.it/1200/1200" alt="testsetse" /> | |
</div> | |
<style> | |
.wrap { | |
width: 1200px; | |
height: 1200px; | |
position: relative; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { createQrPngDataUrl } from "@svelte-put/qr"; | |
import { onMount } from "svelte"; | |
import JSZip from "jszip"; | |
const qrs = [ | |
]; | |
let srcs: string[] = []; | |
onMount(async () => { |