This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
sudo python get-pip.py | |
sudo pip install django |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using MongoDB.Driver; | |
using MongoDB.Bson; | |
namespace MongoStepDown | |
{ | |
class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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]; | |
NewerOlder