Skip to content

Instantly share code, notes, and snippets.

@developit
developit / *state-machine-component.md
Last active February 6, 2021 00:44
265b lib for building pure functional state machine components. https://github.com/developit/state-machine-component

state-machine-component

A tiny (265 byte) utility to create state machine components using two pure functions.

🔥 JSFiddle Demo

Usage

The API is a single function that accepts 2 pure functions as arguments:

@alekseykulikov
alekseykulikov / index.md
Last active April 14, 2024 00:32
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@enguerran-snippets
enguerran-snippets / gist:7545263
Created November 19, 2013 13:20
Markdown: Octopress pullquote
{% pullquote left %}
Left-aligning pullquotes are good to alternate breaks in the text. They're
{" almost exactly like the default, "} right pullquotes, but a little different.
{% endpullquote %}
@enguerran-snippets
enguerran-snippets / gist:7544846
Created November 19, 2013 12:47
Markdown: Octopress image
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
@enguerran-snippets
enguerran-snippets / gist:7544153
Created November 19, 2013 11:41
Markdown: octopress blockquote
{% blockquote [author[, source]] [link] [source_link_title] %}
Quote string
{% endblockquote %}
@harmo
harmo / moussaka.md
Last active December 28, 2015 04:09

##Moussaka

###Ingrédients:

  • 2 grosses aubergines
  • 6 pommes de terre
  • 500 g de boeuf haché
  • 5 tomates (+/- une demie brique de coulis de tomate)
  • 1 oignon
  • de l'huile d'olive
  • 30 g de beurre