Reference sheet of my commonly used Java techniques.
Thread t1 = new Thread(() -> {
doSomeTask();
maybeAnotherTaskHere(); | // 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; |
| package xyz.hiddengames.command; | |
| @FunctionalInterface | |
| public interface ICommand<T> { | |
| void execute(T item); | |
| //void undo(T item); | |
| } |
| 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 { |
| MYSQL_ROOT_PASSWORD= | |
| MYSQL_USER= | |
| MYSQL_PASSWORD= | |
| MYSQL_DATABASE= |
Install the following by using the steps given on the website for these applications:
| /** | |
| * Purpose: What does this class do? | |
| * | |
| * @version 1.0 | |
| * @since ${DATE} - ${TIME} | |
| * @author Shahid Karim | |
| */ |
| package excel.core; | |
| import lombok.Data; | |
| import lombok.experimental.Accessors; | |
| /** | |
| * Purpose: Required variables/methods for any TestDataControllers. | |
| * | |
| * @author Shahid Karim | |
| * @version 1.0 |
| 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) |