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 |
Task Url: https://gitcoin.co/issue/ensdomains/docs/10/2816
ENS (Ethereum Name Service) is analogous to DNS (Domain Name System) for IP addresses, in that it maps a memorable shortcut to an address. ENS is a distributed, decentralized, open, and extensible naming system based on the Ethereum blockchain and a useful tool for developers to create more memorable names for their dapps.
An ENS name can be a subdomain of the root .eth domain, like "example.eth" or any subdomain of a subdomain, like "sub.example.eth", or "wallet.username.example.eth"
Using ENS we can map a friendly ENS name, e.g., "ethereum.eth", to an unfriendly Ethereum address, e.g., 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359
. Users can then use the friendly name instead of the address, making it easier to remember, and reducing the chance of errors.
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
#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) |