Skip to content

Instantly share code, notes, and snippets.

@user512
user512 / Notes - iOS
Created July 15, 2014 13:46
Notes - Bloc - iOS
Roadmap #5
What is the difference between Test and Run the project?
@user512
user512 / oojs.md
Last active August 29, 2015 14:26 — forked from stujo/oojs.md
Object Oriented JavaScript

#Object Oriented Javascript

#Overview

  • Creating Objects in JavaScript
    • new Object();
    • Object Literal Notation (Important)
    • Factory Function
  • Review JavaScript's this
  • More Creating Objects in JavaScript
  • Constructor Function
$("a").click(function(e) {
e.preventDefault(); // prevent default action
$.ajax{
url: $(this).attr("href"),
dataType
}).done(function(data) { // ajax call
})
})
OOJS
CRUD
AJAX
prototype in js?
not expected to write test
Handlebars
- Clinet side JS templating engine
- JS library included in the HTML page
- Allows adding templates to your HTML page
Reason to use a JS tempting engine
- fast, on clinet side
- easier to read with a lot of string interpolation.
When to use JS tempting engine

Javascript Lecture

Closure

function(thisOtherNumber){
  return numberToAdd + theOtherNumber;  
}

That function remembers variables numberToAdd that were around when the function was declared.

@user512
user512 / markdown.md
Last active August 29, 2015 14:27
markdown.md

###This is H3

def method(arg)

arg
end

Meteor.js

Cheatsheet for Meteor.js beginner

To install Meteor on OS X or Linux
curl https://install.meteor.com/ | sh
To create project
@user512
user512 / finalProjectWireframe.md
Last active August 27, 2015 23:19
DBC Final Project Wireframe
@user512
user512 / twitter-gem-cheat-sheet.md
Last active September 14, 2015 02:43
Twitter Gem cheat sheet