Skip to content

Instantly share code, notes, and snippets.

Time Monday Tuesday Wednesday Thursday
9:00am - 10:00am Robin Adrian Adrian Andy
10:00am - 10:30am, 1:30pm - 2:00pm Matt Robin Adam Adrian
2:00pm - 3:00pm Jesse Matt Robin Adam
3:00pm - 4:00pm Andy Jesse Matt Robin
4:00pm - 5:00pm Adam Andy Jesse Matt
@amaseda
amaseda / weekend_hw.md
Last active August 29, 2015 14:27
Weekend HW w07

NOTE: This weekend's homework is OPTIONAL! Feel free to spend the next two days taking it easy.

Fun with APIs

Your homework prompt for this weekend is an open-ended one: make something cool using a 3rd party API! There's no need to create a backend for this assignment -- just stick to HTML, CSS and Javascript.

Not sure where to start? Here is a suggested workflow...

  1. Set up your HTML and CSS. Figure out what you want your app to look like.
  2. Create your AJAX call. Just make sure it's working -- don't worry about handling the response yet.
  3. Extract information from your response. How do you go about accessing it?
@amaseda
amaseda / react.md
Last active August 29, 2015 14:27
react.md

Learning Objectives

  • Explain what ReactJS is.
  • Compare React to other Javascript frameworks and libraries.
  • Create and render a React component in the browser.
  • Nest React components.
  • Modify the state of a React component through events.

What is ReactJS?

@amaseda
amaseda / react_post_ex1.md
Created August 21, 2015 01:59
react_post_ex1.md
// Model / Constructor
var Post = function( info ){
  this.title = info.title;
  this.author = info.author;
  this.body = info.body;
  this.comments = info.comments;
}

// Create Post object
@amaseda
amaseda / react_post_ex2.md
Last active August 29, 2015 14:27
react_post_ex2.md
var Post = function( info ){
  this.title = info.title;
  this.author = info.author;
  this.body = info.body;
  this.comments = info.comments;
}

var post = new Post({
 title: "My First Post",
@amaseda
amaseda / react_post_ex3.md
Last active August 29, 2015 14:27
react_post_ex3.md
var Post = function( info ){
  this.title = info.title;
  this.author = info.author;
  this.body = info.body;
  this.comments = info.comments;
}

var post = new Post({
  title: "My First Post",
@amaseda
amaseda / bb-views-pt-two.md
Created September 1, 2015 14:05
BB Views Pt. II

Collection and Specialty Views

Learning Objectives

  • Define the role of collection views in Backbone.
  • Define the purpose of the el property on a Backbone View.
  • Write a collection view that renders model views.
  • Write a collection view that listens to collection events.
  • Define the role of a specialty view in Backbone.
  • Create a specialty view.

Collection and Specialty Views

Learning Objectives

  • Define the role of collection views in Backbone.
  • Define the purpose of the el property on a Backbone View.
  • Write a collection view that renders model views.
  • Write a collection view that listens to collection events.
  • Define the role of a specialty view in Backbone.
  • Create a specialty view.
App.Views.GrumblesList = Backbone.View.extend({
el: "#grumbles",
initialize: function(){
console.log( "Grumbles view initialized!" );
},
renderOne: function( grumble ){
var view = new App.Views.Grumble({ model: grumble });
this.$el.prepend( view.$el );
App.Views.GrumblesList = Backbone.View.extend({
el: "#grumbles",
initialize: function(){
console.log( "Grumbles view initialized!" );
},
renderOne: function( grumble ){
var view = new App.Views.Grumble({ model: grumble });
this.$el.prepend( view.$el );