Skip to content

Instantly share code, notes, and snippets.

View oisin's full-sized avatar
💭
Thing.

Oisín Hurley oisin

💭
Thing.
View GitHub Profile
@oisin
oisin / top100.csv
Created April 30, 2024 19:10
Ireland Top 100 Golf Courses 2024
1 ROYAL PORTRUSH www.royalportrushgolfclub.com
2 PORTMARNOCK www.portmarnockgolfclub.ie
3 ROYAL COUNTY DOWN www.royalcountydown.org
4 LAHINCH www.lahinchgolf.com
5 BALLYBUNION (OLD) www.ballybuniongolfclub.com
6 COUNTY LOUTH (BALTRY) www.countylouthgolfclub.com
7 THE GOLF COURSE AT ADARE MANOR www.adaremanor.com
8 WATERVILLE www.watervillegolflinks.ie
9 TRALEE www.traleegolfclub.com
10 THE ISLAND www.theislandgolfclub.com
@oisin
oisin / main.rs
Last active December 7, 2023 09:30
AOC Day 4 Part 2
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
use std::collections::HashSet;
#[derive(Debug)]
#[derive(Clone)]
struct CardRecord {
wins: u32,
@oisin
oisin / main.rs
Created December 6, 2023 18:10
AOC 23 Day 4 Part 1
#![allow(dead_code, unused_variables, unused_mut)]
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
use std::collections::HashSet;
fn main() {
let args: Vec<String> = env::args().collect();
@oisin
oisin / main.rs
Created December 5, 2023 19:59
AOC 23 Day3 Part 2
#![allow(dead_code, unused_variables, unused_mut)]
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
// PartNumber contains the i32 parsed value of the string slice that
// represents this part number, and records the start and end positions
// of the slice in the row.
#[derive(Clone, Copy)]
@oisin
oisin / main.rs
Created December 4, 2023 10:19
AOC 23 Day 2
#![allow(dead_code, unused_variables, unused_mut)]
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
struct Game {
id: u32,
r: u32,
g: u32,
@oisin
oisin / main.rs
Created December 3, 2023 22:03
AOC 23 Day 1
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
fn main() {
let args: Vec<String> = env::args().collect();
if args.len() != 2 {
eprintln!("Usage: {} <filename>", args[0]);
std::process::exit(1);
}
@oisin
oisin / links.txt
Last active December 5, 2022 19:13
ITC AOC 22 Rusters
@oisin
oisin / WIN10.MD
Created April 27, 2022 20:07 — forked from hungneox/WIN10.MD
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

@oisin
oisin / aoc_2021_puzzle_1
Last active December 1, 2021 20:55
AOC 2021 Puzzle 1
Code in ruby for Puzzle 1 in the Advent of Code series of puzzles.
@oisin
oisin / mulledwine.txt
Created December 18, 2020 17:59
Mulled Wine Recipe
Mulled Wine
8l of red wine (minimum 13% alcohol)
zest of 2 large oranges
1 clove-covered orange
500g demarara sugar
0.5l orange juice
0.33l gin
4 cinnamon sticks
1tsp ground cinnamon