Skip to content

Instantly share code, notes, and snippets.

View hariseldon99's full-sized avatar

Analabha Roy hariseldon99

View GitHub Profile
@hariseldon99
hariseldon99 / isbn_query.py
Created October 12, 2025 09:04
Downloads the minimum prices from an input of book ISBN numbers.
#!/usr/bin/env python
from __future__ import division, print_function
import sys, urllib2, json, csv
import argparse
from tabulate import tabulate
desc = """
Downloads the minimum prices from an input of book ISBN
numbers.
Usage:
./isbn_query.py -k APIKEY -i ISBN_FILE -o OUTPUT_CSV
import time
import numpy as np
import matplotlib.pyplot as plt
import dynamiqs as dq
import jax.numpy as jnp
from qutip import destroy, mesolve, coherent
# Function to measure execution time (without JIT for JAX)
def measure_execution_time(func, *args, warmup=False, **kwargs):