Keybase proof
I hereby claim:
- I am john2x on github.
- I am john2x (https://keybase.io/john2x) on keybase.
- I have a public key ASCY-Xaf7jXGFun16lwCT2cOacnua4JMadfA1rtR4r_tZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
usage="usage: $(basename "$0") [-hn] ACCOUNT | |
Check an offlineimap account's mail directory for new messages and trigger notification | |
where: | |
-h show this help text | |
ACCOUNT the offlineimap account name" |
class Container(object): | |
def __init__(self, items): | |
self.items = items # items is a list or tuple | |
def __len__(self): | |
return len(self.items) | |
def __getitem__(self, i): | |
return self.items[i] |
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
[flake8] | |
max-line-length=120 | |
exclude=backend/tests/*,backend/lib/* |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: uwsgi-emperor | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the uwsgi emperor app server | |
# Description: starts uwsgi app server using start-stop-daemon |
(prefix == Ctrl+f
)
(vim movement keys)
prefix h
prefix j
" flatui.vim - Vim color scheme | |
" ---------------------------------------------------------- | |
" Author: John Louis Del Rosario (http://john2x.com/) | |
" Version: 0.1 | |
" License: Creative Commons Attribution-NonCommercial | |
" 3.0 Unported License (see README.md) | |
" ---------------------------------------------------------- | |
" Setup ----------------------------------------------------{{{ | |
" Reset syntax highlighting |
" Vim color file flatui2 | |
" generated by VimTax http://www.vimtax.com | |
set background=light | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
set t_Co=256 | |
let colors_name = "flatui2" |
" Vim color file | |
" | |
" Original Author: Anthony Carapetis <anthony.carapetis@gmail.com> | |
" Author: John Louis Del Rosario @john2x | |
" | |
" Note: Based on github's syntax highlighting theme | |
" Used Brian Mock's darkspectrum as a starting point/template | |
" Thanks to Ryan Heath for an easy list of some of the colours: | |
" http://rpheath.com/posts/356-github-theme-for-syntax-gem | |
" |