This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TwoWayMap { | |
constructor(map) { | |
this.map = map; | |
this.reverseMap = new Map(); | |
this.map.forEach((val, key) => { | |
this.reverseMap.set(val, key); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Spinny Spin Spin</title> | |
<style> | |
body { overflow: hidden; } | |
#rotate-me { width: 100vw; height: 100vh; } | |
</style> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim shell, val, regKey | |
On Error Resume Next | |
' UNIX time of OS installation | |
regKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate" | |
' Invoke WScript and read the key | |
Set shell = CreateObject("WScript.Shell") | |
val = shell.RegRead(regKey) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Provides functionality for checking if given object is of a specific data type. | |
# --- | |
# Currently supporting the following data types: | |
# * Array | |
# * String | |
# * Integer | |
# | |
# = Example | |
# users = ['jack', 'joe', 'john', 'anotherJname'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace HensleyDev\Utility; | |
use Exception; | |
class DotNotationConfig | |
{ | |
/** | |
* Contains the configuration details (assoc. array). | |
* [configuration] => |