Skip to content

Instantly share code, notes, and snippets.

View toxinu's full-sized avatar

Geoffrey toxinu

View GitHub Profile
@toxinu
toxinu / gist:b56540ce950a0a477a75
Last active August 29, 2015 14:14
Lua/Love/Gaming resources
# AI
- http://gamedevelopment.tutsplus.com/series/understanding-steering-behaviors--gamedev-12732
- http://notmagi.me/behavior-trees-number-1/
- http://notmagi.me/behavior-trees-number-2/
# Camera
- http://nova-fusion.com/2011/04/19/cameras-in-love2d-part-1-the-basics/
# Lua
- http://nova-fusion.com/categories/tutorials/

Keybase proof

I hereby claim:

  • I am toxinu on github.
  • I am toxinu_ (https://keybase.io/toxinu_) on keybase.
  • I have a public key ASCpcN-ge4k4OKcd8XYrvIrr748qbYFkvrabUHgavVQrOAo

To claim this, I am signing this object:

$ cat /var/lib/flatpak/exports/share/applications/org.signal.Signal.desktop
[Desktop Entry]
Name=Signal
Comment=Private messaging from your desktop
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=signal --file-forwarding org.signal.Signal @@u %U @@ --use-tray-icon --start-in-tray
Terminal=false
Type=Application
Icon=org.signal.Signal
StartupWMClass=Signal
Categories=Network;
@toxinu
toxinu / drifted-code.sh
Created December 10, 2019 17:02
drifted-code.sh
#!/bin/bash
BRANCH_1=$1
BRANCH_2=$2
# Can be "both", "merged", "not-merged"
SHOW=${SHOW:-'both'}
if [ -z ${BRANCH_1} ] || [ -z ${BRANCH_2} ]; then
printf "Usage: ./drifted-commits.sh <ORIGIN_BRANCH> <TARGET_BRANCH>\n"
exit 1
@toxinu
toxinu / DesktopEntry
Last active September 23, 2020 16:44
blog/my-setup-2018
[Desktop Entry]
[...]
Exec=env WAYLAND_DISPLAY= alacritty -e tmux
[...]
@toxinu
toxinu / bash.sh
Last active September 23, 2020 16:31
blog/how-to-store-your-python-package-metadata-01
$ tree .
.
├── my_package
│   ├── __about__.py
│   └── __init__.py
└── setup.py
1 directory, 3 files
@toxinu
toxinu / __about__.py
Last active November 24, 2020 03:46
blog/how-to-store-your-python-package-metadata
__all__ = [
"__title__", "__summary__", "__uri__", "__version__", "__author__",
"__email__", "__license__", "__copyright__",
]
__title__ = "my-package"
__summary__ = "My package is something."
__uri__ = "https://example.com"
__version__ = "0.1.0"
@toxinu
toxinu / __init__.py
Last active September 23, 2020 16:30
blog/how-to-store-your-python-package-metadata
# cat my_package/__init__.py
from .__about__ import (
__author__, __copyright__, __email__, __license__, __summary__, __title__,
__uri__, __version__
)
__all__ = [
"__title__", "__summary__", "__uri__", "__version__", "__author__",
"__email__", "__license__", "__copyright__",
@toxinu
toxinu / setup.py
Created September 23, 2020 16:30
blog/how-to-store-your-python-package-metadata
import os
from setuptools import setup
base_dir = os.path.dirname(__file__)
about = {}
with open(os.path.join(base_dir, "my_package", "__about__.py")) as f:
exec(f.read(), about)