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 pandas as pd | |
for i in range(10): | |
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 win32com.client as win32 |
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
launch application "System Events" | |
delay 0.1 | |
ignoring application responses | |
tell application "System Events" to tell process "TextInputMenuAgent" | |
click menu bar item 1 of menu bar 2 | |
end tell | |
end ignoring | |
do shell script "killall 'System Events'" | |
delay 0.1 |
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
from PyPDF2 import PdfFileReader, PdfFileWriter | |
from PyPDF2.pdf import PageObject | |
from pathlib import Path | |
pdf_file = Path.home() / 'Downloads' / 'General harmony - practical, analysis and principle.pdf' | |
pdf_reader = PdfFileReader(str(pdf_file)) | |
writer = PdfFileWriter() | |
# assume page 0 is the desired size | |
page0 = pdf_reader.getPage(0) |
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
-- after/ftplugin/beancount.lua | |
vim.opt.wrap = false | |
vim.opt.tabstop = 4 | |
vim.opt.softtabstop = 4 | |
vim.opt.shiftwidth = 4 | |
vim.opt.expandtab = true | |
vim.g.beancount_separator_col = 55 | |
vim.g.beancount_root = vim.trim(vim.fn.system('pwd')) .. "/" .. "main.bean" |
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
return { | |
{ | |
"hrsh7th/nvim-cmp", | |
dependencies = { | |
"crispgm/cmp-beancount", | |
"hrsh7th/cmp-nvim-lsp-signature-help", | |
}, | |
opts = function(_, opts) | |
local cmp = require "cmp" |