Skip to content

Instantly share code, notes, and snippets.

View kauefraga's full-sized avatar

Kauê Fraga Rodrigues kauefraga

View GitHub Profile
@kauefraga
kauefraga / exemploawt.java
Last active October 19, 2024 15:55
Apresentação de linguagem de programação - Introdução ao Swing e AWT
import java.awt.*;
import java.awt.event.*;
public class IntroducaoAoSwingEAwt {
public static void main(String[] args) {
Frame frame = new Frame("Login");
Label lUsuario = new Label("Nome de usuário");
TextField tUsuario = new TextField();
@kauefraga
kauefraga / blocklist.txt
Last active September 29, 2024 15:10
Tsurugi blocklist
bsky.app
youtube.com
www.youtube.com
instagram.com
twitch.tv
www.twitch.tv
@kauefraga
kauefraga / readings.md
Last active April 2, 2025 00:59
My reading list | minha lista de leituras :)
@kauefraga
kauefraga / headers.md
Last active August 19, 2024 23:06
Some markdown headers that I saw in other projects and I use in my ones.
alt

Project name

Project description.

More description here.

@kauefraga
kauefraga / settings.json
Last active October 27, 2024 19:35
My Visual Studio Code settings
{
/* -- Security -- */
"security.workspace.trust.untrustedFiles": "newWindow",
/* -- Fonts -- */
"editor.fontSize": 18,
"editor.tabSize": 2,
"editor.lineHeight": 28,
"terminal.integrated.fontSize": 16,
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
@kauefraga
kauefraga / jogo.java
Last active March 19, 2024 22:33
😎 Joguinho muito brabo feito durante as aulas de Banco de Dados e Lógica de Programação.
/* Autores:
* Kauê
* Gabriel
* Raphael
* Felipe
*/
import java.util.Scanner;
class joguinho {
public static void main(String[] args) {
@kauefraga
kauefraga / Makefile-golang
Created December 6, 2023 20:54
🐹 A simple cross-platform build script (for Golang).
# Remember to indent with tabs
BINARY_FOLDER=bin
BINARY_NAME={}
debug:
go build -o debug/${BINARY_NAME} ./src/main.go
./debug/${BINARY_NAME}
@kauefraga
kauefraga / logger.ts
Last active November 17, 2023 21:54
Simple console output wrapper without any dependency. (typescript)
type WhoIsLogging = 'SERVER' | 'MIDDLEWARE' | 'API' | 'DATABASE';
// ANSI escape code
const reset = '\x1b[0m';
// Foreground colors
const red = '\x1b[31m';
const green = '\x1b[32m';
const yellow = '\x1b[33m';
@kauefraga
kauefraga / movingthemouse.cpp
Created July 3, 2023 22:37
🖱 A code that move the cursor randomly in the screen (1280x720).
#include <windows.h>
#include <thread>
namespace screen {
const int WIDTH = 1280;
const int HEIGHT = 720;
}
int main() {
// Seeding with current time