Instantly share code, notes, and snippets.

View dot_spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
View countries.json
{
"data": [
{"text": "Afghanistan", "id": "AF"},
{"text": "Åland Islands", "id": "AX"},
{"text": "Albania", "id": "AL"},
{"text": "Algeria", "id": "DZ"},
{"text": "American Samoa", "id": "AS"},
{"text": "AndorrA", "id": "AD"},
{"text": "Angola", "id": "AO"},
{"text": "Anguilla", "id": "AI"},
View reviewboard.txt
django-haystack
docutils
markdown>=2.3.1
mimeparse>=0.1.3
paramiko>=1.12
Pygments>=1.6
python-dateutil==1.5
python-memcached
pytz
recaptcha-client
View fabfile.py
# Mostly from django-fab-deploy
import os
import sys
from datetime import datetime
from subprocess import Popen, PIPE
import yaml
from fabric.api import env, run, sudo, task
View gist:2912777
#!/usr/bin/env python
#
# Copyright 2012 Patrick Hetu <patrick.hetu@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
View piwik_export.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import csv
from optparse import OptionParser
import urllib
import httplib
import urlparse