Skip to content

Instantly share code, notes, and snippets.

View h1ddengames's full-sized avatar
🍉

Shahid Karim h1ddengames

🍉
View GitHub Profile
@h1ddengames
h1ddengames / Extractor.js
Created July 10, 2022 06:49
Youtube Playlist Extractor
document.querySelectorAll('a#video-title[href]').forEach(function(element, currentIndex, listObj) {
console.log(currentIndex + ': ' + element.innerText + ' : ' + element);
})
VM5670:2 0: Top 10 SCARY Ghost Videos To SEND YOU RUNNIN' : https://www.youtube.com/watch?v=Yc64zWKIdi0
^ Console text
^ currentIndex
^ innerText (Title)
^ (Separator)
^ element (Link)
@h1ddengames
h1ddengames / AbstractTestDataController.java
Last active April 16, 2022 06:22
Reading Excel .xlsx data using Apache POI
package excel.core;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* Purpose: Required variables/methods for any TestDataControllers.
*
* @author Shahid Karim
* @version 1.0
@h1ddengames
h1ddengames / !File Header.java
Last active March 27, 2022 01:00
Java File and Code Templates for IntelliJ
/**
* Purpose: What does this class do?
*
* @version 1.0
* @since ${DATE} - ${TIME}
* @author Shahid Karim
*/
@h1ddengames
h1ddengames / Vue Project Documentation.md
Created February 28, 2021 07:38
Vue Project Documentation
@h1ddengames
h1ddengames / database.env
Created February 20, 2021 06:02
MySQL Database + PhpMyAdmin using env file Docker-Compose
MYSQL_ROOT_PASSWORD=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=
@h1ddengames
h1ddengames / ImportAssets.cs
Last active November 16, 2023 11:40
Import Assets and Packages in Unity all at once.
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.PackageManager.Requests;
using UnityEditor.PackageManager;
// Place this script in YOUR_PROJECT_FOLDER/Assets/Editor
// Run this script by clicking on the Importer menu item below the Unity title bar (File, Edit ... Importer)
public class ImportAssets : EditorWindow {
@h1ddengames
h1ddengames / JavaTechniques.md
Last active December 21, 2020 07:18
Java Techniques

Java Techniques

Reference sheet of my commonly used Java techniques.

Creating threads

Thread t1 = new Thread(() -> { 
                        doSomeTask(); 
                        maybeAnotherTaskHere(); 
@h1ddengames
h1ddengames / ICommand.java
Created November 26, 2020 08:09
Java Command Pattern
package xyz.hiddengames.command;
@FunctionalInterface
public interface ICommand<T> {
void execute(T item);
//void undo(T item);
}
@h1ddengames
h1ddengames / DropDownController.cs
Last active July 18, 2020 22:52
Unity Textmeshpro Dropdown: Disable certain options from the dropdown list
// MODIFIED FROM https://stackoverflow.com/questions/55297626/disable-an-options-in-a-dropdown-unity
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
@h1ddengames
h1ddengames / ImageReader.java
Last active July 4, 2020 06:50
Using Tesseract OCR, convert an image into the string of letters and words found in the image.
package xyz.hiddengames.core;
import net.sourceforge.tess4j.Tesseract;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;