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 typing import Dict, List, Set, Tuple | |
from advent import Input | |
import re | |
from collections import defaultdict | |
input = ( | |
Input(day = 9) | |
# .all() | |
.ints() | |
# .lines() |
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 typing import Dict, List, Set, Tuple | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil | |
input = ( | |
Input( | |
day = 14, | |
# sample = True, |
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 typing import Dict, List, Mapping, Sequence, Set, Tuple | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil | |
input = ( | |
Input( | |
day = 16, | |
# sample = True, |
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 typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil | |
input = ( | |
Input( | |
day = 18, | |
# sample = True, |
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 typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil | |
input = ( | |
Input( | |
day = 19, | |
# sample = True, |
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 typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil | |
input = ( | |
Input( | |
day = 20, | |
# sample = True, |
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 typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil, floor | |
input = ( | |
Input( | |
day = 22, | |
# sample = True, |
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 __future__ import annotations | |
from typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil, floor | |
# input = ( | |
# Input( |
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 __future__ import annotations | |
from typing import Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union | |
from advent import Input | |
import re | |
from collections import defaultdict | |
from math import ceil, floor | |
input = ( | |
Input( |
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 express from "express"; | |
import { Socket } from "net"; | |
import { PromiseSocket } from "promise-socket"; | |
import morgan from "morgan"; | |
const { TARGET_IP, SENSOR_PORT, SENSOR_TOKEN } = process.env; | |
const packetSize = 1448; | |
const SELF = "whatevermyipis:12345"; | |
const TARGET = "iot.hub"; |