Skip to content

Instantly share code, notes, and snippets.

View gbalbuena's full-sized avatar
🏕️

Gabriel gbalbuena

🏕️
View GitHub Profile
@gbalbuena
gbalbuena / _flash_messages.html.erb
Last active August 29, 2015 13:56 — forked from roberto/_flash_messages.html.erb
Code to show flash messages with the look and feel of bootstrap 3
<%# shared/_flash_messages.html.erb %>
<% flash.each do |type, message| %>
<div class="alert <%= bootstrap_class_for(type) %> fade in">
<button class="close" data-dismiss="alert">×</button>
<i class='<%= bootstrap_icon_for(type) %>'></i> <%= message %>
</div>
<% end %>
@gbalbuena
gbalbuena / timezones
Created August 10, 2013 15:15 — forked from ykessler/timezones
Select input with timezones
<select name="timezone" >
<option disabled selected style='display:none;'>Time Zone...</option>
<optgroup label="US (Common)">
<option value="America/Puerto_Rico">Puerto Rico (Atlantic)</option>
<option value="America/New_York">New York (Eastern)</option>
<option value="America/Chicago">Chicago (Central)</option>
<option value="America/Denver">Denver (Mountain)</option>
<option value="America/Phoenix">Phoenix (MST)</option>
<option value="America/Los_Angeles">Los Angeles (Pacific)</option>
@gbalbuena
gbalbuena / favicons.html
Last active December 20, 2015 15:49 — forked from whatnickcodes/favicons.html
HTML: many favicons declaration example, can i select as needed or put them all
<!DOCTYPE html>
<html>
<head>
<title>Untiled</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="http://scotch.io/images/icons/favicon-32.png" type="image/png"><!-- default favicon -->
<link rel="shortcut icon" href="http://scotch.io/favicon.ico"><!-- legacy default favicon (in root, 32x32) -->