Skip to content

Instantly share code, notes, and snippets.

@jaakla
jaakla / today.yaml
Created Nov 23, 2021
home-assistant nordpool graph
View today.yaml
# requires this component (installed with HACS): https://github.com/custom-components/nordpool
type: 'custom:apexcharts-card'
experimental:
color_threshold: true
graph_span: 24h
header:
title: Elektrihind täna
show: true
span:
View MapsActivity.java
package com.ut.example.jaak.myapplication;
import android.annotation.SuppressLint;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.widget.Toast;
@jaakla
jaakla / grid10T.py
Last active Sep 29, 2018
Eesti Põhikaardi 1:10000 grid numbri arvutus
View grid10T.py
# src: https://geoportaal.maaamet.ee/est/Andmed-ja-kaardid/Koordinaatsusteemid-ja-kaardilehtede-jaotused/Kaardilehtede-susteemid-p224.html
# consts for bounds
xmin = 300000
xmax = 800000
square_x = 100000 # 1st level grid size
ymin = 6300000
ymax = 6700000
square_y = 100000
start1 = 4 # grid digit offsets
View keybase.md

Keybase proof

I hereby claim:

  • I am jaakla on github.
  • I am jaakl (https://keybase.io/jaakl) on keybase.
  • I have a public key ASD4mZBSvmDIdD_06iGZjNSvuzb29s2qs3pWUlE3ZNuh-Ao

To claim this, I am signing this object:

View mobile_gis_workshop_preparations.md

Preparations for mobile GIS app with CARTO SDK workshop

alt text

Jaak Laineste, @jaakl

Important: please install Android SDK tools as instructed below before workshop. It involves over 1GB download and it saves a lot of time and hassle on-site if you do it beforehand.

Requirements

View mobile_gis_workshop.md

Your first native mobile GIS app with CARTO SDK

alt text

Jaak Laineste, @jaakl

Preparation

A computer with:

  • Linux, Mac or Windows
View vatican.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaakla
jaakla / dynaminc_maps.md
Last active Aug 21, 2016 — forked from namessanti/dynaminc_maps.md
Workshop: Making Dynamic Maps with CartoDB
View dynaminc_maps.md
@jaakla
jaakla / TwoColorLine.java
Created Jan 8, 2016
2 color line with Nutiteq
View TwoColorLine.java
// Add line with 2 colors
// You need special bitmaps in res/drawable-nodpi folder: line_left.png and line_right.png
// Create line style, and line poses
Bitmap lineBitmapL = BitmapFactory.decodeResource(getResources(), R.drawable.line_left);
Bitmap lineBitmapR = BitmapFactory.decodeResource(getResources(), R.drawable.line_right);
LineStyleBuilder lineStyleBuilder = new LineStyleBuilder();
lineStyleBuilder.setColor(new Color(0xFFFF0000)); // red
@jaakla
jaakla / pom.xml
Created Dec 8, 2014
Maven config to use Nutiteq Maps SDK 3.0 in Android apps
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nutiteq.advancedmap3</groupId>
<artifactId>com.nutiteq.advancedmap3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<platform.version> 4.1.1.4
</platform.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>