Skip to content

Instantly share code, notes, and snippets.

View SbstnErhrdt's full-sized avatar

Seb SbstnErhrdt

View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active June 2, 2024 11:24
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;
}
@jokester
jokester / hash_accessor.js
Created February 22, 2016 05:42
Save and load JSON value with URL hash (aka URL fragment)
/**
* Save and load JSON value with URL hash (aka URL fragment)
*
* hash_accessor.load() -> load
* hash_accessor.save(obj) -> save serialized obj into hash
*/
var hash_accessor = (function (window) {
return {
load: function () {
@aras-p
aras-p / preprocessor_fun.h
Last active June 18, 2024 14:45
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.