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
namespace :rdoc do | |
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)" | |
task :generate do | |
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)" | |
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html` | |
puts "DONE!" | |
end | |
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)" |
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
namespace :rdoc do | |
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)" | |
task :generate do | |
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)" | |
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html` | |
puts "DONE!" | |
end | |
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)" |
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
# for multiline ruby statements in haml... | |
= { :foo => :bar, | | |
:baz => :foo, | | |
:quux => :zz}.inspect | | |
# the magical 'pipe' strikes again. |
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
// round corners (base) | |
= border-radius(!radius = 10px) | |
-moz-border-radius= !radius | |
-webkit-border-radius= !radius | |
border-radius= !radius | |
// top rounded corners | |
= border-top-radius(!radius = 10px) | |
+border-top-left-radius(!radius) | |
+border-top-left-radius(!radius) |
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/ruby | |
RLSP_VERSION = "1.4.1" | |
class Lambda | |
attr_accessor :args, :body | |
def initialize(args=[],body="") | |
@args = (args.class == Array) ? args : [args] | |
@body = body | |
end |
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
function cssColor() { | |
var i, limit, number; | |
if (nexttoken.identifier) { | |
switch (nexttoken.value) { | |
case 'rgb': | |
limit = 3; | |
break; | |
case 'rgba': | |
limit = 4; | |
break; |
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
# rebind C-a to C-l | |
escape ^Ll | |
log on | |
autodetach on | |
defutf8 on | |
defscrollback 1000 |
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
var sys = require("sys"); | |
var http = require("http"); | |
var connections=[]; | |
function update() { | |
if (connections.length) { | |
connections.forEach(function(c) { | |
sys.puts(JSON.stringify(c)); | |
c.sendBody('oi\n'); |
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
# Prereqs: | |
# * Ruby | |
# * gem install watchr | |
# Usage: | |
# copy autounit to php project directory | |
# run watchr autounit | |
watch('test/.*Test\.php') do |md| | |
puts "\e[H\e[2J" #clear console |
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
Replace 'jsheckler' with your own User ID in the steps below. | |
Edit in /etc/sysconfig/hudson: | |
HUDSON_HOME="/home/jsheckler/.hudson" | |
HUDSON_USER="jsheckler" | |
HUDSON_PORT="8989" | |
then: |
OlderNewer