Miya makes gyoza on the fly, and doesn't work to exact quantities. However, this recipe is what she used the last time we made some.
For the first step you will need:
- 3 cloves of garlic, finely diced or minced
- 2 tbsp ginger, finely diced or minced
[package] | |
name = "task-1" | |
version = "0.1.0" | |
authors = ["Mark S. Everitt <mark.s.everitt@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
recap = "0.1" | |
serde = "1.0.90" |
/** | |
* There's no real reason to use this. Buffer is available in node: | |
* | |
* Buffer.from(typedArray.buffer).toString('base64'); | |
* | |
* and the browser has atob/btoa (which are fine to use for the ascii | |
* characters used to represent bytes. | |
*/ | |
function byteToBin(byte) { |
""" | |
Requires matplotlib for plotting. Tested with python 27. If you want to try this | |
without plotting, remove the final two lines and the pylab import. The guts only | |
depends on math and will work with vanilla python. | |
""" | |
import math | |
import pylab | |
def probabilities(posn): |
#include <Keyboard.h> | |
// MAMEish. An array of pin-key pairs. | |
struct { int pin; int key; } pinsToKeys[] = { | |
{ 2, KEY_LEFT_ARROW }, | |
{ 3, KEY_UP_ARROW }, | |
{ 4, KEY_RIGHT_ARROW }, | |
{ 5, KEY_DOWN_ARROW }, | |
{ 6, KEY_LEFT_CTRL }, // Fire 1 | |
{ 7, KEY_LEFT_ALT }, // Fire 2 |
// A standard deviation object constructor. Running deviation (avoid growing arrays) which | |
// is round-off error resistant. Based on an algorithm found in a Knuth book. | |
function StandardDeviation(firstMeasurement) { | |
this.workData = firstMeasurement; | |
this.lastWorkData = null; | |
this.S = 0; | |
this.count = 1; | |
} | |
// Add a measurement. Also calculates updates to stepwise parameters which are later used |
{ | |
"env": { | |
"mocha": true | |
}, | |
"rules": { | |
"max-nested-callbacks": ["error", 7], | |
"no-restricted-properties": [ | |
"error", | |
{ "object": "describe", "property": "only" }, | |
{ "object": "context", "property": "only" }, |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script type="module" src="index.js"></script> | |
<title>Game of Life</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<h1>Game of Life</h1> | |
<canvas width="600" height="600"></canvas> |
[package] | |
name = "task-1" | |
version = "0.1.0" | |
authors = ["Mark S. Everitt <mark.s.everitt@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
regex = "1" | |
lazy_static = "1.2.0" |
use std::io::{self, BufRead}; | |
use std::str; | |
struct Node { | |
children: Vec<Box<Node>>, | |
metadata: Vec<usize> | |
} | |
impl Node { | |
fn evaluate(&self) -> usize { |