Alguns atalhos que uso no VSCode durante as aulas
| Funcionalidade | Windows | Mac | Linux |
|---|---|---|---|
| Todos os atalhos | Ctrl+K Ctrl+S | ⌘K ⌘S | Ctrl+K Ctrl+S |
| Lista de Comandos | Ctrl+Shift+P | ⇧⌘P | Ctrl+Shift+P |
| Terminal Integrado | Ctrl+` | ⌃` | Ctrl+` |
| /* | |
| Instagram API: send direct messages from a web browser | |
| Since April 2020, Instagram has a web version to send and read direct messages so my Instagram scripts are not longer needed and I would not recommend using them unless you really need it, to avoid being banned | |
| (never happened to me with Instagram but WhatsApp is owned by Facebook also and they did it to users registering from an unofficial app like yowsup: https://github.com/tgalal/yowsup/commit/88b8ad9581fa22dac330ee3a05fec4e485dfa634#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5) | |
| For browser setup, see script instagram-api_direct_messages_backup.js | |
| Instagram web version sessionid cookie does not allow sending messages so we need to log in manually | |
| Signature should match signed_body data (using HMAC-SHA256 with private key) but wrong signature or key may work also. |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Single File Web Component</title> | |
| </head> | |
| <body> | |
| <template id=single-file> | |
| <style> | |
| h1 { |
| const pombify = (phrase) => { | |
| return phrase | |
| .split(' ') | |
| .map((word) => { | |
| const wordLetters = word.split('') | |
| return wordLetters | |
| .map((letter, index) => { | |
| const charCode = letter.charCodeAt(0); | |
| const binary = charCode | |
| .toString(2) |
| # dependencies | |
| # pip install -U openai gradio | |
| import os, openai | |
| import gradio as gr | |
| openai.api_key = 'sk-xxxxxx' | |
| messages = [{"role": "system", "content": """Assistant is an expert candidate in | |
| technical IT job interviews. Currently, the interview is | |
| focused on a position for Platform Engineer. So, you have skills |
😉 Não sei exatamente como você chegou aqui, mas vou compartilhar um pouco sobre mim.
Meu nome é [Seu Nome Aqui] (também conhecido(a) como [Seu Nickname]). Atualmente, moro em [Cidade, País] e meu objetivo é ajudar outros desenvolvedores a alcançar seus sonhos e metas. 🚀
No meu tempo livre, gosto de participar de comunidades de programação, onde aprendo e compartilho conhecimento sobre diversos tópicos. Desde [Ano] venho me envolvendo em projetos e iniciativas que impulsionam o crescimento da comunidade tecnológica. 🤝