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
require 'open-uri' |
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
require 'rubygems' | |
# i dunno, what about it? |
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
// Make merb resource route url link_to's with class deletable fake delete HTTP method. | |
jQuery.fn.deletable = function() { | |
return this.each(function() { | |
var delete_link = $(this); | |
var hidden_form = document.createElement('form'); | |
hidden_form.style.display = 'none'; | |
delete_link.append(hidden_form); | |
hidden_form.method = 'POST'; | |
hidden_form.action = delete_link.attr('href'); |
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
# AR Object dup vs marshal benchmarks | |
# | |
# re: http://rails.lighthouseapp.com/projects/8994/tickets/785 | |
# | |
# user system total real | |
# string saved in hash 0.050000 0.000000 0.050000 ( 0.048411) | |
# string marshalling 0.580000 0.020000 0.600000 ( 0.659637) | |
# | |
# object saved in hash 0.040000 0.000000 0.040000 ( 0.047936) | |
# object marshalling 9.240000 0.170000 9.410000 ( 9.932777) |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>#1068 Tags in posts not auto-closed. - Lighthouse Users - activereload</title> | |
<link rel="shortcut icon" href="/images/favicon.gif" type="image/gif" /> | |
<link href="/stylesheets/core.css?1218411940" media="screen" rel="stylesheet" type="text/css" /> | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>#1068 Tags in posts not auto-closed. - Lighthouse Users - activereload</title> | |
<link rel="shortcut icon" href="/images/favicon.gif" type="image/gif" /> | |
<link href="/stylesheets/core.css?1218411940" media="screen" rel="stylesheet" type="text/css" /> | |
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
# Controller for the Social leaf. | |
class Controller < Autumn::Leaf | |
include Formatting::Mirc | |
def did_receive_channel_message(stem, sender, channel, msg) | |
unless sender[:nick].match(/pixie/) | |
logger.debug "I heard from #{sender[:nick]}" | |
text_source = "kafka.txt" | |
if msg.downcase.match(/beam|scott|space|star|trek|kirk|data/) |
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
alias both="git diff HEAD" | |
alias log="git log" | |
alias st="git status" | |
alias br='git branch' | |
alias bra='git branch -a' | |
alias push="git push" | |
alias pull="git pull" | |
alias gci='git commit -v' | |
alias gcia='git commit -v -a' | |
alias gdm='git diff | mate' |
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
# RSpec ticket: http://rspec.lighthouseapp.com/projects/5645/tickets/589 | |
# see output and version string below... | |
require 'rubygems' | |
require 'spec' | |
class ApplicationModel | |
def self.address_attribute(address) | |
define_method "#{address}_attribute=" do |attributes| | |
load_address(address, attributes) |
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
<div style="width: 100%; background: #6C3030; color: #DDD; padding-top: 0.2em; padding-bottom: 0.2em;text-align: right; "> | |
<a style="color:white;display:block;margin:0.2em 0.4em;" href="http://192.168.0.18">Internal Apps Index</a> | |
</div> |
OlderNewer