I hereby claim:
- I am swr on github.
- I am swr (https://keybase.io/swr) on keybase.
- I have a public key ASAvuzuwdXpl5aKf2xazuhQ1uwVo3KOfHtu-yKynTZZw2go
To claim this, I am signing this object:
sudo find ./ -type d -exec chmod 2775 {} \; |
mysql -u root -p | |
CREATE DATABASE databasename; | |
GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" IDENTIFIED BY "password"; | |
FLUSH PRIVILEGES; | |
EXIT |
subject="[{app}] New production deployment..." \ | |
body="{{user}} deployed {{app}} | |
{{url}} | |
Git head: | |
{{head_long}} | |
Git Log: | |
{{git_log}} |
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 } |
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 |
turn off auto conversion | |
defaults write com.pixelmatorteam.pixelmator alwaysUseNativeFormat -bool no | |
turn off auto save | |
defaults write com.pixelmatorteam.pixelmator disableAutosave -bool yes |
// In the view controller controlling the modal: | |
- (BOOL)disablesAutomaticKeyboardDismissal { | |
return NO; | |
} | |
// Then you can | |
[self.state resignFirstResponder]; |
var self = this; | |
return new Ember.RSVP.Promise((resolve)=> { | |
Ember.run.later(()=> { | |
resolve(self.store.findAll('user')); | |
}, 3000); | |
}); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: