Skip to content

Instantly share code, notes, and snippets.

Copyright (c) 2011 ZURB, http://www.zurb.com/
@amite
amite / Added Custom Font in default layout
Last active August 29, 2015 14:05
Pretty Blue Larabook
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
@amite
amite / stack_trace
Created August 29, 2014 16:16
stack trace for render json: bookmarks
app/controllers/api/users_controller.rb:10:in `index'
/Users/amiterandole/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/active_model_serializers-f29e78f4c873/lib/action_controller/serialization.rb:14:in `initialize'
/Users/amiterandole/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/active_model_serializers-f29e78f4c873/lib/action_controller/serialization.rb:14:in `new'
/Users/amiterandole/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/active_model_serializers-f29e78f4c873/lib/action_controller/serialization.rb:14:in `_render_option_json'
actionpack (4.1.5) lib/action_controller/metal/renderers.rb:39:in `block in _handle_render_options'
/Users/amiterandole/.rbenv/versions/2.1.2/lib/ruby/2.1.0/set.rb:263:in `each_key'
/Users/amiterandole/.rbenv/versions/2.1.2/lib/ruby/2.1.0/set.rb:263:in `each'
actionpack (4.1.5) lib/action_controller/metal/renderers.rb:36:in `_handle_render_options'
actionpack (4.1.5) lib/action_controller/metal/renderers.rb:32:in `render_to_body'
actionpack (4.1.5) li
@amite
amite / gist:4fa5eb3dbb45120080d6
Created October 10, 2014 01:44
facebook auth_hash without username or nickname field
pp request.env["omniauth.auth"]
{"provider"=>"facebook",
"uid"=>"278975188965788",
"info"=>
{"email"=>"jiptfti_adeagbostein_1412358537@tfbnw.net",
"name"=>"Dick Ameeiibgeiij Adeagbostein",
"first_name"=>"Dick",
"last_name"=>"Adeagbostein",
"image"=>"https://graph.facebook.com/278975188965788/picture",
"urls"=>
@amite
amite / style-v3.css
Created December 11, 2014 06:39
sub-menu
/* B:Secondary Navigation ---------------------------------------*/
.secondary-nav, .secondary-nav ul.dropdown {
background-color:#d2315d;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.82, #d2315d), color-stop(0.96, #a7274a));
background-image: -webkit-linear-gradient(bottom, #d2315d 82%, #a7274a 96%);
background-image: -moz-linear-gradient(bottom, #d2315d 82%, #a7274a 96%);
background-image: -ms-linear-gradient(bottom, #d2315d 82%, #a7274a 96%);
background-image: -o-linear-gradient(bottom, #d2315d 82%, #a7274a 96%);
background-image: linear-gradient(bottom, #d2315d 82%, #a7274a 96%);
min-height:26px;
@amite
amite / gist:e3c2269421296e857d51
Created March 1, 2015 04:26 — forked from anonymous/gist:6249142
nodejs app deployment with capistrano
#created by @nthgergo
set :application, "APPLICATION_NAME"
set :scm, :git
set :repository, "GIT_URL"
set :user, "ec2-user"
set :ssh_options, { :forward_agent => true }
default_run_options[:pty] = true
set :use_sudo, false
set :branch, "master"
@amite
amite / sample comic book data
Last active August 29, 2015 14:19
Comic Book Store
title = "Infinity Gauntlet"
desc = "THE INFINITY GAUNTLET is a continuation of a story that originated in both the
regular Silver Surfer series and the THANOS QUEST limited series. The gauntlet is perhaps the most powerful item in the Marvel Universe, as it bestows upon the wearer absolute control over time, space, power, the soul, the mind, and reality. Thanos obtains the gauntlet in order to finally win the hand of his love, Death,
through the elimination of half the population of the entire universe."
pub_date = "September 28, 2011"
author = "Jim Starlin"
illustrator = "George Perez"
cost = 19.25
=====================================
@amite
amite / SassMeister-input-HTML.html
Created May 5, 2015 05:41
Generated by SassMeister.com.
<div class="wrap">
<div class="content intro">
<h1 class="title">This is Chapparal</h1>
<h2 class="subtitle">
Created by Adobe type designer Carol Twombly, Chaparral combines the legibility of slab serif designs popularized in the 19th century with the grace of 16th-century roman book lettering. By Adobe
</h2>
<div class="content__left">
<p>
@amite
amite / SassMeister-input-HTML.html
Created May 10, 2015 15:59
Generated by SassMeister.com.
<div class="page">
<header>
<a class="logo" href="#"><img src="http://app.reminderbear.com/assets/images/panda-bear-large.png"></a>
<h1 class="company-name">Pandas 'R Us</h1>
<nav>
<ul>
<li class="nav-item"><a href="#">Nav 1</a></li>
<li class="nav-item"><a href="#">Nav 2</a></li>
<li class="nav-item"><a href="#">Nav 3</a></li>
<li class="nav-item"><a href="#">Nav 4</a></li>
@amite
amite / SassMeister-input-HTML.html
Created May 10, 2015 15:59
Generated by SassMeister.com.
<div class="page">
<header>
<a class="logo" href="#"><img src="http://app.reminderbear.com/assets/images/panda-bear-large.png"></a>
<h1 class="company-name">Pandas 'R Us</h1>
<nav>
<ul>
<li class="nav-item"><a href="#">Nav 1</a></li>
<li class="nav-item"><a href="#">Nav 2</a></li>
<li class="nav-item"><a href="#">Nav 3</a></li>
<li class="nav-item"><a href="#">Nav 4</a></li>