http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| def icon(name, size=1) | |
| #icon("camera-retro") | |
| #<i class="icon-camera-retro"></i> | |
| html = "<i class='icon-#{name}' " | |
| html += "style='font-size:#{size}em' " | |
| html += "></i>" | |
| html.html_safe | |
| end | |
http://guides.rubyonrails.org/migrations.html
| /** | |
| * Circular Tooltip (SO) | |
| * http://stackoverflow.com/q/13132864/1397351 | |
| */ | |
| * { margin: 0; padding: 0; } | |
| body { | |
| overflow: hidden; | |
| background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
| } | |
| /* generic styles for button & circular menu */ |
| /** | |
| * Circular Tooltip (SO) | |
| * http://stackoverflow.com/q/13132864/1397351 | |
| */ | |
| * { margin: 0; padding: 0; } | |
| body { | |
| overflow: hidden; | |
| background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
| } | |
| /* generic styles for button & circular menu */ |
| import reddit, getpass | |
| if __name__ == "__main__": | |
| r = reddit.Reddit(user_agent="test") | |
| user_name = raw_input("User name: ") | |
| password = getpass.getpass("Password: ") | |
| r.login(user=user_name,password=password) | |
| saved_links = r.get_saved_links() | |
| for link in saved_links: | |
| print "Title: " + link.title |