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"
Method :
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()
Led.yellow()
pays = "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", "GroupeLaPoste"]) do |tweet|
puts(tweet)
if tweet.include("GroupeLaPoste")
Led.blue()
elsif
tweet.include("LaPoste")
Led.yellow()
end
end
load "sms.rb"
Sms.send('+33650174288', tweet)
IFTTT
Zappier
Copy of Twitter en lumière
By aghaniyassin
Made with Slides.com
Copy of Twitter en lumière
1,001
aghaniyassin
More from
aghaniyassin