Skip to content

Instantly share code, notes, and snippets.

View stonecharioteer's full-sized avatar

Vinay Keerthi stonecharioteer

View GitHub Profile
@stonecharioteer
stonecharioteer / balloontip.py
Created February 13, 2018 07:11 — forked from wontoncc/balloontip.py
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip:
@stonecharioteer
stonecharioteer / .tmux.conf
Last active August 16, 2018 09:02
tmux configuration
# set the control characters to Control-A
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Change split window keys.
bind | split-window -h
bind - split-window -v
unbind '"'
@stonecharioteer
stonecharioteer / .vimrc
Created May 15, 2018 05:27
Vim Configuration file
set number
syntax enable
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
@stonecharioteer
stonecharioteer / revision_control_requirements.md
Last active May 31, 2018 10:59
Revision Control & Collaboration Requirements Document

Revision Control & Collaboration System Requirements Document

Source Control

Source Control is a way for developers to manage their source code. All code in a company of any size should be under source control. However, the choice of the source control protocol used determines the level of freedom/control available to developers and source code managers.

Native filesystems offer some minor form of version control, but advanced systems offer much greater control over the versions and how they can be retrieved.

Local Version Control Even legacy systems have always been developed using some form of source control, be it CVS, Mercurial or Git.

@stonecharioteer
stonecharioteer / pytest.md
Created July 18, 2018 12:05 — forked from kwmiebach/pytest.md
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help:

@stonecharioteer
stonecharioteer / how-to-pdf-sphinx.txt
Last active August 28, 2018 07:30 — forked from alfredodeza/how-to.txt
pdf output from sphinx with rst2pdf
1. Install rst2pdf
- use your package manager (or)
- pip install rst2pdf (or)
- easy_install rst2pdf
2. Add rst2pdf to the list of extensions in conf.py
extensions = ['rst2pdf.pdfbuilder']
@stonecharioteer
stonecharioteer / get_hiragana.py
Created September 30, 2018 16:34
gist to show how to get hiragana x romaji dictionary
def get_hiragana():
"""Returns a dictionary of hiragana and their romaji."""
import textwrap
data = u"""
a i u e o
∅ あ い う え お
k か き く け こ
s さ し す せ そ
t た ち つ て と
n な に ぬ ね の
@stonecharioteer
stonecharioteer / start_quiz.py
Created September 30, 2018 16:38
Start the hiragana quiz.
def start_quiz():
"""Starts the epaperhat quiz."""
import random
hiragana = get_hiragana()
points = 0
total = 0
while True:
total+=1
hiragana_to_test = random.choice(list(hiragana.keys()))
@stonecharioteer
stonecharioteer / test_romaji_hiragana.py
Created September 30, 2018 16:40
Function to print the kana question to WaveShare screen.
def test_romaji_hiragana(romaji, options):
"""Prints a question to the screen, asking which of the
printed hiragana correspond to the given romaji."""
from epd import epd2in7b as epdlib
from PIL import Image, ImageDraw, ImageFont
# TODO: Make a library for this.
canvas_width, canvas_height = 264, 176
canvas_black = Image.new(
"L",
(canvas_width, canvas_height),
@stonecharioteer
stonecharioteer / human_design_schematic.py
Last active October 9, 2018 16:24
Human Design Schematic Class definition
class Hand:
pass
class HumanBeing:
def __init__(self, *args, **kwargs):
pass
def __new__(self, *args, **kwargs):
pass