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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$modal-border-color: #ddd; | |
$modal-max-width: 650px; | |
$modal-mobile-header: #27aae2; | |
$modal-layer: 999; // Set high z-index to appear above all other content |
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="thing"></div> | |
<h2>Standard</h2> | |
<div class="icr-main-info-glyphs"> | |
<div class="media-content"> | |
<h3>Media Content Header</h3> | |
<p>Media Content Body</p> | |
</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
<!-- <h2>Standard</h2> | |
<div class="icr-main-info-glyphs"> | |
<div class="media-content"> | |
<h3>Media Content Header</h3> | |
<p>Media Content Body</p> | |
</div> | |
</div> | |
<h2>Standard - flipped</h2> | |
<div class="icr-main-info-glyphs-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
<div class="block"></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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
// basic usage | |
app.get('/about', function (req, res) { | |
res.render('about'); | |
}); | |
// response codes other than 200 | |
app.get('/error', function (req, res) { | |
res.status(500); | |
res.render('error'); | |
}); |
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
// basic form processing | |
// body-parser middleware must be linked in! | |
app.post('/process-contact', function (req, res) { | |
console.log('Received contact from ' + req.body.name + ' <' + req.body.email + '>'); | |
// save to the database | |
// redirect to a thank you view and send the correct status code | |
res.redirect(303, '/thank-you'); | |
}); | |
// more reobust processing |
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
// When providing an API, the parameters will most likely be in req.query, | |
// though you can use req.body. You'll usually return JSON, XML, or plaintext | |
// and you'll often be using less common HTTP methods like PUT, POST, and DELETE. | |
//////////////// | |
// GET Endpoint | |
//////////////// | |
var tours = [ | |
{ id: 0, name: 'Hood River', price: 99.99 }, |
OlderNewer