Skip to content

Instantly share code, notes, and snippets.

View casio's full-sized avatar

Carsten Kraus casio

  • Cologne, Germany
View GitHub Profile
/**
* @fileoverview A content slider.
*/
// TODO: emit events.
goog.provide("goox.ui.Slider");
goog.require("goog.dom");
goog.require("goog.style");
@palewire
palewire / settings.py
Created February 4, 2012 21:50
My current default Django LOGGING configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
},
'null': {
'level':'DEBUG',
@sstirlin
sstirlin / vim_bindings_ipython.md
Last active July 4, 2024 11:51
vim bindings for IPython

As of IPython 5, readline is no longer used to interpret keystrokes.
Instead, the pure-python library prompt_toolkit is used.

Getting vim mode in IPython is straightforward. First, edit

~/.ipython/profile_default/ipython_config.py

and add the following line:

c.TerminalInteractiveShell.editing_mode = 'vi'