- Open
gmail.com
- switch to secondary accuont in gmail
- install a Gmail as PWA on desktop as a seperate window
- make sure the PWA has secondaary account opened in PWA window
- Quit the PWA and open it again
- Obeserve that
- the primary account is opened in PWA always no matter how many times you quit and reopen
- also you cant switch the account in PWA to secondary account
- if you try to switch to the secondary account then it is opened in browser and not in PWA
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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
[ | |
{ | |
"id": 342, | |
"first_name": "Imelda", | |
"last_name": "Seamark", | |
"email": "iseamark0@mozilla.org", | |
"gender": "Agender", | |
"ip_address": "239.185.36.189" | |
}, | |
{ |
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
const text = 'An obscure body in the S-K System, your majesty. The inhabitants refer to it as the planet Earth.'; | |
async function digestMessage(message) { | |
const msgUint8 = new TextEncoder().encode(message); // encode as (utf-8) Uint8Array | |
const hashBuffer = await crypto.subtle.digest('SHA-256', msgUint8); // hash the message | |
const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array | |
const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); // convert bytes to hex string | |
return hashHex; | |
} |
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
123mail.org | |
150mail.com | |
150ml.com | |
16mail.com | |
2-mail.com | |
4email.net | |
50mail.com | |
aim.com | |
airpost.net | |
alice.it |
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 minimalHeaviestSetA(arr) { | |
let result = []; | |
const sum = (arr) => arr.reduce((acc, curr) => acc + curr, 0); | |
const sortedArr = [...arr].sort((x, y) => x - y > 0 ? -1 : 1); | |
const n = sortedArr.length; | |
const target = sum(arr) / 2 | |
for(let i = 0; i < n; i++) { | |
if(sum(result) > target) { | |
break | |
} |
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
// download some lytrical video from youtube using youtubelink | |
yt-dlp "someYoutubeLink" --extractor-args youtube:player_client=android --throttled-rate 100K -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" | |
// merge downloaded youtube lyrical video with karaoke audio to create karaoke video trakc | |
ffmpeg -i someVideo.mp4 -i someAudio.mp3 -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 "Output Karaoke.mp4" |
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
let o = { | |
k: 10, | |
a: { | |
b: { | |
c: ["10", "20"] | |
}, | |
}, | |
d: { | |
e: 20 | |
}, |
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 numberOfItems(s, startIndices, endIndices) { | |
// Write your code here | |
let result = []; | |
const countArr = {} | |
let count = 0 | |
for(let i = s.indexOf("|"); i< s.length; i++) { | |
if(s[i] === "|") { | |
countArr[i] = count; | |
} else { | |
count++; |
NewerOlder