Last active
October 7, 2020 18:26
-
-
Save ihercowitz/99ce39c1e1274b41abfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Bingo Real recriado em Lisp | |
;; - Roda direto no Emacs - | |
;; | |
;; Como rodar: | |
;; - Abrir o arquivo no Emacs | |
;; - Alt-x | |
;; - Digitar eval-current-buffer | |
;; - Os assuntos serao gerados na area de mensagens apertando Control-F2 | |
(require 'cl) | |
(setq subjects | |
'("Lifan" "Espada ninja" "Dentes de aço" | |
"Namor" "Fiat tunada" "Fazenda" "Jogos de Guerra" | |
"Marinha" "Assembly" "Marcos ruas" | |
"Porradeiro" "Rolex Falsificado" "Mergulho" | |
"Reiki" "MMA" "Canada" "Falar Japones" | |
"Crepusculo" "Bota de couro de carneiro" "Cafe morno" "Torta escandinava" | |
"Primeira lanhouse" "Religiao" "Dancarino" "Professor" | |
"Auditor" "Pirata" "Selvagem" "Street Fighter" | |
"Barriga Tanquinho" "Uma pessoa" "Martelo de Thor" "The Rocket" | |
"Agua viva pela proa" "Onças" "Sapato de diabetico" "Piloto de corrida")) | |
(defun bingo () | |
(interactive) | |
(message "Assunto: [ %s ]" | |
(elt subjects (random (length subjects))))) | |
(global-set-key [C-f2] 'bingo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment