Skip to content

Instantly share code, notes, and snippets.

@ketanhwr
ketanhwr / icpc-rank-notifier.py
Created May 24, 2017 16:05
Gives a notification along with rank whenever an Indian team solves a new problem in ICPC World Finals!
from bs4 import BeautifulSoup
import requests
import pynotify
import time
def sendmessage(title, message):
pynotify.init("Test")
notice = pynotify.Notification(title, message)
notice.show()
return
@ketanhwr
ketanhwr / info.py
Last active May 25, 2017 02:25
A Slack bot for telling contact details of any member. Picks up the details from a Google Spreadsheet.
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import os
import time
from slackclient import SlackClient
# constants
BOT_NAME = 'info'
SLACK_BOT_TOKEN = # not gonna give you that :p
scope = ['https://spreadsheets.google.com/feeds']