Skip to content

Instantly share code, notes, and snippets.

@rsudev
rsudev / about.md
Created August 11, 2011 07:07 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@rsudev
rsudev / inset.py
Last active September 23, 2015 09:39 — forked from kumy/inset.py
#!/usr/bin/env python
"""
Compute INSET positions.
For map, tere are two fixpoints for inset calculation, mdpi (33x40) and hdpi (45x51)
The other ratios are fixed, and defined at
http://developer.android.com/guide/practices/screens_support.html#DesigningResources
"""

Keybase proof

I hereby claim:

  • I am rsudev on github.
  • I am rasantan (https://keybase.io/rasantan) on keybase.
  • I have a public key whose fingerprint is F187 FEF2 9C6D 85B7 C036 567C 2330 A1AF F038 D966

To claim this, I am signing this object:

@rsudev
rsudev / tmp.diff
Created February 10, 2019 17:26
patch suggestion fro invalidateAll in new map (c:geo)
diff --git a/main/src/cgeo/geocaching/maps/mapsforge/v6/caches/AbstractCachesOverlay.java b/main/src/cgeo/geocaching/maps/mapsforge/v6/caches/AbstractCachesOverlay.java
index fef98dc0f..4df04d697 100644
--- a/main/src/cgeo/geocaching/maps/mapsforge/v6/caches/AbstractCachesOverlay.java
+++ b/main/src/cgeo/geocaching/maps/mapsforge/v6/caches/AbstractCachesOverlay.java
@@ -96,6 +96,11 @@ public abstract class AbstractCachesOverlay {
invalidate();
}
+ public void invalidateAll() {
+ removeItems(getGeocodes());