Skip to content

Instantly share code, notes, and snippets.

FROM opensuse/tumbleweed
RUN zypper ref && \
zypper in --no-recommends -y entr make perl-App-cpanminus && \
zypper cc -a && \
cpanm -n MHonArc::UTF8 && \
rm -rf /root/.cpanm
ARG MAILDIR
ARG OUTDIR
RUN mkdir -p ${MAILDIR} ${OUTDIR}
ENV MAILDIR ${MAILDIR}
FROM perl:5.34
RUN mkdir -p /srv/kapitaali_com-download-demo
COPY . /srv/kapitaali_com-download-demo
WORKDIR /srv/kapitaali_com-download-demo
RUN cpanm --installdeps -n .
CMD [ "starlight" ]
diff --git a/examples/billboard b/examples/billboard
index 9099b77..1cb837c 100755
--- a/examples/billboard
+++ b/examples/billboard
@@ -131 +131 @@ EOF
- MAKE_PALETTE, # palette type
+ MAKE_PALETTE(), # palette type
diff --git a/examples/blended2 b/examples/blended2
index 1e6e427..071e0d2 100755
--- a/examples/blended2
From 06fd6913d2becdd0d994b0ac786516618bf0f420 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lars=20D=C9=AA=E1=B4=87=E1=B4=84=E1=B4=8B=E1=B4=8F?=
=?UTF-8?q?=E1=B4=A1=20=E8=BF=AA=E6=8B=89=E6=96=AF?= <daxim@cpan.org>
Date: Sun, 8 Jul 2018 15:05:31 +0200
Subject: [PATCH 1/3] normalise so we can have meaningfully diffs
`jq . -S` was used
---
frameworks/Perl/dancer/benchmark_config.json | 44 +++++-----
frameworks/Perl/kelp/benchmark_config.json | 84 ++++++++++---------
@daxim
daxim / Testapp.pm
Created July 7, 2020 09:20
FFI::Platypus
package Testapp;
use FFI::Platypus;
use FFI::Platypus::Memory qw(free malloc);
my $ffi = FFI::Platypus->new;
$ffi->lang('CPP');
$ffi->lib('./testapp.o');
package Metagrammar;
use Marpa::R2;
use Regexp::Grammars;
sub parse {
my ($grammar, $input) = @_;
my $meta_grammar = qr{
<grammar>
@daxim
daxim / README
Last active August 29, 2015 14:10
for https://github.com/kohler/gifsicle/issues/31
// http://redd.it/235nt7
// Enable console output in the top left corner
developer 1
// Display the last 15 lines of the console in the top left corner
contimes 15
// Keep the console output in the top left corner for 8 seconds
con_notifytime 8
@daxim
daxim / Makefile
Created February 11, 2014 03:58
misc-farm
CXXFLAGS = -fmessage-length=0 -g3 -O0 -pedantic -std=c++11 -Wall -Wextra
all: main.cpp
$(CXX) $(CXXFLAGS) -c -o main.o main.cpp
$(CXX) -o ./farm main.o
help:
@echo make CXX=clang++
@echo '# or just `make` for g++'
@echo ./farm
CXXFLAGS = -O0 -g -Wall -fmessage-length=0 -pedantic -std=c++11 -Wextra
all: iteration main.cpp
$(CXX) $(CXXFLAGS) -c -o main.o main.cpp
$(CXX) -o iteration main.o iteration.o
iteration: iteration.cpp
$(CXX) $(CXXFLAGS) -c -o iteration.o iteration.cpp
test: iteration test.cpp