Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
unless ARGV.size == 2 | |
puts "USAGE: ruby draw_something.rb ACKRCKOOLCWZ 5" | |
exit 1 | |
end | |
letters = ARGV[0].downcase.split(//).sort | |
length = ARGV[1].to_i | |
require 'open-uri' | |
uri = 'http://static.iminlikewithyou.com/drawsomething/wordlist.csv' |
#!/usr/bin/env python2.7 | |
import time | |
_URL = 'http://localhost/tmp/derp.html' | |
_NUMBER = 1000 | |
def test_urllib2(): | |
import urllib2 |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
Welcome!
UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/
For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.
Starring this gist will give me an idea of how many people consider this list useful.
This is an example from the blog post: http://www.ngauthier.com/2011/09/using-exceptions-to-manage-control-flow.html.
Please fork it and show me what you would do!
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
import urllib | |
webpage = urllib.urlopen('http://www.baidu.com') | |
pagefile = open('baidu.html', 'w') | |
for lines in webpage.readlines(): | |
pagefile.write(lines) | |
pagefile.close() | |
webpage.close() |
:my_nice_formatted_number=>Faker::numerify('##+###-RTR#') | |
:my_nice_formatted_letters=>Faker::letterify('??/?15687??RT-??') | |
:my_nice_formatted_string=>Faker::bothify('??/##87?##R##-??') | |
Car.create( | |
:licence_plate=>Faker::bothify('####-???-##') |