A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| Copyright (C) 2012 Yoshimasa Niwa | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: |
| # used modules (to be piped to cpanm) | |
| ack --perl --output '$1' -h '^use\s+([\w:]+)' ~/libwww-perl-6.04/ | sort -u | |
| # flattern sitemap (to be piped to yada) | |
| perl -Mojo -le 'g($ARGV[0])->dom->find("loc")->each(sub{print shift->content_xml})' http://g1.globo.com/sitemap.xml |
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| #!/usr/bin/env perl | |
| use 5.010; | |
| use open qw(:locale); | |
| use strict; | |
| use utf8; | |
| use warnings qw(all); | |
| use Mojo::UserAgent; | |
| # FIFO queue |
| #!/usr/bin/env python | |
| """ | |
| Frequency shift a signal using SSB modulation. | |
| """ | |
| import numpy as np | |
| import scipy as sp | |
| import scipy.signal | |
| import matplotlib.pyplot as plt |
| #!/usr/bin/env perl | |
| use 5.016; | |
| use common::sense; | |
| use utf8::all; | |
| # Use fast binary libraries | |
| use EV; | |
| use Web::Scraper::LibXML; | |
| use YADA 0.039; |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings qw(all); | |
| #use List::Util qw(shuffle); | |
| # Fisher-Yates shuffle | |
| sub shuffle (@) { | |
| for my $i (reverse 1 .. $#_) { | |
| my $j = int rand $i + 1; | |
| @_[$i => $j] = @_[$j => $i]; |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work: