Skip to content

Instantly share code, notes, and snippets.

View g5becks's full-sized avatar

Gary Becks g5becks

View GitHub Profile
@g5becks
g5becks / godmode_indicator
Created March 26, 2023 17:18 — forked from iUmarov/godmode_indicator
GodMode Indicator in Python
# This is a non-multiexchange version of GODMODE indicator
# If you want the multi exchange version of GODMODE indicator, you need to implement willy and csi calculations too
# Original source of god mode indicator:
# https://www.tradingview.com/script/oA3U7pok-GODMODE-OSCILLATOR-FRESH-BREAD-GENERATOR-FREE-TO-USE/
import pandas as pd
import talib
channel_length = 9
average_length = 26
@g5becks
g5becks / setup.fish
Last active July 28, 2020 17:52
Dev Machine setup script.
function _fish_config -d "downloads fish config file"
set -l url "https://gist.githubusercontent.com/g5becks/16c0c319ab3c11b56d7617131ca367a2/raw/98a92952f1057160cc9ad26e8fe625928a8180ab/config.fish"
set -l dl_file ~/.config/fish/config.fish
if not test -e $dl_file
command touch $dl_file
end
echo "downloading config.fish"
if command curl $url >$dl_file
echo "config.fish downloaded successfully"
else
@g5becks
g5becks / config.fish
Last active December 5, 2020 17:28
FISH config
set TERM "xterm-256color"
set EDITOR "micro"
set VISUAL "code"
## Spark https://github.com/jorgebucaran/spark.fish/blob/main/spark.fish
set -g spark_version 1.0.0
complete -xc spark -n __fish_use_subcommand -a --help -d "Show usage help"
complete -xc spark -n __fish_use_subcommand -a --version -d "$spark_version"
@g5becks
g5becks / starship.toml
Last active December 5, 2020 17:30
Starship config
format = """
[┌────────────────>](bold green)
[│](bold green)$all
[└─>](bold green) """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
# Disable the newline at the start of the prompt
add_newline = true
@g5becks
g5becks / kitty.conf
Last active July 6, 2020 17:58
kitty config
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Thick
# bold_italic_font Operator Mono Medium
# font_family Input Mono
font_family Hasklug Nerd Font
italic_font Hasklug Nerd Font, Italic
@g5becks
g5becks / ata.json
Last active October 4, 2020 13:10
Visual Studio Code Settings Sync Gist
{
"api": {
"CredentialUserData": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CredentialUserData",
"support": {
"chrome": {
"version_added": "60"
},
"chrome_android": {