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 shuffleSongs = (songList) => { | |
let index = Date.now() % songList.length | |
let list = [] | |
for (var i = 0; i < songList.length/2; i++) { | |
if (index + i < songList.length) { | |
list.push(songList[index + i]) | |
} else { | |
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
import itertools | |
pair = {} | |
_list = [] | |
for i in range(1, 1025): | |
for j in range(i, 1025): | |
try: | |
pair[i * j] = pair[i * j] | |
except: | |
pair[i * j] = [] |
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
0xea4b70d06c583bdf8d54f4f5d6ea397863609a23 |