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
/***************************************************************************** | |
* RRDtool 1.3.1 Copyright by Tobi Oetiker, 1997-2008 | |
***************************************************************************** | |
* rrdlib.h Public header file for librrd | |
***************************************************************************** | |
* $Id: rrd.h 1447 2008-07-23 13:02:26Z oetiker $ | |
* $Log$ | |
* Revision 1.9 2005/02/13 16:13:33 oetiker | |
* let rrd_graph return the actual value range it picked ... | |
* -- Henrik Stoerner <[email protected]> |
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
" Vim color file | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last Change: 2006 Apr 14 | |
" This color scheme uses a dark grey background. | |
" First remove all existing highlighting. | |
set background=dark | |
hi clear | |
if exists("syntax_on") |
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 | |
require 'rubygems' | |
require 'webrat' | |
Webrat.configure do |config| | |
config.mode = :mechanize | |
end | |
include Webrat::Matchers |
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
campfire-notifier is a NotifierOSD compatible Campfire notifier. | |
Usage: campfire-notifier <token> <domain> <room> [room] | |
You can get your token from your 37signals account. Specify as many rooms as you want. | |
Assumes you have HTTParty and YAJL-ruby installed. | |
Nice Campfire icon at http://bit.ly/9r3BRd, which you can customise on line 14. |
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
# rewrite history of git repository | |
# first refspec must be 1 before the one you want to change | |
git filter-branch --env-filter 'export GIT_AUTHOR_NAME="Lindsay Holmwood" && export GIT_AUTHOR_EMAIL="[email protected]"' d5f97f714ba98d28d6a548663370a915817af47f..bac90459e8ccb3bed1abb16c546fe50d8db27d84 HEAD |
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
%p | |
Blah blah blah blah | |
%a(href='#foo') foo | |
and | |
%a(href='#bar')> bar | |
\. | |
-# The problem with the above Haml fragment is that I am left with a space after <a href='#bar'>bar</a> and before the period. | |
-# Haml's whitespace removal does not resolve the issue, because it can either remove ALL whitespace | |
-# around an element or ALL whitespace within an element. Neither option seems to fit the bill. |
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
" sessions, backups, temporary files | |
"set backup " Enable creation of backup file. | |
"set backupdir=~/.vim/backups " Where backups will go. | |
set directory=~/.vim/tmp " Where temporary files will go. | |
set viminfo='100,f1 | |
" how long key sequences can take to complete | |
set timeoutlen=250 | |
" color schemes |
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 | |
require 'rubygems' | |
require 'errand' | |
puts 'Require worked - looks like the problem lies elsewhere!' |
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 | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
page = open("http://www.asnc.cam.ac.uk/").read | |
doc = Nokogiri::HTML(page) | |
puts doc.text |