stow
This commit is contained in:
parent
88a083861c
commit
9f27ccae29
17 changed files with 1685 additions and 0 deletions
17
global/.gitconfig
Normal file
17
global/.gitconfig
Normal file
|
@ -0,0 +1,17 @@
|
|||
[user]
|
||||
name = foozzi
|
||||
email = foozzione@gmail.com
|
||||
[core]
|
||||
excludesfile = "$HOME/.gitignore"
|
||||
pager = delta
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[delta]
|
||||
navigate = true # use n and N to move between diff sections
|
||||
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
[diff]
|
||||
colorMoved = default
|
||||
[init]
|
||||
defaultBranch = master
|
28
global/.ideavimrc
Normal file
28
global/.ideavimrc
Normal file
|
@ -0,0 +1,28 @@
|
|||
" load system vim config
|
||||
source ~/.vimrc
|
||||
set ideajoin
|
||||
" .ideavimrc is a configuration file for IdeaVim plugin. It uses
|
||||
" the same commands as the original .vimrc configuration.
|
||||
" You can find a list of commands here: https://jb.gg/h38q75
|
||||
" Find more examples here: https://jb.gg/share-ideavimrc
|
||||
|
||||
|
||||
" Don't use Ex mode, use Q for formatting.
|
||||
map Q gq
|
||||
|
||||
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
|
||||
"" Map \r to the Reformat Code action
|
||||
"" map \r <Action>(ReformatCode)
|
||||
|
||||
"" Map <leader>d to start debug
|
||||
"map <leader>d <Action>(Debug)
|
||||
|
||||
"" Map \b to toggle the breakpoint on the current line
|
||||
"map \b <Action>(ToggleLineBreakpoint)
|
||||
""
|
||||
map <leader>nf <Action>(NewFile)
|
||||
map <leader>nd <Action>(NewDir)
|
||||
map <leader>tt <Action>(ActivateTerminalToolWindow)
|
||||
map <leader>rr <Action>(IdeaVim.ReloadVimRc.reload)
|
||||
map <leader>go <Action>(GotoDeclaration)
|
||||
map <leader>ru <Action>(runShellFileAction)
|
BIN
global/.ssh/config
Normal file
BIN
global/.ssh/config
Normal file
Binary file not shown.
11
global/.tern-project
Normal file
11
global/.tern-project
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ecmaVersion": 6,
|
||||
"libs": [
|
||||
"browser",
|
||||
"react"
|
||||
],
|
||||
"plugins": {
|
||||
"node": {},
|
||||
"jsx": {}
|
||||
}
|
||||
}
|
25
global/scripts/vimwiki_diary_template
Executable file
25
global/scripts/vimwiki_diary_template
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env python3
|
||||
import datetime
|
||||
import urllib.request
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
|
||||
weather_url = "https://wttr.in/Ottawa?format="
|
||||
url_part = "Time:+%T;+%l:+%c+%t+(%f);+%m;+Precipitation:+%p+(3hour);+Pressure:+%P;+UV index:+%u;+Sunrise:+%S;+Dawn:+%D;"
|
||||
encode_url_part = quote_plus(url_part)
|
||||
|
||||
template = """
|
||||
Date: {date}
|
||||
Weather: {weather}
|
||||
|
||||
== Notes ==
|
||||
"""
|
||||
|
||||
current_date_time = datetime.datetime.now()
|
||||
formatted_date_time = current_date_time.strftime('%a %b %d %H:%M:%S %Z %Y')
|
||||
|
||||
response = urllib.request.urlopen(weather_url + encode_url_part)
|
||||
weather_data = response.read().decode("utf-8").replace("+", " ")
|
||||
|
||||
|
||||
print(template.format(date=formatted_date_time, weather=weather_data))
|
Loading…
Add table
Add a link
Reference in a new issue