I hereby claim:
- I am phillco on github.
- I am phillip (https://keybase.io/phillip) on keybase.
- I have a public key whose fingerprint is C558 19D7 938B 78D6 D63A ED64 4BA7 568E 1AB9 2102
To claim this, I am signing this object:
/** | |
* Uses a smart, O(n) function to find the maximum subarray. | |
*/ | |
def find_max_subarray_smart( array ) { | |
int max, max_start, max_end, start, tentative = 0; | |
for ( int i = 0; i < array.size(); i++ ) { | |
tentative += array[i]; | |
/* MULTIPLIES A and B ============= | |
using Strassen's O(n^2.81) method | |
A = [1 3] B = [6 8] | |
[7 5] [4 2] | |
C = A * B = ? | |
=================================*/ | |
// Step 1: Split A and B into half-sized matrices of size 1x1 (scalars). |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using MongoDB.Driver; | |
using MongoDB.Bson; | |
namespace MongoStepDown | |
{ | |
class Program |
#/bin/sh | |
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
sudo python get-pip.py | |
sudo pip install django |
mkdir -p "~/Library/Application Support/Google/Chrome/Default/User StyleSheets/" | |
nano "~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css" | |
<paste in theme from http://devthemez.com/themes/chrome-developer-tools> |
function tab_color --description "Sets the current tab color. Usage: tab_color <r> <g> <b>" | |
echo -ne "\033]6;1;bg;red;brightness;$argv[1]\a" | |
echo -ne "\033]6;1;bg;green;brightness;$argv[2]\a" | |
echo -ne "\033]6;1;bg;blue;brightness;$argv[3]\a" | |
end | |
function tab_nocolor --description "Resets the current tab color." | |
echo -ne "\033]6;1;bg;*;default\a" | |
end |
I hereby claim:
To claim this, I am signing this object:
[alias] | |
update-master=update-ref refs/heads/master refs/remotes/origin/master |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl |
""" | |
An IPython magic function to pretty-print objects with syntax highlighting. | |
See, "Defining your own magics": | |
http://ipython.org/ipython-doc/stable/interactive/reference.html#defining-your-own-magics | |
For more on Pygments: | |
http://pygments.org/docs/quickstart/ | |
Usage |