Skip to content

Instantly share code, notes, and snippets.

View khanh-alice's full-sized avatar
📚
Back to basic!

Khanh Le khanh-alice

📚
Back to basic!
View GitHub Profile
@khanh-alice
khanh-alice / randomCGPuzzle.js
Created January 19, 2021 07:58
Print a random language and a random puzzle on Codingame
// Go to a Codingame puzzles page (e.g https://www.codingame.com/training/easy) and run these under DevTools' console
const languages = ['Go', 'Java', 'JavaScript', 'Python', 'Swift']
const puzzles = document.getElementsByClassName("puzzle-content")
console.log('Language:', languages[Math.floor(Math.random() * languages.length)])
console.log('Puzzle:', puzzles[Math.floor(Math.random() * puzzles.length)].href)

Keybase proof

I hereby claim:

  • I am khanh-alice on github.
  • I am khanh_alice (https://keybase.io/khanh_alice) on keybase.
  • I have a public key ASCtaxhgrSqgtpc5kzgjqUaKbqp9G1TfW6gsxtrTyCUvewo

To claim this, I am signing this object: