Skip to content

Instantly share code, notes, and snippets.

View maxcell's full-sized avatar

Prince Wilson maxcell

View GitHub Profile

Keybase proof

I hereby claim:

  • I am maxcell on github.
  • I am maxcell (https://keybase.io/maxcell) on keybase.
  • I have a public key ASD15jLdB6ohJYM3tc634J8v0fzvpqEFPQAfdCNBMRKzago

To claim this, I am signing this object:

curl --request PUT \
--url http://<NANOLEAF_API_ENDPOINT>/api/v1/<AUTH_TOKEN>/effects \
--header 'Content-Type: application/json' \
--data '{ "write":{
"command": "display",
"version": "1.0",
"animType": "wheel",
"colorType": "HSB",
"transTime": {
"minValue": 4,
@maxcell
maxcell / machine.js
Created May 25, 2020 14:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
####
# In views.py
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
def create_user(request):
# ...Logic for creating the user...