Skip to content

Instantly share code, notes, and snippets.

View anticodeninja's full-sized avatar

Artem anticodeninja

View GitHub Profile
@anticodeninja
anticodeninja / comic_convert.py
Created January 24, 2020 14:23
Conversion script for Brussel Comic Route in KML
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This Source Code Form is subject to the terms of the
# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Copyright 2019 Artem Yamshanov, me [at] anticode.ninja
import datetime
import json
@anticodeninja
anticodeninja / comic_route.kml
Created January 24, 2020 14:21
Brussel Comic Route in KML
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<Style id="placemark-red">
<IconStyle>
<Icon>
<href>http://maps.me/placemarks/placemark-red.png</href>
</Icon>
</IconStyle>
</Style>
@anticodeninja
anticodeninja / feh-wrapper
Last active May 5, 2019 10:42
FEH wrapper for XDG integration
#!/bin/bash
exec feh -. -Z $1 -- $(dirname -- "$1")
@anticodeninja
anticodeninja / redmineup_tags_api_patch.patch
Last active March 15, 2019 14:53
Port of redmine_tags api patch to redmineup fork
--- a/app/helpers/tags_helper.rb
+++ b/app/helpers/tags_helper.rb
@@ -121,6 +121,14 @@
options
end
+ def render_api_redmine_tags(taggable, api)
+ api.array :tags do
+ taggable.tags.each do |tag|
+ api.tag(:id => tag.id, :name => tag.name)

Keybase proof

I hereby claim:

  • I am anticodeninja on github.
  • I am anticodeninja (https://keybase.io/anticodeninja) on keybase.
  • I have a public key whose fingerprint is 476C 1635 225D 30AC 1229 DDB6 E6AE 096E 20F6 A027

To claim this, I am signing this object: