https://github.com/drips-network/app
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 assert from 'node:assert' | |
/** | |
* Run with `node github-username-regex.mjs` or `npx tsx github-username-regex.mjs` | |
*/ | |
/** | |
* 1-39 characters | |
* case insensitive alphanumeric + hyphen | |
* cannot start with hyphen |
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
/** | |
* Run with `node github-username-regex.mjs` or `npx tsx github-username-regex.mjs` | |
*/ | |
import assert from 'node:assert' | |
const pattern = /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}(-?)?$/i | |
const cases = [ | |
{ value: "", valid: 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
// ==UserScript== | |
// @name hide-godaddy | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-10 | |
// @description Remove GoDaddy ad from ens.app | |
// @author https://github.com/o-az | |
// @match https://ens.app | |
// @match https://app.ens.domains | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ens.domains | |
// @grant none |
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
diff --git a/node_modules/@cosmjs/amino/build/pubkeys.js b/node_modules/@cosmjs/amino/build/pubkeys.js | |
index e9844ef..86101f8 100644 | |
--- a/node_modules/@cosmjs/amino/build/pubkeys.js | |
+++ b/node_modules/@cosmjs/amino/build/pubkeys.js | |
@@ -9,6 +9,10 @@ function isSecp256k1Pubkey(pubkey) { | |
return pubkey.type === "tendermint/PubKeySecp256k1"; | |
} | |
exports.isSecp256k1Pubkey = isSecp256k1Pubkey; | |
+function isBn254Pubkey(pubkey) { | |
+ return pubkey.type === "tendermint/PubKeyBn254"; |
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
blockquote::before { | |
content: open-quote; | |
} | |
blockquote::after { | |
content: close-quote; | |
} | |
.element { | |
z-index: calc(infinity); |
I hereby claim:
- I am o-az on github.
- I am lovenough (https://keybase.io/lovenough) on keybase.
- I have a public key ASArW03B41wuT8Ypk6BWjYdtS-iTotgede4lNHWjJShb_go
To claim this, I am signing this object:
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
diff --git a/node_modules/@cosmjs/amino/build/pubkeys.js b/node_modules/@cosmjs/amino/build/pubkeys.js | |
index e9844ef..86101f8 100644 | |
--- a/node_modules/@cosmjs/amino/build/pubkeys.js | |
+++ b/node_modules/@cosmjs/amino/build/pubkeys.js | |
@@ -9,6 +9,10 @@ function isSecp256k1Pubkey(pubkey) { | |
return pubkey.type === "tendermint/PubKeySecp256k1"; | |
} | |
exports.isSecp256k1Pubkey = isSecp256k1Pubkey; | |
+function isBn254Pubkey(pubkey) { | |
+ return pubkey.type === "tendermint/PubKeyBn254"; |
Based on the Nix expression from https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/node/build-npm-package/default.nix, the buildNpmPackage
function takes the following fields as inputs:
name
: The name of the package. It defaults to a combination ofpname
andversion
fromargs
.src
: The source of the package if it's a single source. Defaults tonull
.srcs
: The sources of the package if there are multiple. Defaults tonull
.sourceRoot
: The root directory of the source. Defaults tonull
.prePatch
: Commands to run before applying patches. Defaults to an empty string.patches
: A list of patches to be applied to the source. Defaults to an empty list.postPatch
: Commands to run after applying patches. Defaults to an empty string.nativeBuildInputs
: A list of native build dependencies. Defaults to an empty list.
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 { raise } from '#/utilities' | |
import { unionActions } from '#/actions.ts' | |
import { mnemonicToAccount } from 'viem/accounts' | |
import { http, publicActions, createWalletClient } from 'viem' | |
import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing' | |
import { UCS01_EVM_ADDRESS, demoMnemonic, chain } from '#/constants' | |
main().catch(_ => { | |
console.error(_) | |
process.exit(1) |
NewerOlder