Skip to content

Instantly share code, notes, and snippets.

@jun9
jun9 / txt2mp3.sh
Created July 23, 2022 19:14 — forked from ivanistheone/txt2mp3.sh
This script converts a plain text file, e.g. article.txt into a mp3 audiobook using the MacOS text-to-speech accessibility command-line tool `say`. Adjust the `VOICE` and `RATE` parameters to customize to your liking. Note this requires running on MacOS.
#!/usr/bin/env bash
set -e
# This script converts any text file into a mp3 audiobook using the MacOS
# text-to-speech accessibility command-line tool `say`.
# Adjust the `VOICE` and `RATE` parameters to customize to your liking:
VOICE="Alex"
RATE="295" # pretty fast
if [ $# -eq 0 ]; then
@jun9
jun9 / generate-client.sh
Created December 7, 2021 05:09 — forked from judge2020/generate-client.sh
Generate a new client configuration for WireGuard
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>
<ruby>我<rt>diāo</rt></ruby>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.sample-form-document {
background: #fff;
max-width: 615px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background: black;
}

Neural Network XOR

Widget Menagerie

@jun9
jun9 / index.html
Created December 4, 2015 11:50 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/yotuloboke
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script src="http://modernizr.com/downloads/modernizr-latest.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
table.oct {
@jun9
jun9 / lightbox.css
Last active August 29, 2015 14:21
lightbox css
.black_overlay {
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.