Skip to content

Instantly share code, notes, and snippets.

View kklimonda's full-sized avatar

Krzysztof Klimonda kklimonda

View GitHub Profile
[
{
"backcolor": "#333333",
"name": "naps62 Ergodox - Base Layer",
"author": "Miguel Palhas <miguel@subvisual.co>",
"radii": "20px",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-G1xx",
"pcb": false,
@kklimonda
kklimonda / django_test_manage.py
Last active April 26, 2018 10:07
A custom django_test_manage.py for PyCharm 2.7 that adds support for running Django tests for projects that use Buildout. Two things had to be done. First, python egg paths from the buildout script have to be added. Some AST magic does that. Second, the working directory gets mangled because "manage.py" script resides in <<project root>>/bin, so…
#!/usr/bin/env python
import os
def _inject_buildout_modules(buildout_script):
import sys
import ast
with open(buildout_script, 'r') as fh:
content = fh.read()
@kklimonda
kklimonda / pybrowser.py
Created March 28, 2011 15:18
A minimal Gtk+/Webkit based browser in Python
import sys
from gi.repository import Gtk, Gdk, WebKit
class BrowserTab(Gtk.VBox):
def __init__(self, *args, **kwargs):
super(BrowserTab, self).__init__(*args, **kwargs)
go_button = Gtk.Button("go to...")
go_button.connect("clicked", self._load_url)
self.url_bar = Gtk.Entry()