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
;; Paste directly to a github gist | |
(load-file "~/Documents/n_s/config/emacs/site-lisp-textarcana/gist.el") |
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 'iconv' | |
# assume windoze_str is a string that contains curly quotes or other windows extended characters | |
conv = Iconv.new('ASCII//IGNORE//TRANSLIT', 'UTF-8') | |
# remove MS Word curly quotes and other Windows extended character crap | |
unicode_str = conv.iconv windoze_str |
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
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 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 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
JavaScript - http://prototype.nytimes.com/gst/articleSkimmer/ | |
* Collapse All | |
* Expand All | |
http://prototype.nytimes.com/gst/articleSkimmer/ | |
http://graphics8.nytimes.com/js/app/articleSkimmer/jquery.min.js | |
/* | |
* jQuery JavaScript Library v1.3.1 |
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
# for multiline ruby statements in haml... | |
= { :foo => :bar, | | |
:baz => :foo, | | |
:quux => :zz}.inspect | | |
# the magical 'pipe' strikes again. |
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
Mar22 10:01:13 tools>perl net-irc.pl | |
:calvino.freenode.net 328 zepguest #zepinvest :http://wiki.dev.zepinvest.com/wiki/index.php?title=IRC | |
:isnull!n=user@cpe-66-108-139-127.nyc.res.rr.com PRIVMSG #zepinvest :zepguest: A program is never less than 90% complete, and never more than 95% complete. -- Terry Baker | |
:freenode-connect!freenode@freenode/bot/connect PRIVMSG zepguest :VERSION | |
:isnull!n=user@cpe-66-108-139-127.nyc.res.rr.com PRIVMSG #zepinvest :ACTION waves to zepguest | |
:isnull!n=user@cpe-66-108-139-127.nyc.res.rr.com PRIVMSG #zepinvest :hello robot | |
:isnull!n=user@cpe-66-108-139-127.nyc.res.rr.com PRIVMSG #zepinvest :sweet, its a logbot |
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
-- PIRATICAL | |
-- Talk like a pirate by Gar! | |
YarnSpinner.pirateTalk = { | |
{ | |
"Shiver me timbers!", | |
"" | |
} | |
, | |
{ |
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
Many sites still use Javascript that way, but some use it for major programs that do large jobs. For instance, | |
Google Docs downloads into your machine a Javascript program which measures half a megabyte, in a compacted form | |
that we could call Obfuscript because it has no comments and hardly any whitespace, and the method names are one | |
letter long. The source code of a program is the preferred form for modifying it; the real source code of this | |
program is not available to the user. |
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
alias selenium='java -jar ~/Documents/n_s/tools/vendor/selenium-server-1.0-beta-1/selenium-server.jar ' |