As configured in my dotfiles.
start new:
tmux
start new with session name:
| <div class="control-group two-columns {% if field.errors %}warning{% endif %}"> | |
| <label | |
| class="control-label {% if field.field.required %}bold{% endif %}" | |
| for="{{ field.auto_id }}"> | |
| {{ field.label|safe }} | |
| {{ field.required }} | |
| </label> | |
| <div class="controls"> | |
| {{ field }} |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| class Api::RegistrationsController < Api::BaseController | |
| respond_to :json | |
| def create | |
| user = User.new(params[:user]) | |
| if user.save | |
| render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
| return | |
| else |