Result of the course Build a Modern User Interface with Chakra UI by Lazar Nikolov.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
from SocketServer import BaseRequestHandler, ThreadingUDPServer | |
from cStringIO import StringIO | |
import os | |
import socket | |
import struct | |
import time | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Security.Cryptography; | |
namespace SomeProgram | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(KEY_SIZE)) |
Estimated time: 10 minutes
Turns a boring whitey email table into a beautiful and comfortable translucent table. Works better with a beautiful wallpaper and some blur.
Features:
- Slightly reduces the opacity of email rows and header
- Adds a subtle border between email rows for extra reading comfort
- Change labels colours to be more eye-catching
Disclaimer: this screws up the background on gmail settings, but since I almost never use it, I didn't feel into investing time to make that better.
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
Ignore it for a specific parameter name: "no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["draft"] }],
Source: immerjs/immer#189 (comment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credits to Kent C. Dodds | |
// Source: https://github.com/testing-library/react-testing-library/issues/93#issuecomment-392126991 | |
test('can select an image and upload will make a request to upload it', async () => { | |
const { container, getByLabelText, getByText, getByAltText } = render( | |
<ProfilePhoto />, | |
) | |
const file = new File(['(⌐□_□)'], 'chucknorris.png', { type: 'image/png' }) | |
const imageInput = getByLabelText('choose image') | |
Simulate.change(imageInput, { target: { files: [file] } }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was initially generated by Windows Terminal 1.1.2233.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
- use Auth0 for logins
- retrieve a Fauna instance secret for the user (see Fauna's ABAC tutorial)
- have the user’s device talk directly to Fauna's native graphql endpoint using their secret for authorization.
At the very least, we need two pieces of functionality:
- Create a user document in Fauna to represent each Auth0 user.
- Exchange an Auth0 JWT for a FaunaDB user secret.