Skip to content

Instantly share code, notes, and snippets.

View rafaelhbarros's full-sized avatar

Rafael de Barros rafaelhbarros

View GitHub Profile
class Record:
def __init__(self, key):
self.key = key
def __str__(self):
return str(self.key)
class OrderedRecordArray:
def __init__(self, initial_capacity):
self.__a = [None] * initial_capacity
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
# data sourced from https://www.levels.fyi/t/software-engineer/locations/united-states
years_experience = [5, 6, 7, 8, 9, 10, 11, 12, 13, 15]
base_salary = [140000, 150000, 160000, 170000, 180000, 190000, 200000, 210000, 220000, 240000]
total_comp = [180000, 200000, 220000, 240000, 260000, 280000, 300000, 320000, 340000, 380000]
fig, ax = plt.subplots()
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
@rafaelhbarros
rafaelhbarros / schematic_soft_validation.py
Created November 20, 2015 23:04
Schematic soft validation
from __future__ import absolute_import, print_function, unicode_literals
import schematics
from datetime import datetime as Datetime
import datetime
# Third party imports
from bson.objectid import ObjectId