Skip to content

Instantly share code, notes, and snippets.

View jmcph4's full-sized avatar

Jack McPherson jmcph4

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// cargo-deps: tokio={version="1", features=["full"]}
// Event-driven Tokio example that reacts to multiple kinds of events using `tokio::select!`.
//
// It concurrently handles:
// - incoming TCP connections
// - periodic timer ticks
// - messages arriving on an mpsc channel
// - Ctrl+C for graceful shutdown
//
// Run: `cargo run` then (optionally) `nc 127.0.0.1 8080` in another shell.
Law firm Example ASX IPO advised Role Date (AEST) Source
King & Wood Mallesons 29Metals Limited (ASX:29M) Issuer counsel 2021-06-29 KWM press release
Herbert Smith Freehills Guzman y Gomez Limited (ASX:GYG) Joint lead managers’ counsel 2024-06-20 HSF press release
Allens Redbubble Ltd (ASX:RBL) Issuer counsel 2016-05-23 [Allens press release](https://www.allens.com.au/insights-new
{
"url": "https://www.sec.gov/Archives/edgar/data/1690110/000188852425014170/ccr16c07_absee-202508.htm",
"assets": [
{
"assetTypeNumber": "Prospectus Loan ID",
"assetNumber": 1,
"GroupID": 1,
"reportingPeriodBeginningDate": "2025-07-08",
"reportingPeriodEndDate": "2025-08-06",
"originatorName": "JPMCB/DBNY/GSMC/Barclays/MSBNA",
use eyre::{eyre, WrapErr};
use regex::Regex;
use reqwest::{Client, Url};
use serde::Deserialize;
use std::{collections::{HashMap, HashSet}, time::Duration};
use tokio::time::Instant;
// --------------------------- Public API ---------------------------
#[derive(Clone, Debug)]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
int main(int argc, char** argv) {
if (argc != 3) { /* usage */
@jmcph4
jmcph4 / ts.py
Created July 6, 2025 23:15
slopper
import argparse
import pandas as pd
def main():
parser = argparse.ArgumentParser(description="Print earliest and latest timestamps in a CSV file.")
parser.add_argument("csv_file", help="Path to the input CSV file")
args = parser.parse_args()
df = pd.read_csv(args.csv_file, parse_dates=["timestamp"])
min_ts = df["timestamp"].min()
{
"id": "a05a994d-6c9f-4c30-a0d8-2fe6aff5fe0d",
"object": "chat.completion",
"created": 1747980285,
"model": "grok-3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
title author publication_year cover_url isbn
Pride and Prejudice Jane Austen 1813 https://covers.openlibrary.org/b/id/14348537-L.jpg Unknown
Alice's Adventures in Wonderland Lewis Carroll 1865 https://covers.openlibrary.org/b/id/10527843-L.jpg Unknown
Wuthering Heights Emily Brontë 1846 https://covers.openlibrary.org/b/id/12818862-L.jpg Unknown
A Christmas Carol Charles Dickens 1843 https://covers.openlibrary.org/b/olid/OL8193497W-L.jpg Unknown
Adventures of Huckleberry Finn Mark Twain 1876 https://covers.openlibrary.org/b/id/8157718-L.jpg Unknown
The Picture of Dorian Gray Oscar Wilde, Oscar Wilde, Oscar Wilde 1890 https://covers.openlibrary.org/b/olid/OL8193416W-L.jpg Unknown
Emma Jane Austen 1815 https://covers.openlibrary.org/b/id/9278312-L.jpg Unknown
Oliver Twist Charles Dickens 1822 https://covers.openlibrary.org/b/olid/OL8193478W-L.jpg Unknown
Frankenstein or The Modern Prometheus Mary Shelley 1818 https://covers.openlibrary.org/b/id/12356249-L.jpg 9789944184939
Hi Claude! Could you build an app based on my idea? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to — like Google Drive, web search, etc. — if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can - an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!