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: |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| sudo apt-get install curl git libpq-dev libssl-dev | |
| curl -kL http://install.perlbrew.pl | bash | |
| echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile | |
| source ~/.bash_profile | |
| perlbrew install perl-5.16.2 | |
| perlbrew switch perl-5.16.2 | |
| perlbrew install-cpanm |
| % This code answers the question at http://dsp.stackexchange.com/a/110/64 | |
| N = 150; % Order of LPC auto-regressive model | |
| P = 500; % Number of samples in the extrapolated time series | |
| M = 150; % Point at which to start predicting | |
| t = 1:P; | |
| x = 5*sin(t/3.7+.3)+3*sin(t/1.3+.1)+2*sin(t/34.7+.7); %This is the measured signal |
| #!/usr/bin/env perl | |
| use 5.008; | |
| use strict; | |
| use utf8; | |
| use warnings qw(all); | |
| use CPAN::DistnameInfo; | |
| use Carp qw(carp croak); | |
| use Config; | |
| use File::Spec::Functions; |
| use strict; | |
| use AnyEvent; | |
| use Fcntl qw(SEEK_SET); | |
| use Linux::Inotify2; | |
| main(@ARGV); | |
| sub main { | |
| my $file = shift or die "no file specified"; |
| #!perl | |
| use strict; | |
| use warnings; | |
| package Lispl; | |
| use Scalar::Util qw(blessed looks_like_number); | |
| use List::Util qw(reduce); | |
| my $global_env; |