Skip to content

Instantly share code, notes, and snippets.

View fernandotakai's full-sized avatar

Fernando Alves fernandotakai

View GitHub Profile
# 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
# 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
# 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
# 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
# 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
# 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
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')
// 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",
@fernandotakai
fernandotakai / settings.json
Created April 24, 2020 18:59
initial settings.json
// 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,
try:
number = int(input('Enter a number '))
sum = sum(range(1, number + 1))
print(f'sum is {sum}')
except ValueError:
print('Not a number')