This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# The FreeType rasterizer needs to know the device DPI for best results | |
# (changes require restart) | |
dpi: | |
x: 81.0 | |
y: 81.0 | |
# Display tabs using this many cells (changes require restart) | |
tabspaces: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# everything gets better with vim bindings | |
setw -g mode-keys vi | |
unbind [ | |
bind '[' copy-mode | |
unbind p | |
bind p paste-buffer | |
bind-key -T copy-mode-vi v send-keys -X begin-selection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# espanso configuration file | |
# This is the default configuration file, change it as you like it | |
# You can refer to the official documentation: | |
# https://espanso.org/docs/ | |
# Matches are the substitution rules, when you type the "trigger" string | |
# it gets replaced by the "replace" string. | |
enable_passive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# The FreeType rasterizer needs to know the device DPI for best results | |
# (changes require restart) | |
# Display tabs using this many cells (changes require restart) | |
tabspaces: 4 | |
# When true, bold text is drawn using the bright variant of colors. | |
draw_bold_text_with_bright_colors: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# The FreeType rasterizer needs to know the device DPI for best results | |
# (changes require restart) | |
dpi: | |
x: 81.0 | |
y: 81.0 | |
# Display tabs using this many cells (changes require restart) | |
tabspaces: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# everything gets better with vim bindings | |
setw -g mode-keys vi | |
unbind [ | |
bind '[' copy-mode | |
unbind p | |
bind p paste-buffer | |
bind-key -T copy-mode-vi v send-keys -X begin-selection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import httpx | |
import subprocess | |
from bs4 import BeautifulSoup | |
BING_BASE = 'https://bing.com' | |
BING_WALLPAPER_ENDPOINT = 'http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=en-US' | |
WALLPAPER_HOME = os.path.expanduser('~/bing_wallpapers') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.focusLeftGroup", | |
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.focusRightGroup", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"python.linting.flake8Enabled": true, | |
"python.linting.pylintEnabled": false, | |
"files.autoSave": "afterDelay", | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"workbench.colorTheme": "Mustang", | |
"gitlens.historyExplorer.enabled": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
number = int(input('Enter a number ')) | |
sum = sum(range(1, number + 1)) | |
print(f'sum is {sum}') | |
except ValueError: | |
print('Not a number') |
NewerOlder