Skip to content

Instantly share code, notes, and snippets.

View zeebo's full-sized avatar
🤘
ABC: Always Be Coding

Jeff Wendling zeebo

🤘
ABC: Always Be Coding
View GitHub Profile
@scottferg
scottferg / apns.go
Created August 29, 2012 16:10
iOS Push notification service in Go
package main
import (
"bytes"
"crypto/tls"
"encoding/binary"
"encoding/hex"
"encoding/json"
"fmt"
@mahmoudimus
mahmoudimus / python-monkey-patch-built-ins.py
Created February 4, 2010 22:20
pythonic monkey patching built-in types
# found this from Armin R. on Twitter, what a beautiful gem ;)
import ctypes
from types import DictProxyType, MethodType
# figure out side of _Py_ssize_t
if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
_Py_ssize_t = ctypes.c_int64
else:
_Py_ssize_t = ctypes.c_int