Skip to content

Instantly share code, notes, and snippets.

View trein's full-sized avatar
💭
/dev/null

Guilherme Trein trein

💭
/dev/null
View GitHub Profile
@trein
trein / gcodejam.py
Last active April 15, 2022 10:29
Google Code Jam 2022 Template
"""Google Code Jam Template.
Running regular solution locally with sample file:
cat qx-sample.txt | python3 qx.py -d
Where `qx-sample.txt` is a text file with input samples and
`qx.py` is the file containing the runnable solution.
Running interactive solution locally with test tool:
@trein
trein / gist:ca47ad34dff041cfb9fb
Created January 17, 2015 15:52
iOS6 MKMapView memory fix workaround
- (void)applyMapViewMemoryHotFix {
switch (self.mapView.mapType) {
case MKMapTypeHybrid:
self.mapView.mapType = MKMapTypeStandard;
break;
case MKMapTypeStandard:
self.mapView.mapType = MKMapTypeHybrid;
break;
default:
break;