Instantly share code, notes, and snippets.

View .envrc
[[ -f .envrc.context ]] && context=$(< .envrc.context)
watch_file ".envrc.context"
if [[ -n "$context" ]]; then
View Udongein.html
<body bgcolor=000000>
<table boder=0 cellpadding=0 cellspacing=0>
<tr height=3>
<td width=3 bgcolor=888888 rowspan=105></td>
<td bgcolor=888888 colspan=54></td>
<td width=3 bgcolor=888888 rowspan=105></td>
View RevDate.js
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var RevDate = function RevDate(dateparse) {
_classCallCheck(this, RevDate);
var moment = new Date();
if (typeof dateparse !== 'undefined') {
moment = new Date(dateparse);
View fizz_buzz.exs
fizz_word = fn
(0, 0, _) -> "FizzBuzz"
(0, _, _) -> "Fizz"
(_, 0, _) -> "Buzz"
(_, _, third) -> third
fizz_buzz = fn n -> fizz_word.(rem(n, 3), rem(n, 5), n) end
for file in *.flac
ffmpeg -i $file -ab 320k -map_metadata 0 -id3v2_version 3 (basename $file .flac).mp3
View config
# i3 config file (v4)
# Please see for a complete reference!
set $mod Mod1
set $ws1 "⠂work"
set $ws2 "⠃mail/IM"
set $ws3 "⠇misc"
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
#set fish_theme robbyrussell
set fish_theme bobthefish
#set fish_theme coffeeandcode
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/

Reposted from Qiita

For almost a year now, I've been using this "flux" architecture to organize my React applications and to work on other people's projects, and its popularity has grown quite a lot, to the point where it shows up on job listings for React and a lot of people get confused about what it is.

Why I'm tired of using and teaching flux

There are a billion explainations on the internet, so I'll skip explaining the parts. Instead, let's cut to the chase -- the main parts I hate about flux are the Dispatcher and the Store's own updating mechanism.

If you use a setup similar to the examples in facebook/flux, and you use flux.Dispatcher, you probably have this kind of flow:

View gist:8598858
def on_subdomain name, &block
rack_test_session.instance_variable_set :@default_host, "#{name}"
View Gemfile
source ''
gem 'nokogiri'