i want to be able to do this:
# grocery list * apples * bananas * strawberries
$A(document.getElementsByTagName('SCRIPT')).reject(function(s){ | |
return !s.getAttribute('src'); | |
}).map(function(s){ | |
return s.getAttribute('src'); | |
}).reject(function(u){ | |
return u.charAt(0) == "/"; | |
}).map(function(u){ | |
return /^https?:\/\/([^/]+)/i.exec(u)[1]; | |
}).uniq(); |
#!/usr/bin/env ruby | |
# gsmls-image-downloader.rb | |
# ------------------------- | |
# When passed a GSMLS ID, this script will download all of the listing's | |
# associated images. | |
require 'open-uri' | |
def download_image(mls_id) |
// FIXME: use %PROGRAMFILES% to get at "c:\\Program\ Files" | |
// FIXME: put SAVE_DIR on the current user's desktop? | |
// FIXME: make it configurable via command-line options? | |
var BROWSERS = { | |
'ff' : { | |
'PATH' : "c:\\Program\ Files\\Mozilla\ Firefox\\", | |
'SAVE_DIR' : ".\\firefox\\" | |
}, | |
'ie' : { | |
'PATH' : "", |
#!/bin/bash | |
if [ $# -ne 2 ] ; then | |
echo "Usage: "`basename "$0"` "SVN_URL ZIP_NAME" >&2 | |
exit 1 | |
fi | |
SVN_URL=$1 | |
DIR_NAME=$2 |
module SubdomainSessions | |
def self.included(base) | |
base.class_eval do | |
alias_method_chain :session_options_with_string_keys, :subdomain_sessions | |
end | |
end | |
def session_options_with_string_keys_with_subdomain_sessions | |
@session_options[:session_domain] = "." + host; | |
@session_options_with_string_keys ||= ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.merge(@session_options).stringify_keys |
i want to be able to do this:
# grocery list * apples * bananas * strawberries
(* | |
"Search iTMS for Current Song In Stream" for iTunes | |
written by Doug Adams | |
[email protected] | |
Get more free AppleScripts and info on writing your own | |
at Doug's AppleScripts for iTunes | |
http://www.malcolmadams.com/itunes/ | |
Modified on 2012-01-12 by Justin Blecher <justin at worksperfectly dot net> |
// client attempts to send a regexp in the body of an email message. it | |
// didn't work. the "file:///" was the telltale sign something was wrong. | |
// | |
// the irony here, of course, is that it's a regexp for validating email | |
// addresses. (and what a regexp it is!) | |
// pasted into email body in outlook (FAIL!) | |
REGEX_EMAIL = new RegExp("^([^()<>@,;:\\\\\".\\s\\x00-\\x1F\\x7F\\[\\]]+|\"([^\\\\\"\\x0D]|\\\\.)*\<file:///\\x0D]|\.)*\>")(\\.([^()<>@,;:\\\\\".\\s\\x00-\\x1F\\x7F\\[\\]]+|\"([^\\\\\"\\x0D]|\\\\.)*\"))*@([abcdefghijklmnopqrstuvwxyz0123456789]([-abcdefghijklmnopqrstuvwxyz0123456789]*[abcdefghijklmnopqrstuvwxyz0123456789])?)((\\.([abcdefghijklmnopqrstuvwxyz0123456789]([-abcdefghijklmnopqrstuvwxyz0123456789]*[abcdefghijklmnopqrstuvwxyz0123456789])?))*)(\\.([abcdefghijklmnopqrstuvwxyz0123456789]{2}|com|edu|gov|int|mil|net|org|biz|info|name|pro|aero|coop|museum|cat|jobs|mobi|tel|travel|xxx))$<file:///\\.([%5e()%3c%3e@,;:\%22.\s\x00-\x1F\x7F\%5b\%5d%5d+|\%22(%5b%5e\%22\x0D%5d|\.)*\%22))*@(%5babcdefghijkl |
[09:30 AM]-[1942]-[justin@justin]-[~] | |
$ wget http://getfirebug.com/releases/lite/latest/firebug-lite.tar.tgz | |
--2012-04-06 09:30:37-- http://getfirebug.com/releases/lite/latest/firebug-lite.tar.tgz | |
Resolving getfirebug.com (getfirebug.com)... 63.245.217.58 | |
Connecting to getfirebug.com (getfirebug.com)|63.245.217.58|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 2883190 (2.7M) [application/x-gzip] | |
Saving to: `firebug-lite.tar.tgz' | |
100%[==========================================================================================>] 2,883,190 685K/s in 4.3s |
# MIME type Extension | |
application/EDI-Consent | |
application/EDI-X12 | |
application/EDIFACT | |
application/activemessage | |
application/andrew-inset ez | |
application/applefile | |
application/atomicmail | |
application/batch-SMTP | |
application/beep+xml |