Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
// Paste this into your console on IMDB's episodes page for a TV show.
function waitForEpisodes() {
return new Promise((resolve, reject) => {
const callback = function (mutationsList, observer) {
resolve(mutationsList);
observer.disconnect();
};
const observer = new MutationObserver(callback);
observer.observe(document.getElementById("episodes_content"), {
@Mohsen-94
Mohsen-94 / randomColor.js
Last active April 2, 2019 08:33
A small function that returns a random CSS hexadecimal color in a string format.
function randomColor() {
//Function that returns a random CSS hexadecimal color in string format
//Example output of randomColor() --> "#ff2c41"
let finalHexResult = '#';
let integer, hexString;
//Loop 3 times to generate a hexadecimal number for each color: Red, Green and Blue.
for (let i = 0; i < 3; i++) {
//Random integer number between (0 - 255)
integer = Math.floor(Math.random() * 255);
//Convert number to the base 16 number system and to a String
/*
* Name = Abdulmohsen ali asiri
* ID = 36110218
*/
package testintegerdll;
/**
*
* @author asiri
*/
/*
* Name = Abdulmohsen ali asiri
* ID = 36110218
*/
package testintegerdll;
public class DLL<T> {
private DLLNode<T> head, tail;