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
songs = [ | |
{ | |
id: 1, | |
title: "Mother", | |
author: "Pink Floyd", | |
album: "The Wall" | |
}, | |
{ | |
id: 2, | |
title: "Since I've been Loving You", |
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
songs = [ | |
{ | |
id: 1, | |
title: "Mother", | |
author: "Pink Floyd", | |
album: "The Wall" | |
}, | |
{ | |
id: 2, | |
title: "Since I've been Loving You", |
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 Song | |
# your code here | |
end | |
song = Song.new( | |
id: 1, | |
title: "Mother", | |
author: "Pink Floyd", | |
album: "The Wall" | |
) |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin dimensions($width, $height: 0) | |
@if $height == 0 | |
width: $width | |
height: $width | |
@else |
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
`make clean;` | |
`make setup;` | |
Dir.glob('./*.pdf') do |pdf_file| | |
`pdftotext #{pdf_file} -raw;` | |
end | |
require 'pry' | |
require 'csv' |
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
<p> | |
Slow-carb Tumblr High Life biodiesel, stumptown keytar art party mumblecore PBR next level chillwave McSweeney's meh butcher Bushwick. | |
Twee try-hard meditation viral, master cleanse butcher pour-over Pitchfork Vice <span data-tooltip="This is a wide tooltip">farm-to-table</span> paleo Portland brunch. | |
Ugh plaid lomo YOLO food truck, mustache migas +1 viral health goth tousled. Tofu chambray Portland chillwave chia authentic. | |
Typewriter hoodie freegan Intelligentsia fashion axe. <span data-tooltip="Something to say here">Listicle +1 craft beer tattooed mlkshk jean</span> shorts, Banksy ethical selfies Pitchfork Portland irony. | |
Tattooed four loko cardigan, ugh cold-pressed heirloom ennui meditation fap literally authentic migas. | |
</p> |
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
[data-has-tooltip] { | |
position: relative; | |
display: inline-block; | |
box-sizing: border-box; | |
border-bottom: 0.167rem dashed #b4e7f8; | |
cursor: help; | |
} | |
[data-tooltip], | |
[data-tooltip]:after { | |
visibility: hidden; |
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
func greet(name: String, day: String, special: String) -> String { | |
return "Hello \(name), today is \(day), and the special is \(special)." | |
} | |
greet("Bob", day: "Tuesday", special: "Catfish") |
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 greet(name, day, special) { | |
// your code here | |
} | |
greet('Robert', 'Tuesday', 'fried catfish'); // This should return the String "Hello, Robert. Today is Tuesday, and the special is fried catfish." | |
// ========================================================== | |
function sumOf(numbers) { | |
// your code here | |
} |
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
var str = "great minds think alike"; | |
var output = []; | |
str.split('').forEach(function(letter) { | |
switch (letter) { | |
// your code here | |
} | |
}); | |
output.join(''); // should be "grtmndsthnklk" |
OlderNewer