Skip to content

Instantly share code, notes, and snippets.

View elcharitas's full-sized avatar
🦀
writing some sick apps from home

Jonathan Irhodia elcharitas

🦀
writing some sick apps from home
View GitHub Profile
@appcypher
appcypher / comb.rs
Last active September 14, 2024 21:58
Slow Combinator lol
use crate::compiler::reversible::Reversible;
//--------------------------------------------------------------------------------------------------
// Types
//--------------------------------------------------------------------------------------------------
/// The result of a combinator expression.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Combinator<T> {
/// A single `T` value.
@leonpw
leonpw / GasContract.json
Last active February 28, 2023 16:02
Gas optimization team 8. With modified hardhat.config.js and GasContract.json
{
"_format": "hh-sol-artifact-1",
"contractName": "GasContract",
"sourceName": "contracts/Gas.sol",
"abi": [
{
"inputs": [
{
"internalType": "address[5]",
"name": "_admins",
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active November 19, 2024 03:17
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@sindresorhus
sindresorhus / post-merge
Last active July 25, 2024 06:53
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"