Skip to content

Instantly share code, notes, and snippets.

View thauansrx's full-sized avatar
🎯
Focusing

Thauan Trindade thauansrx

🎯
Focusing
View GitHub Profile
@thauansrx
thauansrx / ordenacaoBubble.java
Last active August 10, 2017 22:10
***Algoritmo de Ordenação Bubble Sort
public class ordenacaoBubble {
public static void main(String[] args) {
/*
*Algoritmo de Ordenacao Bubble Sort
*/
int vetor[] = {3, 9, 5, 2, 10, 1, 4, 7, 6, 8};
int aux;
boolean controle;
@thauansrx
thauansrx / eraUnix.java
Last active September 27, 2019 23:14
horario_atual
class eraUnix {
public static void main(String[] args) {
long totalMilisegundos = System.currentTimeMillis();
//*****************Segundos atual*****************
long totalSegundos = totalMilisegundos / 1000;
public void vida() {
gl.glPushMatrix();
gl.glColor3f(1, 0, 0);
gl.glTranslatef(2.5f, 0.0f, 0.0f);
glut.glutSolidSphere(4, 10, 10);
gl.glPopMatrix();
gl.glPushMatrix();
gl.glTranslatef(-2.5f, 0.0f, 0.0f);
grammar aps_compiladores_c_rec;
/*
Executar
antlr4 Aps.g4
javac Aps*.java
grun Aps prog -gui input.txt
*/
/*