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 os | |
import json | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import requests | |
from matplotlib.offsetbox import AnnotationBbox, OffsetImage | |
from concurrent.futures import ThreadPoolExecutor | |
# Example URLS |
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 os | |
import json | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pprint | |
import requests | |
from matplotlib.offsetbox import AnnotationBbox, OffsetImage | |
# Useful URLS |
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
#include <array> | |
#include <chrono> | |
#include <numeric> | |
#include <sstream> | |
#include <thread> | |
#include <vector> | |
using Nanoseconds = std::chrono::nanoseconds; | |
using Microseconds = std::chrono::microseconds; | |
using Milliseconds = std::chrono::milliseconds; |
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
const expect = @import("std").testing.expect; | |
const std = @import("std"); | |
pub fn main() anyerror!void { | |
var alloc = std.heap.GeneralPurposeAllocator(.{}){}; | |
defer std.debug.assert(!alloc.deinit()); | |
try day01(&alloc.allocator); | |
} |
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
mod data; | |
/* | |
pub mod day00 { | |
use std::fmt::Write; | |
pub fn run() -> String { | |
let mut result = String::with_capacity(128); | |
let answer_part1 = part1(crate::data::DAY00); |