Skip to content

Instantly share code, notes, and snippets.

View codeadict's full-sized avatar
🕸️
λ: f(f(state)) = f(state)

Dairon M. codeadict

🕸️
λ: f(f(state)) = f(state)
View GitHub Profile
@eiri
eiri / proc_tree.escript
Created March 3, 2015 16:44
Walks erlang VM's process tree and prints PlantUML diagram of it on a standard output
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -hidden -setcookie cookie
-mode(compile).
main(["-?"]) ->
usage();
main(Args) ->
case get_pid(Args) of
@fujiwara
fujiwara / agent.conf
Created August 14, 2014 08:39
benchmark fluentd vs fluent-agent-lite vs fluent-agent-hydra
<source>
type tail
path /dev/shm/tmp/dummy.log
pos_file /var/tmp/_var_log_dummy.pos
format none
tag dummy
</source>
<match dummy>
type copy
<store>

Okay, here are some of my tips about how I work with the pizza dough. For now, I'd suggest just buying the dough until you're comfortable, then once you've got the basic techniques down you can start experimenting and/or making your own dough. We get ours at Whole Foods (it's about $5/ball, it's 22 oz., and it'll make about three pizzas on the Baking Steel), but you can get it from a grocery store that makes pizzas or a pizza restaurant.. They'll usually sell it to you if you ask for it. I describe my process with the 3-pizza thing in mind.

Setting the stage

When you buy your dough it will usually be cold, and that cold is the enemy of smooth pizza making. You'll need to let the dough come to room temperature: We usually pull out three round plastic Ziploc containers, spray the containers lightly with non-stick kitchen spray, plop the cold dough into the container, then spray a small square of regular Saran wrap lightly with non-stick spray and cover the top of the containers. You want to block out the o

@slfritchie
slfritchie / presentation.md
Created March 18, 2014 09:22
Erlang tracing, for the Riak source code reading series, 2014-03-18, Tokyo, Japan

Erlang Tracing: more than you wanted to know

Rough Outline

  • What can be traced?
  • How can trace events be specified?
  • "match specifications": twisty passages, all alike
  • WTF, can I just use DTrace and drink my coffee/beer/whisky in peace?
  • Trace delivery mechanisms: pick one of two
@mrb
mrb / pizza_dough.markdown
Last active January 5, 2022 16:05
Best pizza dough
  • 1 2lb bag good AP flour
  • 1 active dry yeast packet
  • 25 grams salt
  • 600 grams water (just over 2 cups)

Mix the salt, yeast, water and about 3/4 of the flour with the paddle attachment (on your stand mixer, or you can try it by hand which I've never done) for about a minute until it is all mixed, it should be pretty loose.

Let it sit, covered, for about 20 minutes.

Knead it on low for 5-7 minutes, until it starts to even out in texture, then start adding the rest of the flour until the dough starts to pull away from the bowl. It should still be pretty wet though. Knead for another 5-7 minutes on med-low, let it rest again for 20 minutes, then remove it to a floured bench, work it with your hands, shape it, and cut it into 4-5 even sized balls.

Falsehoods programmers believe about prices

  1. You can store a price in a floating point variable.
  2. All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
  3. All currencies are subdivided in decimal units (like dinar/fils)
  4. All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
  5. All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
  6. Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
  7. For any currency you can have a price of 1. (ZWL)
  8. Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
@dergraf
dergraf / hilbert.erl
Created July 19, 2013 12:19
space filling hilbert curve that maps two-dimensional space to a one-dimensional space
-module(hilbert).
-export([curve/1, curve/7, point_to_hilbert/3]).
-define(HILBERTMAP, [
{a, [{{0,0},{0,d}}, {{0,1},{1,a}}, {{1,0},{3,b}}, {{1,1},{2,a}}]},
{b, [{{0,0},{2,b}}, {{0,1},{1,b}}, {{1,0},{3,a}}, {{1,1},{0,c}}]},
{c, [{{0,0},{2,c}}, {{0,1},{3,d}}, {{1,0},{1,c}}, {{1,1},{0,b}}]},
{d, [{{0,0},{0,a}}, {{0,1},{3,c}}, {{1,0},{1,d}}, {{1,1},{2,d}}]}
]).
@sureshsaggar
sureshsaggar / gist:5493610
Created May 1, 2013 03:40
Forecasting in R: Developing Python API to analyze time series data in Redis
'''
Description: dashboard/* primarily powers the APIs requires to support the growth dashboards.
@author: sureshsaggar
'''
#!/usr/bin/env python
from httpserver import *
from werkzeug.routing import *
import time
import redis
@chrismytton
chrismytton / 01-README.md
Created October 29, 2012 20:46
Mutt Gmail config with OS X keychain

Mutt/Gmail/OS X Keychain

Create a new keychain item, enter the Keychain Item Name as mutt, the Account Name as your gmail email address and then enter your password, then add the keychain item.

2-step auth

If you're using Google 2-step auth, you'll need to generate an Application-specific password from your Google Account settings and enter that as the password.