Skip to content

Instantly share code, notes, and snippets.

View Logseq_install_and_update.sh
#!/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 Jul 7, 2022
Some handy unicode stuffs for pasting into source code.
View moji.md

Unicode

Emoji

@evdcush
evdcush / nes.py
Created Jul 2, 2022 — forked from karpathy/nes.py
Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
View nes.py
"""
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 Jun 29, 2022 — forked from Arnie97/remove_watermark.py
Removes the annoying watermarks of it-ebooks.info's downloaded eBooks
View remove_watermark.py
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
#
# Author: Daxda