... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| comma script import ~/lldb/subl.py | |
| comma script add -f subl.subl subl |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| The guide to getting fired: horrendous abuses of GCC. | |
| For fun only: most of what is listed here are undefined with respect to the C standard, hence for obvious reasons they are not portable (sigh of relief comming from audience). | |
| Tested with GCC (and codepad), so use #ifdef __GNUC__ to enclose all of these examples. | |
| 1: Map - Reduce in C ... as Macros ... | |
| #define MAP(fn, ret_type, fst, ...) ({ \ | |
| typeof(fst) from[] = {(fst), __VA_ARGS__ }; \ | |
| ret_type to[sizeof(from)/sizeof(typeof(fst))]; \ | |
| int i, n = sizeof(from)/sizeof(typeof(fst)); \ |
| $ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz | |
| $ tar -xzvf ncurses-5.9.tar.gz | |
| $ cd ./ncurses-5.9 | |
| $ ./configure --prefix=/usr/local \ | |
| --without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \ | |
| --with-shared --without-debug \ | |
| --enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \ | |
| && make | |
| $ sudo make install |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |