Skip to content

Instantly share code, notes, and snippets.

View lainhathoang's full-sized avatar
Farming

lainhathoang

Farming
View GitHub Profile
@lainhathoang
lainhathoang / jupiter-full-js-example.js
Created November 5, 2024 16:44 — forked from NotoriousPyro/jupiter-full-js-example.js
Full example of how to swap tokens with jupiter
const { Connection, Keypair, VersionedTransaction } = require ('@solana/web3.js');
const bs58 = require ('bs58');
const axios = require('axios');
// It is recommended that you use your own RPC endpoint.
// This RPC endpoint is only for demonstration purposes so that this example will run.
const connection = new Connection('');
const keypair = Keypair.fromSecretKey(bs58.decode(''));
@lainhathoang
lainhathoang / multiple_ssh_setting.md
Created August 30, 2024 06:45 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@lainhathoang
lainhathoang / README.md
Created March 18, 2021 05:57 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store