start new:
tmux
start new with session name:
tmux new -s myname
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overridden in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
| # like systems) and C:\Documents and Settings\yourname\.matplotlib | |
| # (win32 systems). |
| > brew doctor | |
| Warning: An outdated version of Git was detected in your PATH. | |
| Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub. | |
| Please upgrade: brew upgrade git | |
| > brew upgrade git | |
| ==> Upgrading 1 outdated package, with result: | |
| git 1.8.3.4 | |
| ==> Upgrading git | |
| git: No `python` found in your PATH! Consider to `brew install python`. |
| splitcol = function(x, newcols, targetCol) { | |
| # delete commas IN THE STATEMENTS SEPARATED BY COMMAS ROFLMAO | |
| x[[targetCol]] = sub('tablet, such', 'tablet such', x[[targetCol]]) | |
| x[[targetCol]] = sub('phone, tablet, or', 'phone tablet or', x[[targetCol]]) | |
| # check for presence of known examples (newcols[2]) | |
| for (i in newcols) { | |
| x[[i[1]]] = ifelse(grepl(i[2], x[[targetCol]]), 1, 0) | |
| } |
| write.table(file=pipe("pbcopy"), mydata, row.names=FALSE, sep="\t") |
| #! /usr/bin/env python | |
| # Display the colors available in a terminal. | |
| print "16-color mode:" | |
| for color in range(0, 16) : | |
| for i in range(0, 3) : | |
| print "\033[0;%sm%02s\033[m" % (str(color + 30), str(color)), | |
| library('memisc') | |
| args = commandArgs(trailingOnly=TRUE) | |
| fname = args[1] | |
| myData = as.data.set(spss.system.file(fname)) |
| grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" filename.txt |
| // JQuery only used for selecting and removing elements, | |
| // mostly left in for the below ALERT. | |
| // the console.log statements are for your sanity checks. | |
| var asa; var canvas; var dcanvas; var gl; var expmt; | |
| canvas = $('#my-canvas'); | |
| console.log(canvas); | |
| // check to see if we can do webgl |
| # PIL doesn't know OS X comes with freetype. Add links before (re)installing. | |
| # Now you can just install jpeg using homebrew, and then PIL with pip. | |
| ln -s /usr/X11/include/freetype2 /usr/local/include/ | |
| ln -s /usr/X11/include/ft2build.h /usr/local/include/ | |
| ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/ | |
| ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib |