Skip to content

Instantly share code, notes, and snippets.

@shashank88
shashank88 / gist:cf27611b5a87c9477ecbb13b7c0a7a6a
Created November 11, 2020 14:25
Links to Man group github
https://github.com/man-group/
Popular projects:
https://github.com/man-group/dtale
https://github.com/man-group/arctic
https://github.com/man-group/notebooker
import Queue
from collections import defaultdict
def solution(T):
graph = defaultdict(list)
N = len(T);
start = -1
ret = [0]*(N-1)
for i in xrange(N):
@shashank88
shashank88 / poster.py
Created October 17, 2015 13:27
birthday autoposter
from facepy import GraphAPI
import datetime
import random
oauth_token = 'FB_API_KEY '
graph = GraphAPI(oauth_token)
friend_list = graph.get("me/friends?fields=birthday,name")
wishes_list = ["happy birthday!",
"Have a great day!",
"Many happy returns of the day!",