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
@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
@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 / moji.md
Last active July 7, 2022 12:12
Some handy unicode stuffs for pasting into source code.

Unicode

Emoji

#!/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 / logseq_install_update.sh
Last active March 8, 2024 00:46
Handy shell script to install and update Logseq on Linux
#!/usr/bin/env bash
# This script comes from Joplin, MIT License Copyright Laurent Cozic:
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh
# Modified here by github.com/evdcush to instead install and update Logseq.
set -e
trap 'handleError' ERR
@evdcush
evdcush / pycurses.py
Created January 22, 2023 10:37 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@evdcush
evdcush / CUDA_Compilers.md
Created April 3, 2023 03:45 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers
@evdcush
evdcush / pep20_by_example.py
Created May 15, 2023 07:23 — forked from evandrix/pep20_by_example.py
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
Tampermonkey:
https://github.com/orgs/community/discussions/66260
https://github.com/Gerrit0/old-github-feed
https://github.com/wangrongding/github-old-feed
Discussions:
https://github.com/orgs/community/discussions/66249
@evdcush
evdcush / clean-url-readme-tab.github.com.tamper.js
Created March 2, 2024 00:48 — forked from vogler/clean-url-readme-tab.github.com.tamper.js
GitHub: remove `?tab=readme-ov-file` from URL
// ==UserScript==
// @name GitHub: remove `?tab=readme-ov-file` from URL
// @description GitHub: remove `?tab=readme-ov-file` from URL
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/74edff6de37c3a13eeff8c99c6bed910/raw/clean-url-readme-tab.github.com.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none