Please note: See character.construction/emoji-categories for more up-to-date listings.
😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 🥰 😗 😙 😚
Please note: See character.construction/emoji-categories for more up-to-date listings.
😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 🥰 😗 😙 😚
ruby -e'_,__="",binding;loop do$><<">> "if$/>_ | |
puts"=> %p"%[__.eval(_+=gets||exit!),_=""] | |
rescue Exception | |
puts"\e[31m%p\e[0m"%[$!,_=""]if/d e|ee/!~"#$!"end' |
# Colorizes the output of the standard library logger, depending on the logger level: | |
# To adjust the colors, look at Logger::Colors::SCHEMA and Logger::Colors::constants | |
require 'logger' | |
class Logger | |
module Colors | |
VERSION = '1.0.0' | |
NOTHING = '0;0' |
Benchmark Code: https://github.com/janlelis/paint/blob/main/benchmark.rb
# TERMINAL ANSI COLORS BENCHMARK
ruby: 3.1.2
paint: 2.3.0
rainbow: 3.1.1
term/ansicolor 1.7.1
pastel 0.8.0
# .railsrc for Rails 3, encoding: utf-8 | |
# see http://rbjl.net/49-railsrc-rails-console-snippets | |
if !Rails.application then warn "Rails isn't loaded, yet... skipping .railsrc" else | |
# # # | |
def ripl?; defined?(Ripl) && Ripl.instance_variable_get(:@shell); end | |
# # # | |
# loggers |
#!/usr/bin/env ruby | |
require 'rubygems' unless defined? Gem | |
require 'clipboard' | |
if $stdin.tty? && $*.empty? | |
puts Clipboard.paste # the trailing new-line is intended ;) | |
else | |
Clipboard.copy ARGF.read | |
end |
See character.construction/emoji-vs-text for more up-to-date listings.
Text (U+FE0E) | Default | Emoji (U+FE0F) | Name |
---|---|---|---|
😀︎ | 😀 | 😀️ | GRINNING FACE |
😁︎ | 😁 | 😁️ | GRINNING FACE WITH SMILING EYES |
😂︎ | 😂 | 😂️ | FACE WITH TEARS OF JOY |
🤣︎ | 🤣 | 🤣️ | ROLLING ON THE FLOOR LAUGHING |
😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 😗 😙 😚
#!/usr/bin/env ruby | |
# USAGE | |
# gemfile [--bundle] [--details] [--fetch] [--sorted] [--commentate] | |
# DESCRIPTION | |
# Displays gem urls and summaries found in a Gemfile. | |
# cd into a directory with a Gemfile and run `gemfile` | |
# PREREQUISITES | |
# gem install bundler paint | |
# FLAGS |