One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// MIT License | |
// | |
// Copyright (c) 2019 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
class EmailandUsernameAuthBackend(object): | |
def authenticate(self, request, username=None, password=None): | |
try: | |
user = User.objects.get(Q(username=username) | Q(email=username)) | |
if user.check_password(password): | |
return user | |
except User.DoesNotExist: | |
return None | |
def get_user(self, user_id): |
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/login', | |
getPages: [ | |
GetPage( | |
name: '/login', | |
page: () => LoginPage(), |
This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.
Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4
The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.
#!/bin/bash | |
ARIA_URL="http://127.0.0.1:6800/jsonrpc" | |
SECRET="secret" | |
# Step 1: Retrieve GIDs of failed downloads | |
response=$(curl -s -X POST $ARIA_URL \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"jsonrpc": "2.0", |
#!/bin/bash | |
# Update Gradle, Java and other Android project settings in a Flutter project | |
# Works with both .gradle and .gradle.kts build files | |
# See: https://gradle.org/releases/ | |
# See: https://developer.android.com/build/releases/gradle-plugin#compatibility | |
DESIRED_GRADLE_VERSION="8.11.1" | |
# Build errors often show the required Java version | |
DESIRED_JAVA_VERSION="17" | |
# See: https://developer.android.com/ndk/downloads |