Skip to content

Instantly share code, notes, and snippets.

View mrwest808's full-sized avatar
✌️

Johan West mrwest808

✌️
View GitHub Profile
@threepointone
threepointone / 0 basics.md
Last active March 21, 2023 01:53
css-in-js

A series of posts on css-in-js

0. styles as objects

First, an exercise. Can we represent all of css with plain data? Let's try.

let redText = { color: 'red' };
@DavidAce
DavidAce / pebre.md
Last active May 17, 2024 18:16
Chilean Pebre

Pebre (salsa)

This is how I make pebre, but here is another variant: https://www.youtube.com/watch?v=YP0TqSGeUiQ

  • 4 large tomatoes or the correspoding amount of cherry tomatoes. Choose the tastiest. On large tomatoes, remove the insides to reduce water.
  • 1 mild onion (red, shallot, silver etc)
  • 2 garlic cloves
  • 2 limes (or lemon)
  • 1-2 chillies (or sambal oelek), to taste.
  • 1/2 dl red wine vinegar
  • Lots (1 pot, a handful, or 100-200 grams?) of koriander/cilantro.
@DavidAce
DavidAce / pastor.md
Last active May 17, 2024 20:43
Tacos al pastor
@lydell
lydell / LessCrazy.elm
Last active September 21, 2016 09:10
Crazy elm
module Main exposing (..)
import Html exposing (Html, div, button, text)
import Html.App
import Html.Events exposing (onClick)
main : Program Never
main =
Html.App.beginnerProgram
@MattMcFarland
MattMcFarland / styles.less
Created July 15, 2016 17:00
Ligature fonts for atom
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
@justinwoo
justinwoo / Counter.js
Last active September 29, 2022 08:29
React 0.14 function components and a fake Elm Architecture written with RxJS subjects (instead of Signal.mailbox). Inspired by Dan's tweet: https://twitter.com/dan_abramov/status/648517117176745984 ((i guess this is pretty ugly so please don't take it super seriously))
import React from 'react';
/**
* Counter.js
*
* exposes:
* init
* update
* view
*/
@vjpr
vjpr / README.md
Last active February 4, 2016 21:29 — forked from skevy/gist:8a4ffc3cfdaf5fd68739
Reduce boilerplate in Redux

Reduce boilerplate in Redux

  • Create actions similar to Flummox.
  • Generate action ids.
  • Supports actions with promises, and therefore ES7 async.
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@omnibs
omnibs / phoenix showdown rackspace onmetal io.md
Last active June 10, 2024 17:47
Phoenix Showdown Comparative Benchmarks @ Rackspace

Comparative Benchmark Numbers @ Rackspace

I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.

Results

Framework Throughput (req/s) Latency (ms) Consistency (σ ms)
@acdlite
acdlite / flux.js
Last active October 7, 2021 17:19
A Redux-like Flux implementation in <75 lines of code
/**
* Basic proof of concept.
* - Hot reloadable
* - Stateless stores
* - Stores and action creators interoperable with Redux.
*/
import React, { Component } from 'react';
export default function dispatch(store, atom, action) {