Skip to content

Instantly share code, notes, and snippets.

View TheCedarPrince's full-sized avatar
🌳
✨ Growing! ✨

Jacob S. Zelko TheCedarPrince

🌳
✨ Growing! ✨
View GitHub Profile
@TheCedarPrince
TheCedarPrince / dummy_eeg_topoplot.jl
Created November 5, 2020 06:12
Creating Topoplots with Julia
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)
@TheCedarPrince
TheCedarPrince / marching_squares.jl
Last active December 2, 2020 23:06
General Julia Implementation of the Marching Squares Algorithm
#=
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 / .zshrc
Created October 26, 2020 16:10
My zsh Configuration File
# 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 / .alacritty.yml
Created October 26, 2020 15:54
My Alacritty Configuration File
env:
TERM: xterm-256color
# Colors (Gruvbox dark)
colors:
# Default colors
primary:
# hard contrast: background = '#1d2021'
background: '#282828'
# soft contrast: background = '#32302f'
@TheCedarPrince
TheCedarPrince / choropleth.jl
Created January 16, 2021 01:34
Choropleth Maps in Julia
#=
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 / pairplot.jl
Created January 23, 2021 00:21
Pairplot in Julia using Plots.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 / ticker.sh
Created February 7, 2021 23:05
Song Ticker for OBS - writes to a file and then you can read it into OBS
while true
do
sleep 15
playerctl -p chromium metadata --format "{{ title }}" | sed -E 's/\[[^][]*\]//g' | sed 's/([^)]*)//g' &> ~/Streaming/song.txt
done
@TheCedarPrince
TheCedarPrince / .tmux.conf
Last active February 21, 2021 16:56
My tmux Configuration File
######################################################################
# 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 / brute_force_voronoi.jl
Created January 5, 2022 03:09
Brute Force Voronoi Algorithm
using Colors
using LazySets
using Luxor
########################
# FUNCTION DEFINITIONS #
########################
"""
make_drawing(width, height, img_path, bkg_color, origin_p)
@TheCedarPrince
TheCedarPrince / JavisSets.jl
Created March 27, 2022 00:52
Prototype draft of creating Set Theory interface in JavisMath
using Colors
using Javis
using LaTeXStrings
using Luxor
using MathTeXEngine
########################
# FUNCTION DEFINITIONS #
########################