Skip to content

Instantly share code, notes, and snippets.

View green-s's full-sized avatar

Sam Green green-s

View GitHub Profile
@staltz
staltz / introrx.md
Last active November 19, 2025 07:55
The introduction to Reactive Programming you've been missing
@romichi
romichi / sendInput.py
Created July 12, 2012 10:07
pythonからsendInputを使う
# -*- coding:utf-8 -*-
import time
from ctypes import *
import win32gui, win32con
PUL = POINTER(c_ulong)
class KeyBdInput(Structure):
@MicahElliott
MicahElliott / colortrans.py
Created November 29, 2010 07:57
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code