Skip to content

Instantly share code, notes, and snippets.

@alensiljak
alensiljak / case2.gpx
Created November 5, 2022 13:58
Case 2 route
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd http://www.topografix.com/GPX/gpx_style/0/2 http://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpx_style="http://www.topografix.com/GPX/gpx_style/0/2" version="1.1" creator="https://gpx.studio">
<metadata>
<name>new</name>
<author>
<name>gpx.studio</name>
<link href="https://gpx.studio"></link>
</author>
</metadata>
<trk>

Keybase proof

I hereby claim:

  • I am mistery on github.
  • I am alensiljak (https://keybase.io/alensiljak) on keybase.
  • I have a public key ASBhSdIMFZc7_juGpUU4THGo7uZKxqMCzdP1GjB-fPgOwAo

To claim this, I am signing this object:

@alensiljak
alensiljak / backup.py
Last active May 20, 2019 14:35
GnuCash Book Backup
"""
This will backup the current gnucash book, which is expected to be in the same folder. The copy will be stored in the "backup" sub-directory. The copied file will be LZMA-compressed to reduce the storage size.
Only a pre-set number of backup files will be kept in the backup directory. The oldest ones will be deleted when a new one is created.
The script will also delete *.log files in the current working directory as these are redundant.
To adapt the script to your needs, modify the variables at the top of the file.
Future additions may include the functionality to keep files created in the last n days, instead of the
fixed number of files.
"""
@alensiljak
alensiljak / gtk-3.0.css
Last active August 4, 2020 02:25
GnuCash Register customization for a dark theme
/*
These register customizations go well with a dark GTK3 theme
*/
cursor entry {
color: orange;
}
*.register-cursor {
color: blanchedalmond;
@alensiljak
alensiljak / gtk-3.0.css
Last active March 29, 2018 11:19
GnuCash 3 Black Theme
/*
GnuCash 3.0 black theme
GTK has a way of declaring variables, which is not a valid CSS anymore and
tooling support is gone.
CSS has a way of declaring variables, which is not supported by GTK.
*/
* {
background-color: black;
color: lightsteelblue;
@alensiljak
alensiljak / designer.html
Created September 28, 2014 11:03
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@alensiljak
alensiljak / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
@alensiljak
alensiljak / package.json
Created October 16, 2012 15:19
package.json definition for minimalist web server
{
"name": "minimal-web-server",
"version": "1.0.0",
"dependencies" : {
"node-static" : "*"
}
}
@alensiljak
alensiljak / MinimalNodeWebServer.js
Created October 16, 2012 15:05
Minimal web server using Node-Static
var static = require('node-static');
//
// Create a node-static server instance to serve the current folder
//
var file = new(static.Server)(__dirname);
require('http').createServer(function (request, response) {
request.addListener('end', function () {
//
@alensiljak
alensiljak / CustomWebClient
Created October 11, 2012 13:49
Custom Web Client with support for GZip compression and cookies (authentication)
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace MyNamespace
{
/// <summary>
/// This web client supports Gzip compression and authentication.
/// </summary>