INNER CODE UNIT · Ruby

String

Automattic/pocket-casts-android · scripts/themes/generate_kotlin_compose.rb:10

class String
  def uncapitalize
    self[0, 1].downcase + self[1..]
  end
end

def int_to_hex(value)
  (2.55 * value.to_f).round.to_s(16).upcase.rjust(2, '0')
end

tokens = download_themes
exit if tokens.nil?

theme_to_code_lines = {}

tokens.each do |token_attrs|
  key = token_attrs[:key]
  next if key.start_with?('filter_ui_') ||

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…