Skip to content

Instantly share code, notes, and snippets.

View Nilomiranda's full-sized avatar
🎯
Focusing

Danilo Miranda Nilomiranda

🎯
Focusing
View GitHub Profile
@Nilomiranda
Nilomiranda / learning-path-web3.md
Created September 8, 2021 22:20 — forked from sibelius/learning-path-web3.md
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
@Nilomiranda
Nilomiranda / tmux-cheatsheet.markdown
Created June 8, 2021 18:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Nilomiranda
Nilomiranda / dockerLearnPath.md
Created March 2, 2021 13:27 — forked from sibelius/dockerLearnPath.md
Docker Learn Path - What do you need to know about Docker
  • learn why we need docker
  • learn how to define a Dockerfile
  • learn how to build a docker
  • learn how to list images
  • learn how to run docker with port forward
  • learn how to go inside docker to debug, running /bin/bash
  • learn docker compose
  • learn how to send a docker image to a reqistry (dockerhub or aws ecr)
  • learn how to deploy a docker to kubernetes, aws ecs or another platform
@Nilomiranda
Nilomiranda / awsLamdbaExperience.md
Created March 2, 2021 13:27 — forked from sibelius/awsLamdbaExperience.md
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
@Nilomiranda
Nilomiranda / getObjectId.tsx
Created April 23, 2020 11:32 — forked from sibelius/getObjectId.tsx
getObjectId from globalId
import { fromGlobalId } from 'graphql-relay';
import { Model, Types } from 'mongoose';
// returns an ObjectId given an param of unknown type
export const getObjectId = (target: string | Model<any> | Types.ObjectId): Types.ObjectId | null => {
if (target instanceof Types.ObjectId) {
return new Types.ObjectId(target.toString());
}
if (typeof target === 'object') {

Working with Razzle and Relay Hooks

We'll be going through an example to work with Relay hooks and Razzle (INSERT RAZZLE LINK HERE) which is a framework agnostic SSR library.

As we will be using relay hooks and its support for react's concurrent mode, we'll need to make Suspense work in SSR, as it has no out of the box support yet. Read more.

React documentation itself recommends that we use Loadable Components, so this is the solution we are going for.

Getting started with Razzle

Building the API

(First part ommited cause I haven't started this gist at that thime)

Files

  • Create feature to enable user to upload files
    • Add relation with events when event has been created Event table should have a banner_id column (something like that) that will contain the uploaded file id, related to the new event being created.
@Nilomiranda
Nilomiranda / LearnInPublic.md
Last active July 17, 2019 12:54
Learning topics

Topics currently learning or under consideration

Current working directory

I'll probably split each main topic here with its own subtopics.

Priority

  • Learn Ionic 4
  • Improve in Angular (as Ionic learning progresses)
@Nilomiranda
Nilomiranda / learning.md
Created July 8, 2019 02:25 — forked from sibelius/learning.md
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation