- Postico client for mac
- pgcli - Postgres CLI with autocompletion and syntax highlighting
- pghero - Server and query performance dashboard
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
= content_tag(:div, html_attributes) do | |
= yield_or_property(:message) |
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
$('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(); | |
} |
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
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" |
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
require "benchmark" | |
require "securerandom" | |
n = 1_000_000 | |
Benchmark.bm(7) do |x| | |
x.report("uuid:") { n.times do; SecureRandom.uuid; end } | |
end |
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
require "pg" | |
require "benchmark" | |
require "faker" | |
def say(msg) | |
puts msg | |
end | |
conn = PG.connect(dbname: "postgres") |
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 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.
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
<?php | |
$post = new Post(); | |
$post->setTitle('Awesome title'); | |
$post->setContent('My very awesome article'); | |
$comment = new Comment(); | |
$comment->setAuthor('Alice'); | |
$comment->setText('That\'s a very great article!'); |