Skip to content

Instantly share code, notes, and snippets.

@librasteve
librasteve / cromnest.raku
Created December 8, 2024 20:00
Cromponent Nests
#!/usr/bin/env raku
use lib "lib";
use Cro::WebApp::Template;
use Cro::HTTP::Router;
use Cro::HTTP::Server;
use Cromponent;
class Col {
@librasteve
librasteve / Template-Register.rakumod
Created December 4, 2024 18:01
HTML::Component::CroTmp prototype
use Cro::HTTP::Router;
use Cro::WebApp::Template;
my constant $location = 'templates';
my constant $base = $*PROGRAM.parent.parent.parent.parent.add($location);
#| API for an HTML::Component that uses the Cro::WebApp cro template
#| mechanism, each component has one static cro template file that is
#| registered with the Cro::Template::Repository when it is instantiated.
#|
@librasteve
librasteve / index.md
Created November 30, 2024 18:42
merry_cromas/index.crotmp

md

<div hx-target="this" hx-swap="outerHTML">

  <p>Tree Height is 235m</p>
  <p>Tree Area is 8648m^2</p>

  <div hx-target="#svg">
    <button hx-get="/merry_cromas/tree_me">Tree Me</button>
    <button hx-get="/merry_cromas/bauble_up">Bauble Up</button>
@librasteve
librasteve / Merry-Cromas.md
Created November 30, 2024 18:38
Merry-Cromas.md

markdown

use Cro::HTTP::Router;
use Cro::WebApp::Template;

sub merry_cromas-routes() is export {

    route {
        template-location 'templates/merry_cromas';
@librasteve
librasteve / Merry-Cromas.rakumod
Created November 30, 2024 18:33
Merry-Cromas.rakumod
use Cro::HTTP::Router;
use Cro::WebApp::Template;
sub merry_cromas-routes() is export {
route {
template-location 'templates/merry_cromas';
get -> {
template 'index.crotmp';
@librasteve
librasteve / NlNetApplication.md
Created November 28, 2024 11:14
elucid8 NlNet Application DRAFT

*** Please note that the sections here are taken from the NlNet Grant Application form (with limited cha counts) ***

Thematic Call

NGI Zero Commons Fund

Contact Information

Richard

General Project Information

Project Name

@librasteve
librasteve / fosscarveout.txt
Created October 27, 2024 17:11
FOSS Carve Out from EU Directive
(14) Free and open-source software, whereby the source code is openly shared and users can freely access, use, modify and redistribute the software or modified versions thereof, can contribute to research and innovation on the market. Such software is subject to licences that allow anyone the freedom to run, copy, distribute, study, change and improve the software. In order not to hamper innovation or research, this Directive should not apply to free and open-source software developed or supplied outside the course of a commercial activity, since products so developed or supplied are by definition not placed on the market. Developing or contributing to such software should not be understood as making it available on the market. Providing such software on open repositories should not be considered as making it available on the market, unless that occurs in the course of a commercial activity. In principle, the supply of free and open-source software by non-profit organisations should not be considered as takin
@librasteve
librasteve / page.html
Created October 3, 2024 01:25
HTML Page
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.jumbotron {
background-color: #e6ffe6;
text-align: center;
@librasteve
librasteve / page.elm
Created October 3, 2024 01:24
Page Elm
module HomePage exposing (main)
import Html exposing (..)
import Html.Attributes exposing (..)
view model =
div [ class "jumbotron" ]
[ h1 [] [ text "Welcome to Dunder Mifflin!" ]
, p []
@librasteve
librasteve / index.php
Created September 15, 2024 18:14
Simple PHP HTML Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple PHP Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;