Skip to content

Instantly share code, notes, and snippets.

<span class="rating">
<input id="star-5" name="radioradio" type="radio" value="5"><label for="star-5"></label>
<input id="star-4" name="radioradio" type="radio" value="4"><label for="star-4"></label>
<input id="star-3" name="radioradio" type="radio" value="3"><label for="star-3"></label>
<input id="star-2" name="radioradio" type="radio" value="2"><label for="star-2"></label>
<input id="star-1" name="radioradio" type="radio" value="1"><label for="star-1"></label>
</span>
@shaneog
shaneog / SassMeister-input-HTML.html
Created July 10, 2014 20:04
Generated by SassMeister.com.
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" type="text/css" />
<link rel="stylesheet" href="//f.fontdeck.com/s/css/dzNDB+Zd6doez8gebj2+SDSKqq4/sassmeister.com/46568.css" type="text/css" />
</head>
<body>
<div class="AdelleSansItalic">
<h1>Adelle Sans Italic</h1>
%icon {
font-family: $icon-font; //set as a variable - it's whatever your icon font name is
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
// stars.scss
// compiles to stars.css
$starWidth: 44px;
$starOffset: 0 -43px;
$numStars: 5;
$steps: 2;
$total: $numStars * $steps;
@mixin filled($n: 0) {
<div class="empty">
<div class="filled"></div>
</div>
<!-- stars.html.erb -->
<div class="stars empty">
<div class="stars filled"></div>
</div>
<!--
This way you can namespace your selectors.
The markup isn't as pretty, but you can
sleep soundly knowing other developers
<!-- stars.html.erb -->
<div class="stars empty">
<div class="stars filled_<%= @obj.rating %>"></div>
</div>
@shaneog
shaneog / SassMeister-input-HTML.html
Created July 2, 2014 13:47
Generated by SassMeister.com.
<!doctype html>
<html>
<head></head>
<body>
<div id="header-wrapper" style="background-color: beige;">
<header class="header-grid">
<div class="page">
</div>
#!/bin/bash
# bin/elb-describe-lbs | awk '{print $2}' | xargs -n1 elb-set-secure-policy.sh
ELB=$1
echo "Setting Policy on Load Balancer $1"
bin/elb-create-lb-policy $ELB \
--policy-type SSLNegotiationPolicyType \
--policy-name elb-secure-ssl \