Skip to content

Instantly share code, notes, and snippets.

View kinsleykajiva's full-sized avatar
🏠
Working from home

Kinsley Kajiva kinsleykajiva

🏠
Working from home
  • Africa
  • 12:26 (UTC +02:00)
View GitHub Profile
@jewelsea
jewelsea / JavaFXTrayIconSample.java
Last active September 21, 2025 14:40
Demonstrate using the System Tray (AWT) to control a JavaFX application.
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
import java.io.IOException;
@toddsby
toddsby / backup.php
Last active December 30, 2021 06:01 — forked from menzerath/backup.php
backup.php
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu
* contribution: Drew Toddsby
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');
@AmrMekkawy
AmrMekkawy / currency-dropdown-list.html
Last active April 8, 2023 15:03
Currency HTML "select" element (dropdown list)
<select name="">
<option value="USD" selected="selected">United States Dollars</option>
<option value="EUR">Euro</option>
<option value="GBP">United Kingdom Pounds</option>
<option value="DZD">Algeria Dinars</option>
<option value="ARP">Argentina Pesos</option>
<option value="AUD">Australia Dollars</option>
<option value="ATS">Austria Schillings</option>
<option value="BSD">Bahamas Dollars</option>
<option value="BBD">Barbados Dollars</option>
@Badshah1
Badshah1 / php OOP mysqliDatabaseclass.php
Created April 4, 2015 13:26
php oop mysqli database class insert,update,delete,select methods are there in given file if you have easy way then please share your methods thanks alot
<?php
class Database{
private $host="localhost";
private $username="root";
private $password="mysql";
private $database="sale";
private $DbCon;
public function connect(){
@837
837 / JavaFXUtils
Last active August 22, 2022 13:07
JavaFXUtil Class, stuff you might need in a JavaFX8 GUI
package javaFxUtils;
import java.io.PrintWriter;
import java.io.StringWriter;
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
@karimsqualli96
karimsqualli96 / DoubleFormattedTextFieled.java
Created September 11, 2015 15:10
A Simple Javafx TextField Using TextFormatter To Allow Only Double Value
/*
* 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.
*/
package manager;
import java.util.function.UnaryOperator;
import javafx.application.Application;
import static javafx.application.Application.launch;
@yogonza524
yogonza524 / password_pattern.txt
Created December 29, 2015 06:32
Java pattern for password
((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%-_.]).{6,32})
@ngocpn57
ngocpn57 / CountUpTimer.java
Last active April 6, 2021 05:37
Android CounterUpTimer with pause / resume
import android.os.Handler;
import android.os.SystemClock;
import android.util.Log;
import java.util.ArrayList;
/**
* @author ngocbeo1121
*/
public class CountUpTimer {
@mmdemirbas
mmdemirbas / MultiDatePicker.java
Last active May 31, 2022 22:27
JavaFX Multiple Dates Picker
package com.mmdemirbas.lab;
/**
* Created by md on 5.04.2016.
*/
import javafx.application.Application;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
@kn9ts
kn9ts / uuid.js
Created April 10, 2016 16:26
a light UUID generator (written in JS)
export default class UUID {
constructor() {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
return uuid;
}