Skip to content

Instantly share code, notes, and snippets.

@svenhanssen
svenhanssen / gist:157af21fb17c6539d921eb76240e4634
Created July 15, 2026 18:30
Waymark v1 response-to-insight loop prototype
# Response-to-insight loop — v1 prototype
## Product shape
Once a poll is published, its Research Plan becomes a live **Study workspace**. The workspace keeps the original decision, knowledge gap, user moment, poll, and trigger visible beside the evidence arriving from respondents.
The purpose is not to become an analytics dashboard. It is to help the PM inspect responses, form evidence-linked observations, and identify what remains uncertain.
## Workspace overview
@svenhanssen
svenhanssen / gist:ddc76a6b3267d7827e74411f06e1ee60
Created July 15, 2026 18:11
Waymark v1 interaction-recording experience prototype
# Interaction-recording experience — v1 prototype
## Purpose
Let a product manager demonstrate a meaningful behavior on their own site without inspecting the DOM, naming selectors, or understanding an event schema. Recording starts only after the guided research conversation has clarified the product decision, knowledge gap, and user moment.
## Entry
From the live Research Plan, the PM chooses **Show this moment on my site**. Waymark opens the configured customer site in a new tab using a short-lived, project- and origin-bound setup grant. The installed first-party SDK verifies the grant and renders a lightweight setup overlay.
@svenhanssen
svenhanssen / gist:1bd7734a6df7771c593908a274f9990c
Created July 15, 2026 17:59
Waymark v1 guided research conversation prototype
# Guided research conversation — v1 prototype
## Product shape
A split workspace combines a focused AI conversation with a live **Research Plan**. Chat is the interaction mechanism; the plan is the durable object the product manager is creating.
## Flow
1. **Start with a rough goal**
- The PM writes a natural-language goal such as: “I want to understand why users visit pricing but don’t start a trial.”
@svenhanssen
svenhanssen / articles.php
Last active December 10, 2015 06:49
Embed snippets right into your Kirbytext flavored content. Handy for including dynamic content. For example, just call (snippet: articles limit: 5) to include the articles.php snippet and limit those articles by 5.
<?php
/*
Add this file to your site/snippets directory.
All attributes defined in kirbytext.extended.php will be available right here.
*/
$articles = $pages->find( "articles" )->children()->visible()->flip()->limit( $limit );
foreach ($articles as $article):
@svenhanssen
svenhanssen / hack.sh
Created March 31, 2012 17:17 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@svenhanssen
svenhanssen / WP_Query.php
Created March 13, 2012 12:52
WordPress: Query Comprehensive Reference
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(