Skip to content

Instantly share code, notes, and snippets.

🎹
🦄

wouter bolsterlee wbolster

🎹
🦄
Block or report user

Report or block wbolster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View attrify.py
import collections
class attrify:
def __init__(self, d):
object.__setattr__(self, 'd', d)
def __getattribute__(self, name):
if name == '__dict__':
return object.__getattribute__(self, 'd')
@wbolster
wbolster / piano.png
Last active May 13, 2017
piano keyboard using unicode block drawing characters
@wbolster
wbolster / output.txt
Last active Feb 4, 2017
temporenc alternatives playground
View output.txt
00000000 00000000 00000111
namespace(day=1, hour=None, minute=None, month=8, ms=None, ns=None, second=None, type='D', us=None, year=1000) 3
00000000 00001011 00000111
namespace(day=1, hour=None, minute=None, month=8, ms=None, ns=None, second=None, type='D', us=None, year=1000) 3
00111111 10010011 00010111
namespace(day=8, hour=None, minute=None, month=8, ms=None, ns=None, second=None, type='D', us=None, year=2017) 3
00000000 00000000 00000101 11111011 11101100
@wbolster
wbolster / qualname
Last active Aug 29, 2015
Python module providing a __qualname__ alternative for Python 2
View qualname
Moved to https://github.com/wbolster/qualname
@wbolster
wbolster / cvimrc.vim
Last active Jan 27, 2019
cVim configuration
View cvimrc.vim
" An input bar at the top? What is this? A web browser perhaps?
let barposition="bottom"
" Smoooooooth
set smoothscroll
" Link hints
set linkanimations
let hintcharacters = "asdfqwerzxcv"
map T createActiveTabbedHint
View jsonwalk.py
#!/usr/bin/env python
from __future__ import print_function
try:
# Python 3
from functools import reduce
STRING_TYPE = str
except ImportError:
# Python 2
View keybase.md

Keybase proof

I hereby claim:

  • I am wbolster on github.
  • I am wbolster (https://keybase.io/wbolster) on keybase.
  • I have a public key whose fingerprint is 76E0 AFCD 0A48 33D2 5EB9 F423 FFAF 60EF 8CDD 9583

To claim this, I am signing this object:

@wbolster
wbolster / toggle-grayscale
Created Dec 1, 2014
AppleScript to toggle grayscale display (for Mac OSX 10.10 Yosemite)
View toggle-grayscale
tell application "System Preferences"
activate
set current pane to pane "Accessibility"
end tell
tell application "System Events"
tell process "System Preferences"
click checkbox "Use grayscale" of window 1
end tell
end tell
View puzzle.py
#!/usr/bin/env python
"""
https://twitter.com/ionicasmeets/status/515452675169992704
"""
import itertools
def make_number(chars):
@wbolster
wbolster / output-python2.6
Last active Aug 29, 2015
Cython 0.20 _Py_TypeLookup() in __Pyx_PyObject_LookupSpecial() works with py27, fails with py26
View output-python2.6
Python 2.6.8 (unknown, Jan 26 2013, 14:35:25)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import test
>>> test.testme()
about to acquire lock
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "test.pyx", line 11, in test.testme (test.c:813)
with lock:
You can’t perform that action at this time.