Skip to content

Instantly share code, notes, and snippets.

@gbiryukov
gbiryukov / flex.scss
Last active November 10, 2017 21:08
Grid system with nesting support
@mixin grid-container {
margin-right: auto;
margin-left: auto;
}
@mixin grid-row {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
}
@gbiryukov
gbiryukov / domains.txt
Created October 27, 2015 12:53
List of all 2-letters top-level domains
ac
ad
ae
af
ag
ai
al
am
an
ao
/**
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish / http://paulirish.com/
*/
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||
@gbiryukov
gbiryukov / gist:b0a176ed2b49d77acd26
Created September 3, 2014 09:04
require boudle
define('primary', function(require) {
return {
util: require('util'),
main: require('main')
};
});
require(['primary'], function(primary) {
// primary.util, primary.main
});