Ruby CI-2413 Desarrollo de Aplicaciones para Internet.

Slides:



Advertisements
Presentaciones similares
Accents and Punctuation
Advertisements

Para empezar Hoy es martes el cinco de febrero Write what each person has to do in Spanish based on the picture. Ella Él ÉlÉl.
3 al día  1. List 5 cities and / or states with Spanish names.
Unidad 1: Conversation Basics Hola = Hello, Hi. Unidad 1: Conversation Basics Mucho gusto = Much pleasure.
Mr. Redaelli OnlineTaco.com. To Have - Tener Yo tengo – I have Tú tienes – You have (Informal) Usted tiene – You have (Formal) El tiene – He has Ella.
Los Saludos y Las Despedidas
direct object pronouns
Saludos y despedidas.
Los Infinitivos ¿Qué es un infinitivo?.
Reflexive verbs. In Spanish, whenever the subject does anything to or for him-/her-/itself, a reflexive pronoun (un pronombre reflexivo) is used. In Spanish,
Reflexive verbs. To say that people do something to or for themselves, you use reflexive verbs. For example, washing ones hands or brushing ones hair.
El mandato afirmativo (tú)
El verbo ser página veinticuatro. ¿Cómo se dice ser en inglés? ser = to be am, is, are.
You’ve already learned how to use interrogative words and phrases
El 6 de septiembremartes Calentamiento El objetivo de hoy Los estudiantes van a poder preguntar Como te llamas? Y contestar la pregunta usando vocabulario.
Como se dice en espanol –
Indirect Object Pronouns
Capítulo Uno: Primer paso
Saludos #2 * Also means: How are you? ¿Qué tal? What’s up?* (informal)
¿Preguntas? ¿Cómo te llamas? What is your name?
La Comida Hoy es el diecinueve de septiembre. La Comida La Pizza El Sándwich.
Hoy es el veinte de septiembre ¿Qué te gusta Hacer?
VERBO QUERER To want.
Gramática Lección Preliminar Created by: D. Rodríguez.
Saludos Y Expresiones de Cortes í a Greeetings and Expressions of Courtesy.
Gramática 3.1 Gustar with infinitives Pronouns after prepositions
What kind of verb is JUGAR? An ________ VERB. It is also a Stem-Changing verb. What stem-changing verb did we see a few chapters ago? _________________.
Los interrogativos.
(Greetings & farewells)
Bienvenidos a la clase de español. ¡Hola! Me llamo Señora Matousek.
Gustar y los sujetos. So far, we have seen the phrases: Me gusta correr. – I like to run. Te gusta bailar. – You like to dance. Le gusta comer. – He likes.
Avancemos 1 Lección Preliminar
TO BE Exercises 11. ¿Cuántos años tiene (ella)?
¿Saber o Conocer?, esta es la cuestión…. Saber o Conocer In Spanish, there are two verbs that express the idea "to know." These two verbs are "saber"
Pick up a review packet and speaking exam sheet from the back table.
Los verbos. Instrucciones Take notes on the following information on conjugating verbs. See Mrs. Morrison with any questions.
Quiz # 1 Las introducciones.
Tú Commands Pages 102 and 132. When do I use tú commands? You use the tú command when you are giving advice telling someone you know what you want them.
Sponge: Primero (1), read the essential question, How are language and culture connected? Segundo (2), On your sticky note write a readable and appropriate.
9/20 A- Complete the sentences: 1. Me llam_ Pablo. 2. ¿Cómo te llam_ _? 3.¿Cómo se llam_ ? B- Contesta las preguntas (oraciones completas). 1. ¿Estudias.
TO BE PLEASING THE VERB: GUSTAR A.Pardo Student Copy.
Hoy es el 20 de Abril Capitulo 6.
Revision Hola chicos, please get a pen and paper, show in slide show and write down answers and check back okay.. Good luck! Hasta luego.
Interrogatives-Question Words Must use an upside question mark at the beginning of your question. ¿ All have accents. Do not use in your answer. They.
Warm Up, el jueves, el 27 de septiembre Write the correct pronoun. 1.____ es Juan. 2.______ somos amgias. 3.____ soy una maestra. Write the correct form.
Present Tense of the Verbs Second and third conjugation.
Hacer Ahora Copy the sentence below and translate it into English.
Chapter 1 Part 1. Vocabulario Part 1 Como te llamas?- What’s your name? Como se llama usted?- What’s your name? (to an adult) Me llamo…- My name is… Soy…-
¿Qué? is used to ask for a definition or explanation. ¿Qué es el flan?
Make Meals Memorable Take Time to Eat Together and Talk With Your Family. Haga memorables las comidas Tome tiempo para comer y conversar con su familia.
Informal and Formal Greetings
1 Present tense conjugations of regular –AR verbs Los Verbos Regulares.
¿Cómo eres? Soy... Tengo... ¿Cómo es? Es... Tiene...
It is in giving that we receive, It is in pard’ning that we are pardoned And it is in dying that we are born to eternal life Mientras más das, recibiras.
Preterite of AR Verbs Chapter 8 Grammar 1.1.
Chapter 1 = Capitulo 1 Planner: 0-10: Go over new chapter vocabulary and distribute materials; 10-45: Supervise students as they make flashcards; 45-50:
DESCRIBING MY EYES: los ojos
WHERE DO WE COME FROM: Introduction to Tolerance Lourdes Rubio LPC Counselor-Kenmore.
LT 1 & 2. LT-2: I can introduce myself and others. This means that I know how to tell people what my name is and can tell what others’ names are using.
On a Spanish question you must put a question mark before and after the phrase.  ¿ Cuál? Which?  ¿Cuándo? When?  ¿Cuánto? How much?  ¿Cómo? How? 
BUENOS DíAS BUENAS TARDES BUENAS NOCHES
1. You’re introduced to Sra. Fuertes. ______
First Grade Dual High Frequency Words
Los Saludos y Las Despedidas
Los Saludos y Las Despedidas
Writing Prompts.
Los Saludos y Las Despedidas
This is a sample text. Enter Your text Here Title Goes here This is a sample text. You can replace this text. Enter your text here.
Los Saludos y Las Despedidas
Los Saludos y Las Despedidas Los Saludos y Las Despedidas Spanish Greetings Spanish Greetings © 2011 The Enlightened Elephant.
Transcripción de la presentación:

Ruby CI-2413 Desarrollo de Aplicaciones para Internet

Números calc.rb puts 1+2 Tipos: Enteros, flotantes. Operaciones: /, +, *, - ()

Letras puts 'Hello, world!' puts '' puts 'Good-bye. puts 'Me gusta el ' + 'queque de manzana. puts 'parpadea ' * 4 No se pueden sumar hileras con números o multiplicar hileras por hileras.

Variables y asignaciones miHilera = '...usted puede decir esto de nuevo...' puts miHilera var1 = 8 var2 = var1 puts var1 puts var2

Conversiones var1 = 2 var2 = '5' puts var1 + var2 puts var1.to_s + var2 puts var1 + var2.to_i puts '15'.to_f

puts puts 20 puts 20.to_s puts '20'

gets puts '¿Hola, cuál es tu nombre?' nombre = gets puts ¿Tu nombre es ' + nombre + '? ¡Qué nombre más adorable!' puts 'Encantado de conocerte, ' + nombre + '. :)'

chomp puts '¿Hola, cuál es tu nombre?' nombre = gets.chomp puts ¿Tu nombre es ' + nombre + '? ¡Qué nombre más adorable!' puts 'Encantado de conocerte, ' + nombre + '. :)'

Más métodos iCantBelieveIMadeAVariableNameThis LongJustToPointToA3 = 3 puts iCantBelieveIMadeAVariableNameThis LongJustToPointToA3 self.puts iCantBelieveIMadeAVariableNameThis LongJustToPointToA3

Más métodos var1 = 'stop' var2 = 'stressed' var3 = 'Can you pronounce this sentence backwards?' puts var1.reverse puts var2.reverse puts var3.reverse puts var1 puts var2 puts var3

Más métodos puts 'What is your full name?' name = gets.chomp puts 'Did you know there are ' + name.length.to_s + ' characters in your name, ' + name + '?'

Más métodos letters = 'aAbBcCdDeE' puts letters.upcase puts letters.downcase puts letters.swapcase puts letters.capitalize puts ' a'.capitalize puts letters

Más métodos lineWidth = 50 puts( 'Old Mother Hubbard'.center(lineWidth)) puts( 'Sat in her cupboard'.center(lineWidth)) puts( 'Eating her curds an whey,'.center(lineWidth)) puts( 'When along came a spider'.center(lineWidth)) puts( 'Which sat down beside her'.center(lineWidth)) puts('And scared her poor shoe dog away.'.center(lineWidth))

Más métodos lineWidth = 40 str = '--> text <--' puts str.ljust lineWidth puts str.center lineWidth puts str.rjust lineWidth puts str.ljust (lineWidth/2) + str.rjust (lineWidth/2)

Más métodos puts 5**2 puts 5**0.5 puts 7/3 puts 7%3 puts 365%7

Más métodos puts((5-2).abs) puts((2-5).abs)

Más métodos puts rand puts(rand(100)) puts(rand(1)) puts(rand( )) puts('The weatherman said there is a '+rand(101).to_s+'% chance of rain,') puts('but you can never trust a weatherman.')

Más métodos srand 1776 puts(rand(100)) puts '' srand 1776 puts(rand(100))

Más métodos puts(Math::PI) puts(Math::E) puts(Math.cos(Math::PI/3)) puts(Math.tan(Math::PI/4)) puts(Math.log(Math::E**2)) puts((1 + Math.sqrt(5))/2)

Comparaciones puts 1 > 2 puts 1 < 2 puts 5 >= 5 puts 5 <= 4 puts 1 == 1 puts 2 != 1 puts 'cat' < 'dog'

Flujo puts 'Hello, and welcome to 7th grade English.' puts 'My name is Mrs. Gabbard. And your name is...?' name = gets.chomp if name == name.capitalize puts 'Please take a seat, ' + name + '.' else puts name + '? You mean ' + name.capitalize + ', right?' puts 'Don\'t you even know how to spell your name??' reply = gets.chomp if reply.downcase == 'yes' puts 'Hmmph! Well, sit down!' else puts 'GET OUT!!' end

Ciclos command = '' while command != 'bye' puts command command = gets.chomp end puts 'Come again soon!'

Lógica iAmChris = true iAmPurple = false iLikeFood = true iEatRocks = false puts (iAmChris and iLikeFood) puts (iLikeFood and iEatRocks) puts (iAmPurple and iLikeFood) puts (iAmPurple and iEatRocks) puts puts (iAmChris or iLikeFood) puts (iLikeFood or iEatRocks) puts (iAmPurple or iLikeFood) puts (iAmPurple or iEatRocks) puts puts (not iAmPurple) puts (not iAmChris )

Arreglos [] [5] ['Hello', 'Goodbye'] flavor = 'vanilla' # This is not an array, of course... [89.9, flavor, [true, false]] #...but this is.

Arreglos names = ['Ada', 'Belle', 'Chris'] puts names puts names[0] puts names[1] puts names[2] puts names[3] # This is out of range.

Arreglos languages = ['English', 'German', 'Ruby'] languages.each do |lang| puts 'I love ' + lang + '!' puts 'Don\'t you?' end puts 'And let\'s hear it for C++!' puts '...'

Iterador 3.times do puts 'Hip-Hip-Hooray!' end

Más arreglos foods = ['artichoke', 'brioche', 'caramel'] puts foods puts puts foods.to_s puts puts foods.join(', ') puts puts foods.join(' :) ') + ' 8)' 200.times do puts [] end

Arreglos favorites = [] favorites.push 'raindrops on roses' favorites.push 'whiskey on kittens' puts favorites[0] puts favorites.last puts favorites.length puts favorites.pop puts favorites puts favorites.length

Métodos def sayMoo puts 'mooooooo...' end sayMoo puts 'coin-coin' sayMoo

Métodos def doubleThis num numTimes2 = num*2 puts num.to_s+' doubled is '+numTimes2.to_s end doubleThis 44

Return def sayMoo numberOfMoos puts 'mooooooo...'*numberOfMoos 'yellow submarine' end x = sayMoo 2 puts x

Clases class Die def initialize # I'll just roll the die, though we # could do something else if we wanted # to, like setting the die with 6 showing. roll end def = 1 + rand(6) end def end end puts Die.new.showing

Proc toast = Proc.new do puts 'Cheers!' end toast.call