Top Banner
adapted from http://www.thehotzoneonline.com/2008/10/31/happy-halloween-2/
22

adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

May 08, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

adapted from http://www.thehotzoneonline.com/2008/10/31/happy-halloween-2/

Page 2: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

Gabor Bojar, founder and president of the Aquincum Institute of Technology (AIT), will make a presentation about AIT for students interested in computing, design,

computational biology, and IT entrepreneurship.

Pizza and small treats from Hungary will be served!

Thu 11/1, Maxwell Dworkin 123

Page 3: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching
Page 4: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

cs50.net/lunch

Page 5: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

cs50.net/seminars

Page 6: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

cs50.net/rsvp

Android Apps (Now with Jelly Beans!), Jordan JozwiakICT4D: Technology for Good, Alisa Nguyen and Joy MingiOS: Writing Apps like a Boss, Tommy MacWilliamJavaScript Frameworks: Why and How?, Kevin SchimdjQuery, Vipul ShekhawatKohana: A Lightweight PHP Framework, Brandon LiuMake an Attractive Website with CSS, Ben ShyrockPattern Matching with Regular Expressions, John MussmanSurviving the Internet, Esmond KaneTechnical Interviews, Kenny YuUnix Shells, Environment, by Douglas KlineVim: Speed and Power at your Fingertips, Brandon Liu

Page 7: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

CSS

Page 10: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

functionsmain

Page 11: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

conditionsif  (condition){        //  do  this}else  if  (condition){        //  do  that}else{        //  do  this  other  thing}

Page 12: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

Boolean expressions

if  (condition  ||  condition){        //  do  this}

Page 13: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

Boolean expressions

if  (condition  &&  condition){        //  do  this}

Page 14: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

switchesswitch  (expression){        case  i:                //  do  this                break;

       case  j:                  //  do  that                break;

       default:                //  do  this  other  thing}

Page 15: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

loops

for  (initializations;  condition;  updates){        //  do  this  again  and  again}

Page 16: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

loops

while  (condition){        //  do  this  again  and  again}

Page 17: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

loops

do{        //  do  this  again  and  again}while  (condition);

Page 18: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

arrays$numbers  =  [4,  8,  15,  16,  23,  42];

Page 19: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

variables$s  =  "hello,  world";

Page 20: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

loops

foreach  ($array  as  $element){        //  do  this  with  $element}

Page 21: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

associative arrays$staff  =  [  "foo"  =>  "bar",  "baz"  =>  "qux"  ];

Page 22: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching

to be continued...