Skip to content

Instantly share code, notes, and snippets.

@amaseda
amaseda / gist:8a5f941474f62fe06a42
Last active August 29, 2015 14:17
Homework W01D01
new_student(){
mkdir -p GeneralAssembly/Homework/week01/day01 GeneralAssembly/Notes/week01/day01
mkdir -p GeneralAssembly/Projects GeneralAssembly/Outcomes
touch GeneralAssembly/README.md
echo "Keep calm and carry on." > GeneralAssembly/README.md
echo "Hey there, student! Welcome to WDI6! I just set up this directory tree for you: "
tree GeneralAssembly
}
@amaseda
amaseda / gist:f7a90e052633bf2e1c4c
Created March 17, 2015 13:53
Morning Exercise 3/17
mv ../TOP_SECRET/SERIOUSLY_TOP_SECRET/YOU_PROBABLY_SHOULDNT_BE_IN_HERE/totallyNotNuclearCodes.txt .
cd ../TOP_SECRET/SERIOUSLY_TOP_SECRET/YOU_PROBABLY_SHOULDNT_BE_IN_HERE/
touch totallyNotNuclearCodes.txt
echo "8675309" > totallyNotNuclearCodes.txt
cd ../../../FLASH_DRIVE
cp ../CAT_PHOTOS/nefariousMisterMittens.jpg .
puts "C-3P0: C-3P0, human-cyborg relations."
puts "C-3P0: What is your name?"
name = gets.chomp.to_s.capitalize
puts "\nC-3P0: It is a pleasure to meet you, #{name}. Have you ever met a protocol droid before?"
user_answer = gets.chomp.to_s.capitalize
puts "\nC-3P0: #{user_answer}? How interesting, for someone from around these parts."
puts "C-3P0: I'm terribly sorry for prying, but you don't by any chance go by the alias of Obi-Wan Kenobi, do you? (Answer 'I do' or 'I don't')"
know_obi = gets.chomp.to_s.downcase
The transition from Ruby to Javascript hasn't been as jarring as I expected it
to be. As the teachers mentioned a number of times, it's true that by knowing one
programming language you will pretty much be able to understand
80% - 90% of another. While matching methods between Ruby and Javascript
hasn't been too tough (although it's taking a lot of getting used to), wrapping
my head around control flow and the call stack has been a bit more difficult.
There have been plenty of instances during JS homework assignments where the
code takes on a life of its own. Variables and functions are declared left and
right, mysterious and undecipherable errors pop up on the screen
and what was meant to be a simple timer app ends up morphing into a crazy
@amaseda
amaseda / pretro.md
Created June 22, 2015 14:28
pretro

PRETRO

GA

  • Teach a class!
  • Have lesson plans completed at least a full week before class.
  • ???

Personal

  • Write 2 blog posts.
  • Learn a new JS library/framework outside of class material.
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",