Skip to content

Instantly share code, notes, and snippets.

<!doctype html><html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>The Reaction — 2026-08-05</title>
<style>
:root{--paper:#fbfbf9;--card:#fff;--ink:#111110;--ink2:#55534e;--muted:#8b8983;
--rule:#e2e1d9;--accent:#b4331f;--live:#1a8f4c;color-scheme:light}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])){
--paper:#0e0e0d;--card:#181817;--ink:#f7f7f4;--ink2:#c2c0b8;--muted:#8b8983;
--rule:#2b2b28;--accent:#e0644b;--live:#3ec27a;color-scheme:dark}}
:root[data-theme="dark"]{--paper:#0e0e0d;--card:#181817;--ink:#f7f7f4;
<!doctype html><html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>The Reaction — 2026-08-05</title>
<style>
:root{--paper:#fbfbf9;--card:#fff;--ink:#111110;--ink2:#55534e;--muted:#8b8983;
--rule:#e2e1d9;--accent:#b4331f;--live:#1a8f4c;color-scheme:light}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])){
--paper:#0e0e0d;--card:#181817;--ink:#f7f7f4;--ink2:#c2c0b8;--muted:#8b8983;
--rule:#2b2b28;--accent:#e0644b;--live:#3ec27a;color-scheme:dark}}
:root[data-theme="dark"]{--paper:#0e0e0d;--card:#181817;--ink:#f7f7f4;
@djacobs7
djacobs7 / gist:a9e75da29160888cb4aef14cbc8ead73
Created February 23, 2023 19:09
langchain self critique example
# Example of a bad LLM
from langchain.llms import OpenAI
from langchain.prompts import PromptTemplate
from langchain.chains.llm import LLMChain
story_prompt = PromptTemplate(
template="""Write a story about: {story}""",
input_variables=["story"]
)
var s = 1;
var k = 2;
#!/bin/bash
#installing ruby gems on centos
#add the ruby repository
sudo echo '[ruby]' > /etc/yum.repos.d/ruby.repo
sudo echo 'name=ruby' >> /etc/yum.repos.d/ruby.repo
sudo echo 'baseurl=http://repo.premiumhelp.eu/ruby/' >> /etc/yum.repos.d/ruby.repo
sudo echo 'gpgcheck=0' >> /etc/yum.repos.d/ruby.repo
sudo echo 'enabled=0' >> /etc/yum.repos.d/ruby.repo
#!/usr/bin/ruby
#USAGE: mategem gemname
gem_name = ARGV[0]
full_name = %x[gem list #{ARGV[0]}].strip!
exit if (full_name == "")
version = /\((.*)\)/.match(full_name)[1]
%x[mate /Library/Ruby/Gems/1.8/gems/#{gem_name}-#{version}]
puts 'what the is a gist?'