Skip to content

Instantly share code, notes, and snippets.

View LimaniBhavik's full-sized avatar
🏠
Working from home

Bhavik LimaniBhavik

🏠
Working from home
View GitHub Profile
@LimaniBhavik
LimaniBhavik / Indian States and Capitals
Created July 15, 2022 06:00
Indian States and Capitals
=====================
States and Capitals
=====================
Andhra Pradesh
(Amaravati)
Arunachal Pradesh
(Itanagar)
Assam
(Dispur)
Bihar
Chapter - 1
- Cargo https://www.rust-lang.org/tools/install
- rustup target add wasm32-unknown-unknown
- cargo install cosmwasm-check
Chapter - 2
@LimaniBhavik
LimaniBhavik / Indian-States.json
Created December 13, 2022 11:26
Indian States json file
{
"AN":"Andaman and Nicobar Islands",
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chandigarh",
"CH":"Chhattisgarh",
"DN":"Dadra and Nagar Haveli",
@LimaniBhavik
LimaniBhavik / crypto address, address is valid or not.txt
Last active August 22, 2024 10:55
Rust program that allows a user to input the name or ticker of a cryptocurrency, enter a crypto address, and then check if the address is valid or not for the given cryptocurrency. This example will use basic validations for five cryptocurrencies: Bitcoin (BTC), Ethereum (ETH), Litecoin (LTC), Bitcoin Cash (BCH), and Dogecoin (DOGE). Please note…
use std::collections::HashMap;
use std::io::{self, Write};
fn main() {
// Define a map for the cryptocurrency tickers
let mut cryptos: HashMap<&str, &str> = HashMap::new();
cryptos.insert("BTC", "Bitcoin");
cryptos.insert("ETH", "Ethereum");
cryptos.insert("LTC", "Litecoin");
cryptos.insert("BCH", "Bitcoin Cash");