Skip to content

Instantly share code, notes, and snippets.

View JoosepAlviste's full-sized avatar
🐤

Joosep Alviste JoosepAlviste

🐤
View GitHub Profile
@JoosepAlviste
JoosepAlviste / typescript.lua
Last active April 2, 2025 19:12
Automatically add async to function declaration when typing "await"
---@param types string[] Will return the first node that matches one of these types
---@param node TSNode|nil
---@return TSNode|nil
local function find_node_ancestor(types, node)
if not node then
return nil
end
if vim.tbl_contains(types, node:type()) then
return node
@JoosepAlviste
JoosepAlviste / README.md
Last active December 7, 2018 20:19
KV Scraping

KV scraper script to notify of new appartments

The script will keep running and will make a check every minute. If there have been any changes, the changes will be printed to the console and a macOS notification will be sent.

  • pip install -r requirements.txt
  • python scrape.py