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.
| void *_MAZeroingWeakRefClassPresentToken = &_MAZeroingWeakRefClassPresentToken; | |
| void *_MAZeroingWeakRefClassNativeWeakReferenceNotAllowedTable[256] = { | |
| [0x3] = (void *[256]) { // 1 | |
| [0x5b] = (void *[256]) { // 2 | |
| [0x81] = (void *[256]) { // 3 | |
| [0x42] = (void *[256]) { // 4 | |
| [0xa2] = (void *[256]) { // 5 | |
| [0xe] = (void *[256]) { // 6 | |
| [0x20] = (void *[256]) { // 7 | |
| [0xd7] = (void *[256]) { // 8 |
| class Object | |
| def self.attr_indexed var, custom_methods = {} | |
| key = var.to_s | |
| capitalized_key = key.capitalize[0] + key[1..-1] | |
| methods = { | |
| :size => lambda { instance_variable_get("@#{var}").size }, | |
| :at => lambda { |idx| instance_variable_get("@#{var}")[idx] }, | |
| :insert => lambda { |obj, idx| instance_variable_get("@#{var}").insert(idx, obj) }, | |
| :delete_at => lambda { |idx| instance_variable_get("@#{var}").delete_at(idx) } |
| #import <Foundation/Foundation.h> | |
| @interface AClass (ACategory) | |
| @end |
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.
| /* WITH MODS TO ORIG -- iOS Browser Bookmarklets to launch other apps and stuff */ | |
| /* ver 2014-04-14a */ | |
| /* backing up my "Open In" bookmarks */ | |
| // note iOS6 requires some changes to these | |
| // BEGIN TESTING STUFF -- IN PROFRESS LIKELY NOT WORKING | |
| // SOME WORK, MOST tests are not WORK -- | |
| // PINNER APP TEST STUFF (as a private one) | |
| // the page title as the title and your selected text as the description. |
| #include <Carbon/Carbon.h> | |
| typedef void *CGSConnectionID; | |
| extern CGSConnectionID _CGSDefaultConnection(void); | |
| #define CGSDefaultConnection _CGSDefaultConnection() | |
| typedef uint64_t CGSSpace; | |
| typedef enum _CGSSpaceType { | |
| kCGSSpaceUser, | |
| kCGSSpaceFullscreen, |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Get Sublime Text to use your rvm ruby without hardcoding a `$USER`. | |
| # | |
| # Include the configurations below the commend in the appropriate file listed below: | |
| # | |
| # - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build | |
| # - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build | |
| # - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build | |
| # - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build | |
| { |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
| app = angular.module 'BlogExample', [] | |
| # Simple controller that loads all blog posts | |
| app.controller 'BlogCtrl', ['$scope', 'Blog', ($scope, Blog) -> | |
| # Get all the blog posts | |
| Blog.all().then (posts) -> | |
| $scope.posts = posts | |
| # Extend the $scope with our own properties, all in one big block | |
| # I like this because it looks like declaring a class. |