First install the required gems:
gem install octokit awesomeprint rainbowThen run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb| /** | |
| * Add this script to the end of your document that use <input autofocus type="text" /> | |
| * or <input type="text" placeholder="username" /> and it'll plug support for browser | |
| * without these attributes | |
| * Minified version at the bottom | |
| */ | |
| (function () { | |
| function each(list, fn) { | |
| var l = list.length; |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| // (c) 2010 Cameron Westland, Big Bang Technology Inc. | |
| // Backbone may be freely distributed under the MIT license. | |
| // For all details and documentation: | |
| // http://bigbangtechnology.github.com/stately | |
| /** | |
| Example: | |
| var MyView = Backbone.View.extend(Stately).extend({ | |
| states: { | |
| EDITING: "editing", |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
| IterableCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| //_.bindAll(this, ) | |
| this._resetIndexes(); | |
| }, | |
| _resetIndexes: function() { | |
| this.currentIndex = 0; | |
| this.hasSelection = false; | |
| }, | |
| parse: function(response) { |
| // Backbone.history with HTML5 support | |
| (function() { | |
| var loc = window.location, | |
| pushSupport = !!(window.history && window.history.pushState), | |
| hashStrip = /^#*/; | |
| // add HTML5 support to Backbone.history, drop the old IE stuff | |
| _.extend(Backbone.History.prototype, { | |
| getFragment : function(l) { |
| _.extend(Backbone.Controller.prototype, Backbone.Events, { | |
| route : function(route, name, callback) { | |
| Backbone.history || (Backbone.history = new Backbone.History); | |
| if (!_.isRegExp(route)) route = this._routeToRegExp(route); | |
| Backbone.history.route(route, _.bind(function(fragment) { | |
| var args = this._extractParameters(route, fragment); | |
| if( _.isFunction( this.before ) ){ | |
| this.before.apply(this, args) | |
| } |
First install the required gems:
gem install octokit awesomeprint rainbowThen run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb| gem 'dragonfly', '~>0.9.4' | |
| group :production do | |
| gem 'fog' # for Amazon S3 | |
| end |