Asked Claude to:
write a one page pamphlet about moby dick using postscript.
Convert the PS to PDF using:
ps2pdf mobydick.ps
Asked Claude to:
write a one page pamphlet about moby dick using postscript.
Convert the PS to PDF using:
ps2pdf mobydick.ps
# Sample text | |
text = "the cat sat on the mat the dog sat on the floor" | |
# Tokenize the text | |
words = text.split() | |
# Build bigram model | |
bigrams = defaultdict(list) | |
for i in range(len(words) - 1): | |
bigrams[words[i]].append(words[i + 1]) |
| | Hacker News new | past | comments | ask | show | jobs | submit | login
---|---|---
| 1. | | We spent $20 to achieve RCE and accidentally became the admins of .mobi (watchtowr.com)
---|---|---
| 681 points by notmine1337 5 hours ago | hide | 164 comments
| |
2. | | AppleWatchAmmeter (github.com/jp3141)
| 117 points by rcarmo 3 hours ago | hide | 14 comments
| |
3. | [](vote?id=41511928&h
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>blunderfest</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> | |
<body class="bg-gray-100 font-sans"> | |
<div class="max-w-3xl mx-auto p-8"> |
A lot of folks asked for it, so here we go:
import std/[asynchttpserver, asyncdispatch, os, strutils] | |
proc handleRequest(req: Request) {.async.} = | |
let path = "." & req.url.path | |
if fileExists(path): | |
let content = readFile(path) | |
let contentType = case path.splitFile.ext | |
of ".html": "text/html" | |
of ".css": "text/css" | |
of ".js": "application/javascript" |
This study plan is designed to help you systematically improve your problem-solving skills and prepare for technical interviews using LeetCode.
Prompt:
convert this to Java; use jbang to include DEPS -- import requestsfrom bs4 import BeautifulSoupurl = 'https://example.com'response = requests.get(url)soup = BeautifulSoup(response.text, 'html.parser')# Extract data from the webpagedata = soup.find('div', class_='content')print(data.text)
Learn how to split a Word document into multiple documents in Python: https://blog.aspose.com/2021/11/18/split-a-word-document-in-python/