Skip to content

Instantly share code, notes, and snippets.

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 15, 2024 20:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@fengb
fengb / postgres.md
Created March 9, 2016 21:54
Postgres: LEFT JOIN vs NOT IN vs NOT EXISTS

LEFT JOIN

$ EXPLAIN SELECT base.* FROM base LEFT JOIN relation ON relation.base_id = base.id WHERE relation.id IS NULL ORDER BY id LIMIT 1000;
                                            QUERY PLAN                           
---------------------------------------------------------------------------------------------------
 Limit  (cost=755508.94..755508.95 rows=1 width=54)                              
   ->  Sort  (cost=755508.94..755508.95 rows=1 width=54)                         
         Sort Key: base.id                                                       
         ->  Hash Left Join  (cost=44.65..755508.93 rows=1 width=54)             
               Hash Cond: (base.id = relation.base_id)                           
@datagrok
datagrok / git-serve.md
Last active April 21, 2023 07:33
How to easily launch a temporary one-off git server from any local repository, to enable a peer-to-peer git workflow.
@heymatthew
heymatthew / so-many-promises.js
Created August 20, 2012 21:07
Chaining Promises with JQuery in Javascript
// Prereq: underscore.js and jquery loaded
var p1 = $.Deferred();
var p2 = $.Deferred();
// We want something that chains promises, so something like...
//p1.done(
// function addNext() {
// p2.done(
// function addNext() {