View pythagorean_tree.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<canvas id="ptcanvas" width="400" height="400" style="border:1px dotted;float:left"></canvas>
<script>
function draw_square( ctx, x1, y1, x2, y2, x3, y3, x4, y4 )
{
ctx.beginPath( ) ;
View cs_cheat_sheet.txt
This "cheat sheet" is designed to be a super-high level view of common and/or important computer science concepts. Good for test reviews, preparing for job interviews, brushing up on the basics, becoming a better person, or light reading for putting your significant other to sleep. I will continue to update this so if you have any suggestions or corrections please send a pull request or contact me. Licensed under http://creativecommons.org/licenses/by-sa/3.0/.
Algorithms
+ Limiting behavior (all the second sections are as limit(n)->infinity)
* Big O - f is bounded by g :: f(n) <= g(n)*c (for some constant c) :: an upper bound, can be much higher than actual performance because this is not a tight bound, for example a log(n) algorithm technically is O(n!) but is obviously way better than something that actually gets n! performance
* Small or Little o - f dominated by g :: f(n) < g(n)*c; f(n)/g(n) = 0 :: g gets much larger
* Big Omega - f is bounded below by g :: |f(n)| >= g(n)*c :: a lower bound, bu
View .vimrc
"+++[[[settings]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set autoindent " indent as last
set autowrite " save file on :ne, :re, :make and friends
set bs=2 " allow backspacing over everything in insert mode
set expandtab " use spaces when <TAB> is inserted
set fileformat=unix " Default to UNIX formatted files
set foldmethod=marker " Be sure folds are saved with the document (vim6)
set history=50 " Keep N lines of command history
set hlsearch " Highlight all found items
set incsearch " Show first match while still typing
View .bashrc
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS -CF'
alias ll='ls $LS_OPTIONS -Flha'
alias lldf='ls $LS_OPTIONS -Flha --group-directories-first'
View color_conversion_library.hpp
/*
Copyright (c) 2010, Alex Kuhl, http://www.alexkuhl.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.