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
=begin | |
Welcome to 'The Bar' | |
An elite British establishment in Her Majesty's former colony, otherwise known as the 'United States'. | |
Step over to the bar and enjoy a lovely drink of your choosing. | |
=end | |
#The bar inventory: | |
wine_rack = [ | |
{ name: "Chamisal", | |
vintage: 2014, |
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 makeInput(contents) { | |
return $("<input>", {type: "text", value: contents, "class": "form-control"}) | |
} |
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 makeInput(contents) { | |
return <input type="text" value={contents} className="form-control" /> | |
} |
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
<div class="map-wrapper"> | |
<p>Here's a map!</p> | |
<div id="map"></div> | |
<script> | |
var map; | |
function initMap() { | |
map = new google.maps.Map(document.getElementById('map'), { | |
center: {lat: -34.397, lng: 150.644}, | |
zoom: 8 | |
}); |
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
<div className="map-wrapper"> | |
<p>Here's a map!</p> | |
<GoogleMap | |
defaultCenter={{ lat: -34.397, lng: 150.644 }} | |
defaultZoom={8} | |
/> | |
</div> |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6">/* some content */</div> | |
<div class="col-md-6">/* some content */</div> | |
</div> | |
</div> |
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
<div class="news"> | |
<div class="hot-news"> | |
<div class="latest-news"> | |
</div> |
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
.news { @include outer-container; } | |
.hot-news, | |
.latest-news {@include span(6); } |
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
// Parse URL string | |
function getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i = 0; i < vars.length; i++) { | |
var pair = vars[i].split("-"); | |
if (pair[0] == variable) { | |
return pair[1]; | |
} | |
} |
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
include Clockwork | |
every(20.seconds, 'Pulling Dribbble Rake Task'){ | |
`rake dribbble:get_recent` | |
} | |
on(:after_tick) do | |
puts "tick, tock..." | |
true | |
end |
OlderNewer