- Create a new folder for you project
- Navigate to that folder
- Initialize node.js boilerplate
mkdir zetta-hello-world| #welcome to class | |
| #goals for today | |
| * learn about deckdown | |
| * ??? | |
| * profit | |
| ##Corgis are awesome |
| // Creates a 'range' Array, extracted from Liquid.js | |
| function makeRange(from, to) { | |
| var arr= [], | |
| left= parseInt(from), | |
| right= parseInt(to); | |
| // Check if left and right are NaN, if so try as characters | |
| if( isNaN(left + right) ) { | |
| // TODO Add in error checking to make sure ranges are single | |
| // character, A-Z or a-z, etc. | |
| left = from.charCodeAt(0); |
| module.exports = function(server) { | |
| var buttonQuery = server.where({type: 'button'}); | |
| server.observe([buttonQuery], function(button){ | |
| button.on('click', function(b){ | |
| console.log(b); | |
| }) | |
| }); |
| layout | recipe | |||||
|---|---|---|---|---|---|---|
| title |
|
|||||
| author |
|
|||||
| difficulty |
|
|||||
| duration | 1-3 hours | |||||
| description | Large intro text goes here | |||||
| repo |
|
| layout | recipe | ||||
|---|---|---|---|---|---|
| title | IoT Security System | ||||
| author | Matt Dobson | ||||
| tags |
|
#Choose Your Own Adventure!
##1. My Brain Is Running In Circles (Loops)
###Exercise 1: Harmonic Sum
Write a program to compute the sum of a harmonic series, as shown below, where n=50000. Calculate the sum from left-to-right, and then from right-to-left.
Harmonic(n) = 1 + 1/2 + 1/3 + 1/4 + .... + 1/n
| #Welcome to Deckdown | |
| ##Deckdown is | |
| a brand new way to create slide decks | |
| *** | |
| It take a markdown file, and creates a _reveal.js_ powered slide deck | |
| ##How? |