Skip to content

Instantly share code, notes, and snippets.

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

@tcg
tcg / comfort_sweet.py
Last active December 11, 2015 20:09
Something Sweet to Comfort some folks that are tired of checking the box. Bloated requirements, but it works. Want to skip Requests and use something more native? DO IT! Updated! Now: More bloat! But less rude, and works FASTER! YAY!
import requests # `pip install requests`; DO IT!
import time
import sys
class ComfortSweet:
TIME_THRESHOLD = 30 # seconds
LAST_ATTEMPT = 0
@tcg
tcg / view_readline_history.py
Created December 20, 2012 18:44
View readline history of Python interactive shell
import readline
for i in range(readline.get_current_history_length()):
print readline.get_history_item(i)
@tcg
tcg / gist:3177488
Created July 25, 2012 17:47
List available Basecamp chat commands.
// While chatting it up in Basecamp, use this in a javascript console to see the
// list of available chat commands you can use with `/play`.
for (key in window.chat.sounds) { console.log(key); }