Skip to content

Instantly share code, notes, and snippets.

View imshubhamsingh's full-sized avatar
🏠
Working from home

Shubham Singh imshubhamsingh

🏠
Working from home
View GitHub Profile
@imshubhamsingh
imshubhamsingh / Rinkeby.eth
Created July 8, 2018 06:57
get testnet ether from Rinkey Faucet
0xea4b70d06c583bdf8d54f4f5d6ea397863609a23
@imshubhamsingh
imshubhamsingh / Pair.py
Created May 20, 2018 10:14
Program for finding pair of number with same product
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] = []
@imshubhamsingh
imshubhamsingh / shuffleSongList.js
Created March 31, 2018 03:44
Shuffle Song List in Javascript in O(n)
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;
}