Skip to content

Instantly share code, notes, and snippets.

View nanocosmos-ol's full-sized avatar

nanocosmos - Oliver Lietz nanocosmos-ol

View GitHub Profile
@davestewart
davestewart / broadcast-channel.md
Last active May 14, 2024 18:53
Example of using BroadcastChannel to communicate with pages in the same domain

screenshot

@kirinelf
kirinelf / clock.html
Last active April 2, 2025 14:05 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
<?
# MIT license, do whatever you want with it
#
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
#
require_once(__DIR__.'/../vendor/autoload.php');
https://www.verkehr.nrw/webcams/10100022103870128212.jpg
https://www.verkehr.nrw/webcams/10100253688674747061.jpg
https://www.verkehr.nrw/webcams/10100308460257231676.jpg
https://www.verkehr.nrw/webcams/10100453176019429802.jpg
https://www.verkehr.nrw/webcams/10100494175154602454.jpg
https://www.verkehr.nrw/webcams/10100597366060758617.jpg
https://www.verkehr.nrw/webcams/10100909830981984257.jpg
https://www.verkehr.nrw/webcams/10100956863457840062.jpg
https://www.verkehr.nrw/webcams/10100973958359842825.jpg
https://www.verkehr.nrw/webcams/10101043834463572886.jpg
@bepro-dev
bepro-dev / 360player.html
Last active March 20, 2025 01:53
Implement 360 Video Player in JS
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>360 Video Player</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
"""
Toy demonstration of chain-of-thought and consensus prompting using OpenAI API.
© Riley Goodside 2022
"""
import os
import re
from statistics import mode
@pesterhazy
pesterhazy / mit-kindern-in-berlin.md
Last active June 1, 2024 19:37
Mit kleinen Kindern in Berlin / Berlin with kids
#pip install git+https://github.com/huggingface/transformers.git
import datetime
import sys
from transformers import pipeline
from transformers.pipelines.audio_utils import ffmpeg_microphone_live
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=0)
sampling_rate = pipe.feature_extractor.sampling_rate
@Paraphraser
Paraphraser / Compiling GoSungrow.md
Last active April 19, 2025 02:43
Compiling GoSungrow

Updating GoSungrow

This gist is intended to help you deal with the following error messages:

  • Error: appkey is incorrect 'er_invalid_appkey
  • Error: unknown error 'Request is not encrypted'

This gist has four parts. The instructions you should follow depend on what you want to do:

| Part | Explains how to |

@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active April 2, 2025 17:54
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.

You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.

You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)

Don't like Next? Here's how to do the same in Gatsby.