Skip to content

Instantly share code, notes, and snippets.

View mvallebr's full-sized avatar

Marcelo Elias Del Valle mvallebr

View GitHub Profile
import json
from flask import make_response, jsonify, request
from api import app, mysql
@app.errorhandler(404)
def not_found(error):
return make_response(jsonify({'error': 'Not found'}), 404)
def abc():
print("entre com a1")
a1 = int(input())
print("entre com a2")
a2 = int(input())
a = [a1, a2]
return a
a = [123, 234]
def a1():
yield 123
yield 234
b = {"nome": 123, "nome2": "matecki"}
print (b["nome"])
print (b["nome2"])
# Find Eulerian Tour
#
# Write a function that takes in a graph
# represented as a list of tuples
# and return a list of nodes that
# you would follow on an Eulerian Tour
#
# For example, if the input graph was
# [(1, 2), (2, 3), (3, 1)]
# A possible Eulerian tour would be [1, 2, 3, 1]
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
Rank,School Summary,School Type,Performance
1,"Heathfield Community School
School Road,Monkton Heathfield,Taunton,Somerset,TA2 8PD
Last year ranked 4","Secondary school
Coeducational",Performance Score: 53.64
2,"King's College London Maths School
80 Kennington Road,London,SE11 6NJ,SE11 6NJ
Last year ranked 19","Free schools 16 to 19
Coeducational",Performance Score: 53.22
3,"King's College School (KCS)
********************************************************************************
100 West Hill schools:
state:
441 - Ashcroft Technology Academy
********************************************************************************
106 Bath Road schools:
state:
420 - St Mark's Catholic School
********************************************************************************
107-115 Stamford Hill schools:
#!/usr/bin/env python3
import csv
def detect_type(type_str):
if "independent" in type_str.lower():
return "private"
elif "grammar" in type_str.lower():
return "grammar"
else:

After our conversation over the phone, I've spoken to my wife and we decided to make an offer on the flat we just saw.

Please accept this e mail as written confirmation of our offer. The details as we understand them are: The address of the subject property is Flat 26 Broadway House 3, High Street, Bromley, BR1 1AH. We understand the property is Unfurnished. To prevent any confusion, unfurnished is to mean that the flat comes with all suitable kitchen appliances like fridge, oven, microwave, and embedded wardrobes in the dorm rooms, but no furniture like beds, tables, chairs, etc. The offered rent is £1350 per month, for the flat with parking slot available The contract is for 12 months with a 6 month break clause – 2 months notice given after 4 months and the option to renew in the second year. The contract will need to be in the name of Marcelo Valle Militao Marcelo is employee of Bloomberg LP, at London, and would be moving in with his wife and 1 year old daughter.

#!/bin/python3
import math
import os
import random
import re
import sys
def num_inner_anagrams(s, left, right):
al = [0] * (ord('z') - ord('a') + 1)
#!/bin/python3
import math
import os
import random
import re
import sys
from collections import Counter
def unique_arr(arr):