Skip to content

Instantly share code, notes, and snippets.

View chapimenge3's full-sized avatar
👨‍💻
Try not to fail and if you do Try not to break at the same time.

Temkin Mengsitu chapimenge3

👨‍💻
Try not to fail and if you do Try not to break at the same time.
View GitHub Profile
@HirbodBehnam
HirbodBehnam / google-form-to-tg.gs
Last active June 8, 2024 21:11
A google script to send submitted form results to a telegram bot
// Inspired by https://github.com/Iku/Google-Forms-to-Discord
const BOT_API = "YOUT_BOT_API";
const CHAT_ID = "CHAT_ID";
function onSubmit(e) {
var form = FormApp.getActiveForm();
var allResponses = form.getResponses();
var latestResponse = allResponses[allResponses.length - 1];
var response = latestResponse.getItemResponses();
var result = "";
@Hammer2900
Hammer2900 / download_multiple.py
Created September 28, 2016 17:51 — forked from harrisont/download_multiple.py
Use asyncio and aiohttp to asynchronously download multiple files at once and handle the responses as they finish
import asyncio
from contextlib import closing
import aiohttp
async def download_file(session: aiohttp.ClientSession, url: str):
async with session.get(url) as response:
assert response.status == 200
# For large files use response.content.read(chunk_size) instead.