You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
######## | |
# app.py | |
######## | |
# Example of how I use it in my project. This file cannot be run as-is. | |
# The only difference with the example in the fastapi_singleton module docstring is | |
# the use of a subclassed FastAPI application to define type annotations | |
import fastapi | |
import fastapi_singleton |
google镜像仓库
package com.kaaneneskpc.richtexteditor | |
import android.annotation.SuppressLint | |
import android.os.Environment | |
import android.widget.Toast | |
import androidx.compose.animation.AnimatedVisibility | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.border | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Arrangement |
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers:
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
This is a brief guide on how to install Archlinux as a WSL2 distribution and how to set up CUDA afterwards.
As of late, Window's WSL2 offers GPU passthrough from WSL2/Linux to Windows for NVidia graphics cards which allows to run (and develop) CUDA-based applications on the WSL2/Linux-side with almost native performance. Unfortunately, the official guides for the CUDA setup for WSL2/Linux are predominantly Ubuntu-specific. Here's to you, Arch!
Archlinux is not among the default distributions available for WSL2. We'll install it from a tarball instead, a functionality offered natively by the WSL.
#!/bin/bash | |
COOKIE_VALUE='L1NJRXM5eXkxMVhYMnUwNlRtVjd5Q3JWOGVtSjdxY0NneXBuSlNpQmdhb2xZZ2pyR3RCRENFamJSV1E4QXhqZkJpeVlGeTFzQ2UyalQ1RnI5ZHJWWGdvSG5NcFAxK05ramc4MGVKdnhWOEtOSUxaMlJWeGNocHFOWkh1aktmQy9lbHliYllhalhpWUFZYkVpWDkvdTZNdTRvd2JQYmxURnoyVGdUMHdXWVRMU3hVNGdFbWlnQ2U2c2RVbEMvS2FKK2NqTjl6U2ZwU2xtS09wdHlqNGJ2U05URVFaUmNydkxjY0VWNGJpSTd6U1poOWpxaWE1K09TZ01oTkdLYjljTVdLbVd1UWVRSHc1WkhMbjR6cUpCeklnNmNOUXVxS1FyU2xWUmxYbVBWdE09LS1oY1JibHM2RnZ5bStVRm0yYXFuYXBRPT0%3D--1878c3d65e1c28cdd2da459577e8fb9894e2cd7a' | |
CSRF_TOKEN='yOcFwFaW/ZdCZZj2Co1s8Va2+f6RFx3IYjKiup505yDm1HOi7Cq5IAoi8CaRdOIZEt8akygs1pph6W7M910j+g==' | |
# http GET localhost:3000/records/from/primo.json per=all _=123456 'Origin:http://localhost:8004' | |
http GET localhost:3000/records/from/primo.json per=all _=123456 'Origin:http://localhost:8004' \ | |
"Cookie:_eshelf_session=${COOKIE_VALUE}; path=/; HttpOnly" "X-CSRF-Token:${CSRF_TOKEN}" | |
# http POST localhost:3000/records.json \ | |
# record:='{"external_system":"primo","external_id":"dedupmrg412226627"}' \ |
# Just a quick update for GPT and to use `rsync` instead of `cp`! | |
# That means this applies to UEFI boot, though for legacy BIOD boot, feel free to swap | |
# GPT to MBR below. | |
# Requires https://homebrew.sh to split the install.wim file | |
brew install wimlib | |
# First, we need to find our device. BEFORE inserting your USB drive, run the | |
# following: | |
diskutil list |
Just a little demo how to use bootstraps toasts component with HTMX and custom triggers. Toasts are stackable and grouped by message (so the same message doesn't pop up several times, when already open.
A Pen by Marcus at Localhost on CodePen.