Skip to content

Instantly share code, notes, and snippets.

Avatar

Karsten Lehmann klehmann

View GitHub Profile
@klehmann
klehmann / GeoHashUtils.java
Created Jun 13, 2019
GeoHash utilities in Java
View GeoHashUtils.java
/*
* Copyright (c) 2013 Mindoo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@klehmann
klehmann / createQRPViewPersons1.lss
Last active Aug 5, 2022
createQRPViewPersons1.lss
View createQRPViewPersons1.lss
%REM
Sub createQRPViewPersons
Description: Comments for Sub
%END REM
function createQRPViewPersons1(qrpViewReaders As Variant, expirationHours As Integer) As String
On Error GoTo errHandler
Dim session As New NotesSession
Dim db As NotesDatabase
Dim viewName As String
@klehmann
klehmann / PhoneNumberMatcher.java
Last active May 5, 2022
Regular expression to find German phone numbers
View PhoneNumberMatcher.java
/*
* ==========================================================================
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. You may obtain a
* copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
@klehmann
klehmann / test.md
Created Sep 6, 2021
Hello World Markdown
View test.md

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@klehmann
klehmann / test.html
Created Sep 6, 2021
Hello World Html
View test.html
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
View gist:88df7b6c991c9dc487d5
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="pouchdb-2.2.0.js"></script>
<script type="text/javascript">
var db;
function setupDb() {
try {
db = new PouchDB('testdb');