Skip to content

Instantly share code, notes, and snippets.

View zxenonx's full-sized avatar
🎯
Focusing

zxenonx

🎯
Focusing
View GitHub Profile
@zxenonx
zxenonx / get_sorted_users.py
Created March 10, 2022 22:56
Sort User objects
import requests
class User:
"""User class"""
def __init__(self, **kwargs) -> None:
for k, v in kwargs.items():
setattr(self, k, v)
def __str__(self) -> str:
@zxenonx
zxenonx / readme.md
Created October 21, 2021 10:46 — forked from ColeDrain/readme.md
Proof of Concept

Data Read POC Post Method

Plugins can read data from the database by calling /data/read using a POST method

Why a POST Method? So we have the problem of plugins wanting to query the database, the current implementation uses URL parameters to specify the filters, which has posed some limitations, exposes sensitive data and makes querying complex.

A POST method hides sensitive information. A POST method may have a body in which we can then specify, the following JSON object.

@zxenonx
zxenonx / auth.dart
Created November 20, 2020 14:47 — forked from nikhilmufc7/auth.dart
Firebase Flutter Platform Exception Codes and example
// Error Codes for SignUp
ERROR_OPERATION_NOT_ALLOWED` - Indicates that Anonymous accounts are not enabled.
ERROR_WEAK_PASSWORD - If the password is not strong enough.
ERROR_INVALID_EMAIL` - If the email address is malformed.
ERROR_EMAIL_ALREADY_IN_USE - If the email is already in use by a different account.
ERROR_INVALID_CREDENTIAL` - If the [email] address is malformed.
// sending password reset email
ERROR_INVALID_EMAIL` - If the [email] address is malformed.
@zxenonx
zxenonx / git_tuto.md
Created November 16, 2018 22:56 — forked from Arthur/git_tuto.md
Petit Tuto sur git

Sommaire

git en local

comment ça marche, le log, et la structure (commit/tree/blob), le stockage (.git/objects/)

le staging

les branches, les merge, le rebase

git avec d'autre repository

les submodules ou braid

@zxenonx
zxenonx / git-and-github.md
Created November 16, 2018 22:51
Bien utiliser git

5 why

Pourquoi ce document ?

Parce qu'il y a des smells dans les repository

Pourquoi parler de smell ?

Certains projets ont des branches develop, d'autres pas. On utilise les tags avec jenkins, on a des commits peu clairs, on n'utilise pas toutes les fonctionnalités de github (PR, issues)

Pourquoi sont-ce des smells ?

La rigueur est primordiale pour conserver du code maintenable dans lequel on peut avoir confiance et dont on peut être fier.