$ ruby fake_smtp_server
require "net/smtp"
= content_tag(:div, html_attributes) do | |
= yield_or_property(:message) |
$('form .input.array').each(function() { | |
var $wrapper = $('.array-inputs', this); | |
var $insertArea = $(".array-input button[data-action=add]").closest(".array-input"); | |
$(".array-input button[data-action=add]", $(this)).click(function(e) { | |
$('.array-input:first-child', $wrapper).clone(true).insertBefore($insertArea).find('input').val('').focus(); | |
}); | |
$('.array-input button[data-action=remove]', $wrapper).click(function() { | |
if ($('.array-input', $wrapper).length > 2) { | |
$(this).parent('.array-input').remove(); | |
} |
class Gemstash < Formula | |
desc "A RubyGems.org cache and private gem server." | |
homepage "https://github.com/bundler/gemstash/" | |
url "https://github.com/bundler/gemstash/archive/v1.0.4.tar.gz" | |
sha256 "d3479b692a3a14844b703e0be033e29e9fca99899cf0b887d77c8759dcfbebd5" | |
def install | |
ENV["GEM_HOME"] = libexec | |
system "gem", "build", "gemstash.gemspec" | |
system "gem", "install", "gemstash-#{version}.gem" |
require "benchmark" | |
require "securerandom" | |
n = 1_000_000 | |
Benchmark.bm(7) do |x| | |
x.report("uuid:") { n.times do; SecureRandom.uuid; end } | |
end |
require "pg" | |
require "benchmark" | |
require "faker" | |
def say(msg) | |
puts msg | |
end | |
conn = PG.connect(dbname: "postgres") |
FROM gliderlabs/alpine:3.2 | |
RUN apk-install curl |
Clicking this number<sup>[1](#note-1)</sup> will lead you to a footnote.
---
<sup name="note-1">1</sup>: Handy! Now click the return link to go back.