Difference between revisions of "Homework 2"

From Protein Prediction 2 Winter Semester 2014
(Helpful links)
(Live coding)
Line 22: Line 22:
   
 
* [http://jsbin.com/fajas/edit isPrime]
 
* [http://jsbin.com/fajas/edit isPrime]
  +
; Help: [http://en.wikipedia.org/wiki/Prime_number Prime numbers]
 
; Solution for isPrime [http://jsbin.com/jolone/1/edit?js,console,output ]
 
; Solution for isPrime [http://jsbin.com/jolone/1/edit?js,console,output ]
   
 
* [http://jsbin.com/huhuwe/3/edit?js,console,output MiniEvents]
 
* [http://jsbin.com/huhuwe/3/edit?js,console,output MiniEvents]
  +
; Help: [https://en.wikipedia.org/wiki/Observer_pattern Observer pattern]
; Solution for MiniEvents [http://jsbin.com/huhuwe/3/edit?js,console,output]
 
  +
; Solution for MiniEvents [http://jsbin.com/jatewe/3/edit?js,console,output]
   
 
* [http://jsbin.com/vepab/3/edit?js,console,output UniProt]
 
* [http://jsbin.com/vepab/3/edit?js,console,output UniProt]
  +
; Help: [http://zeptojs.com/#$.get $.get]
 
; Solution for UniProt [http://jsbin.com/pudica/edit?js,console,output]
 
; Solution for UniProt [http://jsbin.com/pudica/edit?js,console,output]
  +
 
=== Helpful links ===
 
=== Helpful links ===
   

Revision as of 14:12, 29 October 2014

Last Week

  • Did you the students register on the mailing list and receive the first 'hello world' post?
  • Verify: Have you filled in this form? (till Oct 23)
  • Comments, questions, show&talk for the assignment Make a Website @ Codecademy ?
  • Any other thing? Git, GitHub, Codecademy, BioJs, D3, ...

Tasks

Optional

Live coding

In the following example you will learn about basic javascript, the event system and usage of external libraries (i.e. ajax) We are using JSBin for the live coding examples. JSBin allows you to code in JavaScript and see the output immediatly. We provided Unit Tests for your Code (They will turn green if you solve the exercise :) ).

Help
Prime numbers
Solution for isPrime [1]
Help
Observer pattern
Solution for MiniEvents [2]
Help
$.get
Solution for UniProt [3]

Helpful links

they give you an overview of available JS functions