Skip to content

Instantly share code, notes, and snippets.

View gusgollings's full-sized avatar

Gus Gollings gusgollings

View GitHub Profile
@gusgollings
gusgollings / claude_3.5_sonnet_artifacts.xml
Created August 7, 2024 11:12 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times

Keybase proof

I hereby claim:

  • I am gusgollings on github.
  • I am gusgollings (https://keybase.io/gusgollings) on keybase.
  • I have a public key ASAF9iktK6YsKbp4PcWq3dZUg-5Q7b7cn6-kJDRSaiPIwAo

To claim this, I am signing this object:

@gusgollings
gusgollings / gist:fc74d0c4ceb9c7412046
Created August 14, 2014 08:52
Verifying that +gusgollings is my Bitcoin username. You can send me #bitcoin here: https://onename.io/gusgollings
Verifying that +gusgollings is my Bitcoin username. You can send me #bitcoin here: https://onename.io/gusgollings
// This snippet is an example on how the detecting overlaping annotations
// was implemented inside the Substance Composer app.
function annotate(type) {
// Check for existing annotation
var sel = this.surface.selection();
if (!sel) return;
if (_.include(["em", "str"], type)) {
@gusgollings
gusgollings / all_bar_one.html
Created November 11, 2012 05:18
OH "Is there a CSS selector to select all *except* the current child being hovered on?"
<head>
<title>All bar one</title>
<style>
ol:hover {color: green}
li:hover {color: red}
</style>
</head>
<body>
<ol>
<li>FIRST</li>
"============================================================================
" Hey! This is how I happen to like my Vim. Don't give me no hassle!
" - JP
"----------------------------------------------------------------------------
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
@gusgollings
gusgollings / Vegan Month Diary
Created November 1, 2010 02:01
A diary of meals and moods during vegan month http://vegan-month.heroku.com
energies: low, even, high
trainings: none, light, heavy
1/11/10:
mood:
energy: even
comment: less panic despite work stress, calm, happy
training: none
meals:
breakfast: muesli, protein powder, soy milk
@gusgollings
gusgollings / Tom Wait Sampler
Created October 19, 2010 14:01
Download Tom Waits songs from tomwaits.com
#! /usr/bin/env ruby
require 'rubygems'
require 'hpricot'
require 'open-uri'
wget = "/usr/local/bin/wget"
site = "http://www.tomwaits.com"
download_to = "/Users/gus/tmp/"
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'spira'
require 'rack/linkeddata'
use Rack::LinkedData::ContentNegotiation, :default => 'text/turtle'
include RDF
# 9 out of 10 microbenchmarks agree: implicit return smokes explicit return
require 'benchmark'
def explicit
return 1
end
def implicit
1
end