This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
namespace Project.Controls | |
{ | |
public class KeyboardEntry : Entry | |
{ | |
#region ShowKeyboardProperty | |
public static readonly BindableProperty ShowKeyboardProperty = BindableProperty.Create<KeyboardEntry, bool>(p => p.ShowKeyboard, default(bool)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parent activity of the preference screen | |
// onClick listener for reusable preference widget. | |
public void onPreferenceSecondaryButtonClicked(View view){ | |
// Gets a reference to the preference that contains this widget | |
ListView preferenceList = (ListView) view.getParent().getParent().getParent(); | |
int preferencePosition = preferenceList.getPositionForView(view); | |
Preference preference = (Preference) preferenceList.getAdapter().getItem(preferencePosition); | |
// Add onclick logic here, using reference to the preference object that contains this widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a simple CORS proxy with Cloudflare Workers | |
* to bypass cors restrictions in the browser. | |
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2 | |
*/ | |
addEventListener('fetch', event => | |
event.respondWith(handleRequest(event.request)) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
... | |
steps: | |
... | |
- name: Download .env from BitWarden | |
env: | |
# Client ID and Secret can be found in https://vault.bitwarden.com/#/settings/security/security-keys | |
BW_CLIENTID: ${{ secrets.BITWARDEN_CLIENTID }} | |
BW_CLIENTSECRET: ${{ secrets.BITWARDEN_CLIENTSECRET }} | |
# BitWarden master password required for unlocking vault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop Home Assistant services | |
sudo systemctl stop hassio-supervisor.service && \ | |
sudo systemctl stop hassio-apparmor.service && \ | |
sudo systemctl disable hassio-supervisor.service && \ | |
sudo systemctl disable hassio-apparmor.service && \ | |
sudo rm -rf /etc/systemd/system/hassio-supervisor.service && \ | |
sudo rm -rf /etc/systemd/system/hassio-apparmor.service | |
# Remove Home Assistant directories | |
sudo rm -rf /usr/sbin/hassio-supervisor && \ |