Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Photo, no description
Photo, no description
Making Last FM Redundant With BASH
{
  let color = String.index "roygbv"
  let steps c i = match ((color i) - (color c) + 6) mod 6 with 0 -> 6 | d -> d
}

rule move dist cur = parse
| eof | '\n' { dist }
| _ as instr { move (dist + steps cur instr) instr lexbuf }

{
  Printf.printf "%d\n" (move 0 'r' (Lexing.from_channel stdin))
}
Photo, no description
GNU head logo
Photo, no description
Photo, no description
Bash: echo $(($(cat | sort | uniq -c | sort -nr | head -3 | rev | cut -d' ' -f1 | rev | tr '\n' '*')1))

OCaml :

rule ids = parse
| ['0' - '9']+ as id { int_of_string id :: ids lexbuf }
| '\n' { ids lexbuf }
| eof { [] }

{
  ids (Lexing.from_channel stdin)
  |> List.sort compare
  |> List.fold_left (fun acc id ->
    match acc with
    | (pre, c) :: r when id = pre -> (id, c+1) :: r
    | r -> (id, 1) :: r) []
  |> List.sort (fun (_, c) (_, c') -> compare c c')
  |> List.take 3
  |> List.map fst
  |> List.fold_left ( * ) 1
  |> Printf.printf "%d\n"
}
Photo, no description
Screenshot of a small piece of code that checks the extension on a filename and sets a variable accordingly in a simple command.
Photo, no description
Moving to Rust from Python and Bash specialization card showing its courses
Photo, no description
A screen shot of my PS1.
it has emojis and colour and text spread over 4 lines and most importantly a unicode snowman.
Photo, no description
Card: "timeout 5s ping localhost" with a real terminal run of timeout -v 5s ping localhost: five ping replies, "timeout: sending signal TERM to command 'ping'", then echo $? prints 124. Below: 124, -k 10s, -s INT and --preserve-status explained.
Photo, no description
Photo, no description
Photo, no description
Load more