Skip to content

Instantly share code, notes, and snippets.

View eterps's full-sized avatar

Erik Terpstra eterps

View GitHub Profile
@eterps
eterps / output.txt
Last active November 25, 2024 21:01
Polislite algorithm (inspired by pol.is)
Consensus Statements:
- Climate change requires immediate action (strong agreement)
Divisive Statements:
- Nuclear power is necessary for clean energy
- Carbon tax should be implemented globally
- Individual actions matter for sustainability
- Companies should be held liable for emissions
Group Positions:
@eterps
eterps / select.rb
Last active December 12, 2024 15:20
Select
require 'sinatra'
require 'json'
TECH_TAGS = %w[javascript python ruby java rust golang react vue angular typescript]
get('/') { erb :index }
get('/suggest') { TECH_TAGS.grep(/#{params[:q]}/i).to_json }
get('/search') { erb :_results, layout: false, locals: { tags: params[:tags].to_s.split(',').reject(&:empty?) } }
__END__
<h1>I blog with minimal HTML</h1>
<p>published: 10/02/25 (dd/mm/yy)<br>
updated: not yet
<p>Inspired from <a href=https://devpoga.org/i-blog-with-raw-html">I blog in raw HTML</a>
<p>The blog you're reading is written in minimal HTML.
<p>This (english) blog is at it's first incarnation, the longest lived one (so far). But I have a french blog available too.