Skip to content

Instantly share code, notes, and snippets.

View arafatkatze's full-sized avatar
💭
Lover of life and all things beautiful

Ara arafatkatze

💭
Lover of life and all things beautiful
View GitHub Profile
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<!-- saved from url=(0053)https://console.anthropic.com/workspaces/default/logs -->
<html class="h-screen antialiased [font-feature-settings:&#39;ss01&#39;] bg-bg-100 __variable_dcab32 __variable_820c23 __variable_e4195f" lang="en" data-theme="claude" data-mode="dark"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="origin-trial" content="A7vZI3v+Gz7JfuRolKNM4Aff6zaGuT7X0mf3wtoZTnKv6497cVMnhy03KDqX7kBz/q/iidW7srW31oQbBt4VhgoAAACUeyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJEaXNhYmxlVGhpcmRQYXJ0eVN0b3JhZ2VQYXJ0aXRpb25pbmczIiwiZXhwaXJ5IjoxNzU3OTgwODAwLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><style>body {transition: opacity ease-in 0.2s; }
body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; }
</style><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"><link rel="stylesheet" href="./Anthropic Console2_files/026a2e7f617cf4f9.css" non
Model,Input,Output,CacheWrite,CacheRead,Cost
claude-4-sonnet,29,341,3791,4159
claude-4-sonnet,2724,1657,50101,89870
claude-4-sonnet,0,0,0,0
claude-4-sonnet,29,390,465,45960
claude-4-sonnet,34,435,237,45723
claude-4-sonnet,59,182,1252,44471
claude-4-sonnet,52,1204,664,43807
claude-4-sonnet,33,635,881,42926
claude-4-sonnet,30,855,959,41967

make --version && docker-compose --version
arafatkhan@Arafats-MacBook-Pro [16:33:27] [~/Desktop/eea-website-frontend] -> % make --version && docker-compose --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

sourcegraph git:(main) brew services stop postgresql@15
brew uninstall postgresql@15
rm -rf /usr/local/var/postgres
rm /usr/local/var/log/postgres.log
rm -f ~/.psqlrc ~/.psql_history
Stopping `postgresql@15`... (might take a while)
==> Successfully stopped `postgresql@15` (label: homebrew.mxcl.postgresql@15)
Uninstalling /opt/homebrew/Cellar/postgresql@15/15.5_3... (3,700 files, 63MB)
rm: /usr/local/var/log/postgres.log: No such file or directory
➜ sourcegraph git:(main) git checkout jsm/sg-setup-pg
### 1. i think realistically women want both. and both of those groups each already have one, so they’re trying to acquire the other
### 2. the addictive & isolating cycle of deep work:
### 3. being articulate might be the most underrated skill of all time. it's *the* most direct path to influence (aside from inheritance). it's a core competency of all the characteristics that make people trust you, look to you for direction: persuasiveness, charisma, sales, leadership
### 4. filling life with beauty is such a low hanging fruit way to improve our day to day, but i feel like we sometimes forget that beauty isn’t just visual—it’s five dimensional. i made a list (non-exhaustive) to remind myself what feels beautiful to all five senses.
### 5. life feels VERY different when you go from optimizing for appearances (looking like you have your shit together, heading in a direction that seems "good") to optimizing for alignment (*feeling* like you have your shit together, headed in a direction that *you* are excit
@arafatkatze
arafatkatze / stream_time.py
Created October 29, 2023 10:43
A simple text to show how long it takes for streaming to start based on the prompt length sent to Claude API
from anthropic import Anthropic
import time
anthropic = Anthropic(api_key="claude-api-key")
prompt_lengths = [100, 1000, 10000, 50000]
for prompt_length in prompt_lengths:
# generate a prompt of the desired length
prompt = "Human: " + "cars are great " * (prompt_length // 5) + "write an essay on cars"
require 'rubyplot'
@x1 = []
@y1 = []
for i in 0..1000
num = Float(i) / Float(500)
puts num
x = Math.sin(num * Math::PI)
x = 16 * x * x * x
y = 13 * Math.cos(num * Math::PI) - 5 * Math.cos(2 * num * Math::PI) - 2 * Math.cos(3 * num * Math::PI) - 4 * Math.cos(num * Math::PI)
require 'rubyplot'
@datasets = [
[[20, 10, 5, 12, 11, 6, 10, 7], :Anna],
[[5, 10, 20, 6, 9, 12, 14, 8], :Jack],
[[19, 9, 6, 11, 12, 7, 15, 8], :Katie]
]
plot = Rubyplot::StackedBar.new(1000)
plot.title = 'Net earnings in different months'
plot.labels = {
0 => 'Jan',
g = Rubyplot::Figure.new
@x1 = [7, 3, 3, 5.6, 5.6, 7, 7, 9, 9, 8]
@y1 = [10, 10, 4, 4, 5.4, 5.4, 4, 4, 6, 6]
g.line! @x1, @y1, line_width: 4, line_color: :green
@x2 = [11, 11, 15, 15, 11.3, 15]
@y2 = [4, 10, 10, 7, 7, 4]
g.line! @x2, @y2, line_width: 5, line_color: :stormy_blue
cmd> plot "/var/folders/f0/g51qrlhs20zbb5f3qsn3y5r00000gn/T/go-gnuplot-444176234" title "Simple Circles" with circle
res> 112
cmd> replot "/var/folders/f0/g51qrlhs20zbb5f3qsn3y5r00000gn/T/go-gnuplot-408069569" title "Simple Lines" with lines
res> 111
cmd> set title "Test Plot"
res> 23
cmd> set xlabel 'X-Axis'
res> 20
cmd> set ylabel 'Y-Axis'
res> 20