Skip to content

Instantly share code, notes, and snippets.

View simaovergalho's full-sized avatar

simaovergalho

View GitHub Profile
@simaovergalho
simaovergalho / font_face_helper.css.scss
Last active August 29, 2015 14:25 — forked from eduardojmatos/font_face_helper.css.scss
Sass helper for font-face
@each $font-face in
"MyFont-Regular",
"MyFont-Bold",
"MyFont-Medium" {
@font-face {
font-family: $font-face;
font-style: normal; font-weight: normal;
src: font-url('#{$font-face}.eot');
src: font-url('#{$font-face}.eot?#iefix') format('embedded-opentype'),
@simaovergalho
simaovergalho / JS-rAF.js
Last active December 20, 2015 19:59 — forked from paulirish/rAF.js
Javascript: Request Animation Frame
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];