INNER CODE UNIT · Ruby

int_to_hex

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

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_') ||
          key.start_with?('filter_interactive_') ||
          key.start_with?('filter_icon_') ||
          key.start_with?('filter_text_') ||
          key.start_with?('image_') ||
          key.start_with?('podcast_icon_') ||
          key.start_with?('podcast_ui_') ||

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…