- Takes two arguments in constant combinator
- Cargo Wagon: Number of items on a train
- Locomotive: Number of trains that this station can fit
- Calls up to
Locomotive
number of trains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
document.body.appendChild(document.querySelector(".markdown-body")); | |
document.querySelector("div.page-responsive")?.remove(); | |
(Array.from(document.querySelectorAll('div')) ?? []).forEach(e => { if (e.textContent === '') e.style = 'page-break-after: always;' }) | |
window.print(); | |
})(); |
- 2 large eggs
- 2 cups heavy or whipping cream
- ¾ cup sugar
- 1 cup milk
- Whisk the eggs in a mixing bowl until light and fluffy, 1 to 2 minutes.
- Whisk in the sugar, a little at a time, then continue whisking until completely blended, about 1 minute more.
- Pour in the cream and milk and whisk to blend.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"date": 1604432085011 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
WORKDIR /deno | |
ENV DENO_VERSION 1.3.1 | |
RUN apt-get update && \ | |
apt-get install curl unzip -y && \ | |
curl -fsSL https://github.com/denoland/deno/releases/download/v$DENO_VERSION/deno-x86_64-unknown-linux-gnu.zip \ | |
--output deno.zip && \ | |
unzip deno.zip && rm deno.zip && \ |
This hook takes a media query string and returns an array with a boolean (matches
) and a way to set the media query (setMediaQuery
)
Example: https://codepen.io/tbremer/pen/QWWEwXr?editors=1010
To use:
function Application() {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var _createClass = (function() { | |
function defineProperties(target, props) { | |
for (var i = 0; i < props.length; i++) { | |
var descriptor = props[i]; | |
descriptor.enumerable = descriptor.enumerable || false; | |
descriptor.configurable = true; | |
if ("value" in descriptor) descriptor.writable = true; | |
Object.defineProperty(target, descriptor.key, descriptor); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create Document tree from XML tree | |
const XML = `<?xml version="1.0" encoding="UTF-8"?> | |
<note> | |
<to>Tove</to> | |
<from>Jani</from> | |
<heading>Reminder</heading> | |
<body>Don't forget me this weekend!</body> | |
</note>`; | |
const MAP = { |
NewerOlder