Chana Masala
Prep time: 15 mins Cooking time: 40-45 mins Serves: 4
Ingredients:
- 2 Onions - sliced finely
- 4 cloves of garlic - chopped finely (or crushed)
Chana Masala
Prep time: 15 mins Cooking time: 40-45 mins Serves: 4
Ingredients:
import itertools | |
import numpy as np | |
# https://github.com/relsqui/pydeck | |
from pydeck import standard, cribbage | |
CARDS_PER_DEAL = 6 | |
CARDS_PER_HAND = 4 | |
POINTS_TO_WIN = 121 | |
VERBOSE = False |
0.620713 | 0.463101 | 0.869851 | 0.610158 | 0.702451 | 0.767094 | |
---|---|---|---|---|---|---|
0.797397 | 0.441206 | 0.753544 | 0.679309 | 0.524256 | 0.752844 | |
0.58715 | 0.137027 | 0.938175 | 0.590607 | 0.840056 | 0.652926 | |
0.176337 | 0.909013 | 0.356048 | 0.306722 | 0.134125 | 0.669478 | |
0.790946 | 0.155954 | 0.173121 | 0.310723 | 0.989607 | 0.294101 | |
0.620713 | 0.463101 | 0.869851 | 0.610158 | 0.702451 | 0.767094 | |
0.797397 | 0.441206 | 0.753544 | 0.679309 | 0.524256 | 0.752844 | |
0.58715 | 0.137027 | 0.938175 | 0.590607 | 0.840056 | 0.652926 | |
0.176337 | 0.909013 | 0.356048 | 0.306722 | 0.134125 | 0.669478 | |
0.790946 | 0.155954 | 0.173121 | 0.310723 | 0.989607 | 0.294101 |
This was surprisingly simple given how many things there were to do! (Usually it seems like something breaks when there's this many steps between me and installing something.)
subl
from command linebrew install leiningen
at the command line.var infile = 'points.csv' | |
var dark_color = '#777777' | |
var margin = { | |
top: 30, | |
right: 20, | |
bottom: 20, | |
left: 20 | |
}; | |
var width = 90; | |
var height = 90; |
// in C you can express metaphors, e.g. "Noon's house is a bear": | |
#include "stdio.h" | |
typedef struct { | |
char *street; | |
int street_number; | |
} noons_house_t; | |
typedef struct { |
<br><br><br> | |
<div style="margin-left: auto; margin-right: auto; width: 70%;"> | |
<b>Results from a simulation of 100,000 rounds of <a href="https://en.wikipedia.org/wiki/One-Handed_Solitaire">One-handed solitaire</a>.</b> | |
<br> | |
<i>Median and Mode result is 12 cards. Mean is 13.3.</i> | |
<br> | |
<i>Odds of winning a single game are 0.71%.</i> | |
<br> | |
<b><i>You must play ~420 games to be guaranteed of winning at least once (with 95% confidence).</i></b> | |
</div> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><html><head></head><body><h1>Jennifer Egan's <i>Black Box</i></h1> | |
<i>A short story serialized on twitter by <a href="https://twitter.com/nyerfiction">@NYerFiction</a> between May 24, 2012 - June 2, 2012.</i><br> | |
<h2>Chapter 1</h2> | |
<blockquote class="twitter-tweet"><p>With each number, imagine yourself rising out of your body and moving one step farther away from it.</p>— New Yorker Fiction (@NYerFiction) <a href="https://twitter.com/NYerFiction/statuses/205827736692981761">May 25, 2012</a></blockquote> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | |
<blockquote class="twitter-tweet"><p>Close your eyes and slowly count backward from ten.</p>— New Yorker Fiction (@NYerFiction) <a href="https://twitter.com/NYerFiction/statuses/205827483344445441">May 25, 2012</a></blockquote> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | |
<blockquote class="twitter-tweet"><p>Begin the |