Skip to content

Instantly share code, notes, and snippets.

View gomesalexandre's full-sized avatar

gomes gomesalexandre

View GitHub Profile
@gomesalexandre
gomesalexandre / testing.md
Last active May 2, 2024 19:13
Gomes - Final THOR Testing

LP

Deposits

EVM native asset asym
  • Balance checks are still happy
image
@gomesalexandre
gomesalexandre / testing.md
Last active May 1, 2024 19:25
THORCHain Refactor Testing

Testing steps

LP

  • Test at least one EVM native asset and one non-EVM asset, and all three sym, RUNE asym and asset asym
Deposits
  • UTXO sweep step is still triggered when a sweep is needed (send all your funds to your next receive beforehand to have it triggered), with consolidation working and going to the next step when complete
  • Tokens which require approval are correctly detected and the approval goes through
@gomesalexandre
gomesalexandre / opreturndata.json
Created December 21, 2023 19:31
opreturndata
// original result with opreturndata
{
"inputs": [
{
"txid": "86c91512041bd4894f1c100ad399e18f11c56977ed11b042ec9b97156a375356",
"vout": 0,
"value": 5467385988,
"height": 5015602,
"confirmations": 16,
@gomesalexandre
gomesalexandre / nvim-lsp.lua
Created March 23, 2023 16:24
No idea what most of this does but it works
-- auto complete
local lsp = require('lsp-zero').preset({
name = 'minimal',
set_lsp_keymaps = true,
manage_nvim_cmp = true,
suggest_lsp_servers = fatrue,
})
lsp.setup_servers({'tsserver', 'eslint'})
@gomesalexandre
gomesalexandre / .neomuttrc
Last active September 13, 2021 10:47
Neomutt - OSX - Kitty - New mail notifications
# New mail notification
# You need terminal-notifier installed: brew install terminal-notifier
set new_mail_command="terminal-notifier -title %v -subtitle 'Youve got mail' -message '%n new messages, %u unread'. -activate net.kovidgoyal.kitty"
@gomesalexandre
gomesalexandre / removeQuestionMarkBeforeInitializer.ts
Last active August 4, 2020 17:10
flow-to-ts monkey patch - Remove question mark before initializer
module.exports = (fileInfo, api) => {
const j = api.jscodeshift
const source = j(fileInfo.source)
source
.find(j.AssignmentPattern)
.filter((x) => {
// Has ? in left side of assignment, and a right side of assignment
return x.value.left.optional && x.value.right
})
@gomesalexandre
gomesalexandre / third.erl
Created May 7, 2020 22:16
FutureLearn - Function Arity and pattern matching
-module(third).
-export([maxOfThree/3, howManyEqual/3]).
maxOfThree(A,B,C) ->
lists:max([A,B,C]).
howManyEqual(A,A,A) ->
3;
howManyEqual(A,_,A) ->
2;
howManyEqual(A,A,_) ->
@gomesalexandre
gomesalexandre / first.erl
Created May 5, 2020 14:57
FutureLearn Erlang - My first erlang program
-module(first).
-export([add/2, double/1, mult/2, area/3, treble/1, square/1]).
add(A,B) ->
A + B.
mult(X,Y) ->
X * Y.
double(X) ->
@gomesalexandre
gomesalexandre / init.toml
Created January 15, 2020 11:38
spacevim config
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
### Keybase proof
I hereby claim:
* I am gomesalexandre on github.
* I am alexandregomes (https://keybase.io/alexandregomes) on keybase.
* I have a public key ASDnuhXvFXRwYmDhj2mFFUQR7QKwtRMp_O-PuDrVT_ycgwo
To claim this, I am signing this object: