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
| -------------------------------------------------- | |
| -------------------------------------------------- | |
| -- Import tasks from Things to OmniFocus | |
| -------------------------------------------------- | |
| -------------------------------------------------- | |
| tell application "Things" | |
| -- Loop through ToDos in Things | |
| repeat with aToDo in to dos of list "Next" | |
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
| Upgrading to homebrew postgresql 9.1.1 from 9.0.x | |
| * Copy the old data | |
| mv -R /usr/local/var/postgres/ /usr/local/var/postgres-901 | |
| * Create a new database using 9.1.1 | |
| /usr/local/Cellar/postgresql/9.1.1/bin/initdb /usr/local/var/postgres |
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
| #!/bin/bash | |
| # | |
| # Provides a function that allows you to choose a JDK. Just set the environment | |
| # variable JDKS_ROOT to the directory containing multiple versions of the JDK | |
| # and the function will prompt you to select one. JAVA_HOME and PATH will be cleaned | |
| # up and set appropriately. | |
| _macosx() | |
| { | |
| if [ $(uname -s) = Darwin ]; then |
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
| $ rvm install jruby | |
| $ rvm --create jruby@torquebox | |
| $ gem install bundler | |
| $ gem install torquebox-server --pre --source http://torquebox.org/2x/builds/LATEST/gem-repo/ | |
| $ gem install rails | |
| $ rails new myapp -m $(torquebox env TORQUEBOX_HOME)/share/rails/template.rb | |
| $ cd myapp | |
| $ torquebox deploy | |
| $ torquebox run |
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
| worker: QUEUE=* bundle exec rake environment resque:work | |
| scheduler: bundle exec rake environment resque:scheduler |
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
| // Main controller for the journalist workspace. Orchestrates subviews. | |
| dc.controllers.Workspace = Backbone.Controller.extend({ | |
| routes : { | |
| 'help/:page': 'help', | |
| 'help': 'help' | |
| }, | |
| // Initializes the workspace, binding it to <body>. | |
| initialize : function() { |
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
| // Document Model | |
| dc.model.Document = Backbone.Model.extend({ | |
| constructor : function(attrs, options) { | |
| attrs.selected = false; | |
| attrs.selectable = true; | |
| if (attrs.annotation_count == null) attrs.annotation_count = 0; | |
| Backbone.Model.call(this, attrs, options); | |
| var id = this.id; |
NewerOlder