This file contains 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
https://medium.com/seokjunhong/customize-the-terminal-zsh-iterm2-powerlevel10k-complete-guide-for-beginners-35c4ba439055 | |
iterm2 with profile > color > preset to Tango Dark | |
ohmyzsh | |
powerlevel10k - https://github.com/romkatv/powerlevel10k | |
install k for better ls - https://github.com/supercrabtree/k | |
In iTerm profile > keys set left/right option key to Esc+ --> this allows for alt+backspace and command+backspace to delete block and line, respectively | |
go to key mappings, add new, press alt+left arrow for the shortcut, set action to send escape sequence, then b for Esc+ | |
do the same for alt+right arrow with f, these set backward and forward cursor jumps |
This file contains 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
<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( ) ; |
This file contains 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
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 |
This file contains 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
"+++[[[indentation]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
set expandtab " use spaces when <TAB> is inserted | |
set shiftwidth=2 " number of spaces to use for (auto)indent step | |
set tabstop=2 " number of spaces that <Tab> in file uses | |
set autoindent " indent as last | |
"+++[[[search]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
set hlsearch " Highlight all found items | |
set incsearch " Show first match while still typing |
This file contains 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
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' |
This file contains 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
/* | |
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. |