- JSConf Uruguay - 24-25th April, 2015
- NodeConf Brazil - 5-6th September, 2015
- JSConf Colombia - 15-17th October, 2015
If a conference or main event is missing here, please add it as comment
If a conference or main event is missing here, please add it as comment
import logging | |
from haystack.management.commands import update_index | |
class Command(update_index.Command): | |
help = 'Custom haystack update index command that disable logging' | |
def handle(self, *args, **option): |
import re | |
from rest_framework import serializers, renderers, parsers | |
class JSONRenderer(renderers.JSONRenderer): | |
def render(self, data, *args, **kwargs): | |
if data: | |
data = recursive_key_map(underscore_to_camelcase, data) | |
return super(JSONRenderer, self).render(data, *args, **kwargs) |
from django import template | |
register = template.Library() | |
@register.simple_tag | |
def format_date_range(date_from, date_to, separator=" - ", | |
format_str="%B %d, %Y", year_f=", %Y", month_f="%B", date_f=" %d"): | |
""" Takes a start date, end date, separator and formatting strings and | |
returns a pretty date range string | |
""" |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
.highlight { background-color: #49483e } | |
.c { color: #75715e } /* Comment */ | |
.err { color: #960050; background-color: #1e0010 } /* Error */ | |
.k { color: #66d9ef } /* Keyword */ | |
.l { color: #ae81ff } /* Literal */ | |
.n { color: #f8f8f2 } /* Name */ | |
.o { color: #f92672 } /* Operator */ | |
.p { color: #f8f8f2 } /* Punctuation */ | |
.cm { color: #75715e } /* Comment.Multiline */ | |
.cp { color: #75715e } /* Comment.Preproc */ |
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |