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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="Ember-Table Starter Kit" /> | |
| <meta charset="utf-8"> | |
| <title>Ember Table Starter Kit</title> | |
| <!-- Note that you need antiscroll CSS to support ember-table --> | |
| <link rel="stylesheet" href="http://rawgit.com/LearnBoost/antiscroll/master/antiscroll.css"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css"> |
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
| # 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") |
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
| #!/usr/bin/env ruby | |
| def delete_ssh_user(username) | |
| `rm -rf /Users/#{username}` | |
| `dseditgroup -o edit -d #{username} -t user com.apple.access_ssh` | |
| `dscl . -delete /Users/#{username}` | |
| end | |
| username = ARGV.shift | |
| delete_ssh_user username |
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
| #!/usr/bin/env ruby | |
| CHARACTERS = (('A'..'Z').to_a + ('a'..'z').to_a + (0..9).to_a) | |
| GROUP = 53 | |
| MY_MACHINE_DYNDNS_ADDRESS = "Put your DynDns DNS name here" | |
| MY_SSH_PORT = "Your router's external port that will forward to SSH" # as a Fixnum | |
| def ridiculous_password | |
| (1..20).map do |