Skip to content

Instantly share code, notes, and snippets.

View igneus's full-sized avatar

Jakub Pavlík igneus

View GitHub Profile
# decode the inscription around the SkKySIO logo
# https://commons.wikimedia.org/wiki/File:SkKySIO.svg
code = 'oiooiioooiioiiiioiiooiiioiioiiiioiiiooii'
p code
.tr('oi', '01')
.scan(/.{8}/)
.collect {|i| i.to_i(2).chr }
@igneus
igneus / shaded_staff_lines.ly
Last active November 24, 2024 19:35
LilyPond, square notation: add shade to selected staff lines
\version "2.24.1"
\include "gregorian.ly"
#(set-global-staff-size 32)
\layout {
\override VaticanaStaff.StaffSymbol.color = "black"
\override VaticanaStaff.LedgerLineSpanner.color = "black"
@igneus
igneus / skipped_ordinary_time_sundays3.rb
Created February 15, 2026 21:16
Which are the most frequently skipped Ordinary time Sundays in the given range of years?
# Which are the most frequently skipped Ordinary time Sundays
# in the given range of years?
require 'calendarium-romanum/cr'
SUNDAYS = (2..33).to_a.freeze
SANCTORALE = CR::Data::GENERAL_ROMAN_ENGLISH.load
def skipped_sundays(year)
cal = CR::Calendar.new year, SANCTORALE