Skip to content

Instantly share code, notes, and snippets.

View paganotoni's full-sized avatar
💭
⚡️⚡️

Antonio Pagano paganotoni

💭
⚡️⚡️
View GitHub Profile
strategy = Devise.omniauth_configs[:facebook].strategy
strategy.client_id = @account.facebook_app_id
strategy.secret_id = @account.facebook_secret_id
Devise.setup do | config |
...
config.omniauth :facebook, "529925480437902", "55f2ad9cd2fd1c69439f18b03bc51ddc"
compile "org.springframework:spring-context:$springVersion"
java.lang.NoClassDefFoundError: org/springframework/context/EnvironmentAware
grails prod war && cf push ourApp -p target/ourApp.war
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;
});
@paganotoni
paganotoni / gist:a8ee48624b145b58d35a
Last active August 29, 2015 14:16
Environment Aware
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"
# ~/.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:
#
@paganotoni
paganotoni / .vimrc
Created March 17, 2014 22:24
My .vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
@paganotoni
paganotoni / init_static_file.sh
Created August 27, 2013 01:44
Script to init Ruby static Heroku site.
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