Skip to content

Instantly share code, notes, and snippets.

View rfbatista's full-sized avatar
🚀

Renan Batista rfbatista

🚀
View GitHub Profile
unzip JetBrainsMono.zip -d ~/.fonts
fc-cache -fv
@rfbatista
rfbatista / bot.json
Created May 15, 2022 13:07
Chatbot definition
{
"name": "Chatbot",
"begin": "flowId",
"flows": {
"flowId": {
"name": "Start",
"steps": {
"stepId1": {
"components": {
"0": {

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@rfbatista
rfbatista / express-backend.sh
Last active May 9, 2021 20:47
Setup for express with typescript
mkdir server
cd server/
npm init --yes
yarn add express
echo "Creating index file..."
cat <<EOF > ./index.ts
import express from 'express';
// rest of the code remains same
@rfbatista
rfbatista / Axios.js
Last active March 28, 2021 15:42
Some axios code snippet
const res = await axios.delete('https://httpbin.org/delete');
res.status; // 200
//Unlike axios.post() and axios.put(), the 2nd param to axios.delete()
//is the axios.post(), not the request body. To send a request body with a
//DELETE request, you should use the data option.
const res = await axios.delete('https://httpbin.org/delete', { data: { answer: 42 } });