- 1/4 cup of sugar
- 1/4 cup of flour
- 2 tbsp of cocoa
- a pinch of salt
- 2 tbsp of olive oil
- 3 tbsp of water
This file contains hidden or 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
#!/usr/bin/env stap | |
global samples | |
global all_samples | |
global timestamp | |
probe process("node").mark("gc__start") | |
{ | |
timestamp = gettimeofday_us() | |
} |
This file contains hidden or 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
CALL=${1:-"cabal build"} | |
$CALL | |
while inotifywait -qq -r -e modify .; do | |
echo '<><><><> Starting build <><><><>'; | |
echo `date`; | |
$CALL; | |
echo '<><><><> Done <><><><>'; | |
sleep 1 | |
done |
This file contains hidden or 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
// Zip together a couple Futures, including one that returns an Option | |
// and pass them to a function to give me a new object: | |
api.channels.tree zip api.pages.getByRoute(route) map { | |
case (tree, Some(page)) => Some(new PagePresenter(context, tree, page)) | |
case _ => None | |
} | |
// Now with an Applicative Functor! | |
(api.channels.tree |@| api.pages.getByRoute(route)) { |
This file contains hidden or 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
/* | |
* RedEyes generates rich descriptions of the API, as well as valid examples for | |
* all parameters (in this case, example header, query parameter, and content). | |
* | |
* The API can also be used to generate client libraries in a variety of languages. | |
* | |
* Service handlers are strongly-typed (e.g. retrieveEmployees expects an integer | |
* and a ModelDesc). Any errors in using the API automatically generate rich | |
* descriptions on what was expected. | |
*/ |
This file contains hidden or 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
{ pkgs, config, ... }: | |
{ | |
imports = [ | |
<nixpkgs/nixos/modules/profiles/headless.nix> | |
]; | |
# Enable sudo logins if the user's SSH agent provides a key | |
# present in <filename>~/.ssh/authorized_keys</filename>. | |
# This allows machines to exclusively use SSH keys instead of | |
# passwords. |
- You need to have the latest version of Node. Preferably, you're using 9.8.0, but the latest LTS should work as well.
- You should have
npx
installed usingnpm install -g npx
. - Install the React Developer Tools.
OlderNewer