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
function generateBase64UUID() { | |
const byteArray = new Uint8Array(16); | |
window.crypto.getRandomValues(byteArray); | |
// Set the UUID version (4) and variant (2) | |
byteArray[6] = (byteArray[6] & 0x0f) | 0x40; | |
byteArray[8] = (byteArray[8] & 0x3f) | 0x80; | |
let base64String = ''; | |
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; |
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
function git-merge { | |
set -x | |
git fetch | |
git checkout $1 | |
git pull | |
git checkout $2 | |
git pull | |
if [[ ! $(git merge $1) ]]; then | |
return "Merge failed for $1" |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<p id="enc" style="word-wrap: break-word;"></p> | |
<p id="dec"></p> |