Skip to content

Instantly share code, notes, and snippets.

View chodyo's full-sized avatar

Cody Heffner chodyo

  • New York City, NY
View GitHub Profile
@chodyo
chodyo / fast_trading_card.user.js
Last active December 27, 2021 17:49
Tampermonkey script to skip through the steam exploration queue
// ==UserScript==
// @name Fast trading card
// @namespace http://tampermonkey.net/
// @version 1.0.6
// @description skip through the steam exploration queue to get your trading card without having to click
// @author https://github.com/chodyo
// @updateURL https://gist.github.com/chodyo/36db1be5147d568d2a1c330f7c5955fc/raw/fast_trading_card.user.js
// @downloadURL https://gist.github.com/chodyo/36db1be5147d568d2a1c330f7c5955fc/raw/fast_trading_card.user.js
// @match https://store.steampowered.com/app/*
// @match https://store.steampowered.com/agecheck/app/*
@chodyo
chodyo / conversation.txt
Last active October 1, 2024 22:55
Asking ChatGPT to write code to download conversations
You:
Can you write some Javascript code that I can paste into my web browser's console to export a ChatGPT conversation?
ChatGPT:
Yes, here's a sample code that exports a ChatGPT conversation as a JSON object:javascriptCopy code// Store the conversation in an array
var conversation = [];
// Override the original prompt method to store each message in the conversation array
var originalPrompt = window.prompt;
@chodyo
chodyo / conversation.md
Last active February 24, 2023 22:31
ChatGPT Loves Rust
Me

Can you provide me a snipped of subjectively really cool Rust code? Just wow me

ChatGPT

Sure! Here's a snippet of Rust code that implements a recursive descent parser for a simple arithmetic expression language, with support for addition, subtraction, multiplication, and division:

enum Token {