Presentations
Templates
Features
Teams
Pricing
Log in
Sign up
Log in
Sign up
Menu
Twitter en lumière
Sommaire
Introduction
Les bases du code
Allumons la lumière
Un peu de logique
Connexion avec Twitter
#simplon
#votreasso
Raspberry Pi
Micro-ordinateur
HDMI
USB
Ethernet
MicroSD
GPIO
700 Mhz
512 Mo
Ruby
irb
puts()
puts("Bonjour Simplon")
name = "Yassin"
puts("Bonjour " + name)
name = "Martin"
puts("Bonjour " + name)
name.upcase()
Led.red()
load "led.rb"
Led.red()
Led.blue()
Led.pink()
Led.green()
Led.yellow()
Led.orange()
?
Bonjour
Hello
country = "France"
if country.include("France")
puts("Bonjour")
end
country = "England"
if country.include("France")
puts("Bonjour")
else
puts("Hello")
end
countries = ["France", "Mali", "Sénégal"]
country = "Mali"
if country.include(countries)
puts("Bonjour")
end
API Twitter
Twitter.when(["#simplon"]) do |tweet|
puts(tweet)
end
Twitter.when(["#simplon", "#tech"]) do |tweet|
puts(tweet)
if tweet.include("#simplon")
Led.red()
end
end
Twitter.when(["#simplon", "#tech"]) do |tweet|
puts(tweet)
if tweet.include(["#simplon"])
Led.red()
else
Led.blue()
end
end
Merci et bravo !!!
Copy of Twitter en lumière (Okapi)
By aghaniyassin
Made with Slides.com
Copy of Twitter en lumière (Okapi)
976
aghaniyassin
More from
aghaniyassin