Skip to content

Instantly share code, notes, and snippets.

@st3phan
st3phan / _shared.scss
Created June 18, 2012 11:30 — forked from rickharris/_shared.scss
Media queries with IE support using Sass 3.2 features
// Using this structure, this file should be your canonical stylesheet where
// everything would be imported into, so that you can just `@import "shared";`
// in both your normal and IE stylesheets, only having to add libraries and
// such in one place.
// These styles are just a contrived example.
body {
font-size: 18px;
@include respond-to(desktops) {
color: blue;
@st3phan
st3phan / gist:4078229
Created November 15, 2012 11:43 — forked from pixelpogo/gist:1222411
How to simulate low bandwidth on mac os x
# try
# 48kbit/s for Dialup
# 64kbit/s for Edge
# 384kbit/s for 3G
# 768kbit/s for DSL
# 1572kbit/s for T1
#
# to simulate low bandwidths.
#
# And: You can play with the delay option.
@st3phan
st3phan / countdown timer
Created November 22, 2012 21:14 — forked from Squizzer/countdown timer
A html/js countdown timer with some comments to help you :)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function cdtd() {
var wo = new Date("August 13, 2013 10:30:30");
var now = new Date();
var timeDiff = wo.getTime() - now.getTime();
if (timeDiff <= 0) {