Presentations
Templates
Features
Teams
Pricing
Log in
Sign up
Log in
Sign up
Menu
Twitter en lumière
Raspberry Pi
Micro-ordinateur
HDMI
USB
Ethernet
MicroSD
GPIO
700 Mhz
512 Mo
Ruban de LED
Ruby
irb
Variable :
color = "orange"
Methode :
puts(color)
puts("color")
Mixons tout ça
puts("Ma couleur préférée est " + color)
color = "rouge"
color.upcase()
Importer une librairie :
load "led.rb"
Led.red()
Led.blue()
country = "France"
Condition :
if country.include("France")
puts("Bonjour")
end
if country.include("France")
puts("Bonjour")
else
puts("Hello")
end
if country.include("France ")
puts("Bonjour")
elsif country.include("Spain")
puts("Holla")
else
puts("Hello")
end
Array :
countries = ["France", "Spain", "Mali"]
if country.include(["France","Mali"])
puts("Bonjour")
end
Twitter API
Tweeter.when(["
LaPoste
"]) do |tweet|
puts tweet
end
Tweeter.when(["LaPoste"]) do |tweet|
puts tweet
if tweet.include(["super", "bravo", "merci"])
Led.yellow()
end
end
load "sms.rb"
Sms.send('+33650174288', tweet)
IFTTT
Zappier
Copy of Copy of Twitter en lumière
By aghaniyassin
Made with Slides.com
Copy of Copy of Twitter en lumière
1,025
aghaniyassin
More from
aghaniyassin