- time (10' prep + 25' baking)
- 300g baking chocolate
- 150g sugar
- 150g flour
- 100g butter
- 50g oil, hazelnut or walnut (from the original recipe, I keep meaning to try, forgetting, and substituting 50g or so of extra butter instead)
- vanilla extract (or put some vanilla sugar with the sugar)
- 2 eggs
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
#!/bin/sh -eu | |
COMMAND_STYLE="$(tput bold)$(tput setaf 4)" | |
NOTICE_STYLE="$(tput bold)$(tput setaf 3)" | |
NORMAL_STYLE="$(tput sgr0)" | |
run() { | |
echo "${COMMAND_STYLE}\$ $@${NORMAL_STYLE}" | |
"$@" | |
echo | |
} |
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
#!/bin/bash | |
set -euo pipefail | |
echo "Commit id,Commit message,Mean (s),σ (s),Median (s),User (s),System (s),Min (s),Max (s)" > table.csv | |
for rev in $(git rev-list --reverse master..); do | |
git checkout "$rev" | |
cargo build --release | |
hyperfine --export-csv table.tmp.csv "seq 2 $((10 ** 7)) | ../../../target/release/factor > /dev/null" | |
{ echo -n "$(git show -q --format='%h,%s,')"; tail -n1 table.tmp.csv | cut -d, -f 2-; } >> table.csv |
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
diff --git i/ppb/engine.py w/ppb/engine.py | |
index 4300133..bc25616 100644 | |
--- i/ppb/engine.py | |
+++ w/ppb/engine.py | |
@@ -101,6 +101,7 @@ class GameEngine(Engine, EventMixin, LoggingMixin): | |
def main_loop(self, collect_statistics: True) -> 'pandas.DataFrame': pass | |
def main_loop(self, collect_statistics=False): | |
+ collect_statistics = False | |
if collect_statistics: |
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
#!/usr/bin/env python3 | |
from math import hypot | |
from numbers import Real | |
from ppb_vector import Vector2 | |
from timeit import timeit | |
class VectorBench(Vector2): | |
@property | |
def computed_length(self) -> Real: |
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
$ mypy test.bad.py | |
test.bad.py:22: error: "V2" has no attribute "method" | |
$ mypy /tmp/test.good.py | |
[no errors returned] |
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
/keys.py | |
__pycache__/ | |
*.state | |
*.xz |
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
/.vagrant | |
/log | |
*.retry |
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
LINTIAN_PROFILE=pkg-perl | |
info = yes | |
display-info = yes | |
pedantic = yes | |
color = auto |
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
[0m[[0minfo[0m] [0mLoading global plugins from /home/nbraud/.sbt/0.13/plugins[0m | |
[0m[[0minfo[0m] [0mLoading project definition from /home/nbraud/devel/tox/tox4j/project[0m | |
[0m[[0minfo[0m] [0mSet current project to tox4j (in build file:/home/nbraud/devel/tox/tox4j/)[0m | |
[0m[[0minfo[0m] [0m[scapegoat] setting output dir to [/home/nbraud/devel/tox/tox4j/lint/target/scala-2.11/scapegoat-report][0m | |
[0m[[0minfo[0m] [0mCompiling 47 Scala sources and 69 Java sources to /home/nbraud/devel/tox/tox4j/target/scala-2.11/classes...[0m | |
[0m[[33mwarn[0m] [0m/home/nbraud/devel/tox/tox4j/target/scala-2.11/src_managed/main/compiled_protobuf/im/tox/tox4j/av/proto/Av/InternalFields_avProto.scala:15: Bodies of 2 neighbouring cases are identical and could be merged.[0m | |
[0m[[33mwarn[0m] [0m case "im.tox.tox4j.av.proto.Av.VideoBitRateStatus" => Seq(Descriptors.FieldDescriptor(0, 1, "friendNumber", Descriptors.Required, Descriptors.PrimitiveType(com.google.protobuf.Descriptors.FieldDescriptor.JavaTyp |
NewerOlder