Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
/*: | |
This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI | |
The only purpose of this code is to implement those wrappers myself | |
just to understand how they work internally and why they are needed, | |
⚠️ This is not supposed to be a reference implementation nor cover all | |
subtleties of the real Binding and State types. | |
The only purpose of this playground is to show how re-implementing | |
them myself has helped me understand the whole thing better |
Here we create the master key. We want only Certify
capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate
capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities
creation process (type 8
)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
This guide provides steps on how to install Tensorflow and Pytorch on Linux environment (including WSL2 - Windows Subsystem for Linux) with NVIDIA GPU support. Here I focus on Ubuntu 22.04 and WSL2 (Windows 11) but things should work on more/less recent/relevant versions. From what I've checked there are no full consistent guidelines, hopefully this one should clear things up (also serve as a reminder for me).
To install purely on Windows 10/11 (no WSL), I suggest to follow this tutorial.
const apiEndpoint = "https://api.spotify.com/v1"; | |
const authEndpoint = "https://accounts.spotify.com/api/token"; | |
const clientId = "your client id"; | |
const clientSecret = "your client secret"; | |
const method = "album"; | |
const queryParams = `?q=${encodeURIComponent( | |
"Pink Floyd - The wall" // query here | |
)}&type=${method}&limit=1`; | |
const searchUrl = `${apiEndpoint}/search${queryParams}`; |
from bson.tz_util import utc | |
from datetime import datetime, timedelta | |
# This file is to impliment date related helper functions | |
# | |
# This is mainly needed because bson uses the javascript date class. | |
# The javascript Date() class represents timestamps in milliseconds. | |
# For some documentation on how Bson, Json, and Date work together, refer to: | |
# http://blog.mongohq.com/from-json-to-bson-and-back/ | |
# |