View user.css
@-moz-document url-prefix(""), url-prefix(""), regexp("*/notifications.*") {
.list-group-item.navigation-focus {
outline: 1px black dashed;
View faraday_proxy.rb
#!/usr/bin/env ruby
require 'faraday'
require 'logger'
url = ''
proxy = ENV.fetch('PROXY')
logger =$stdout)
conn = do |faraday|
faraday.response :logger, logger
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script id="jsbin-javascript">
View bad.rb
require 'active_model'
require 'mongo_mapper'
MongoMapper.database = 'testing'
class Foo
include MongoMapper::Document
View x2str.rb
#!/usr/bin/env ruby
def x2str(x)
# assume x is hex format of UTF-8 string, so that process 3 bytes at once
x.gsub(/\\x(..)\\x(..)\\x(..)/) {
x = ARGV[0]
View str2x.rb
#!/usr/bin/env ruby
def str2x(str)
str.unpack("H*").first.scan(/[0-9a-z]{2}/).map{ |x| '\x' + x.upcase }.join
str = ARGV[0]
unless str
puts <<USAGE
Usage: ruby #{$0} STRING