build_todo_db . >> ~/tododb.json
this creates a file with all the TODOs along with its metadata at ~/tododb.json
import imaplib | |
import email | |
from collections import Counter | |
import re | |
import webbrowser | |
from email.utils import parseaddr | |
import logging | |
# Constants | |
MAX_EMAILS_TO_PROCESS = 1000 |
#!/usr/bin/env node | |
import "source-map-support/register"; | |
import * as cdk from "aws-cdk-lib"; | |
import {Construct} from "constructs"; | |
import {IpProtocol, SubnetType} from "aws-cdk-lib/aws-ec2"; | |
const envDetails = {account: "<accountId>", region: "ap-south-1"}; | |
const vpcName = 'uat-vpc' | |
export class NetworkStack extends cdk.Stack { |
import itertools | |
import json | |
import os.path | |
import sys | |
from urllib.parse import urlparse | |
from haralyzer import HarParser, HarPage, HarEntry | |
def filter_fn(entry: HarEntry): |
import requests | |
# find these from avalibility get request for your session | |
TOKEN = "Bearer " | |
CLIENT_APP_ID = "" | |
CLIENT_USER_ID = "" | |
# input dates here | |
check_in = "2023-01-25" | |
check_out = "2023-01-29" |
import sys | |
from typing import List | |
from beancount.core.number import D | |
from beancount.ingest import importer | |
from beancount.core import amount, flags | |
from beancount.core.data import Posting, Transaction, new_metadata | |
from smart_importer import apply_hooks | |
from smart_importer.detector import DuplicateDetector |
import datetime | |
from datetime import timedelta | |
from functools import reduce | |
from typing import TextIO | |
import icalendar | |
ical_contents_raw: TextIO = open('/Users/bharatkalluri/Downloads/[email protected]', 'r') | |
ical_contents: str = ical_contents_raw.read() | |
work_cal = icalendar.Calendar.from_ical(ical_contents) |
#!/usr/bin/env python3 | |
import hashlib | |
import logging | |
import os.path | |
import shutil | |
import sys | |
from pathlib import Path | |
from typing import List |
class Vala.Basics : GLib.Object { | |
public static void post_request() { | |
var soupSession = new Soup.Session (); | |
var soupMessage = new Soup.Message("POST", "https://reqres.in/api/users"); | |
var body = "{\"name\":\"morpheus\"}"; | |
soupMessage.set_request( | |
"application/json", | |
Soup.MemoryUse.COPY, | |
body.data |