Skip to content

Instantly share code, notes, and snippets.

View bypotatoes's full-sized avatar

Ilya Hritsuk bypotatoes

View GitHub Profile
@nzakas
nzakas / pancakes.md
Created April 10, 2020 21:47
Pumpkin pancakes

Pumpkin Pancakes Recipe

Ingredients

  • 1/4 cup pumpkin puree
  • 1/4 cup almond milk
  • 1/4 cup water
  • 3 eggs
  • 1 tbsp coconut oil (melted)
  • 1 tsp vanilla

@ngrx/store v3

Problems:

  • Users want to compose reducer tree across modules
  • Idea of a single reducer function makes it difficult for the library to dynamically augment the shape of the state tree
  • Turning control over to the library to build the root reducer limits the use of meta-reducers
  • Feature modules may inadvertently collide with the state of the root module
  • Library authors may want to leverage @ngrx/store in their projects and provide an easy way
@addyosmani
addyosmani / README.md
Last active October 2, 2025 12:05 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@willurd
willurd / web-servers.md
Last active November 2, 2025 19:16
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rindek
rindek / pre-commit-hook
Created March 28, 2012 12:56
pre-commit hook which will check for any binding.pry or invalid files before commiting
#!/bin/bash
## START PRECOMMIT HOOK
files_modified=`git status --porcelain | egrep "^(A |M |R ).*" | awk ' { if ($3 == "->") print $4; else print $2 } '`
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"
## use ruby defined in project
source .rvmrc
for f in $files_modified; do