Spice and twist up your message using markdown, syntax highlighting, formats in Discord.
Italics *italics* or _italics_
Underline italics __*underline italics*__
| // saga.js | |
| export function* processSaveAttachment(action) { | |
| const files = action && action.payload; | |
| const requestData = new FormData(); | |
| files.forEach((file) => requestData.append('upfile', file)); | |
| // console.log('[files]', files); | |
| // for (const pair of requestData.entries()) { | |
| // console.log(`${pair[0]}, ${pair[1]}`); |
| // add this to the top of the <head> of index.html | |
| // also make sure the dev server is configured in weback dev config with apiFallBack: true, etc. | |
| <base href="/"> |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| import time | |
| import threading | |
| import struct | |
| from pykeyboard import PyKeyboard | |
| # init keyboard | |
| kb = PyKeyboard() | |
| # declare local variables for reading controller's binary data | |
| # path to usb controller |