Skip to content

Instantly share code, notes, and snippets.

@0xLuz
0xLuz / cronograma_integracao_clickfit.md
Last active May 28, 2018 15:40
Cronograma de Integração Clickfit

Plano de Integração:

(ST = Sem tela definida/construída)

  • Cadastro:
    • Coach:
      • Email
      • Facebook
    • Cliente:
  • Email
@0xLuz
0xLuz / python_dispatcher.py
Created December 20, 2016 03:56
How s python dispatcher works
def avocado(key):
return key + ': Avocado'
def banana(key):
return key + ': Banana'
def cherry(key):
return key + ': Cherry'
@0xLuz
0xLuz / google_speech2text.md
Created August 9, 2016 17:44 — forked from alotaiba/google_speech2text.md
Google Speech To Text API

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English

@0xLuz
0xLuz / example.py
Created July 30, 2016 16:20
Geting the user on view with django-rest-framework-social-oauth2
#Here is example 1
def get(self, request, format=None):
user = request.user
#....
#Here is the way I like to do (Verifying if the request is authenticated)
def get(self, request, format=None):
if request.auth:
user = request.user