Skip to content

Instantly share code, notes, and snippets.

View liyanasahir's full-sized avatar

Liyana Sahir liyanasahir

View GitHub Profile
@liyanasahir
liyanasahir / Code.gs
Last active February 24, 2020 19:11
Google App Script to use form data from spreadsheet to send personalised mails
/**
* Sends non-duplicate emails with data from the current spreadsheet.
*/
// This constant is written in last column(10th in our case) for rows for which an email
// has been sent successfully.
var EMAIL_SENT = 'EMAIL_SENT';
function sendEmails() {
@liyanasahir
liyanasahir / channel_sublist.py
Last active December 9, 2024 19:35
Extracting subscribers list of a Telegram Channel
from telethon import TelegramClient, sync
# Use your own values here
api_id = '123456'
api_hash = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
channel = 'channel_name'
client = TelegramClient('Session_details', api_id, api_hash)
phone_number='9199999999'
@liyanasahir
liyanasahir / multiball.py
Created September 17, 2017 14:58
Tracking two balls using OpenCV-Python
from collections import deque
import numpy as np
import argparse
import imutils
import cv2
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video",
help="path to the (optional) video file")