.example {
display: grid;
grid-template-rows: auto auto auto auto auto;
grid-template-columns: 3fr 2fr;
grid-template-areas:
"title notes_title"
"policy_information notes_editor"
"loss_info_form notes_editor"
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
# -diff will keep git from showing compiled assets in diffs | |
# merge=ours tells git to use the merge driver we added in .git/config on our compiled assets | |
path/of/compiled/assets/script.js -diff merge=ours | |
path/of/compiled/assets/script.min.js -diff merge=ours | |
path/of/compiled/assets/style.css -diff merge=ours | |
path/of/compiled/assets/style.min.css -diff merge=ours |
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
function * gen() { | |
for (let i = 0 ; i < 5; i++) yield i; | |
} | |
const myGen = gen() | |
const getTotal = (gen) => { | |
let total = 0; | |
const add = (gen) => { | |
const currentGen = gen.next(); | |
if (!currentGen.done) { |
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
vagrant [vagrant]> pry | |
[1] pry(main)> def say_hi(name) | |
[1] pry(main)* puts "hi, #{name}" | |
[1] pry(main)* end | |
=> nil | |
[2] pry(main)> say_hi "Andrew" | |
hi, Andrew | |
=> nil | |
[3] pry(main)> number = 23 | |
=> 23 |