-
Make sure your fastenate project is clean and all your work has been committed. Then checkout a new branch called
jquery
. -
In
index.html
, rename the "Random"a
tag to "Blogs", and rename the "My Boards" link to "Students". -
Cut all four fastenate content blocks from
index.html
and paste it into a temporary file for reference. Be sure to leave an emptydiv
orsection
element so you can append content there instead of thebody
element. -
Create a new directory called
scripts
and add a new file within it calledapp.js
. Then add ascript
reference to it inindex.html
, right before the closingbody
tag.
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 elegant_permit = [ | |
{ | |
'patron': 'fund', | |
}, | |
{ | |
'patron': 'observer', | |
}, | |
{ | |
'patron': 'lift', | |
}, |
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 locals = { | |
newsContent: [ | |
{ | |
"author": "Marc Canter", | |
"title": "The Internet Of Things Is Not A Shiny New Toy", | |
"body": "The Internet of Things is the latest, greatest new buzzword du jour and every major technology company, industrial manufacturer, big retailer and health industry player has declared the IoT to be the next big thing. Each of these industries sees a way of taking advantage of tiny low-power intelligent devices or sensors and they’ve baked the IoT into their future product strategies." | |
}, | |
{ | |
"author": "John Biggs", | |
"title": "Hands On With The Blackberry Classic", |
-
In your DevLeague temp directory, create a directory called
github_api_intro
. -
In
github_api_intro
, create the following files and directories:js/app.js
,css/styles.css
(optional),index.html
. -
Create the basic HTML structure and reference the JS and CSS files in your
index.html
. Be sure to reference jQuery before thejs/app.js
file:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
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 incidents = [{ | |
id: 0, | |
date: 1423529023, | |
code: "550", | |
type: "MOTOR VEHICLE COLLISION", | |
address: "ALA MOANA & CORAL ST", | |
location: null, | |
area: "KAKAAKO", | |
lat: 21.297355, | |
lng: -157.861581 |
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
[ | |
{ | |
"id": 0, | |
"date": "2/9/2015, 2:43 PM", | |
"code": "550", | |
"type": "MOTOR VEHICLE COLLISION", | |
"address": "ALA MOANA & CORAL ST", | |
"location": null, | |
"area": "KAKAAKO", | |
"lat": 21.297355, |
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 chai = require('chai'); | |
var expect = chai.expect; | |
var should = chai.should(); | |
var quicksort = require('..').Sort.quick; | |
describe('quicksort', function () { | |
it('it should sort an array with nothing in it', function () { | |
var array = []; |
Jon's live stream: https://www.youtube.com/watch?v=UymsVycVUlU
- Create an account on heroku.com
- We'll be going over https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction. Click "I'm ready to start", download Heroku Toolbelt, and install it.
- heroku login // in terminal
- git clone https://github.com/heroku/node-js-getting-started.git
cd node-js-getting-started - npm install
- PORT=3000 npm start
(ctrl+C to kill the server)
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
describe("Main", function() { | |
var sandbox; | |
beforeEach(function() { | |
// create a sandbox | |
sandbox = sinon.sandbox.create(); | |
// stub some console methods | |
sandbox.stub(window.console, "log"); | |
sandbox.stub(window.console, "error"); | |
}); |
- Intro to Graphs and Neo4j - Great video intro for anyone curious about the benefits of using Neo4j over traditional SQL or NoSQL implementations
OlderNewer