- API docs
- How to bootstrap a project
- Application structure (M/V/C layers and what they're for)
- Getting started with Ember and Rails
- Built-in controls
- How events are handled and bubbled
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 -wKU | |
# Comments added 6 March 2014. | |
# Implementation of the MetaWeblog API for my personal Ruby static blog generator. | |
# This is not even nearly idiomatic Ruby. There are all kinds of issues. | |
# (What's with the method interiors all being mushed-up together?) | |
# But -- it's also worked flawlessly for five years without my having to edit it. | |
# It won't work for anyone else as-is — but if it helps anyone | |
# to do a MetaWeblog API implementation, then cool. |
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
# unstaged (*) and staged (+) changes will be shown next to the branch name | |
GIT_PS1_SHOWDIRTYSTATE="." | |
# if there are untracked files (%) will be shown next to the branch name | |
GIT_PS1_SHOWUNTRACKEDFILES="." | |
# if something is stashed ($) will be shown next to the branch name | |
GIT_PS1_SHOWSTASHSTATE="." | |
# you are behind (<), you are ahead (>), or you have diverged (<>) | |
GIT_PS1_SHOWUPSTREAM="auto" | |
# White brackets, yellow path, blue branch name, and cyan dollar sign |
This is a Rails 5 adaptation of an answer to a StackOverflow question regarding using jQuery UJS to display AJAX-retrieved content in a modal. Here is the original answer:
http://stackoverflow.com/questions/5766055/jquery-modal-windows-and-edit-object/5766232#5766232
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 | |
# -*- ruby -*- | |
# This is a fully-functional set of donkey patches that will break | |
# Ruby so badly that it makes all of the Ruby Koans pass right out of | |
# the box. ALl you need to do is patch edgecase.rb with this line: | |
# | |
# require File.expand_path(File.dirname(__FILE__) + '/donkey_patches') | |
# | |
# so it's the first line of the file. Then save this file as |