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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title>Quick Coding with Brackets</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=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
(function ($) { | |
// Hide all shortcuts and notes | |
var hideAll = function() { | |
$('.shortcuts').hide(); | |
$('.notes').hide(); | |
}; | |
// animate the platform buttons when user chooses one before taking them page. | |
$('.platform').on('click', function(e) { | |
var url = this.href; |
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
.mac, .pc { | |
width: 40%; | |
height: 50px; | |
margin-left: 5%; | |
background-color: #bbb; | |
float: left; | |
text-align: center; | |
font-size: 2em; | |
line-height: 50px; | |
} |
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
<section> | |
<h2>Multiple Cursors</h2> | |
<div class="shortcuts"> | |
<h3>Keyboard Shotcuts</h3> | |
<ul> | |
<li><strong>Ctrl+B</strong> Add next match to your selection</li> | |
<li><strong>Ctrl+Shift+B</strong> Skip and add next match</li> | |
<li><strong>Ctrl+U</strong> Undo last selection change</li> | |
<li><strong>Ctrl+Shift+U</strong> Redo last selection change</li> | |
<li><strong>Alt+F3</strong> Find all and select</li> |
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
<section> | |
<h2>Moving Code</h2> | |
<div class="shortcuts"> | |
<h3>Keyboard Shortcuts</h3> | |
<ul> | |
<li><strong>Ctrl+Shift+↑</strong> Move current line/selection up</li> | |
<li><strong>Ctrl+Shift+↓</strong> Move current line/selection down</li> | |
<li><strong>Ctrl+]</strong> Indent Right</li> | |
<li><strong>Ctrl+[</strong> Indent Left</li> | |
<li><strong>Tab</strong> Indent Right (when lines are selected) </li> |
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
*, | |
*:before, | |
*:after { | |
box-sizing: border-box; | |
} |
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
/* Option 0: Set height on parent (only works if parent has a fixed height) */ | |
ul { | |
height: 43px; | |
} | |
/* Option 1: Float the parent */ | |
ul { | |
float: left; | |
} |
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
<h2>Writing/Editing Code</h2> | |
<div class="shortcuts"> | |
<h3>Keyboard Shortcuts</h3> | |
<ul> | |
<li><strong>Ctrl+X</strong> Delete/Cut line/selection</li> | |
<li><strong>Ctrl+D</strong> Duplicate line/selection</li> | |
<li><strong>Ctrl+C</strong> Copy line/selection</li> | |
<li><strong>Ctrl+V</strong> Paste</li> | |
<li><strong>Ctrl+/</strong> Single Line Comment</li> | |
<li><strong>Ctrl+Shift+/</strong> Block Comment</li> |
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="color red"></div> | |
<div class="color orange"></div> | |
<div class="color yellow"></div> | |
<div class="color green"></div> | |
<div class="color blue"></div> | |
<div class="color indigo"></div> | |
<div class="color violet"></div> |
NewerOlder