Skip to content

Instantly share code, notes, and snippets.

@manuchandel
manuchandel / io.cpp
Created February 8, 2017 13:26
Fast I/O in C/C++
/*
grab the whole line
char a[100];
cin.getline(a,100);
scanf("%[^\n]",a);
gets(a);
*/
inline void fastRead_int(int *a)
{
@manuchandel
manuchandel / tweet_dumper.py
Created June 30, 2016 09:00 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into JSON
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import json
import sys
#Twitter API credentials
consumer_key = ""
consumer_secret = ""