Skip to content

Instantly share code, notes, and snippets.

View Kensukeken's full-sized avatar
✖️
In world's ones and zeros, I found my place.

Kenzy Kensukeken

✖️
In world's ones and zeros, I found my place.
View GitHub Profile
@Kensukeken
Kensukeken / job.jsx
Created May 21, 2026 01:49
Job application tracker
import { useState, useEffect, useRef } from "react";
const STORAGE_KEY = "jobtracker_data_v2";
const STATUS_CONFIG = {
applied: { label: "Applied", color: "#6366f1", bg: "#eef2ff", dot: "#6366f1" },
in_process: { label: "In Progress", color: "#f59e0b", bg: "#fffbeb", dot: "#f59e0b" },
interview: { label: "Interview", color: "#0ea5e9", bg: "#f0f9ff", dot: "#0ea5e9" },
offer: { label: "Offer", color: "#10b981", bg: "#ecfdf5", dot: "#10b981" },
accepted: { label: "Accepted ✓", color: "#059669", bg: "#d1fae5", dot: "#059669" },
package com.lab8;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.ToggleButton;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.BorderPane;
@Kensukeken
Kensukeken / artwork.css
Created February 27, 2025 04:24
Artwork Slider
@charset "utf-8";
#art {
width: 90%;
max-width: 900px;
height: auto;
max-height: auto;
margin: 50px auto;
padding-top: 20px;
position: relative;
@Kensukeken
Kensukeken / javafx_event_handler.md
Created February 27, 2025 00:08
JavaFX Event Handler Functions

JavaFX Event Handler Functions

Overview

This document provides a list of commonly used JavaFX event handler functions with simple explanations and code examples.

1. Action Event

  • setOnAction(EventHandler<ActionEvent> handler)
    • Description: Defines what happens when a button is clicked.
    • Example:
@Kensukeken
Kensukeken / markdown.md
Created February 22, 2025 01:23
Ultimate Git Reference: Commands, Files, and Workflows

Git Commands Cheat Sheet

Basic Commands

# Initialize a new Git repository
git init

# Clone a repository
git clone <repository-url>
@Kensukeken
Kensukeken / main.py
Created February 22, 2025 01:15
Python Quick Reference
# List comprehension
squares = [x**2 for x in range(10)] # [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
# Dictionary comprehension
squared_dict = {x: x**2 for x in range(10)} # {0: 0, 1: 1, 2: 4, ..., 9: 81}
# Set comprehension
unique_squares = {x**2 for x in range(-5, 6)} # {0, 1, 4, 9, 16, 25}
# Lambda function
@Kensukeken
Kensukeken / main.js
Created February 22, 2025 01:12
JavaScript Utility Functions
// Debounce function for performance optimization
function debounce(func, delay) {
let timeout;
return function(...args) {
clearTimeout(timeout);
timeout = setTimeout(() => func.apply(this, args), delay);
};
}
// Deep clone an object
@Kensukeken
Kensukeken / styles.css
Created February 22, 2025 01:08
Common CSS Comments and Snippets from CSS Notes for Professionals
/* External Stylesheet: Best practice for managing CSS across multiple pages. */
<link rel="stylesheet" type="text/css" href="style.css">
/* Internal Styles: CSS within the HTML document, inside <style> tags. */
<style>
h1 { color: green; }
</style>
/* Inline Styles: Applied directly to an element using the style attribute. */
<h1 style="color: green;">Hello World!</h1>
@Kensukeken
Kensukeken / ANSI-color-codes.h
Created March 5, 2023 21:11 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"