Skip to content

Instantly share code, notes, and snippets.

View LucasAlfare's full-sized avatar
💭
Attempting "masterize" JetPack Compose

Francisco Lucas LucasAlfare

💭
Attempting "masterize" JetPack Compose
  • Imperatriz - MA, Brazil
  • 11:14 (UTC -12:00)
View GitHub Profile
package HueTimer.auxiliares;
import javax.swing.*;
import java.util.TimerTask;
/**
* Created by lucas on 31/10/15.
*/
public class Chronometer extends TimerTask {
import random as r
class Peca(object):
pass
class Edge(Peca):
def __init__(self, name):
self.name = name
@LucasAlfare
LucasAlfare / src_com_MainClass.java
Created April 5, 2016 23:19
Esboço de um Campo Minado em Java.
package com;
import com.minesweeper.TabGui;
import com.minesweeper.Tabuleiro;
/**
* Created by lucas on 01/04/16.
*/
public class MainClass {
public static void main(String[] args) {
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author lucas
*/
@LucasAlfare
LucasAlfare / HueTimer PC_src_HueTimer_auxiliares_Chronometer.java
Last active April 22, 2016 13:24
HueTimer gist. Simple and rudimentar classes for controlling a Rubik's Cube (and variants) trainning timer.
package HueTimer.auxiliares;
import javax.swing.*;
import java.util.TimerTask;
/**
* Created by lucas on 31/10/15.
*/
public class Chronometer extends TimerTask {
@LucasAlfare
LucasAlfare / main_Core.java
Created June 30, 2016 22:33
Sources of my UD square-1 Algorith Converter.
package com.main;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
@LucasAlfare
LucasAlfare / sq12phase_FullCube.java
Created August 5, 2016 02:50
Square-1 "solver". I don't know how this works as well, so I'm saving this here to study along time. All credits to Cheng Shuang, or Chuang Cheng, I always make his name wrong, sorry. :(
package cs.sq12phase;
import java.util.*;
public class FullCube implements Comparable<FullCube> {
int ul = 0x011233;
int ur = 0x455677;
int dl = 0x998bba;
int dr = 0xddcffe;
@LucasAlfare
LucasAlfare / main_Main.java
Created August 24, 2016 00:15
Em portugues..
package main;
/**
* Created by lucas on 22/08/16.
*/
public class Main {
public static void main(String[] args) {
new Square().printSquare();
}
@LucasAlfare
LucasAlfare / exercice1_DisplayConstants.java
Created August 28, 2016 17:41
Esboço de Jogo-Da-Velha (tic-tac-toe) para uma amiga...
package exercice1;
/**
* Created by lucas on 27/08/16.
*
* Essa interface provem as representacoes visuais para
* serem exibidas no jogo. Ambas as representacoes podem
* ser retornadas como inteiros, para fins de elaboracao
* de logica por meio do metodo getSimboloByInt(int arg).
*/
@LucasAlfare
LucasAlfare / RandomPersonalizado.java
Last active October 9, 2016 02:16
ESBOÇO de gerador personalizado de números "aleatórios". Ta horrível, hahahah
package testes;
/**
* Created by lucas on 08/10/16.
*/
public class RandomPersonalizado {
public static long aleatorio(long limite){
long r = 0;