Skip to content

Instantly share code, notes, and snippets.

View nbraud's full-sized avatar

nicoo nbraud

View GitHub Profile
@nbraud
nbraud / xcut.xml
Created December 1, 2014 13:55
xcut
<?xml version="1.0"?>
<!DOCTYPE lolz [
<!ENTITY lol "lol">
<!ELEMENT lolz (#PCDATA)>
<!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
<!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;">
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
@nbraud
nbraud / keybase.md
Created February 18, 2015 09:25
Keybase proof

Keybase proof

I hereby claim:

  • I am nbraud on github.
  • I am nicoo (https://keybase.io/nicoo) on keybase.
  • I have a public key whose fingerprint is 772B 11B4 F2DC 80E1 212B 3F41 B073 9AAD 91B7 CDC0

To claim this, I am signing this object:

[info] Loading global plugins from /home/nbraud/.sbt/0.13/plugins
[info] Loading project definition from /home/nbraud/devel/tox/tox4j/project
[info] Set current project to tox4j (in build file:/home/nbraud/devel/tox/tox4j/)
[info] [scapegoat] setting output dir to [/home/nbraud/devel/tox/tox4j/lint/target/scala-2.11/scapegoat-report]
[info] Compiling 47 Scala sources and 69 Java sources to /home/nbraud/devel/tox/tox4j/target/scala-2.11/classes...
[warn] /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.
[warn]  case "im.tox.tox4j.av.proto.Av.VideoBitRateStatus" => Seq(Descriptors.FieldDescriptor(0, 1, "friendNumber", Descriptors.Required, Descriptors.PrimitiveType(com.google.protobuf.Descriptors.FieldDescriptor.JavaTyp
LINTIAN_PROFILE=pkg-perl
info = yes
display-info = yes
pedantic = yes
color = auto
@nbraud
nbraud / .gitignore
Last active April 23, 2018 11:23
Test for the Ansible apt module
/.vagrant
/log
*.retry
@nbraud
nbraud / .gitignore
Last active April 27, 2018 08:55
Tweet dump
/keys.py
__pycache__/
*.state
*.xz
$ mypy test.bad.py
test.bad.py:22: error: "V2" has no attribute "method"
$ mypy /tmp/test.good.py
[no errors returned]
#!/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:
@nbraud
nbraud / gc.garbage.patch
Created April 30, 2019 17:44
PPB: Reveal which cycles are created (and collected) on each frame
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:
@nbraud
nbraud / brownies.md
Created February 3, 2020 15:55
Nicoo's brownies

Ingredients

  • 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