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
function getScrollAmount() { | |
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; | |
var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight; | |
return scrollTop / (scrollHeight - document.documentElement.clientHeight); | |
} |
#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 |
import Observable from 'zen-observable'; | |
export default function observeKey(key) { | |
let pressed = false; | |
const observable = new Observable(observer => { | |
function downHandler(e) { | |
if (e.key === key && !pressed) { | |
pressed = true; | |
observer.next('pressed'); |
// An as-simple-as-possible JSON plugin for rollup. This plugin turns a JSON | |
// file into a module with a default export. No named exports are given since | |
// field names are not always valid names. | |
// Originally drawn from the official JSON plugin. | |
function buildAst(code) { | |
return { | |
type: 'Program', | |
sourceType: 'module', |
// Usage: node advent-of-code-2017-d04p2-boring.js /path/to/input.txt | |
// This boring version works by lexicographically sorting the characters | |
// in each word of the pass phrase, and then adding them all to a set. | |
// If the size of the set is less than the number of words in the | |
// passphrase, then at least one pair of words were anagrams of each | |
// other and the passphrase invalid. | |
'use strict'; |
'use strict'; | |
const rawInput = require('fs').readFileSync(process.argv[2], 'utf8').trim().split('\n'); | |
const input = rawInput.map(line => { | |
const [p, v, a] = line.split(', ').map(part => part.slice(3, -1).split(',').map(n => parseInt(n, 10))); | |
return { p, v, a }; | |
}); | |
function isNaturalNumber(num) { |
use std::io::{stdin, BufRead}; | |
use std::collections::BTreeSet; | |
fn main() { | |
let shifts: Vec<i32> = stdin().lock() | |
.lines() | |
.filter_map(|line| line.unwrap().parse().ok()) | |
.collect(); | |
let mut frequency = 0; |
use regex::Regex; | |
use std::io::{stdin, BufRead}; | |
use std::cmp::{max}; | |
#[macro_use] | |
extern crate lazy_static; | |
const MAX_TOTAL_DIST: usize = 10000; | |
fn abs_diff(a: &usize, b: &usize) -> usize { |
use std::io::{self, BufRead}; | |
use std::str; | |
struct Node { | |
children: Vec<Box<Node>>, | |
metadata: Vec<usize> | |
} | |
impl Node { | |
fn evaluate(&self) -> usize { |