Skip to content

Instantly share code, notes, and snippets.

Avatar
🌳
Growing

TheCedarPrince

🌳
Growing
View GitHub Profile
@TheCedarPrince
TheCedarPrince / init.vim
Last active Jul 17, 2021
My (neo)Vim Configuration File
View init.vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM SETTINGS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" TURNS LINE NUMBERING ON
set nu
" trigger `autoread` when files changes on disk
set autoread
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif
@TheCedarPrince
TheCedarPrince / .tmux.conf
Last active Feb 21, 2021
My tmux Configuration File
View .tmux.conf
######################################################################
# START OF PLUGINS
######################################################################
# Plugin manager for tmux
set -g @plugin 'tmux-plugins/tpm'
# Simple tmux options for anyone
set -g @plugin 'tmux-plugins/tmux-sensible'
@TheCedarPrince
TheCedarPrince / ticker.sh
Created Feb 7, 2021
Song Ticker for OBS - writes to a file and then you can read it into OBS
View ticker.sh
while true
do
sleep 15
playerctl -p chromium metadata --format "{{ title }}" | sed -E 's/\[[^][]*\]//g' | sed 's/([^)]*)//g' &> ~/Streaming/song.txt
done
@TheCedarPrince
TheCedarPrince / pairplot.jl
Created Jan 23, 2021
Pairplot in Julia using Plots.jl
View pairplot.jl
#=
Summary: Rough sketch of making a pair plot using Plots.jl in Julia
Copyright 2021 Jacob Zelko (aka TheCedarPrince)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
@TheCedarPrince
TheCedarPrince / choropleth.jl
Created Jan 16, 2021
Choropleth Maps in Julia
View choropleth.jl
#=
Summary: A simple gist on creating a choropleth map of counties in the US.
NOTE: You must install this data set for this gist: https://www2.census.gov/geo/tiger/TIGER2017/COUNTY/tl_2017_us_county.zip
Copyright 2021 Jacob Zelko (aka TheCedarPrince)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EV
@TheCedarPrince
TheCedarPrince / .alacritty.yml
Created Oct 26, 2020
My Alacritty Configuration File
View .alacritty.yml
env:
TERM: xterm-256color
# Colors (Gruvbox dark)
colors:
# Default colors
primary:
# hard contrast: background = '#1d2021'
background: '#282828'
# soft contrast: background = '#32302f'
@TheCedarPrince
TheCedarPrince / .zshrc
Created Oct 26, 2020
My zsh Configuration File
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
clear && neofetch
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
@TheCedarPrince
TheCedarPrince / marching_squares.jl
Last active Dec 2, 2020
General Julia Implementation of the Marching Squares Algorithm
View marching_squares.jl
#=
Copyright 2020 Jacob Zelko (aka TheCedarPrince)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@TheCedarPrince
TheCedarPrince / dummy_eeg_topoplot.jl
Created Nov 5, 2020
Creating Topoplots with Julia
View dummy_eeg_topoplot.jl
using ImageFiltering
using Images
using Colors
using Luxor
using ColorTypes: ARGB32
function drawimagematrix(m)
d = Drawing(500, 500, "test.png")
origin()
circle(O, 170, :clip)