Skip to content

Instantly share code, notes, and snippets.

JonasCz JonasCz

Block or report user

Report or block JonasCz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JonasCz
JonasCz / Cycle-view.render.xml
Created Nov 17, 2019
Omand rendering XML which higlights cycle paths & routes more. Drop it in /Android/data/net.osmand/files/rendering
View Cycle-view.render.xml
<renderingStyle depends="Touring-view_(more-contrast-and-details)" defaultColor="#f1eae4" version="1">
<renderingConstant name="blackCycleWayColor" value="#000000"/>
<renderingConstant name="blackCycleRouteColor" value="#85000000"/>
<renderingConstant name="contourLineColor" value="#2Aff7c00"/>
<renderingConstant name="contourLineColor50m" value="#2Aea7300"/>
<text>
<case tag="place" value="island" disable="true"/>
</text>
View gist:d8e1c3adf54df4d44fe7147fc266419f
# Contributor: Vojtech Kral <vojtech_kral^hk>
pkgname='libopencl'
pkgver=2.0
pkgrel=3
_appsdk_ver='3.0.0'
pkgdesc='AMD OpenCL library and ICD loader'
arch=('i686' 'x86_64')
url="http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/"
View kodi_debug_log_1.txt
19:12:29.446 T:140224820197760 NOTICE: special://profile/ is mapped to: special://masterprofile/
19:12:29.446 T:140224820197760 NOTICE: -----------------------------------------------------------------------
19:12:29.446 T:140224820197760 NOTICE: Starting Kodi (17.6 Git:20171114-a9a7a20). Platform: Linux x86 64-bit
19:12:29.446 T:140224820197760 NOTICE: Using Release Kodi x64 build
19:12:29.446 T:140224820197760 NOTICE: Kodi compiled Nov 4 2012 by GCC 5.4.0 for Linux x86 64-bit version 4.4.90 (263258)
19:12:29.446 T:140224820197760 NOTICE: Running on Ubuntu 16.04.4 LTS, kernel: Linux x86 64-bit version 4.13.0-37-generic
19:12:29.446 T:140224820197760 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
19:12:29.446 T:140224820197760 NOTICE: Host CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz, 4 cores available
19:12:29.446 T:140224820197760 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
19:12:29.446 T:140224820197760 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi
@JonasCz
JonasCz / aliexpressgluesticks.txt
Last active Mar 16, 2018
7mm glue sticks from AliExpress, price per mm length
View aliexpressgluesticks.txt
Prices in eur per mm, as of mar 2018
This one's the cheapest I looked at, and surprise surprise, bigger quantities are not always cheaper..:
https://www.aliexpress.com/item/MX-DEMEL-50Pcs-Sets-7mm-x-100mm-Hot-Melt-Gun-Glue-Sticks-Plastic-Transparent-Sticks-for/32846839667.html?spm=2114.search0104.3.24.3cea46a0ag8rzB&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10068_10342_10343_10340_10341_10696_10084_10083_10618_10305_10304_10307_10306_10302_5711215_10313_10059_10184_10534_100031_10103_10624_10623_443_10622_5711315_10621_10620_5722415-10620,searchweb201603_25,ppcSwitch_7&algo_expid=ae9920f6-e184-4781-ae27-f611cd95ae67-3&algo_pvid=ae9920f6-e184-4781-ae27-f611cd95ae67&transAbTest=ae803_4&priceBeautifyAB=0
50pcs, 100mm, 2,95
price per mm 0.00059
https://www.aliexpress.com/item/20Pcs-Lot-7mm-x-120mm-Hot-Melt-Glue-Sticks-For-Electric-Glue-Gun-Craft-Album-Repair/32685287410.html?spm=2114.search0104.3.2.3cea46a0ag8rzB&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10068_103
@JonasCz
JonasCz / jsoupLinkExtraction
Last active May 22, 2019
Email and link / URL extraction using Jsoup
View jsoupLinkExtraction
package jsouptest;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jsoup.nodes.Document;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
View Jsoup Test
public class JSoupTest {
public static void main(String[] args) throws IOException {
String myHtml = "<A HREF=\"junklink\">Junk Info</A>&nbsp;&nbsp;Link Id: A2&nbsp;&nbsp;<A HREF=\"Junk Link></A>";
Document doc = Jsoup.parseBodyFragment(myHtml, "http://your.baseurl");
System.out.println(doc.text());
You can’t perform that action at this time.