Skip to content

Instantly share code, notes, and snippets.

Rodrigo Hausen hausen

Block or report user

Report or block hausen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hausen
hausen / gist:9501041
Last active Aug 29, 2015
"Fixing" xkcd 1340 (or making the most redonkulous clock ever)
View gist:9501041

"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].

@hausen
hausen / Funcoes.java
Created Apr 14, 2012
UFABC - aula PI funções exemplo 4
View Funcoes.java
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 / PoemaDecorado3.java
Created Apr 14, 2012
UFABC - aula PI funções exemplo 3
View PoemaDecorado3.java
package funcoes;
public class PoemaDecorado3
{
public static void imprimeDecoracao()
{
System.out.println("=========================");
}
@hausen
hausen / PoemaDecorado2.java
Created Apr 14, 2012
UFABC - aula PI funções exemplo 2
View PoemaDecorado2.java
package funcoes;
public class PoemaDecorado2
{
public static void imprimeDecoracao()
{
System.out.println("=========================");
}
@hausen
hausen / PoemaDecorado1.java
Created Apr 14, 2012
UFABC - aula PI funções exemplo 1
View PoemaDecorado1.java
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á");
You can’t perform that action at this time.