Skip to content

Instantly share code, notes, and snippets.

View mrjoshida's full-sized avatar

Josh Caldwell mrjoshida

View GitHub Profile
@anoochit
anoochit / leanback_android_tv_flutter.md
Last active July 2, 2024 14:41
leanback android tv
  • Add software leanback feature in AndroidManifest
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
  • Add banner icon xhdpi 320x180 px for banner
@joshfinnie
joshfinnie / views.py
Created December 30, 2014 20:19
BreweryDB webhook example (Django)
import hashlib
from django.conf import settings
from django.core.exceptions import PermissionDenied
def webhook_receive(request):
"""
View used to receive webhooks from BreweryDB
"""
isValid = hashlib.sha1(settings.BREWERYDB_API_KEY + request.GET['nonce']) == request.GET['key']