Skip to content

Instantly share code, notes, and snippets.

View woliveiras's full-sized avatar
🤖
Always typing code

William Oliveira woliveiras

🤖
Always typing code
View GitHub Profile
@woliveiras
woliveiras / constants.js
Created December 9, 2019 14:10
Escale - Code Challenge
const toFrom = {
0: "zero",
1: "um",
2: "dois",
3: "três",
4: "quatro",
5: "cinco",
6: "seis",
7: "sete",
8: "oito",
(defn my-recursive-sum
([numbers] (my-recursive-sum 0 numbers))
([total numbers]
(if (empty? numbers)
total
(recur (+ (first numbers) total) (rest numbers)))))
(defn my-recursive-sum
([numbers] (my-recursive-sum 0 numbers))
([total numbers]
(if (empty? numbers)
total
(my-recursive-sum (+ (first numbers) total) (rest numbers)))))
(defn hello
([] (hello "Eae!?"))
([name] (str "Eae, " name "!?")))
(defn my-recursive-sum [total numbers]
(if (empty? numbers)
total
(my-recursive-sum (+ (first numbers) total) (rest numbers))))
def my_structured_sum (numbers):
total = 0
for number in numbers:
total += number
return total
# Simple flask app sample
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '<h1>Hello, pyenv!</h1>'
@woliveiras
woliveiras / sample.md
Last active August 1, 2017 02:28
Exemplo de Gist para Code Review

Code Review

Este arquivo possui um erro e você pode enviar uma sugestão de como resolver através do processo de code review, seja comentando na linha de código ou enviando uma mensagem logo abaixo do Gist.

Você consegue identificar o que está errado?

-pode ter a ver com o uso de listas no Gist *ou não

  • eu nem sei mais
  • faz tanto tempo que estou nessa tarefa
function* generatorWithEnd() {
yield 1;
yield 2;
yield 3;
yield 4;
yield 5;
}
let myIterator = generatorWithEnd();