Skip to content

Instantly share code, notes, and snippets.

View daniloab's full-sized avatar
🎯
Focusing

Danilo Assis daniloab

🎯
Focusing
View GitHub Profile
@sibelius
sibelius / learning-path-web3.md
Last active June 18, 2024 17:52
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 / intern.md
Last active May 19, 2022 19:25
Intern Entria

To apply to Entria as an intern we wanna know how fast you can learn our stack and how good do you use learn in public

Be creative, code to impress

Build a CRUD GraphQL + Relay hooks

You can also for help on twitter (learn in public) or slack

React Brasil slack. Join here https://react.now.sh/ and channel #entria-challenge

@jgcmarins
jgcmarins / ReactNativeFormikExample.tsx
Last active April 5, 2021 00:49
React Native + Formik hooks example
import React from 'react'
import { FormikProvider, useFormik } from 'formik'
import * as yup from 'yup'
import TextInputFormik from './TextInputFormik'
const ReactNativeFormikExample: React.FC<unknown> = (props) => {
const formik = useFormik({
initialValues: {
name: '',
@sibelius
sibelius / testingConcept.md
Last active February 1, 2024 17:36
testing library concept and basic test

You first need to undestand the concept of frontend tests.

You should not test the implementation but the behavior

You test like the end user

For instance, imagine a login screen with email and password inputs and a submit button

The test should input the email and the password, then click in the submit button.

@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
@iaurg
iaurg / books.json
Last active July 14, 2021 13:50
Good Books
[
{
"author": "Ray Dalio",
"itemId": "8551003429",
"link": "https://amzn.to/2P975Bx",
"title": "Principios"
}
,
{
"author": "Aditya Y.",
@tcodes0
tcodes0 / dicas-mei-ir.js
Created June 29, 2020 17:34
Dicas para mei com imposto de renda
const totalYear = /* total de ganhos no ano */;
const SERVICES_TAX_ASSUMPTION = 0.32;
const EXEMPT_AMOUNT = 28.559.70 /* valor para 2020 */;
const nonTaxable = totalYear * SERVICES_TAX_ASSUMPTION;
const taxableByPj = totalYear - nonTaxable;
const shouldSubmitIR = taxableByPj > EXEMPT_AMOUNT;
console.log({ shouldSubmitIR, taxableByPj, nonTaxable, totalYear });
/**
https://www.msn.com/pt-br/dinheiro/other/mei-precisa-declarar-imposto-de-renda/ar-BB10w1xg
import { RequestParameters } from 'relay-runtime/lib/util/RelayConcreteNode';
import { Variables, Disposable } from 'relay-runtime/lib/util/RelayRuntimeTypes';
import { SubscriptionClient, Observer } from 'subscriptions-transport-ws';
import config from '../config';
import { ExecutionResult } from 'graphql';
import { Observable, SubscribeFunction, Subscribable, GraphQLResponse } from 'relay-runtime';
import { RelayObservable } from 'relay-runtime/lib/network/RelayObservable';
export function getToken(): string {
@sibelius
sibelius / FeatureFlag.tsx
Created May 6, 2020 12:33
Basic Feature Flag implementation using React.Context
import React, { useContext, useCallback } from 'react';
export const FeatureFlagContext = React.createContext<string[]>([]);
export const useFeatureFlag = () => {
const features = useContext<string[]>(FeatureFlagContext);
const hasFeature = useCallback(
(feature: string) => {
return features.includes(feature);
@IanColdwater
IanColdwater / twittermute.txt
Last active May 23, 2024 18:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet