This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
"""{escher} -- one-file key-value storage. | |
What? | |
This is a toy application to manage persistent key-value string data. | |
The file {escher} is *both* the application and its data. | |
When you run any of the commands below, the file will be executed and, | |
after data change, it will rewrite itself with updated data. | |
You can copy the file with whatever name to create multiple datasets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* RSS Subscription Count Node.js Proxy Server | |
* Devon Govett | |
* Public Domain | |
* | |
* This script is a simple proxy server for my blog's RSS feed that keeps track of requests | |
* to the feed and attempts to guess a subscriber count. | |
* Google Reader represents the majority of my subscriber base, and they give you actual | |
* subscriber numbers when their spider requests your feed. Other aggregators do something similar. | |
* Otherwise, this script tracks unique IP addresses over a 24 hour period. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Temporarily add this dir to your path | |
# export PATH=~/gists/bundle_benchmark:$PATH | |
# cd to any of your project and run the benchmark | |
# cd ~/my-project | |
# benchmark.rb | |
require 'benchmark' | |
require 'bundler' |