• Stars
    star
    200
  • Rank 195,325 (Top 4 %)
  • Language
    Rust
  • Created over 2 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate perfect code headers every time.

headers

Generate perfect code headers every time.

Build

You need Rust and Cargo installed on your machine. See the installation guide here.

Then clone the repo and install the CLI globally like this:

cargo install --path .

Usage

λ ./headers "testing 123"
/*//////////////////////////////////////////////////////////////
                           TESTING 123
//////////////////////////////////////////////////////////////*/

It will also copy the header to your clipboard automatically.

With VSCode

Set your global tasks.json like so to add the command as task:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Generate Header",
      "type": "shell",
      "command": "headers ${input:header}",
      "presentation": {
        "reveal": "never"
      },
      "problemMatcher": []
    }
  ],
  "inputs": [
    {
      "id": "header",
      "description": "Header",
      "type": "promptString"
    }
  ]
}

To really speed-up your workflow, you can even add a keybind for the task in keybindings.json:

[
  {
    "key": "CMD+h",
    "command": "workbench.action.tasks.runTask",
    "args": "Generate Header"
  }
]

This will copy the generated header to your clipboard.

Credits

Inspired by virtualjpeg's blocky.

More Repositories

1

solmate

Modern, opinionated, and gas optimized building blocks for smart contract development.
Solidity
3,841
star
2

solcurity

Opinionated security and code quality standard for Solidity smart contracts.
2,012
star
3

VRGDAs

Variable Rate Gradual Dutch Auctions.
Solidity
292
star
4

foundry-template

Streamlined template for getting started with Foundry and Solmate.
Solidity
162
star
5

goo-issuance

GOO (Gradual Ownership Optimization) Issuance.
Solidity
120
star
6

ERC721C

CAPTCHAs for NFTs.
Solidity
69
star
7

libcompound

Get up to date cToken data using 20% less gas without mutating state.
Solidity
66
star
8

levm

Lightweight Lua EVM
Lua
59
star
9

svalbard

📚 Keep track of how well you know the Rust Book 📚
Rust
57
star
10

dapptools-template

Streamlined template for getting started with DappTools and Solmate.
Shell
52
star
11

publications

Collection of reports/articles/publications/etc of mine.
TeX
51
star
12

transmissions11.github.io

source for 2λ.com
HTML
44
star
13

forgeup

Update or revert to a specific Foundry branch with ease.
Shell
44
star
14

morale

More life to give on demand, are you ready?
Solidity
32
star
15

vrgda-simulator

Simulate VRGDAs in your browser. Perfect for prototyping and use with tabletop games.
TypeScript
29
star
16

survive2020

Game about surviving 2020 in pixel art style.
Rust
28
star
17

immutability-but-worse

Delegate your governance tokens to this contract and never worry about those pesky governance proposals again.
Shell
22
star
18

headers-vy

Generate perfect Vyper compatible code headers every time.
Rust
19
star
19

muldiv-battle

Gas comparison between Remco Bloemen's and Mikhail Vladimirov's mulDiv implementations.
Solidity
18
star
20

rbmk

Really Bad Math Kontracts — "RBMK reactors don't explode"
17
star
21

crack_yearn_md5

Small Rust script that cracked Yearn's v2 site password from a hashed copy
Rust
15
star
22

timelockvault-contracts

🔐 Lock up your ETH for a set duration (with a bypass option for emergencies!) 🔐
Solidity
13
star
23

reth-exex-walltime

wall time exex for reth
Rust
10
star
24

merge-cypress-jest-coverage

Merge your Cypress and Jest coverage reports with ease.
JavaScript
10
star
25

ans

a neat sway library.
Rust
9
star
26

4626-wrappers

ERC4626 wrappers for protocols that implement nonstandard yield bearing vaults.
Shell
9
star
27

buttered-chakra

👨‍💻 Chakra-UI Extension Library 👨‍💻
TypeScript
5
star
28

bistro

Opinionated GPT implementation and finetuning harness.
Python
5
star
29

chart-playground

Playground for charting with observablehq's plot lib.
TypeScript
4
star
30

chai-bn-equal

Adds a bnEqual method to chai that compares the string version of the BN to a string version of its input.
JavaScript
3
star
31

drex

📖 Docusaurus template for my Open Source projects 📖
JavaScript
1
star
32

cra-template-crows

My create-react-app template for React PWAs (with Typescript, Firebase, Cypress, Jest, Chakra-UI)
TypeScript
1
star
33

chug-splash

[Optimism] chugsplash!
TypeScript
1
star