Skip to content

Instantly share code, notes, and snippets.

@towbi
towbi / json-demo.pl
Created June 24, 2016 08:20
Simple demo use of Perl's JSON-module
#!/usr/bin/env perl
use JSON;
use Data::Dumper;
my $hash = {
foo => 'bar',
baz => {
'noch eine' => 'hash map',
'abc' => 42
@towbi
towbi / details_tag.rb
Last active March 6, 2022 17:17
Jekyll plugin for a tag block mimicking the behaviour of the HTML5 "details" element
# _plugins/details_tag.rb
module Jekyll
module Tags
class DetailsTag < Liquid::Block
def initialize(tag_name, markup, tokens)
super
@caption = markup
end
@towbi
towbi / create-report.pl
Created June 12, 2015 07:50
Reporterstellung aus Grufu-Netzwerk-Dump
#!/usr/bin/perl
use strict;
use diagnostics;
#use warnings qw(all);
#no warnings qw(uninitialized);
no warnings;
use Data::Dumper;
use DateTime;