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"
| var DateHelper = { | |
| // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time | |
| // Ruby strftime: %b %d, %Y %H:%M:%S GMT | |
| time_ago_in_words_with_parsing: function(from) { | |
| var date = new Date; | |
| date.setTime(Date.parse(from)); | |
| return this.time_ago_in_words(date); | |
| }, | |
| time_ago_in_words: function(from) { |
| worker: QUEUE=* bundle exec rake environment resque:work | |
| scheduler: bundle exec rake environment resque:scheduler |
| // Ruby = 5.times { |i| puts i } | |
| // JS = (1).times(function(i){console.log(i);}) | |
| Number.prototype.times = function(cb) { | |
| var i = -1; | |
| while (++i < this) { | |
| cb(i); | |
| } | |
| return +this; |
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger (doppelheathen@gmail.com) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
| # updated from the original @ http://cheat.errtheblog.com/s/rspec_shoulda | |
| # just a subset -- models -- is included here. I'll update this, and create cheat sheets for others, as I go along. | |
| # I marked the ones I added with NEW and also added the links to the corresponding code, as I think it's useful. | |
| # Any comments/corrections are welcome! | |
| # ================= Data and Associations ======================= | |
| # https://github.com/thoughtbot/shoulda-matchers/tree/master/lib/shoulda/matchers/active_record | |
| it { should_not have_db_column(:admin).of_type(:boolean) } |
dev bit of Gemfile
group :development, :test do
gem "rspec-rails"
gem 'capybara'
gem 'factory_girl_rails'
gem 'forgery'
gem "database_cleaner"
gem "mongoid-rspec"| /* | |
| @fliptopbox | |
| LZW Compression/Decompression for Strings | |
| Implementation of LZW algorithms from: | |
| http://rosettacode.org/wiki/LZW_compression#JavaScript | |
| Usage: | |
| var a = 'a very very long string to be squashed'; | |
| var b = a.compress(); // 'a veryāăąlong striċ to bečquashed' |
| <%= render("shared/navbar") %> | |
| <div class="container"> | |
| <%= render("shared/alerts") %> | |
| <%= render("shared/page_header") %> | |
| <%= yield %> | |
| <%= render("shared/footer") %> |