- Clone the gist
- Install ASDF from https://asdf-vm.com
- Install python plugin and the latest python version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
end | |
fish_add_path "/opt/homebrew/bin" | |
fish_add_path "/Applications/WezTerm.app/Contents/MacOS" | |
# fish_add_path ~/miniconda/bin | |
fish_add_path ~/miniforge3/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Freqtrade Completions for Fish Shell | |
function __fish_freqtrade_needs_command | |
set cmd (commandline -opc) | |
if test (count $cmd) -eq 1 | |
return 0 | |
end | |
return 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--gray-900: #23272E; | |
--gray-800: #1E2227; | |
--gray-100: #ABB2BF; | |
--red: #E06B75; | |
--green: #98C379; | |
--orange: #D19A66; | |
--cyan: #56B6C2; | |
--magenta: #C678DD; | |
--blue: #61AFEE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.19; | |
import {IERC20} from "../token/ERC20/IERC20.sol"; | |
import {SafeERC20} from "../token/ERC20/utils/SafeERC20.sol"; | |
import {Address} from "../utils/Address.sol"; | |
import {Context} from "../utils/Context.sol"; | |
contract MultiRoundVestingWallet is Context { | |
using SafeERC20 for IERC20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gpt.fish - Fish shell completions for gpt.py | |
set -Ux OPENAI_API_KEY <API KEY> | |
fish_add_path ~/github/gpt-cli | |
alias gpt="gpt.py" | |
function __fish_gpt_no_subcommand -d "Test if gpt has been given no subcommand" | |
not set -q argv[1] | |
or string match -qr -- '^-' $argv[1] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm' | |
local schemes = wezterm.get_builtin_color_schemes() | |
local scheme = schemes['OneDark (base16)'] | |
local bg_color, fg_color, active_color, hover_color, text_color | |
local dark_mode = wezterm.gui.get_appearance() == "Dark" | |
if dark_mode then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useFrame } from '@react-three/fiber' | |
import { MutableRefObject, useMemo, useRef } from 'react' | |
import { | |
BufferAttribute, | |
BufferGeometry, | |
FloatType, | |
HalfFloatType, | |
LinearFilter, | |
Mesh, | |
NearestFilter, |
# download and run this script
# /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/mate-h/c628c39f4953350fe6b2f1a044f97cda/raw/f45dca3e04f386529117c34481c5702a0ef623b5/env.sh)"
# shell script to set up new environment
# install chrome
wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
# vscode at https://code.visualstudio.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import proj4 from "proj4"; | |
import * as THREE from "three"; | |
// BC Albers | |
proj4.defs( | |
"EPSG:3005", | |
"+proj=aea +lat_0=45 +lon_0=-126 +lat_1=50 +lat_2=58.5 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs" | |
); | |
// approximate radius of the earth in megameters (sphere) |
NewerOlder