Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
// A means of using underscore.js to do templates with conditionals | |
// Inside of underscore's template, it returns a function that uses | |
// 'with' on a variable named obj, and you can touch into that using | |
// inline JS and <% %> wrappers | |
// A template with conditional display of last names: | |
var good = _.template("Hello: <%= name %> <% if (obj.lastname) { %> <%= lastname %> <% } %>"); | |
// A template that tries to do that, but fails: | |
var bad = _.template("Hello: <%= name %> <% if (lastname) { %> <%= lastname %> <% } %>"); |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
Synced Sidebar https://github.com/sobstel/SyncedSideBar
-- new tab with a url in chrome | |
tell application "Google Chrome" | |
set myTab to make new tab at end of tabs of window 1 | |
set URL of myTab to "http://google.com" | |
end tell |
if ( event.hasOwnProperty('type') && event.type == 'DOMMouseScroll' ){ | |
// Zoom from mousewheel (Firefox) | |
} | |
else if ( event.type == 'mousewheel' && event.originalEvent.hasOwnProperty('wheelDeltaY') ) { | |
// ... (Chrome) | |
} | |
else if ( event.type == 'mousewheel' && event.originalEvent.hasOwnProperty('wheelDelta') ) { | |
// ... (Opera) | |
direction = ( event.originalEvent.wheelDelta > 0 ) ? 'up' : 'down' | |
} |