Skip to content

Instantly share code, notes, and snippets.

View FelixZY's full-sized avatar

Felix Zedén Yverås FelixZY

View GitHub Profile
@FelixZY
FelixZY / supabase_api_auth.sql
Last active April 30, 2024 09:18
How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
-- Token Based API Access for Supabase
--
-- How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
--
-- (c) 2022 Felix Zedén Yverås
-- Provided under the MIT license (https://spdx.org/licenses/MIT.html)
--
-- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but
-- prefer to follow a tool over going by personal taste.
--
@FelixZY
FelixZY / ViewBindingLazy.kt
Created May 25, 2021 14:08
Lazy ViewBinding delegate designed to imitate `androidx.fragment.app.viewModels`.
/*
Copyright 2021 Felix Zedén Yverås
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.