Skip to content

Instantly share code, notes, and snippets.

View hanetooth's full-sized avatar
🎯
Focusing

HEIN HTUT AUNG hanetooth

🎯
Focusing
  • Myanmar
  • 14:31 (UTC +07:00)
View GitHub Profile
@hanetooth
hanetooth / fontembad.css
Last active January 7, 2018 23:00
How to embed custom font with css?
@font-face {
font-family: 'unicode';
src: url(/font/unicode.ttf) format('truetype'); //link to font file
font-weight: 400;
font-style: normal;
}
body, html, p, code, *, table, td, tr, span, div, a, ul, li, input, textarea, h1, h2, h3, h4, h5, h6
{
font-family: 'unicode'; //force to html components
}
@paulirish
paulirish / rAF.js
Last active June 11, 2024 14:29
requestAnimationFrame polyfill
// 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'];