This file contains 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
strategy = Devise.omniauth_configs[:facebook].strategy | |
strategy.client_id = @account.facebook_app_id | |
strategy.secret_id = @account.facebook_secret_id |
This file contains 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
Devise.setup do | config | | |
... | |
config.omniauth :facebook, "529925480437902", "55f2ad9cd2fd1c69439f18b03bc51ddc" |
This file contains 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
compile "org.springframework:spring-context:$springVersion" |
This file contains 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
java.lang.NoClassDefFoundError: org/springframework/context/EnvironmentAware |
This file contains 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
grails prod war && cf push ourApp -p target/ourApp.war |
This file contains 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
var tumblrAPIURL = "http://api.tumblr.com/v2/blog/wawandco.tumblr.com/posts/text?callback=JSON_CALLBACK&api_key="+$scope.consumerKey; | |
$http.jsonp(tumblrAPIUrl) .success(function(data){ | |
$scope.posts = data.response.posts; | |
}); |
This file contains 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
repositories { | |
grailsHome() | |
mavenCentral() | |
grailsCentral() | |
mavenRepo "http://repo.spring.io/milestone" | |
} | |
dependencies { | |
compile "org.springframework.cloud:cloudfoundry-connector:0.9.5" | |
compile "org.springframework.cloud:spring-service-connector:0.9.5" |
This file contains 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
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
This file contains 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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
This file contains 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
init_static_site(){ | |
PROJECT_NAME=$1 | |
if [[ -z "$PROJECT_NAME" ]] then | |
PROJECT_NAME="site" | |
echo "| You didn't define a name for the site folder, setting it to 'site' by default" | |
fi | |
mkdir -p $PROJECT_NAME/public/{images,js,css} | |
touch $PROJECT_NAME/{config.ru,public/index.html}i | |
cd $PROJECT_NAME && touch Gemfile && echo "source \"https://rubygems.org\"\ngem 'rack'" >> Gemfile |