This is me coining the term "meta-docker", defined as running Docker in Docker.
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
(-----A-----(-----) B ) | |
SELECT <columns> | |
FROM table_A A | |
LEFT JOIN table_B B | |
ON A.key = B.key | |
(-----A-----( ) B ) | |
SELECT <columns> | |
FROM table_A A | |
LEFT JOIN table_B B |
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
let obj = { | |
fooFn: function() { | |
console.log('foofn: hi!'); | |
}, | |
barFn: function() { | |
console.log('barFn: calling fooFn'); | |
this.fooFn(); | |
console.log('barFn: called fooFn'); | |
} | |
} |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
Hello, world! |
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
Rehearsal ---------------------------------------------------------------- | |
case_comparison 0.690000 0.000000 0.690000 ( 0.702333) | |
case_range 4.810000 0.020000 4.830000 ( 4.958253) | |
case_predefined_range 2.880000 0.010000 2.890000 ( 2.933686) | |
conditional_comparison 0.690000 0.000000 0.690000 ( 0.705765) | |
conditional_range 4.560000 0.010000 4.570000 ( 4.610029) | |
conditional_predefined_range 2.730000 0.000000 2.730000 ( 2.771041) | |
------------------------------------------------------ total: 16.400000sec | |
user system total real |
The other day, I found myself having to change configuration for some associations. Not wanting to break things, I decided to write some tests to explicitly describe how things are hooked up. While doing this, I decided to try my hand at writing a simple DSL to reduce boilerplate in my tests.
Simply extend AssociationTest
in your test class (which must be a child of ActiveSupport::TestCase
), and use the DSL.
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
import { Component } from 'react' | |
export default ClassBasedToggle extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
on: false, | |
} | |
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
# frozen_string_literal: true | |
ruby '2.5.3' | |
source "https://rubygems.org" | |
gem 'timecop' | |
gem 'activesupport' |
OlderNewer