brew install cmake
brew install python
sudo easy_install pip
Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line
PATH="/usr/local/share/python/:$PATH"
| #!/Library/RubyMotion/bin/ruby -wKUW0 | |
| # if your using MacRuby you might change this to | |
| # => #!/usr/bin/env macruby -wKUW0 | |
| framework 'Foundation' | |
| framework 'ScriptingBridge' | |
| # the original is part of an arstechnica article by Ryan | |
| # SOURCE: http://arstechnica.com/apple/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge/ | |
| # this script with get your favourite songs and create a Evernote Note # German and English |
Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?
Add the project to your repo:
git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking
or something to that effect.
| command! -range Ieval :<line1>,<line2>call EvalScriptRegion() | |
| vnoremap <silent> <CR> :Ieval<CR> | |
| function! EvalScriptRegion() range | |
| if has_key(g:vimshell_interactive_interpreter_commands, &ft) | |
| exec a:firstline.','a:lastline.'VimShellSendString' | |
| else | |
| exec a:firstline.','a:lastline.'QuickRun' | |
| endif |
| #compdef pandoc | |
| typeset -A opt_args | |
| local context state line | |
| _arguments -s -S \ | |
| '(-f+ --from=+)'{-r+,--read=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\ | |
| '(-r+,--read=+)'{-f+,--from=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\ | |
| '(-t+ --to=+)'{-w+,--write=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\ | |
| '(-w+ --write=+)'{-t+,--to=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\ |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # == Synopsis | |
| # Requires the terminal-notifier gem ([sudo] gem install terminal-notifier) | |
| # growlnotify wrapper to turn Growl alerts into Mountain Lion notifications | |
| # Uses growlnotify option syntax to keep your old scripts working with the new shiny. | |
| # | |
| # If you use Growl via growlnotify in your shell scripting, this script | |
| # will replace Growl's alerts with Mountain Lion notifications. |
| #import <Carbon/Carbon.h> | |
| #import <dlfcn.h> | |
| /* | |
| * Returns an array of CFDictionaryRef types, each of which contains information about one of the processes. | |
| * The processes are ordered in front to back, i.e. in the same order they appear when typing command + tab, from left to right. | |
| * See the ProcessInformationCopyDictionary function documentation for the keys used in the dictionaries. | |
| * If something goes wrong, then this function returns NULL. | |
| */ | |
| CFArrayRef CopyLaunchedApplicationsInFrontToBackOrder(void) |