Skip to content

Instantly share code, notes, and snippets.

View aritraroy24's full-sized avatar
🤓
:):

Aritra Roy aritraroy24

🤓
:):
View GitHub Profile
@aritraroy24
aritraroy24 / .env
Created June 4, 2021 13:57
.env File Example for Twitter Developer Credentials
Consumer_Key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Consumer_Secret_Key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Access_Token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Access_Token_Secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
@aritraroy24
aritraroy24 / contact_email_phone.py
Created August 10, 2020 18:48
Code to retrieve email and phone no from google contacts
from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import json
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/contacts.readonly']
@aritraroy24
aritraroy24 / contact_main.py
Created August 10, 2020 16:12
Sample code by Gmail API guide
from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/gmail.readonly']