A collection of notes, links, guides to help setup your local environment. This is primarily for MacOS
VSCode | Useful VSCode Plugins | React | Other Useful Tools | My Favorite VSCode Themes | Useful VSCode Shortcuts | Create a new Next.js app
A collection of notes, links, guides to help setup your local environment. This is primarily for MacOS
VSCode | Useful VSCode Plugins | React | Other Useful Tools | My Favorite VSCode Themes | Useful VSCode Shortcuts | Create a new Next.js app
| author | license |
|---|---|
Jillian Ada Burrows Sosa |
My notes are licensed under the Creative Commons Attribution-ShareAlike 4.0 International license. All images here are also similarly licensed.
| const mysql = require('mysql'); | |
| const fs = require('graceful-fs'); | |
| // Make any queries constant for readability | |
| const TABLES_QUERY = | |
| "SELECT table_name FROM information_schema.tables WHERE table_schema ='my_table_schema"; | |
| const COLUMNS_QUERY = 'SELECT column_name from information_schema.columns'; | |
| // Create the MySQL connection | |
| const connection = mysql.createConnection({ |
| #!/usr/bin/env python3 | |
| # The below code is an attemt to understand Elliptic Curve Cryptography | |
| # by implementing Elliptic Curve Diffie-Hellman key exchange from scratch. | |
| # DON'T USE THIS CODE IN YOUR APP!! | |
| # It is not safe and is intended only as a learning tool. | |
| import secrets |
| #include <string> | |
| #include <vector> | |
| /* | |
| Base64 translates 24 bits into 4 ASCII characters at a time. First, | |
| 3 8-bit bytes are treated as 4 6-bit groups. Those 4 groups are | |
| translated into ASCII characters. That is, each 6-bit number is treated | |
| as an index into the ASCII character array. | |
| If the final set of bits is less 8 or 16 instead of 24, traditional base64 |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |