Skip to content

Instantly share code, notes, and snippets.

@aeris
Created April 2, 2016 16:11
Show Gist options
  • Save aeris/22d33a36637e046df7b7cfa95d3098d2 to your computer and use it in GitHub Desktop.
Save aeris/22d33a36637e046df7b7cfa95d3098d2 to your computer and use it in GitHub Desktop.
Calendrier révolutionnaire français 2016
require 'cgi'
require 'date'
cgi = CGI.new 'html5'
cgi.out {
cgi.html {
cgi.head {
cgi.meta(charset: 'utf-8') +
cgi.title { '#NuitDebout' } +
cgi.style { 'body { font-size: 30pt; } p { margin: auto; width: 75%; background-color: #eee; text-align: center; padding: 50px; border-radius: 20px; }'}
} +
cgi.body {
cgi.p {
"Aujourd’hui, nous sommes le #{31+(Date.today - Date.new(2016, 3, 31)).to_i} mars 2016" +
cgi.br +
cgi.br +
cgi.a(href: 'https://twitter.com/nuitdebout') { '@NuitDebout' }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment