Change your Github Settings > Appearance > Theme (light to dark, or dark to light) and reload this page! You will note that none of these solutions work!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From: https://github.com/ruby/setup-ruby/pull/551/files#diff-344d865bd0fa41eafba66242f01ff940b063438e51ec83de8e4a613910ee9637R38-R55 | |
if (engine === 'ruby') { | |
const rubyFloatVersion = common.floatVersion(version) | |
if (common.isHeadVersion(version)) { | |
console.log('Ruby master builds use included RubyGems') | |
} else if (rubyFloatVersion >= 3.0) { | |
await exec.exec(gem, ['update', '--system']) | |
} else if (rubyFloatVersion >= 2.6) { | |
await exec.exec(gem, ['update', '--system', '3.4.22']) | |
} else if (rubyFloatVersion >= 2.3) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: |7eter l-|. l3oling | |
// License: MIT | |
// Copyright: 2024 | |
// See: https://gist.github.com/pboling/f831235a1f3c5627f0341c4bbcf37ea9 | |
// Inspired by https://gist.github.com/RavenHursT/1dd87fb3460183b02ed1cf1dba065de8 | |
/* | |
Usage: | |
1. Add pre-requisites: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module HashDelegate | |
# Like `delegate :foo, to: :bar` only for hashes instead | |
# of objects. So these are the same: | |
# | |
# def foo | |
# bar[:foo] | |
# end | |
# | |
# hash_delegate :foo, to: :bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will not run on CI, because we don't need to store a "last run" on CI. | |
# On local dev it will allow you to run: | |
# bundle exec rspec --only-failures | |
# Which will only run the tests that failed last time. | |
persistence_file_path = "test-reports/last_run_status.txt" | |
class SpecOut | |
attr_reader :run_tracker | |
@instance_mutex = Mutex.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'benchmark' | |
gem 'securerandom' | |
gem 'openssl' | |
gem 'ruby-statistics', require: 'statistics' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :generate_engine do | |
# Get name sent from console | |
name = ENV['name'].downcase | |
# Store useful paths | |
engine_path = "engines/#{name}" | |
dummy_path = 'spec/dummy' | |
lib_files_path = 'lib/tasks/files' | |
dummy_relative_path = "#{engine_path}/#{dummy_path}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Legacy Ruby Support | |
on: | |
push: | |
branches: | |
- 'main' | |
- '*-maintenance' | |
- '*-dev' | |
- '*-stable' | |
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "colorized_string" | |
String.class_eval do | |
# Adapted from the Rails highlight text helper. | |
# http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-highlight | |
# | |
# NOT FOR USE WITH HTML (use the Rails standard one for that) | |
# |
A markdown table that I want to be aligned; alas, it is impossible!
👷👷👷 | 📬📬📬 | 💚💚💚 | 🚢🚢🚢 | ✅✅✅ | 🔀🔀🔀 | 🚀🚀🚀 | ⬇️⬇️⬇️ | 💨💨💨 |
---|---|---|---|---|---|---|---|---|
123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 |
Not even an attempt to pad with other characters works because the emoji are not even a multiple of the monospaced width.
| 👷👷👷0 | 📬📬📬0 | 💚💚💚0 | 🚢🚢🚢0 | ✅✅✅0 | 🔀🔀🔀0 | 🚀🚀🚀0 | ⬇️⬇️⬇️0 | 💨💨💨0 |
NewerOlder