Claiming the airdrop for Diva
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
#!/usr/bin/env bash | |
function check_root() { | |
id -u | |
ps -o comm= -p $PPID | |
if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then | |
echo -e "\nExiting..." | |
exit | |
fi | |
} | |
echo "asd" |
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
pragma solidity ^0.8.13; | |
import "forge-std/Script.sol"; | |
interface UniV3 { | |
struct ExactInputParams { | |
bytes path; | |
address recipient; | |
uint256 amountIn; | |
uint256 amountOutMinimum; |
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
[ | |
{ | |
"backcolor": "#333333", | |
"name": "naps62 Ergodox - Coder Layer", | |
"author": "Miguel Palhas <miguel@subvisual.co>", | |
"radii": "20px", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-G1xx", | |
"pcb": false, |
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
name: Test contracts (foundry) | |
on: | |
push: | |
branches: | |
- master | |
- foundry | |
tags: | |
- "*" | |
pull_request: |
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
set positional-arguments | |
build_dir := "./build" | |
all: | |
just compile Hello | |
# TODO add other circuits | |
# | |
# Circom compilation |
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: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/// @title Voting with delegation. | |
contract Ballot { | |
// This declares a new complex type which will | |
// be used for variables later. | |
// It will represent a single voter. | |
struct Voter { | |
uint weight; // weight is accumulated by delegation | |
bool voted; // if true, that person already voted |
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
[ | |
{ | |
"backcolor": "#333333", | |
"name": "naps62 Ergodox - Base Layer", | |
"author": "Miguel Palhas <miguel@subvisual.co>", | |
"radii": "20px", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-G1xx", | |
"pcb": false, |
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
# spec/support/webpack.rb | |
module WebpackTestBuild | |
TS_FILE = Rails.root.join("tmp", "webpack-spec-timestamp") | |
class << self | |
attr_accessor :already_built | |
end | |
def self.run_webpack | |
puts "running webpack-test" |
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
[ | |
{ | |
"backcolor": "#333333", | |
"name": "naps62 Ergodox - Media Layer", | |
"author": "Miguel Palhas <miguel@subvisual.co>", | |
"radii": "20px", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-G1xx", | |
"pcb": false, |
NewerOlder