If you want to run the zsh new user setup, but have run it previously, do the following:
autoload zsh-newuser-install
zsh-newuser-install -f
| """ | |
| This module implements the Lowess function for nonparametric regression. | |
| Functions: | |
| lowess Fit a smooth nonparametric regression curve to a scatterplot. | |
| For more information, see | |
| William S. Cleveland: "Robust locally weighted regression and smoothing | |
| scatterplots", Journal of the American Statistical Association, December 1979, |
| #include <iostream> | |
| // This is a rewrite and analysis of the technique in this article: | |
| // http://bloglitb.blogspot.com/2010/07/access-to-private-members-thats-easy.html | |
| // ------- Framework ------- | |
| // The little library required to work this magic | |
| // Generate a static data member of type Tag::type in which to store | |
| // the address of a private member. It is crucial that Tag does not |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| # setup named pipes for wine<->linux shell communication | |
| # | |
| # APPLICATIONS: glue linux & wine, use linux in .bat scripts, system() C-calls etc | |
| # USAGE: | |
| # | |
| # [linux] | |
| # mkfifo /tmp/wine_in | |
| # mkfifo /tmp/wine_out | |
| # ./winetalk /tmp/wine_in /tmp/wine_out | |
| # |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
If you want to run the zsh new user setup, but have run it previously, do the following:
autoload zsh-newuser-install
zsh-newuser-install -f
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
fook$^[a-f]*$(...).*\1^(.(?!(ll|ss|mm|rr|tt|ff|cc|bb)))*$|^n|ef^(.)[^p].*\1$^(?!(..+)\1+$)(.)(.\1){3}^[^o].....?$(^39|^44)|(^([0369]|([147][0369]*[258])|(([258]|[147][0369]*[147])([0369]*|[258][0369]*[147])([147]|[258][0369]*[258])))*$)See Also:
| Level | Score | Regex | Credit |
|---|