This file contains hidden or 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 -w | |
require 'redis' | |
require 'benchmark' | |
HOST = 'localhost' | |
PORT = 6379 | |
SETNAME = 'benchmark_testing_set' | |
SETSIZE = 3000 | |
def prep(array=[]) |
This file contains hidden or 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 -w | |
require 'redis' | |
require 'benchmark' | |
HOST = 'localhost' | |
PORT = 6379 | |
SETNAME = 'benchmark_testing_set' | |
SETSIZE = 7500 | |
def prep(array) |
This file contains hidden or 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
# ~/.gitconfig | |
[user] | |
email = [email protected] | |
name = username | |
editor = mate -w | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[alias] |
This file contains hidden or 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
# Use Ack to find offending source files and Perl to perform the following: | |
# convert Windows newlines to unix newlines | |
# convert tabs to two spaces | |
# strip trailing whitespace | |
ack " +$|\t|\r" -l|xargs perl -pi -e "s/\r\n?/\n/g;s/\t/ /g;s/[ ]*$//g" | |
# Implement a clean() method in Bash: | |
# Clean up source code by converting tabs to 2 spaces, Windows newlines to | |
# unix ones, and by stripping away trailing whitespace. Pass in a list of |
NewerOlder