Skip to content

Instantly share code, notes, and snippets.

@stoptime
stoptime / index.html
Last active February 2, 2021 22:26
JavaScript Generators and Spiral Matrices
<!-- view here: https://bl.ocks.org/stoptime/raw/c5f21762bb8cbf75492b43e165b64532/ -->
<!doctype html>
<html>
<head>
<title>JavaScript Generators and Spiral Matrices</title>
<style type="text/css">
body {
background-color: black;
color: white;
# CLI COLORED PROMPT
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1='\[\033[38;5;99m\]\u\[$(tput sgr0)\]\[\033[38;5;98m\]@\[$(tput sgr0)\]\[\033[38;5;97m\]\h\w\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]\[\033[38;5;172m\]$(parse_git_branch)\[$(tput sgr0)\] '
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
@stoptime
stoptime / filetype.vim
Created August 6, 2019 22:01
Place in ~/.vim directory
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufNewFile,BufRead *.inc,*.module setf php
augroup END