Skip to content

Instantly share code, notes, and snippets.

View mauvieira's full-sized avatar
🤙

Mauricio Vieira mauvieira

🤙
View GitHub Profile
@noghartt
noghartt / cc.md
Last active June 8, 2024 06:34
Resources to learn more about Computer Science and related stuffs
@hwayne
hwayne / gpt.lua
Created April 25, 2023 01:54
Lua code for running GPT from Neovim
-- Put this in after/plugins
local api = vim.api
local function chunk(text)
local sections = {}
for line in vim.gsplit(text, "@@@") do
if line:find("^s") then
table.insert(sections, {role = "system", content = line:sub(3)})
@noghartt
noghartt / rss.opml
Last active August 9, 2024 03:45
My current list containing all RSS feeds that I think that is useful
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by NetNewsWire -->
<opml version="1.1">
<head>
<title>Subscriptions-OnMyMac.opml</title>
</head>
<body>
<outline text="AAAS: Keyword search for query" title="AAAS: Keyword search for query" description="" type="rss" version="RSS" htmlUrl="https://www.science.org/" xmlUrl="https://www.science.org/blogs/pipeline/feed"/>
<outline text="News" title="News">
<outline text="Ars Technica - All content" title="Ars Technica - All content" description="" type="rss" version="RSS" htmlUrl="https://arstechnica.com/" xmlUrl="https://feeds.arstechnica.com/arstechnica/index"/>

Como Pensar

Ler e entender um pouco desse artigo. https://wiki.c2.com/?FeynmanAlgorithm

  • Reconhecer como você pensa
  • Descrever métodos que você usa para pensar
  • Entender métodos diferentes de pensar
  • Fazer perguntas sobre tudo(incluindo sobre perguntas)

Perguntas

/*
You are given 2 numbers as strings, and you need to sum them assuming that you can't simply parse them as integers
cause the numbers may be too big to be stored as an integer
Return the sum as a string
*/
function sumStrings(str1, str2) {
// Your code here
}
function test(str1, str2, solution) {
/*
You are given 2 numbers as strings, and you need to sum them assuming that you can't simply parse them as integers
cause the numbers may be too big to be stored as an integer
Return the sum as a string
*/
function sumStrings(str1, str2) {
const parsedDigits1 = str1
.split('')
.reverse()
.map((digit) => parseInt(digit));
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active September 23, 2024 08:12
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?