Skip to content

Instantly share code, notes, and snippets.

View sko-kr's full-sized avatar

Seunghoon Ko sko-kr

View GitHub Profile
@sko-kr
sko-kr / hls.sh
Created November 9, 2024 05:09 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@sko-kr
sko-kr / JupyterLiteNotes.md
Last active August 19, 2022 03:13
JupyterLiteNotes

Intro

Pyodide can install any Python package with a pure Python wheel from the Python Package Index (PyPI)

JupyterLite ships by default with Pyolite, a Python kernel backed by Pyodide. Pyolite runs in a Web Worker and thus doesn’t block the main UI thread

Many visualizations libraries such as Altair and Plotly

contents manager that stores notebooks and files in the browser local storage with another plugin that would save them on AWS S3 instead.

the Basthon kernel runs in the main UI thread so users can manipulate the main window DOM from within Python directly, while Pyolite runs in a Web Worker as a background thread.

@sko-kr
sko-kr / dev_notes.md
Last active July 20, 2023 01:49
dev notes

Git

git done (tested)

git done: delete current branch checkout to main.

git config --global alias.done '!f() { git checkout main && git branch -D @{-1}; }; f'

Delete multiple branches (tested)

# Delete branches starting with branchName sko/
@sko-kr
sko-kr / polyfill.html
Created December 7, 2020 12:34 — forked from michaelcpuckett/polyfill.html
Polyfill `overscroll-chaining` in iOS Safari
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>X App</title>
<meta name="viewport" content="width=device-width, height=device-height, viewport-fit=cover, initial-scale=1" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" href="icons/32x32.png" type="image/x-icon" />