Skip to content

Instantly share code, notes, and snippets.

@hpoggie
hpoggie / code.sh
Last active July 6, 2022 02:09 — forked from lucidhacker/code.sh
Obsidian Sync Code
# update and upgrade installed packages
apt update && apt upgrade
# install cronie and termux-services
pkg install cronie termux-services
# enable the crond service
sv-enable crond
# install and enable vim
import random
def sim_game():
n_cards = 48 # Total number of cards remaining in deck
n_squires = 4 # Number of squires in deck
hand_size = 0 # Total cards in hand
def draw_card():
nonlocal n_cards, n_squires, hand_size

1. Make sure the files are in the packaged version

Either put include_package_data=True in your setup.py and have a MANIFEST.in with something like

include package/models/*
include package/textures/*.png

Or in setup.py do

@hpoggie
hpoggie / ideagen.py
Last active May 25, 2018 00:52
Python script for generating tech project ideas
import random
"""
Generic project idea generator
"""
buzzwords = [
'cryptocurrency',
'blockchain',
'functional programming',

Keybase proof

I hereby claim:

  • I am hpoggie on github.
  • I am aircontrol (https://keybase.io/aircontrol) on keybase.
  • I have a public key ASC8iVWchyY0w1oStreIydSWQNpe8QZ70uptuezAhS8BRAo

To claim this, I am signing this object: