SlideShare a Scribd company logo
1 of 19
Modern web development
 Emad Elsaid
 Education
 Work Experience
 @blaz_boy
 www.pixelwa.re
 www.madeinportsaid.com
 Ruby
 Rails
 HAML
 SASS
 Yukihiro Matsumoto (Matz)
 First paper 1993
 Ruby 1.0 (Dec 1996)
 Latest 1.9.3
 Ruby 2.0 (24 Feb 2013)
 Gem
 www.ruby-lang.org
 David Heinmemeier Hansson
 37 Signals
 Basecamp , Campfire, Highrise
 Rework
 www.rubyonrails.org
 Norman Clarke
 HTML (HTML Abstraction Markup Language)
 Why?
    Markup should be beautiful
    DRY
    Markup should be well-indented
    XHTML structure should be clear
 www.haml.info
 Hampton  Catlin
 SASS (Syntactically Awesome Stylesheets)
 Why?
      nested rules
      Variables
      Mixins
      selector inheritance
 www.sass-lang.com
 Form  Teams
 We’ll create a blog
 Choose features to add
 Show results to your friends
 Ruby Installer
 SublimeText2
 Puts   “Hello World”
 Save
 Run    for your life
 Ifwe list all the natural numbers below 10
  that are multiples of 3 or 5, we get 3, 5, 6
  and 9. The sum of these multiples is 23.
 Find the sum of all the multiples of 3 or 5
  below 1000.
 sum   =0
 for i in 1...1000 do
      if (i%3==0 or i%5==0)
             sum += i
      end
 end
 puts sum
 By  listing the first six prime numbers: 2, 3, 5,
  7, 11, and 13, we can see that the 6th prime
  is 13.
 What is the 10 001st prime number?
 require   'mathn'

 counter   =0
 last = nil
 Prime.each(100000000000) do |i|
      counter += 1
      last = i
      break if counter==10001
 end
 print last
 Watch    this
    http://net.tutsplus.com/sessions/ruby-for-
     newbies/
 Solve   this :
    http://projecteuler.net/problem=2
    http://projecteuler.net/problem=13
 Each  new term in the Fibonacci sequence is
  generated by adding the previous two terms.
  By starting with 1 and 2, the first 10 terms
  will be:
 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
 By considering the terms in the Fibonacci
  sequence whose values do not exceed four
  million, find the sum of the even-valued
  terms.
 Work  out the first ten digits of the sum of
  the following one-hundred 50-digit numbers.
 371072875339021027987979982208375902465
  10135740250
  463…………….124896970078050417018260538
  743249861995247410594742333095130581237
  26617309629
Ruby on rails1
Ruby on rails1

More Related Content

Viewers also liked

Local governance, democracy and representation
Local governance, democracy and representationLocal governance, democracy and representation
Local governance, democracy and representationRachel Palmen
 
Mercy Association Initial Formation
Mercy Association Initial FormationMercy Association Initial Formation
Mercy Association Initial FormationMaria J. Burt
 
Tex Visions: Get to Know Us
Tex Visions: Get to Know UsTex Visions: Get to Know Us
Tex Visions: Get to Know Usadwerner
 
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...Heraclio Raza Torres
 
Psicomotricidad diapositivas
Psicomotricidad diapositivasPsicomotricidad diapositivas
Psicomotricidad diapositivasAngelica Loaiiza
 
Kestabilan absolut
Kestabilan absolutKestabilan absolut
Kestabilan absolutsoeryaa
 
Weaver - Financial Institutions Consulting
Weaver - Financial Institutions ConsultingWeaver - Financial Institutions Consulting
Weaver - Financial Institutions ConsultingAndrew Topa
 
10.2 types of sampling
10.2 types of sampling10.2 types of sampling
10.2 types of samplingandreagoings
 
εφηβική πλευρά 2
εφηβική πλευρά 2εφηβική πλευρά 2
εφηβική πλευρά 2kondaster
 
The new social economic situation
The new social economic situationThe new social economic situation
The new social economic situationFelice Ferraro
 
Preparation for the week of the ACT
Preparation for the week of the ACTPreparation for the week of the ACT
Preparation for the week of the ACTTanita Odom
 
Презентация ЕГАИС в ресторанах для ФРИО
Презентация ЕГАИС в ресторанах для ФРИОПрезентация ЕГАИС в ресторанах для ФРИО
Презентация ЕГАИС в ресторанах для ФРИОKatya Zhdanova
 
Keyboard
KeyboardKeyboard
Keyboardsoeryaa
 

Viewers also liked (17)

Local governance, democracy and representation
Local governance, democracy and representationLocal governance, democracy and representation
Local governance, democracy and representation
 
Mercy Association Initial Formation
Mercy Association Initial FormationMercy Association Initial Formation
Mercy Association Initial Formation
 
Tex Visions: Get to Know Us
Tex Visions: Get to Know UsTex Visions: Get to Know Us
Tex Visions: Get to Know Us
 
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...
Conocimiento de la neuropedagogía y su relación con el desempeño docente en l...
 
Psicomotricidad diapositivas
Psicomotricidad diapositivasPsicomotricidad diapositivas
Psicomotricidad diapositivas
 
Kestabilan absolut
Kestabilan absolutKestabilan absolut
Kestabilan absolut
 
Tradigital marketing
Tradigital marketing Tradigital marketing
Tradigital marketing
 
Agenda digital-2
Agenda digital-2Agenda digital-2
Agenda digital-2
 
hanno detto di me
hanno detto di mehanno detto di me
hanno detto di me
 
Weaver - Financial Institutions Consulting
Weaver - Financial Institutions ConsultingWeaver - Financial Institutions Consulting
Weaver - Financial Institutions Consulting
 
10.2 types of sampling
10.2 types of sampling10.2 types of sampling
10.2 types of sampling
 
εφηβική πλευρά 2
εφηβική πλευρά 2εφηβική πλευρά 2
εφηβική πλευρά 2
 
The new social economic situation
The new social economic situationThe new social economic situation
The new social economic situation
 
Preparation for the week of the ACT
Preparation for the week of the ACTPreparation for the week of the ACT
Preparation for the week of the ACT
 
Презентация ЕГАИС в ресторанах для ФРИО
Презентация ЕГАИС в ресторанах для ФРИОПрезентация ЕГАИС в ресторанах для ФРИО
Презентация ЕГАИС в ресторанах для ФРИО
 
presentacion partes del cuerpo
presentacion partes del cuerpopresentacion partes del cuerpo
presentacion partes del cuerpo
 
Keyboard
KeyboardKeyboard
Keyboard
 

Similar to Ruby on rails1

COMPANION TO MATRICES SESSION II.pptx
COMPANION TO MATRICES SESSION II.pptxCOMPANION TO MATRICES SESSION II.pptx
COMPANION TO MATRICES SESSION II.pptximman gwu
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013amanabr
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Kurmendra Singh
 
A complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsA complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsMukesh Kumar
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlabaman gupta
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkreddyprasad reddyvari
 
Uses & Abuses of Mocks & Stubs
Uses & Abuses of Mocks & StubsUses & Abuses of Mocks & Stubs
Uses & Abuses of Mocks & StubsPatchSpace Ltd
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
 
Algorithm in computer science
Algorithm in computer scienceAlgorithm in computer science
Algorithm in computer scienceRiazul Islam
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab OverviiewNazim Naeem
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapaloozaJenniferBall44
 
Chapter 22. Lambda Expressions and LINQ
Chapter 22. Lambda Expressions and LINQChapter 22. Lambda Expressions and LINQ
Chapter 22. Lambda Expressions and LINQIntro C# Book
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondMahuaPal6
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxlekhacce
 

Similar to Ruby on rails1 (20)

COMPANION TO MATRICES SESSION II.pptx
COMPANION TO MATRICES SESSION II.pptxCOMPANION TO MATRICES SESSION II.pptx
COMPANION TO MATRICES SESSION II.pptx
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
A complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsA complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projects
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Uses & Abuses of Mocks & Stubs
Uses & Abuses of Mocks & StubsUses & Abuses of Mocks & Stubs
Uses & Abuses of Mocks & Stubs
 
Programming with matlab session 1
Programming with matlab session 1Programming with matlab session 1
Programming with matlab session 1
 
A01
A01A01
A01
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
Algorithm in computer science
Algorithm in computer scienceAlgorithm in computer science
Algorithm in computer science
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab Overviiew
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
 
Chapter 22. Lambda Expressions and LINQ
Chapter 22. Lambda Expressions and LINQChapter 22. Lambda Expressions and LINQ
Chapter 22. Lambda Expressions and LINQ
 
JavaScript 101
JavaScript 101JavaScript 101
JavaScript 101
 
Matlab Manual
Matlab ManualMatlab Manual
Matlab Manual
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
 

Ruby on rails1

  • 2.  Emad Elsaid  Education  Work Experience  @blaz_boy  www.pixelwa.re  www.madeinportsaid.com
  • 3.  Ruby  Rails  HAML  SASS
  • 4.  Yukihiro Matsumoto (Matz)  First paper 1993  Ruby 1.0 (Dec 1996)  Latest 1.9.3  Ruby 2.0 (24 Feb 2013)  Gem  www.ruby-lang.org
  • 5.  David Heinmemeier Hansson  37 Signals  Basecamp , Campfire, Highrise  Rework  www.rubyonrails.org
  • 6.  Norman Clarke  HTML (HTML Abstraction Markup Language)  Why?  Markup should be beautiful  DRY  Markup should be well-indented  XHTML structure should be clear  www.haml.info
  • 7.  Hampton Catlin  SASS (Syntactically Awesome Stylesheets)  Why?  nested rules  Variables  Mixins  selector inheritance  www.sass-lang.com
  • 8.  Form Teams  We’ll create a blog  Choose features to add  Show results to your friends
  • 9.  Ruby Installer  SublimeText2
  • 10.  Puts “Hello World”  Save  Run for your life
  • 11.  Ifwe list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.  Find the sum of all the multiples of 3 or 5 below 1000.
  • 12.  sum =0  for i in 1...1000 do  if (i%3==0 or i%5==0)  sum += i  end  end  puts sum
  • 13.  By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.  What is the 10 001st prime number?
  • 14.  require 'mathn'  counter =0  last = nil  Prime.each(100000000000) do |i|  counter += 1  last = i  break if counter==10001  end  print last
  • 15.  Watch this  http://net.tutsplus.com/sessions/ruby-for- newbies/  Solve this :  http://projecteuler.net/problem=2  http://projecteuler.net/problem=13
  • 16.  Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:  1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...  By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
  • 17.  Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.  371072875339021027987979982208375902465 10135740250 463…………….124896970078050417018260538 743249861995247410594742333095130581237 26617309629