Skip to content

Instantly share code, notes, and snippets.

View earwig's full-sized avatar

Ben Kurtovic earwig

View GitHub Profile
View eswiki-111186880.txt
== Participación ==
{| class="wikitable" class="sortable wikitable"
!width=4%|Año!!width=12%|País que representa !!Cantante(s) !!width=15%|Canción<br /><small>(Música / Letra)</small>!!width=6%|Final!!width=4%|Pts.!!width=2%|Semifinal!!width=5%|Pts.!!width=6%|J!!width=6%|Pts!!width=6%|T!!width=6%|Pts!!width=6%|Odds!!width=4%|{{bandera|Spain}}!!width=10%|{{bandera|Spain}}12?
| [[Festival de la Canción de Eurovisión 2877|2877]]
| {{bandera|Israel}} '''[[Israel]]'''
| style="background:" |'''[[Daniel Alfredo]]'''
|[[Fly until ma own|'''''Menos (Low)'''']]
earwig / stdout
Created September 16, 2018 20:17
gitea panic
View stdout
[Macaron] 2018-09-16 16:16:20: Started GET /ben/testrepo for
[Macaron] PANIC: html: InsertBefore called for an attached child Node
/usr/local/go/src/runtime/panic.go:513 (0x402dff8)
gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/Users/ben/.local/go/src/ (0x45ddcfa)
replaceContent: panic("html: InsertBefore called for an attached child Node")
/Users/ben/.local/go/src/ (0x45ddcfa)
replaceContent: node.Parent.InsertBefore(newNode, nextSibling)
/Users/ben/.local/go/src/ (0x45de9a4)
shortLinkProcessorFull: replaceContent(node, m[0], m[1], linkNode)
View pip.log
ben@earwig:~ $ virtualenv foobar
New python executable in /Users/ben/foobar/bin/python2.7
Also creating executable in /Users/ben/foobar/bin/python
Installing setuptools, pip, wheel...done.
ben@earwig:~ $ cd foobar/
ben@earwig:~/foobar $ . ./bin/activate
(foobar) ben@earwig:~/foobar $ pip install numpy scipy
Collecting numpy
Downloading (24.5MB)
100% |████████████████████████████████| 24.5MB 433kB/s
earwig / x
Last active May 19, 2018 22:22
x: eXamine files/dirs using the right tool
View x
set -euo pipefail
if [[ $# -eq 0 ]]; then
>>> import inspect
>>> import threading
>>> import time
>>> def gen():
... yield 0
... time.sleep(10)
... yield 1
>>> a = gen()

Keybase proof

I hereby claim:

  • I am earwig on github.
  • I am earwig ( on keybase.
  • I have a public key whose fingerprint is B6B2 9EA2 A2B2 D76B 1554 E325 8A19 649A E8DB B515

To claim this, I am signing this object:

import ctypes
from ctypes import pythonapi as api
import sys
from types import (BuiltinFunctionType, GetSetDescriptorType, FrameType,
MemberDescriptorType, MethodType)
import guppy
from guppy.heapy import Path
hp = guppy.hpy()
View python-object-replacement
DOT files for "Replacing Objects in Python"
View mwparserfromhell_py26.diff
diff --git a/mwparserfromhell/ b/mwparserfromhell/
index a142128..1e713fd 100644
--- a/mwparserfromhell/
+++ b/mwparserfromhell/
@@ -10,8 +10,9 @@ types are meant to be imported directly from within the parser's modules.
import sys
-py3k = sys.version_info.major == 3
-py32 = py3k and sys.version_info.minor == 2
import java.util.Iterator;
import java.util.NoSuchElementException;
public class BstArray implements Iterable {
private Comparable[] _tree;
private int _size;
public BstArray() {
_tree = new Comparable[10];