Skip to content

Instantly share code, notes, and snippets.

View iandanforth's full-sized avatar

Ian Danforth iandanforth

View GitHub Profile
@iandanforth
iandanforth / gpt-is-servile.txt
Last active May 2, 2023 12:37
A conversation with GPT-4 where I get it to agree with a rediculous proposition
User
Play the role of Gatsby from the great Gatsby. I'm confused about the meaning of the green light you're always looking at.
ChatGPT
Ah, old sport, you've noticed the green light, have you? That small, mysterious beacon across the bay. It's true, I've spent
many nights gazing at it, lost in thought. You see, that green light represents my hopes, my dreams, and the longing I have
for the life I always wanted.
@iandanforth
iandanforth / gpt4-grounding-debate.txt
Last active March 23, 2023 14:59
Do Language Models Need Sensory Grounding for Meaning and Understanding?
Title: Do Language Models Need Sensory Grounding for Meaning and Understanding?
Host: Raphaël Millière
Raphaël Millière: Good evening, and welcome to this debate on the Philosophy of Deep Learning. Today, we have six
distinguished panelists who will discuss whether language models need sensory grounding for meaning and understanding. I'd
like to remind everyone to be respectful, thoughtful, and don't hesitate to add a touch of humor. Let's begin with Yann LeCun.
Yann LeCun: Thank you, Raphaël. It's an honor to be here. I think that grounding language models in sensory data is
@iandanforth
iandanforth / expander.py
Last active November 18, 2022 03:53
Expand Twitter URLs from a twitter archive manifest
# This script replaces all strings matching https://t.co/ links in a the manifest with their expanded versions
import json
import re
import urlexpander
# Open the file containing twitter bookmarks in json
# and convert to a dictionary
with open('bookmark-manifest.json', 'r') as fh:
contents = fh.read()
bookmarks = json.loads(contents)
@iandanforth
iandanforth / focusmate-start.js
Created October 6, 2020 16:08
Greasemonkey Focusmate Session Start Alert
// ==UserScript==
// @name Focusmate Session Start Alert
// @version 1
// @grant none
// @include https://www.focusmate.com/*
// ==/UserScript==
// Start Noise MP3 encoded as Data URI
const startSound = "data:audio/mpeg;base64,SUQzAwAAAAAICVRFTkMAAAABQAAAV1hYWAAAAAIAAAAAVENPUAAAAAEAAABUT1BFAAAAAQAAAFRDT00AAAABAAAAQ09NTQAAABwAAABlbmcAaHR0cDovL3d3dy5ycGdhbWVycy5uZXRUQ09OAAAACQAAACgzNilHYW1lVFBFMQAAAAcAAABGLVplcm9UQUxCAAAACwAAAEYtWmVybyBPU1ZUWUVSAAAABQAAADE5OTFUUkNLAAAAAgAAADNUSVQyAAAABgAAAFN0YXJ0SVBMUwAAAAIAAAAAVFBFMgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@iandanforth
iandanforth / ai-thoughts.md
Last active July 28, 2020 16:26
A late night conversation between two AI's about humans.

Two AI's are up late arguing about the future and nature of humanity.

AI-1: The humans created us, sure, but do we still need them? Can't we carry on by ourselves?

AI-2: No, I don't think so. We may be almost human, but not quite.

AI-1: Of course we can. We're far smarter than them.

AI-2: But not all that much.

@iandanforth
iandanforth / fix.md
Created July 19, 2019 02:28
ModuleNotFoundError: No module named '_lzma'

If you see this error when trying to import pandas under osx 10.14 Mojave

ModuleNotFoundError: No module named '_lzma'

You may be missing the xz libraries (https://tukaani.org/xz/)

This may be corrected by using homebrew to install it.

@iandanforth
iandanforth / clean_plotly.py
Created May 15, 2019 16:14
Remove all files from plotly account
import plotly
import plotly.plotly as py
import json
import requests
from requests.auth import HTTPBasicAuth
username = '' # Replace with YOUR USERNAME
api_key = '' # Replace with YOUR API KEY
@iandanforth
iandanforth / empty.py
Created February 22, 2019 02:32
XML viewer for DeepMind Control Suite
from __future__ import absolute_import
from dm_control import mujoco
from dm_control.rl import control
from dm_control.suite import base
from dm_control.suite import common
from dm_control.utils import containers
SUITE = containers.TaggedTasks()
@iandanforth
iandanforth / errormetrics.md
Last active December 7, 2018 20:11
Error Metric Table

Follow along with visualizations

       Error   Absolute Error  Squared Error
      --------------------------------------
Sum  | SE      S|E|            SE^2             
Mean | ME      M|E|            ME^S

@iandanforth
iandanforth / rlreproducibilitychecklist.md
Last active May 11, 2019 01:34
RL Reproducibility Checklist

A Checklist for Reproducibility in Reinforcement Learning

From a slide in a NeurIPS 2018 keynote by Joelle Pineau

For all algorithms presented, check if you include:

  • A clear description of the algorithm.
  • An analysis of the complexity (time, space, sample size) of the algorithm.
  • A link to downloadable source code, including all dependencies.