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 datetime | |
import json | |
import os | |
import uuid | |
import pytz | |
import requests | |
from dotenv import load_dotenv | |
load_dotenv() |
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
-- EDIT: moved to https://github.com/smjonas/live-tests-busted.nvim | |
local ns = vim.api.nvim_create_namespace("live-tests") | |
vim.cmd("highlight TestSuccess guifg=#56d364") | |
vim.cmd("highlight TestFailure guifg=#f97583") | |
local run_command = function(bufnr, command) | |
vim.api.nvim_buf_clear_namespace(bufnr, ns, 0, -1) | |
local tests = {} |
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
-- Usage: type :IncrementalRename <new_name> while your cursor is placed above an identifier (LSP must be enabled) | |
-- Update: this gist will no longer be updated since this command has been turned into a plugin! | |
-- You can find the plugin here: https://github.com/smjonas/inc-rename.nvim | |
local state = { | |
added_lines = false, | |
orig_lines = {}, | |
lsp_positions = {}, | |
} |
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
--[[ | |
MIT License | |
Copyright (c) 2022 Jonas Strittmatter | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
typedef struct { | |
char *icao; | |
char *iata; | |
float lattDegree; | |
float longDegree; | |
int height; | |
} Airport; | |
typedef struct { | |
char *flightNumber; |