The World According to Scott
  • Projects
  • About
Sign in Subscribe

TIL how to restart an Apple TV remote

  • Scott Swezey

Scott Swezey

Aug 26, 2022
TIL how to restart an Apple TV remote
Photo by Omar Rodriguez / Unsplash
If your Apple TV remote isn’t working
If your remote isn’t working as expected, learn what to do.
Apple Support

AOC 2022-08 (Treetop Tree House)

Mix.install([ {:kino, "~> 0.7.0"} ]) Input input = Kino.Input.textarea("Input") input = input |> Kino.Input.read() |> String.split() grid = input |> Enum.with_index() |> Enum.reduce(%{}, fn {line, row}, acc -> line |> String.graphemes() |> Enum.with_index() |> Enum.reduce(acc, fn {height, col}, acc2 -> Map.put(acc2, {row, col}
Dec 8, 2022 1 min read

AOC 2022-06 (Tuning Trouble)

Mix.install([ {:kino, "~> 0.7.0"} ]) Common Code defmodule Day6 do def find_unique_prefix(input, length) do input |> String.graphemes() |> Stream.chunk_every(length, 1) |> Stream.map(&count_unique_elements/1) |> Enum.find_index(&(&1 == length)) |> Kernel.+(length) end defp count_unique_elements(list) do list |> MapSet.new() |> MapSet.
Dec 6, 2022

AOC 2022-05 (Supply Stacks)

Mix.install([ {:kino, "~> 0.7.0"} ]) Common Code defmodule Transpose do def it([[] | _]), do: [] def it(list) when is_list(list) do [Enum.map(list, &hd/1) | it(Enum.map(list, &tl/1))] end end Input input = Kino.Input.textarea("Input") [stacks, instructions] = input |> Kino.Input.read() |> String.split("\n\
Dec 5, 2022 1 min read
The World According to Scott © 2023
  • Mastodon
  • Github
  • Stack Overflow
  • LinkedIn
Powered by Ghost