Create documentation for your projects. Like so:
- Up/Down - Previous/Next Gist
- Ctrl+e - Edit a selected Gist
- Ctrl+s - Save Gist
{ | |
"blog": [{ | |
"2017": [{ | |
"title": "A New Hope", | |
"slug": "a-new-hope", | |
"date": "1977-05-25", | |
"tags": ["Gary Kurtz, Rick McCallum"], | |
"categories": [""], | |
"description": "Princess Leia is captured and held hostage by the evil Imperial forces in their effort to take over the galactic Empire. Venturesome Luke Skywalker and dashing captain Han Solo team together with the loveable robot duo R2-D2 and C-3PO to rescue the beautiful princess and restore peace and justice in the Empire.", | |
"publish": true |
{ | |
"blog": [{ | |
"2017": [{ | |
"title": "A New Hope", | |
"slug": "a-new-hope", | |
"date": "1977-05-25", | |
"tags": ["Gary Kurtz, Rick McCallum"], | |
"categories": [""], | |
"description": "Princess Leia is captured and held hostage by the evil Imperial forces in their effort to take over the galactic Empire. Venturesome Luke Skywalker and dashing captain Han Solo team together with the loveable robot duo R2-D2 and C-3PO to rescue the beautiful princess and restore peace and justice in the Empire.", | |
"publish": true |
<div style="border: 1px solid pink; padding: 10px;" bind="any_name">This div's content | |
will be replaced when you edit the input below</div> | |
<input type="text" placeholder="First input with same bind value" bind="any_name"/> | |
<input type="text" placeholder="Second input with same bind value" bind="any_name"/> | |
$(document).ready(function() { | |
$('#hero').html('<iframe name="videoFrame" width="560" height="315" src="http://www.youtube.com/embed?listType=playlist&list=PLHx5HChsMcasTeHm7oaCt0HCB8ci4I4NS&controls=0&showinfo=0" theme="" modestbranding="1" rel="0" frameborder="0"allowfullscreen=""></iframe>'); | |
$('.tabs nav ul li a:first').on('click', function(e){ | |
e.preventDefault(); | |
$('.tabs nav ul li').removeClass('tab-current'); | |
$(this).parent('li').addClass('tab-current'); | |
$('#hero').html('<iframe name="videoFrame" width="560" height="315" src="http://www.youtube.com/embed?listType=playlist&list=PLHx5HChsMcasTeHm7oaCt0HCB8ci4I4NS&controls=0&showinfo=0&modestbranding=1&theme=" rel="0" frameborder="0" allowfullscreen=""></iframe>'); |
$(document).ready(function() { | |
$('.vote-button').on('click', upVote) | |
$('.delete').on('click', deletePost) | |
$('form').on('submit', formSubmit ); | |
}); // End Document Ready | |
function upVote(e){ | |
e.preventDefault(); | |
var url = e.target.pathname; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DOM manipulation with jQuery</title> | |
<!-- Add a link to jQuery CDN here script here --> | |
<script type="text/javascript" src="jquery_example.js"></script> | |
</head> | |
<body> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DOM manipulation with jQuery</title> | |
<!-- Add a link to jQuery CDN here script here --> | |
<script type="text/javascript" src="jquery_example.js"></script> | |
</head> | |
<body> |
class BoggleBoard | |
attr_reader :dice_grid | |
def initialize(dice_grid) | |
@dice_grid = dice_grid | |
end | |
def create_word(*coords) | |
p coords.map {|coord| @dice_grid[coord.first][coord.last]}.join("") | |
end |