Skip to content

Instantly share code, notes, and snippets.

View 13protons's full-sized avatar

Alan Languirand 13protons

View GitHub Profile

Step #1: Initialize Your Project

1.1 Create Folder Structure

  • Create a new folder for you project
  • Navigate to that folder
  • Initialize node.js boilerplate
mkdir zetta-hello-world
@13protons
13protons / gist:bcc41bd978250c2cae91
Last active July 31, 2022 16:11
Design Process

Design Process

The Design Team is ultimately responsible for completing the steps in this process, although responsibility for performing the tasks in each step may reside with the Product or Engineering teams.

##Steps

The Design Process follows these 5 steps:

  1. Scope
@13protons
13protons / range.js
Last active August 29, 2015 14:07 — forked from mattmccray/range.js
// 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);
@13protons
13protons / app.js
Last active August 29, 2015 14:07
Mock Button
module.exports = function(server) {
var buttonQuery = server.where({type: 'button'});
server.observe([buttonQuery], function(button){
button.on('click', function(b){
console.log(b);
})
});

#Environment Setup

What's Happening?

  1. We'll download and install a text editor.
  2. We'll install Ruby on our machines (or verify that it is installed)

##Text Editor

Download Sublime Text

@13protons
13protons / recipe.md
Last active August 29, 2015 14:07
Zetta Recipe Boilerplate
layout title author difficulty duration description repo
recipe
your title
your name
beginner
hobbyist
moderate
experienced
pro
1-3 hours
Large intro text goes here
link to source code needed for this recipe...git repo pages are great
layout title author tags
recipe
IoT Security System
Matt Dobson
recipe
iot
home security
diy

#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
@13protons
13protons / deckdown is
Last active August 29, 2015 14:06
Why use Deckdown?
#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?
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |