Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Ilyaev alexilyaev

View GitHub Profile
@OliverJAsh
OliverJAsh / foo.md
Created Dec 8, 2017
Avoiding CSS overrides in responsive components
View foo.md

Avoiding CSS overrides in responsive components

I would like to demonstrate some of the benefits of scoped styles over mobile-first CSS with overrides for wider breakpoints. I'll start by explaining the two approaches, before listing the benefits.

Mobile-first with overrides for wider breakpoints

h2 {
  color: black;
  font-size: 2em;
@rafaeljesus
rafaeljesus / bb.js
Created Dec 4, 2015 — forked from stephantabor/bb.js
Bluebird .each vs .mapSeries vs .map
View bb.js
var Promise = require('bluebird');
var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n)));
funcs
.each(iterator) // logs: 500, 100, 400, 200
.then(console.log) // logs: [ [Function], [Function], [Function], [Function] ]
funcs
.mapSeries(iterator) // logs: 500, 100, 400, 200
@reggi
reggi / glob-up-and-running.md
Last active Sep 1, 2021
A tutorial on how to get started using glob patterns in your terminal. #writing
View glob-up-and-running.md

Glob Up and Running

To test a glob pattern go over to globtester and play around with creating your own file structure online, it's super easy to get started that way.

If you want to test out a glob pattern in the terminal use echo followed by the pattern, for instance.

echo **/*.js
@mourner
mourner / spaces-vs-tabs-js.md
Created Nov 7, 2012
Whitespace conventions of popular JS libraries
View spaces-vs-tabs-js.md

Whitespace Conventions of Popular JS Libraries

Manually sorted by browsing most starred JS projects on GitHub (client-side only, all the Node crowd uses 2 spaces).

2 spaces

  • Backbone
  • Underscore
  • D3
@jed
jed / LICENSE.txt
Created May 20, 2011 — forked from 140bytes/LICENSE.txt
generate random UUIDs
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE