Skip to content

Instantly share code, notes, and snippets.

View jcstein's full-sized avatar

Josh Stein jcstein

View GitHub Profile
@farzaa
farzaa / dec2021.md
Last active October 25, 2023 16:53

Dec. 2021 Update

Hey everyone, it's been an insane last two months. Over 35,000 devs, $200,000 in booked revenue, and multiple web3 companies created + launched by buildspace alumni. Crazy to think 6 months ago we were building ZipSchool -- a product for kids K-5 (you can still use it if you want hehe).

TLDR: We've become to default place devs come to join web3 (ex. see herehere, here, and thousands of others here). We'll also be raising money. Focused mainly on raising from founders/ex-founders. If that sounds like you, pls DM me :).

Going to combine the November and December update here.

@YazzyYaz
YazzyYaz / init-wordle.sh
Created October 6, 2022 00:17
Initializes wordle with different rollmint and golang versions for testing commands
#!/bin/sh
#gover="1.19.1"
#gover="1.18.2"
#rollmintver="v0.45.4-optimint-v0.3.5"
#rollmintver="v0.45.4-optimint-v0.3.4"
#rollmintver="v0.45.4-optimint-v0.3.3"
rollmintver="v0.44.5-optimint-v0.3.3"

Liquid Staking Risks and Mitigations

Much has been made about the potential risks of liquid staking.

The work iqlusion has done in the staking module over the last year has been specifically designed to mitigate these risks. This work is covered under ADR-61

Risk of a depeg between ATOM and the liquid staked asset.

During the Three Arrows capital liquidation event, there was a substantial divergence between the price Lido’s staking derivative STETH. Many liquid staking protocols require substantial waits to process withdrawals and final settlement of the underlying stake token collateral. This enables a purely financial event like deleveraging to undermine the strategy tokens and subject liquidity providers to substantial loss.

# Note: you need to be using OpenAI Python v0.27.0 for the code below to work
import openai
import os
import requests
import base64
from pprint import pprint
import json
# Load your API key from an environment variable or secret management service
openai.api_key = ''
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"txs": [
{
"hash": "A97BC12DE1295B20EAAD813D4EE1B08022195FB1B7AC21A8BE6364CFA4FEC9B6",
"height": "46",
"index": 0,
"tx_result": {
@OrionReed
OrionReed / dom3d.js
Last active November 16, 2024 13:18
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@0xOsprey
0xOsprey / raycastParseAndOpen.py
Created May 6, 2024 18:07
Raycast Python script for parsing clipboard and opening a link
#!/usr/bin/python3
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Parse and Open
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🔍
# @raycast.packageName Developer Util