LOL
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
require 'rubygems' | |
require 'net/http' | |
require 'hpricot' | |
require 'feed-normalizer' | |
require 'simple-rss' | |
require 'open-uri' | |
require 'sqlite3' | |
#require 'ActiveRecord' | |
#require File.dirname(__FILE__)+'/models/feed' |
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
require 'rubygems' | |
require 'net/http' | |
require 'hpricot' | |
require 'feed-normalizer' | |
require 'simple-rss' | |
require 'open-uri' | |
require 'sqlite3' | |
#require 'ActiveRecord' | |
#require File.dirname(__FILE__)+'/models/feed' |
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
>> require 'rubygems' | |
=> true | |
>> require 'feed-normalizer' | |
=> true | |
>> puts DECLARATION | |
NameError: uninitialized constant DECLARATION | |
from (irb):3 | |
from :0 | |
>> require 'rexml/Document' | |
/opt/local/lib/ruby/1.8/rexml/Document.rb:25: warning: already initialized constant DECLARATION |
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
#!/bin/env bash | |
# git-create-branch <branch_name> | |
if [ $# -ne 1 ]; then | |
echo 1>&2 Usage: $0 branch_name | |
exit 127 | |
fi | |
branch_name=$1 | |
git push origin origin:refs/heads/${branch_name} |
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
# Monkey Patch to enable google premier | |
module Geokit | |
module Geocoders | |
@@google_client_id = nil | |
__define_accessors | |
class GoogleGeocoder | |
private | |
def self.do_geocode(address, options = {}) | |
bias_str = options[:bias] ? construct_bias_string_from_options(options[:bias]) : '' |
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
## based on the example at: | |
## http://gist.github.com/17371 | |
## | |
## put me in lib/un_haml.rb (in the haml-based project) | |
## | |
## call me on the command line thus: | |
## $ script/runner UnHaml app/views/layouts/application.html.haml | |
## $ script/runner UnHaml */*/*/*.haml | |
## | |
class UnHaml < Haml::Engine |
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
# ZSH Theme - Preview: | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}' | |
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}' | |
local rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v)›%{$reset_color%}' | |
local git_branch='$(git_prompt_info)%{$reset_color%}' | |
PROMPT="╭─ ${user_host} ${current_dir} ${rvm_ruby} ${git_branch} | |
╰─ %B%! %* $%b " |
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 | |
require 'slop' | |
require 'aws/s3' | |
class FileProcessor | |
def initialize(file_path) | |
@file_path = file_path | |
end |
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
// ==UserScript== | |
// @name GitHub delete all notifications button | |
// @namespace http://www.github.com/micolous/delete-all-notifications | |
// @description Adds a button to allow you to delete all notifications on a page. | |
// @include http://github.com/inbox/notifications* | |
// @include https://github.com/inbox/notifications* | |
// ==/UserScript== | |
/* |
OlderNewer