Skip to content

Instantly share code, notes, and snippets.

View WilfredAlmeida's full-sized avatar
💭
wilfredalmeida.com

Wilfred Almeida WilfredAlmeida

💭
wilfredalmeida.com
View GitHub Profile
@WilfredAlmeida
WilfredAlmeida / axiosFetchWithRetries.ts
Created April 10, 2024 09:30
Using Axios for JSON RPC calls instead of fetch
// This is a custom fetch function that uses axios to make requests and retries on errors or 502 status codes
// Run this file by executing `npx tsx axiosFetchWithRetries.ts`
import { Connection } from "@solana/web3.js";
import axios from "axios";
const RETRY_ATTEMPTS = 3;
export async function axiosFetchWithRetries(
input: string | URL | globalThis.Request,
@WilfredAlmeida
WilfredAlmeida / README.md
Last active September 30, 2023 11:07
TypeScript Express `tsconfig.json`

tsconfig.json

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "strict": true,
    "esModuleInterop": true,
    "noImplicitAny": true,
    "moduleResolution": "node",
@WilfredAlmeida
WilfredAlmeida / README.md
Last active August 24, 2023 09:22
Solana Event Emitter

programs/logger/src/lib.rs

use anchor_lang::prelude::*;
use borsh::{BorshDeserialize, BorshSerialize};

declare_id!("ENdMF5CR3qvWj2L6xZWofrYiYaQVV3dM94ghtbrvJ9QN");

#[program]
pub mod logger {
@WilfredAlmeida
WilfredAlmeida / README.md
Last active March 20, 2023 16:42
Flutter Hands-on Session

Flutter Hands-on Workshop

Who am I?

I am Wilfred, been developing using Flutter for a while now & trying to do better. Find me on my socials Portfolio, Twitter, LinkedIn

Flutter

Project

@WilfredAlmeida
WilfredAlmeida / README.md
Last active March 12, 2023 09:07
Getting started with Flutter & Dart
@WilfredAlmeida
WilfredAlmeida / README.md
Last active October 29, 2022 06:54
API 101 with Postman Session Resources

API 101 with Postman - Wilfred Almeida

Signup on postman.com

cURL Commands

  • Weather API
    curl --location --request GET 'https://api.openweathermap.org/data/2.5/weather?q=mumbai&units=metric&appid=8cbce2bf9c96ba7df25eb3bdcd9c5e87'