Skip to content

Instantly share code, notes, and snippets.

View cintiazago's full-sized avatar

Cintia cintiazago

View GitHub Profile
@cintiazago
cintiazago / grokking_to_leetcode.md
Created July 3, 2022 23:46 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import lxml.etree
import xmlsec
import urllib2
###############################################################################
# Ajustes para NFe
###############################################################################
@cintiazago
cintiazago / root_logger_settings.py
Created November 23, 2017 16:58 — forked from st4lk/root_logger_settings.py
Python logging settings for root logger
"""
Settings for root logger.
Log messages will be printed to console and also to log file (rotated, with
specified size). All log messages from used libraries will be also handled.
Three approaches for defining logging settings are used:
1. using logging classes directly (py25+, py30+)
2. using fileConfig (py26+, py30+)
3. using dictConfig (py27+, py32+)
Choose any variant as you like, but keep in mind python versions, that
@cintiazago
cintiazago / combineS3Files.py
Created November 1, 2017 16:19 — forked from jasonrdsouza/combineS3Files.py
Python script to efficiently concatenate S3 files
'''
This script performs efficient concatenation of files stored in S3. Given a
folder, output location, and optional suffix, all files with the given suffix
will be concatenated into one file stored in the output location.
Concatenation is performed within S3 when possible, falling back to local
operations when necessary.
Run `python combineS3Files.py -h` for more info.
'''