Skip to content

Instantly share code, notes, and snippets.

View athul's full-sized avatar
🎯
Focusing

Athul Cyriac Ajay athul

🎯
Focusing
View GitHub Profile

Okay so, this is a telegram bot which sends you a message every 6 hours about vaccine availability in your district.

How to use it?

Edit the source file main.py with some stuff

  • Telegram Bot Token, get it talking to Botfather bot. Line 9

Check this one for explained stuffs

  • Telegram chat id, line 10
  • District code for Cowin API, line 22 check table below for district code

| Code | District |

@athul
athul / search.md
Last active November 7, 2020 14:45
fastSearch ported for static html pages in Go

Implementing search on static HTML sites made with Go can be made simple with Fuze.js and an Index file(json). Fork of Craig Mod's fastsearch implementation.

Index.json

Index.json is an important part for searches here. You need to create an index.json at buildtime or manually. It can have the keys which you wish but please note to change them in the Js file too. As an example, our JSON file will be like

[
    {
        "title": "Adguard Telegram Bot",
        "permalink": "posts/adbot.html",
 "tags": [

Artists| Redbone -> Song| The Best Of Redbone
Artists| Ellie Goulding -> Song| Delirium (Deluxe)
Artists| Thin Lizzy -> Song| Jailbreak (Deluxe Edition)
Artists| Devansh Tushar -> Song| Endless Nights
Artists| Dream Runner -> Song| Voices of the Forest
Artists| Juni Tinley -> Song| Deepest Slumber
Artists| Allana Johnson -> Song| Breathing Star
Artists| Joseph Beg -> Song| Ocean Meditation
Artists| William Edessa -> Song| Novo
Artists| Bodil Blanche -> Song| Without

@athul
athul / extensions.json
Last active August 17, 2019 18:36
VSCode's Settings - Syncing
[
{
"id": "batisteo.vscode-django",
"name": "vscode-django",
"publisher": "batisteo",
"version": "0.19.0"
},
{
"id": "bierner.markdown-emoji",
"name": "markdown-emoji",
logs
Python 7 hrs 11 mins ████████████████▏░░░░ 77.4%
Markdown 50 mins █▉░░░░░░░░░░░░░░░░░░░ 9.0%
JavaScript 41 mins █▌░░░░░░░░░░░░░░░░░░░ 7.5%
TOML 15 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.8%
Cheetah 7 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
void setup() {
pinMode(13,OUTPUT);
}
void loop() {
digitalWrite(13,HIGH);