This file contains hidden or 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
local mkenvlist_mt = { | |
__index = function(self, index) | |
for _, env in ipairs(self._ENV_READ_LIST) do | |
local value = env[index] | |
if value != nil then | |
return value | |
end | |
end | |
return nil | |
end, |
This file contains hidden or 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 time import sleep | |
import io | |
import gzip | |
import requests | |
SITE = "https://planet.openstreetmap.org" | |
STATE_PATH = "/replication/changesets/state.yaml" | |
CHANGES_PATH = "/replication/changesets/" | |
LAST_RUN_KEY = "last_run: " |
This file contains hidden or 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
"stoopid" | |
def f_ternary(x: int) -> int: | |
return 4 if x == 7 else 7 | |
def f_old_ternary(x: int) -> int: | |
return x == 4 and 7 or 4 |