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
# 1) Use VCR.use_cassette in your let block. This will use | |
# the cassette just for requests made by creating bar, not | |
# for anything else in your test. | |
let(:foo) { VCR.use_cassette("foo") { create(:bar) } } | |
it "uses foo" do | |
foo | |
end | |
# 2) Wrap the it block that uses #foo in VCR.use_cassette. |
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
/* gum - v0.1.0 - 3/08/2012 | |
* https://github.com/rwldrn/dmv (gum) | |
* Copyright (c) 2012 Rick Waldron <[email protected]>; Licensed MIT */ | |
(function( window, navigator ) { | |
// 2012-03-08 Inspired by https://gist.github.com/f2ac64ed7fc467ccdfe3 | |
// If unprefix.js is available, use it. | |
// https://github.com/rwldrn/unprefix.js | |
// Otherwise... | |
if ( !window.unprefix ) { |
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
SELECT tr.id, rFrom.titleCache as rFrom, rTo.titleCache as rTO, type.titleCache FROM TaxonRelationship tr INNER JOIN TaxonBase rFrom ON tr.relatedfrom_id = rFrom.id INNER JOIN TaxonBase rTo ON tr.relatedto_id = rTo.id INNER JOIN DefinedTermBase type ON tr.type_id = type.id WHERE type.titleCache not like 'Congruent to' | |
ORDER BY tr.id DESC |
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
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 | |
keys_zone=microcache:5m max_size=1000m; | |
# Virtualhost/server configuration | |
server { | |
listen 80; | |
server_name yourhost.domain.com; | |
# Define cached location (may not be whole site) |