Skip to content

Instantly share code, notes, and snippets.

@JoabMendes
JoabMendes / review_member_suggestions.md
Created May 23, 2019 19:10
Review Member suggestion

Reviewing suggested members

Currently users can suggest business through the frontend with the following form:

Suggested members 1

To review the suggested members do:

  1. On the dashboard home go to the Domain panel and access the Change option besides the Members entity:
@JoabMendes
JoabMendes / logbook_temaplates_and_endpoints.md
Created May 14, 2019 14:57
Logbook Student side templates and endpoints

Example of current templates:

  • http://elentra-1x-me.localhost/logbook#/logbook: List the clinical courses and their objectives List the entries added by the student for each objective and it progress status.

  • http://elentra-1x-me.localhost/logbook#/logbook/log-entry: Shows the form where entries can created for multiple objectives at once.

@JoabMendes
JoabMendes / code_review.html
Created May 5, 2019 17:48
Code review content html
<html>
<head>
<script>
window.setTimeout(runFizzBuzz,10); //to wait until the the div loads
function runFizzBuzz() {
for (i = 0; i < 101; i++) {
If (!i) continue;
If (((i % 15) && (i % 3) && (i % 5))) setSpanToText("mySpan",
i+"\n");
If (!(i % 15)) setSpanToText("mySpan", "FizzBuzz\n");
@JoabMendes
JoabMendes / ormuco_test_questions.md
Last active March 25, 2019 06:16
Ormuco Test Questions

TECHNICAL TEST  

  • Question A

    Your goal for this question is to write a program that accepts two lines (x1,x2) and (x3,x4) on the x-axis and returns whether they overlap. As an example, (1,5) and (2,6) overlaps but not (1,5) and (6,8).  

  • Question B

@JoabMendes
JoabMendes / 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
@JoabMendes
JoabMendes / 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'
@JoabMendes
JoabMendes / 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

@JoabMendes
JoabMendes / 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