Install auditing on a per-table basis, e.g.:
SELECT audit.audit_table('billing.subscriptions'),
audit.audit_table('billing.customers'),
audit.audit_table('billing.plans');
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
.legal ol { | |
counter-reset: section; | |
list-style-type: none; | |
padding: 0; | |
margin: 1em 0 1em 3em; | |
} | |
.legal ol ~ ol { | |
counter-reset: none; | |
} |
Install auditing on a per-table basis, e.g.:
SELECT audit.audit_table('billing.subscriptions'),
audit.audit_table('billing.customers'),
audit.audit_table('billing.plans');
require 'securerandom' | |
module Oauth | |
class StubProvider | |
AUTHORIZATION_TTL = 60.seconds | |
ACCESS_TTL = 1.hour | |
def initialize(authorization_ttl: AUTHORIZATION_TTL, access_ttl: ACCESS_TTL, **meta) | |
@authorization_ttl = authorization_ttl | |
@access_ttl = access_ttl |
049c18da630bd3e171c38668e12933e361eea5701ace20d78b86b4725126ba3f3e89d78d5528576ea216619c3cdfc74bf5e24aae70a16a693e2be5714e862811a9 |
def explicit | |
return 42 | |
rescue | |
:rescued | |
else | |
:else | |
end | |
def implicit | |
42 |
class Hash | |
# Returns a nested intersection of two Hashes. | |
# | |
# This draws a parallel to &/intersect on Array and Set. | |
# | |
# FIXME: However, those methods are not recursive, so it may make more sense | |
# to give this another name. | |
# | |
# Examples: | |
# |
Postgres does not really fully support unicode the way some users might expect. Unicode (much to some people's chagrin) supports multiple ways of encoding complex characters.
For instance, the character ば
could be:
\u306f\u3099
)\u3070
)Like-wise, á
and á
are different (\u0061\u0301
and \u00e1
).
/* | |
* Prevent INSERTs or UPDATEs that introduce NULLs. Useful for when the | |
* table is too big to add NOT NULL constraints without downtime that | |
* can't currently be performed. | |
* | |
* Use like: | |
* | |
* CREATE TRIGGER <name> | |
* AFTER INSERT OR UPDATE | |
* ON <table> |
# Chromedriver has this annoying bug where when trying to click a button or | |
# something which is obscured by another element due to scrolling, it fails to | |
# click the button or link. | |
# | |
# This is a workaround to always scroll the element into view after finding it. | |
module Capybara | |
module Chrome | |
module Finders | |
def find(*args) | |
super(*args).tap do |node| |