(([A-Z]([a-z]+|\.+))+(\s[A-Z][a-z]+)+)|([A-Z]{2,})|([a-z][A-Z])[a-z]*[A-Z][a-z]*
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the 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
This first bit is my own punctuation-filled rambling. Way back, I learned my ABCs – what some might write as A.B.C.s, but they would be wrong, because it isn't an acronym. Good writers don't need to know them. I mean, I'm pretty sure that P.G. Wodehouse knew his alphabet, but that isn't what made him great. Likewise, GCSEs and A levels probably don't matter all that much. Why? Because its all about passion! Isn't it?! Writing something that conveys emotion is something that people can do; computers can't. One thing I know Mr. Wodehouse could do well is put humanity into his text. | |
This next bit is ripped off from a website. Link below... | |
Another ex-Golden Stater, Paul Stankowski from Oxnard, is contending for a berth on the U.S. Ryder Cup team after winning his first PGA Tour event last year and staying within three strokes of the lead through three rounds of last month's U.S. Open. H.J. Heinz Company said it completed the sale of its Ore-Ida frozen-food business catering to the service industry to McCain Fo |
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
(?<=[a-z])[\.?!]\s(?=([A-Z][a-z]|A |I |[A-Z]\.))|…|\.\.\. |
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' | |
require 'nokogiri' | |
ARGF.each do |f| | |
doc = Nokogiri::HTML(open(f)) | |
print "[" + doc.at_css("title").content.gsub(/\s{2,}/, "") + "]" + "(" + f.strip + ")" | |
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
tell application "System Preferences" | |
activate | |
set current pane to pane "com.apple.preference.trackpad" | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
click radio button "Scroll & Zoom" of tab group 1 of window "Trackpad" | |
set theCheckbox to checkbox 1 of tab group 1 of window "Trackpad" |