I hereby claim:
- I am swr on github.
- I am swr (https://keybase.io/swr) on keybase.
- I have a public key ASC5oHutZGJ2xBe-GSjFrcTigQlUJMdbLa9ESMIIiewaWwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| var self = this; | |
| return new Ember.RSVP.Promise((resolve)=> { | |
| Ember.run.later(()=> { | |
| resolve(self.store.findAll('user')); | |
| }, 3000); | |
| }); |
| // In the view controller controlling the modal: | |
| - (BOOL)disablesAutomaticKeyboardDismissal { | |
| return NO; | |
| } | |
| // Then you can | |
| [self.state resignFirstResponder]; |
| turn off auto conversion | |
| defaults write com.pixelmatorteam.pixelmator alwaysUseNativeFormat -bool no | |
| turn off auto save | |
| defaults write com.pixelmatorteam.pixelmator disableAutosave -bool yes |
| class HomeController < ApplicationController | |
| def index | |
| # render the landing page | |
| redirect_to root_url | |
| end | |
| def show | |
| if params[:page].nil? || params[:page] == :home | |
| render :action => :home | |
| else |
| User.all.each { |p| User.update_counters p.id, :recipes_count => -p.recipes_count, :comments_count => -p.comments_count } | |
| User.all.each { |p| User.update_counters p.id, :recipes_count => p.recipes.length, :comments_count => p.comments.length } | |
| Recipe.all.each { |p| Recipe.update_counters p.id, :ratings_count => -p.ratings_count, :comments_count => -p.comments_count } | |
| Recipe.all.each { |p| Recipe.update_counters p.id, :ratings_count => p.ratings_count.length, :comments_count => p.comments.length } |
| subject="[{app}] New production deployment..." \ | |
| body="{{user}} deployed {{app}} | |
| {{url}} | |
| Git head: | |
| {{head_long}} | |
| Git Log: | |
| {{git_log}} |
| mysql -u root -p | |
| CREATE DATABASE databasename; | |
| GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" IDENTIFIED BY "password"; | |
| FLUSH PRIVILEGES; | |
| EXIT |
| sudo find ./ -type d -exec chmod 2775 {} \; |