Compare commits
3 commits
94b623494e
...
bad435e330
Author | SHA1 | Date | |
---|---|---|---|
bad435e330 | |||
10b12614ac | |||
3c722d49da |
4 changed files with 163 additions and 1 deletions
60
basic_configs/helix/config.toml
Normal file
60
basic_configs/helix/config.toml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# custom helix config
|
||||||
|
# mahmad2000@protonmail.com
|
||||||
|
|
||||||
|
# custom theme
|
||||||
|
theme = "molokai-terminal"
|
||||||
|
|
||||||
|
# editor settings
|
||||||
|
|
||||||
|
[editor]
|
||||||
|
scrolloff = 2
|
||||||
|
bufferline = "always"
|
||||||
|
auto-completion = false
|
||||||
|
auto-info = false
|
||||||
|
color-modes = true
|
||||||
|
|
||||||
|
[editor.statusline]
|
||||||
|
left = ["mode", "spacer", "file-name", "read-only-indicator", "file-modification-indicator", "file-encoding"]
|
||||||
|
center = ["position", "spacer", "register"]
|
||||||
|
right = ["diagnostics", "spacer", "version-control"]
|
||||||
|
|
||||||
|
[editor.lsp]
|
||||||
|
auto-signature-help = false
|
||||||
|
|
||||||
|
[editor.cursor-shape]
|
||||||
|
normal = "underline"
|
||||||
|
insert = "bar"
|
||||||
|
|
||||||
|
[editor.whitespace.render]
|
||||||
|
tab = "all"
|
||||||
|
|
||||||
|
[editor.indent-guides]
|
||||||
|
render = true
|
||||||
|
|
||||||
|
[editor.gutters]
|
||||||
|
layout = ["diagnostics", "line-numbers", "diff"]
|
||||||
|
|
||||||
|
[editor.gutters.line-numbers]
|
||||||
|
min-width = 4
|
||||||
|
|
||||||
|
|
||||||
|
# keybinds
|
||||||
|
|
||||||
|
# make yank change/delete deliberate instead of default
|
||||||
|
[keys.normal]
|
||||||
|
d = "delete_selection_noyank"
|
||||||
|
A-d = "delete_selection"
|
||||||
|
c = "change_selection_noyank"
|
||||||
|
A-c = "change_selection"
|
||||||
|
|
||||||
|
# less cursed insert movement if fat fingered a key
|
||||||
|
[keys.insert]
|
||||||
|
"C-left" = "move_prev_word_end"
|
||||||
|
"C-right" = "move_next_word_start"
|
||||||
|
|
||||||
|
# buffer control mode
|
||||||
|
[keys.normal."b"]
|
||||||
|
d = ":buffer-close"
|
||||||
|
n = "goto_next_buffer"
|
||||||
|
p = "goto_previous_buffer"
|
||||||
|
t = ":new"
|
89
basic_configs/helix/molokai-terminal.toml
Normal file
89
basic_configs/helix/molokai-terminal.toml
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
# Terminal dark theme with bold and italics
|
||||||
|
# mahmad2000@protonmail.com
|
||||||
|
|
||||||
|
# base ui
|
||||||
|
"ui.menu" = { fg = "gray", bg = "black" }
|
||||||
|
"ui.menu.selected" = { modifiers = ["reversed"] }
|
||||||
|
"ui.window" = { bg = "black" }
|
||||||
|
"ui.popup" = { fg = "light-blue", bg = "black" }
|
||||||
|
"ui.help" = { fg = "white", bg = "black" }
|
||||||
|
|
||||||
|
# gutter opts
|
||||||
|
"ui.linenr" = { fg = "light-gray", bg = "black" }
|
||||||
|
"ui.linenr.selected" = { fg = "yellow", bg = "black", modifiers = ["bold"] }
|
||||||
|
"ui.gutter" = { bg = "black" }
|
||||||
|
"diff.plus" = "light-green"
|
||||||
|
"diff.minus" = "light-red"
|
||||||
|
"diff.delta" = "light-yellow"
|
||||||
|
"error" = "light-red"
|
||||||
|
"warning" = "yellow"
|
||||||
|
"debug" = "gray"
|
||||||
|
"info" = "light-blue"
|
||||||
|
"hint" = "light-blue"
|
||||||
|
|
||||||
|
# status-line
|
||||||
|
"ui.statusline" = { fg = "light-gray", bg = "black" }
|
||||||
|
"ui.statusline.insert" = { fg = "cyan", modifiers = ["italic"] }
|
||||||
|
"ui.statusline.select" = { fg = "magenta", modifiers = ["bold"] }
|
||||||
|
"ui.statusline.normal" = "light-gray"
|
||||||
|
|
||||||
|
# cursor
|
||||||
|
"ui.selection" = { fg = "gray", modifiers = ["reversed"] }
|
||||||
|
"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] }
|
||||||
|
"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed", "slow_blink"] }
|
||||||
|
|
||||||
|
# misc visual helpers
|
||||||
|
"ui.virtual" = "gray"
|
||||||
|
"underline.style" = "curl"
|
||||||
|
"diagnostic" = { modifiers = ["underlined"] }
|
||||||
|
"ui.text.focus" = { fg = "yellow", modifiers = ["bold"] }
|
||||||
|
|
||||||
|
# syntax coloring and modifiers
|
||||||
|
"attribute" = "green"
|
||||||
|
|
||||||
|
"type" = "light-blue"
|
||||||
|
"type.builtin" = { fg = "light-blue", modifiers = ["bold"] }
|
||||||
|
"type.enum.variant" = { fg = "green" , modifiers = ["bold"] }
|
||||||
|
|
||||||
|
"constructor" = { fg = "green", modifiers = ["italic"] }
|
||||||
|
|
||||||
|
"constant" = "red"
|
||||||
|
"constant.builtin" = { fg = "red", modifiers = ["italic"] }
|
||||||
|
"constant.character" = "cyan"
|
||||||
|
"constant.character.escape" = { fg = "red", modifiers = ["italic"] }
|
||||||
|
"constant.numeric" = "red"
|
||||||
|
|
||||||
|
"string" = "cyan"
|
||||||
|
"string.regexp" = { fg = "cyan", modifiers = ["italic"] }
|
||||||
|
"string.special" = { fg = "cyan", modifiers = ["bold", "italic"] }
|
||||||
|
|
||||||
|
"comment" = { fg = "gray", modifiers = ["italic"] }
|
||||||
|
|
||||||
|
"variable" = "blue"
|
||||||
|
"variable.builtin" = { fg = "blue", modifiers = ["bold"] }
|
||||||
|
"variable.parameter" = { fg = "blue", modifiers = ["italic"] }
|
||||||
|
"variable.other.member" = "green"
|
||||||
|
|
||||||
|
"punctuation.delimiter" = "light-gray"
|
||||||
|
|
||||||
|
"keyword.control" = "light-magenta"
|
||||||
|
"keyword.operator" = "light-magenta"
|
||||||
|
"keyword.function" = { fg = "light-magenta", modifiers = ["italic"] }
|
||||||
|
"keyword.directive" = { fg = "magenta", modifiers = ["bold", "italic"] }
|
||||||
|
"keyword.storage.type" = "light-cyan"
|
||||||
|
"keyword.storage.modifier" = { fg = "light-cyan", modifiers = ["italic"] }
|
||||||
|
|
||||||
|
"operator" = "light-red"
|
||||||
|
|
||||||
|
"function.builtin" = { fg = "white", modifiers = ["italic"] }
|
||||||
|
"function.macro" = { fg = "white", modifiers = ["bold", "italic"] }
|
||||||
|
"function.method" = { fg = "white", modifiers = ["bold"] }
|
||||||
|
"function.special" = { fg = "white", modifiers = ["bold", "italic"] }
|
||||||
|
"function" = "white"
|
||||||
|
|
||||||
|
"tag" = "magenta"
|
||||||
|
"tag.builtin" = { fg = "magenta", modifiers = ["bold"]}
|
||||||
|
|
||||||
|
"namespace" = "red"
|
||||||
|
"special" = { fg = "red", modifiers = ["italic"]}
|
||||||
|
|
|
@ -2,15 +2,17 @@ import json
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy, pandas
|
import numpy, pandas
|
||||||
import requests
|
import requests
|
||||||
|
import sys
|
||||||
|
|
||||||
sst_urls = {
|
sst_urls = {
|
||||||
"world": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_world2_sst_day.json",
|
"world": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_world2_sst_day.json",
|
||||||
"natlan": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_natlan1_sst_day.json"
|
"natlan": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_natlan1_sst_day.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print(sys.argv[1])
|
||||||
start_range = 29
|
start_range = 29
|
||||||
start_year = 1982
|
start_year = 1982
|
||||||
res = requests.get(sst_urls['world'])
|
res = requests.get(sst_urls[list(sst_urls)[int(sys.argv[1])]])
|
||||||
data = json.loads(res.text)
|
data = json.loads(res.text)
|
||||||
data = data[1:-3]
|
data = data[1:-3]
|
||||||
|
|
||||||
|
|
11
random_docs/lazygal.md
Normal file
11
random_docs/lazygal.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
## All Code changes for lazygal
|
||||||
|
|
||||||
|
- setup.py
|
||||||
|
|
||||||
|
remove `setuptools.log.info`, incorrect use breaks setup
|
||||||
|
- mediautils.py
|
||||||
|
|
||||||
|
change to codec copying, saves time and videos are pre-compressed av1 is smaller anyway
|
||||||
|
- sourcetree
|
||||||
|
|
||||||
|
add `'.webp': ImageFile` to `FORMATS` for inbuilt PIL webp support
|
Loading…
Reference in a new issue