Skip to content

Instantly share code, notes, and snippets.

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

Dias Junior diasjuniorr

🏠
Working from home
View GitHub Profile
@Grubba27
Grubba27 / fn.ts
Created February 17, 2023 21:52
arrow vs function declaration
const Module = {
value: 0,
someFn: () => {
return this.value;
},
okayFn() {
return this.value;
}
}
class Module2 {
@EmanuelCampos
EmanuelCampos / mailProvider.ts
Created September 29, 2021 10:30
Mail Provider
import nodemailer, { Transporter } from 'nodemailer'
import fs from 'fs';
import handlebars from 'handlebars';
import { SES } from 'aws-sdk'
import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses';
import { IMailParams, IMailProvider } from '../protocols/IMailProvider';
import { config } from '@config/config';
@sibelius
sibelius / learning-path-web3.md
Last active August 21, 2024 01:08
Learning Path Web3
  • learn blockchain concepts
  • learn ethereum
  • learn how to use metamask
  • learn how to use hardhat (https://hardhat.org/)
  • learn how to deploy and interact with a smart contract
  • learn common smart contract standards like ERC20 (token), ERC721 (nft), ERC1155 (opensea)
  • learn ipfs
  • learn how to read blockchain explorers like https://etherscan.io/
  • learn how to use web3 and etherjs
  • learn solidity
@sibelius
sibelius / awsLamdbaExperience.md
Last active October 31, 2023 00:09
AWS Lamdba Learning Path - What do you need to learn about aws lambdas?
  • learn how to bundle backend using webpack in a single bundle (check this https://gist.github.com/jgcmarins/2860f547f5d785dce24ca0eadbe3abdd)
  • learn how to automate lamdba deploys using serveless or aws cdk (github actions)
  • learn how to configure and automate api gateway
  • learn how to automate tests lambdas using jest
  • learn how to configure, automate and use RDS Proxy to fast database workflow in lamdbas (also cache database connections)
  • how the performance gain using RDS Proxy over normal database usage
  • learn about cold start and lambda statefull (https://www.swyx.io/stateful-serverless/)
  • expose a CRUD api in lamdba
  • put everything on open source (github)
  • write a blog post about each of the topics above
@nelsonprsousa
nelsonprsousa / useScrollToTop.ts
Last active January 29, 2022 15:30
The expected native behavior of scrollable components is to respond to events from navigation that will scroll to top when tapping on the active tab as you would expect from native tab bars. Works with react-native-navigation.
import { useEffect, useRef } from 'react';
import { ScrollView } from 'react-native';
import { Navigation } from 'react-native-navigation';
const useScrollToTop = ({
selectedTabIndex,
}: {
selectedTabIndex: number;
}): React.RefObject<ScrollView> => {
const scrollViewRef = useRef<ScrollView>(null);
@peterhellberg
peterhellberg / minimal-server.go
Created May 16, 2018 19:16
A pretty minimal HTTP server example in Go
package main
import (
"io/ioutil"
"log"
"net/http"
"os"
"time"
)