Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
;; Paste directly to a github gist
(load-file "~/Documents/n_s/config/emacs/site-lisp-textarcana/gist.el")
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
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)"
@textarcana
textarcana / gist:81210
Created March 18, 2009 15:49 — forked from oddlyzen/gist:81195
rake task to build documentation
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)"
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
# for multiline ruby statements in haml...
= { :foo => :bar, |
:baz => :foo, |
:quux => :zz}.inspect |
# the magical 'pipe' strikes again.
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
-- PIRATICAL
-- Talk like a pirate by Gar!
YarnSpinner.pirateTalk = {
{
"Shiver me timbers!",
""
}
,
{
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.
alias selenium='java -jar ~/Documents/n_s/tools/vendor/selenium-server-1.0-beta-1/selenium-server.jar '