Skip to content

Instantly share code, notes, and snippets.

View javitonino's full-sized avatar

Javier Torres javitonino

View GitHub Profile

cyrus-imapd-2.5

a GETMETADATA (Calendar Contacts) /shared/vendor/kolab/folder-type
* METADATA Calendar (/shared/vendor/kolab/folder-type "event")
* METADATA Contacts (/shared/vendor/kolab/folder-type "contact")
a OK Completed

b GETMETADATA (Calendar Contacts) (/shared/vendor/kolab/folder-type /shared/vendor/kolab/color)
[
{
"name": "El Rastro",
"opening_hours": {
"mo": [],
"tu": [],
"we": [],
"th": [],
"fr": [],
"sa": [],
@javitonino
javitonino / python_code_test_carto.md
Last active April 4, 2019 14:47 — forked from javisantana/python_code_test_carto.md
Python code test - CARTO

Build the following and make it run as fast as you possibly can using Python 3 (vanilla). The faster it runs, the more you will impress us!

Your program should:

  1. Download this 2.2GB file: https://s3.amazonaws.com/carto-1000x/data/yellow_tripdata_2016-01.csv (keep in mind, the file could get much bigger in the future)
  2. Count the lines in the file
  3. Calculate the average value of the tip_amount field.

All of that in the most efficient way you can come up with.