Skip to content

Instantly share code, notes, and snippets.

View keimlink's full-sized avatar
🐍
Still in love with Python and Django

Markus Zapke-Gründemann keimlink

🐍
Still in love with Python and Django
View GitHub Profile
@keimlink
keimlink / nvm_vs_volta.md
Last active August 19, 2021 23:19
nvm vs Volta

nvm vs Volta

A comparison of nvm and Volta to manage Node.js projects (without Yarn).

Bootstrap Project with nvm

nvm install
@keimlink
keimlink / models.diff
Created July 1, 2016 13:24
euth/comments/models.py
diff --git a/euth/comments/models.py b/euth/comments/models.py
index 32ee49e..4becef2 100644
--- a/euth/comments/models.py
+++ b/euth/comments/models.py
@@ -8,6 +8,8 @@ from django.utils import timezone
class Comment(TimeStampedModel):
+ REMOVED_TEXT = 'deleted by creator'
+ CENSORED_TEXT = 'deleted by moderator'
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@keimlink
keimlink / hopper_api.json
Last active August 29, 2015 14:18
Hopper API JSON
{
"url": "http://example.com/api/23/",
"author": 1,
"date_created": "2015-03-26T11:01:23.262391Z",
"date_updated": "2015-03-26T11:01:23.262391Z",
"html": "<form></form>",
"javascript": "<script></script>",
"form": {
"id": "abc_123",
"method": "POST",
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "chef/debian-7.8"
# Port forwarding for http server.
@keimlink
keimlink / keybase.md
Created March 8, 2014 11:34
Keybase proof

Keybase proof

I hereby claim:

  • I am keimlink on github.
  • I am keimlink (https://keybase.io/keimlink) on keybase.
  • I have a public key whose fingerprint is BE3C 1D2E 51FB 0446 49FB 2C8D 4D5F D0C1 0C58 1745

To claim this, I am signing this object:

@keimlink
keimlink / gist:3016576
Created June 29, 2012 08:02
My Sublime Text 2 config
{
"auto_complete": false,
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_face": "Monaco",
"font_size": 14.0,
"highlight_line": true,
@keimlink
keimlink / otsbpython.md
Created June 1, 2012 13:14 — forked from utstikkar/otsbpython.md
Open Tech School Berlin Python workshops

We got inspired by the RailsGirls workshops and plan to organise similar workshops in Berlin for women and all sorts of beginners but for Python this time. We need you Python enthusiasts to help us with the coaching!

So if you think you can help coaching Python put your name down here (by forking this gist and adding yourself or leaving your contact details in a comment). No need to be an expert, no matter how much you know about Python programming your knowledge and experience will be useful to a beginner!

Note: if you are also into (or more into) JS then sign up as a JS coach here: https://gist.github.com/2850467

@keimlink
keimlink / decorators.py
Created March 29, 2012 10:57
Example of different Python decorators
NAMES = set()
def replace(old, new):
"""Replace the first function argument.
If the first function argument matches old it will be Replaced with new.
"""
# decorate the original function
def decorate(func):
@keimlink
keimlink / gist:1242984
Created September 26, 2011 18:30 — forked from jezdez/gist:1242317
cut -f1 -d" " .bash_history|sort|uniq -c|sort -r|head -n 10
74 rst2safari
46 git
41 cd
37 python
36 ll
18 vim
18 pip
16 brew
15 rst2html.py
14 idle3