Skip to content

Instantly share code, notes, and snippets.

@hausen
hausen / PoemaDecorado1.java
Created April 14, 2012 15:17
UFABC - aula PI funções exemplo 1
package funcoes;
public class PoemaDecorado1
{
public static void main(String args[])
{
System.out.println("Minha terra tem palmeiras");
System.out.println("=========================");
System.out.println("Onde canta o sabiá");
@hausen
hausen / PoemaDecorado2.java
Created April 14, 2012 15:19
UFABC - aula PI funções exemplo 2
package funcoes;
public class PoemaDecorado2
{
public static void imprimeDecoracao()
{
System.out.println("=========================");
}
@hausen
hausen / PoemaDecorado3.java
Created April 14, 2012 15:26
UFABC - aula PI funções exemplo 3
package funcoes;
public class PoemaDecorado3
{
public static void imprimeDecoracao()
{
System.out.println("=========================");
}
@hausen
hausen / Funcoes.java
Created April 14, 2012 15:27
UFABC - aula PI funções exemplo 4
package funcoes;
import javax.swing.JOptionPane;
public class Funcoes {
public static void imprimeResultado(String nomeOp, double res)
{
JOptionPane.showMessageDialog(null,
"O resultado da " + nomeOp + " é: " + res);
}
@hausen
hausen / gist:9501041
Last active August 29, 2015 13:57
"Fixing" xkcd 1340 (or making the most redonkulous clock ever)

"Fixing" xkcd 1340 (or making the most redonkulous clock ever)

Update: feeling adventurous? Clone or fork the xkcd clock! If you just want to see it in action or get a glimpse of how it works, keep reading.

Problem

The date in [xkcd's comic number 1340][1] [does not change][2].