SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowSPC TAB
- switch to previous bufferSPC b b
- switch buffers
# Diese Liste enthaelt laender doppelt mit teils abeichenden ISO Codes | |
EU_AUSLAND_CODES_DHL = [ | |
"AT", | |
"BE", | |
"BG", | |
"CY", | |
"CZ", | |
"DK", | |
"EE", | |
"ES", |
Install basic dev env tools/libs
yum install -y vim-enhanced tmux
yum groupinstall 'Development Tools' -y
yum install -y ncurses-devel ncurses
Setup kerl
# nginx Embedded Perl module for adding a Content-MD5 HTTP header | |
# | |
# THIS VERSION GENERATES A BASE64 ENCODED VALUE AS REQUIRED BY RFC1864 | |
# | |
# This perl module, will output an MD5 of a requested file using the | |
# Content-MD5 HTTP header, calculating the MD5 BASE64 hash on the fly. | |
# | |
# Author: Matt Martz <matt@sivel.net> | |
# Link to the original version: https://gist.github.com/sivel/1870822 | |
# This version, with modifications: |
NOTE: "In Spacemacs, M-m _is_ SPC by default" | |
NOTE: "M-m and SPC can be used interchangeably". | |
NOTE: ??? are keys I don't know which I want to know | |
## Custom mappings: my own mappings which require configuration in .spacemacs | |
* Dumb Jump - 'gd' | |
## Day to day | |
* Get NeoTree prompt - 'SPC p t' | |
* 'C-o' - jump back |
#!/usr/bin/env python | |
from twilio.rest import TwilioRestClient | |
import getopt, sys | |
def usage(): | |
print "Usage Instructions for alertsms.py" | |
print " -h --help: Shows this text, exits" | |
print " -o --output [number]: sends SMS to that number" | |
print " -v: enables verbose output" | |
print " -i --input [message]: message to send" |
(by @andrestaltz)
So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
% Andrea Leopardi's list parser | |
% http://andrealeopardi.com/posts/tokenizing-and-parsing-in-elixir-using-leex-and-yecc/ | |
Nonterminals list elems elem. | |
Terminals '[' ']' ',' int atom. | |
Rootsymbol list. | |
list -> '[' ']' : []. | |
list -> '[' elems ']' : '$2'. | |
elems -> elem : ['$1']. |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" | |
# With absolute date ISO style: | |
# git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci)%C(bold blue)<%an>%Creset' --abbrev-commit" | |
# usage: | |
# $ git lg | |
# redirect to file: |