Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
@Alexintosh
Alexintosh / sandbox.md
Created January 18, 2026 11:35 — forked from jacobparis/sandbox.md
run claude in a vercel sandbox overnight

sandbox.sh

Run Claude in an isolated Vercel Sandbox with full git access.

It uses the sandbox ID (sbx_asdfasdfasdf) as the branch name, so it's safe to push and then you can get your changes by pulling them from that branch

Examples

Test permissions are set up properly

@Alexintosh
Alexintosh / gist:08f4073ba30d8588e7f7636ad9d57e39
Created November 29, 2023 11:49 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Unlike the string type, ShortString is a value type that can be made immutable.
// It supports strings of at most 32 bytes and assumes they don't contain null bytes.
type ShortString is bytes32;
error StringTooLong(string s);
@Alexintosh
Alexintosh / VestingCallOptions.md
Created December 28, 2021 22:18 — forked from alexisgauba/VestingCallOptions.md
Vesting Call Options

Vesting Call Options

The following instructions go step-by-step through how to create vesting call options, similar to equity options that startups typically use to incentivize employees.

H/t @Fubuloubu, who approached us about creating these for the Yearn team to potentially use! This allows Yearn or similar projects (on-chain DAOs) to grant vesting options to any contributor.

We'll use YFI call options as an example.

Deploy the call options

@Alexintosh
Alexintosh / sonic_pi_examples.txt
Created December 21, 2021 08:22 — forked from darinwilson/sonic_pi_examples.txt
Sonic Pi Examples
##############################################
## Example 1 - play a note
play 60
##############################################
## Example 2 - play 4 random notes
4.times do
play rrand_i(60, 90)
sleep 0.5
const fs = require("fs");
const CoinGecko = require("coingecko-api");
const { table } = require("table");
const chalk = require("chalk");
const cg = new CoinGecko();
const coins = [
{ "id": "ethereum", "symbol": "ETH" },
{ "id": "bitcoin", "symbol": "BTC" },
@Alexintosh
Alexintosh / 1.js
Created December 22, 2019 13:32 — forked from mxriverlynn/1.js
Standard deviation, in JavaScript
var sum = values.reduce(function(sum, value){
return sum + value;
}, 0);
var avg = sum / data.length;
@Alexintosh
Alexintosh / iceage.py
Created December 18, 2019 17:20 — forked from lrettig/iceage.py
Simulation script for ice age block times
# Date, blocknum, difficulty as of 2019-01-18
# Script by vbuterin, slightly modified by lrettig
import random
import datetime
import sys
def calc_bomb(i):
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
@Alexintosh
Alexintosh / submit-dapp.md
Created May 3, 2019 14:58 — forked from dappvolume/submit-dapp.md
Submit Dapps to these sites for huge exposure!

Submit A Dapp

Once you create a dapp its important the dapp gets exposure. Here is a list of 20 places you can submit your Dapp.

Dapp Websites

The following websites showcases dapps ( decentralized applications ).

Name URL Platform