Skip to content

Instantly share code, notes, and snippets.

View evdcush's full-sized avatar
🦎
very good yes

Evan evdcush

🦎
very good yes
View GitHub Profile
#!/usr/bin/env bash
# This script comes from Joplin:
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh
# minimally modified here to instead install and update Logseq.
set -e
trap 'handleError' ERR
@evdcush
evdcush / moji.md
Last active July 7, 2022 12:12
Some handy unicode stuffs for pasting into source code.

Unicode

Emoji

@evdcush
evdcush / nes.py
Created July 2, 2022 16:28 — forked from karpathy/nes.py
Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
"""
A bare bones examples of optimizing a black-box function (f) using
Natural Evolution Strategies (NES), where the parameter distribution is a
gaussian of fixed standard deviation.
"""
import numpy as np
np.random.seed(0)
# the function we want to optimize
@evdcush
evdcush / remove_watermark.py
Created June 29, 2022 11:04 — forked from Arnie97/remove_watermark.py
Removes the annoying watermarks of it-ebooks.info's downloaded eBooks
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
#
# Author: Daxda