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
(defn verifica [x y] (do (print x "==" y "? ") (assert (= x y)) (println "OK"))) | |
(defn soma-dois-primeiros [frame] (reduce + (take 2 frame))) | |
(defn pontos-do-ultimo-frame [frame] (reduce + frame)) | |
(defn segunda-jogada [jogo] | |
(if (and (= 10 (ffirst jogo)) (> (count jogo) 1)) | |
(first (second jogo)) | |
(second (first jogo)))) |
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
html( | |
head( | |
title("Page generated by VRaptor's HTML DSL"), | |
css("/css/example.css"), | |
js("https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"), | |
js("/js/example.js") | |
), | |
body( | |
image("/images/vraptor-logo.png", "VRaptor Logo"), | |
p( |
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
#!/bin/bash | |
# depends: figlet beep | |
# usage: countdown.sh <seconds> | |
COLUMNS=$(tput cols) | |
for i in `seq $1 -1 1` | |
do | |
clear | |
figlet -w $COLUMNS -c $i |
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
/* Aside nav test by srsaude */ | |
.main-nav-link { | |
position: fixed; | |
top: 50%; | |
left: 100%; | |
transform: translate(-50%, -50%); | |
display: block; | |
width: 50px; | |
height: 50px; | |
overflow: hidden; |
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
/* JRE 8 profiles graph */ | |
.jvm-profile p { | |
height: 0; | |
color: white; | |
border-left: 3em solid transparent; | |
border-right: 3em solid transparent; | |
text-align: center; | |
margin: 1em auto; | |
} | |
.jvm-profile .compact1 { |
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
/* Multiline boxes */ | |
.exp { | |
width: 40ch; | |
margin: 1em; | |
background-color: #FFB; | |
} | |
.caixinha { | |
width: 10ch; | |
height: 2em; | |
background-color: #FF6; |
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
/* flexbox use case */ | |
.products { | |
padding: 0; | |
margin: 0; | |
} | |
.product { | |
background-color: #FFC; | |
font-size: 60%; | |
list-style: none; | |
margin: 1em; |
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
body { overflow-y: scroll; } | |
.caixas { | |
background-color: #ffc; | |
margin: 0; | |
padding: 0; | |
} | |
.caixa { | |
list-style: none; | |
border: .4vw solid; | |
width: 20vw; |
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
.container { | |
border: 2px solid black; | |
text-align-last: justify; | |
margin: 0; | |
padding: 0; | |
} | |
.content { | |
width: 20%; | |
display: inline-block; | |
height: 100px; |
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
html,body { | |
height: 100%; | |
} | |
body:before { | |
content: ''; | |
height: 100%; | |
display: inline-block; | |
vertical-align: middle; | |
} | |
meter { |
OlderNewer