This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
@dataclass | |
class UnitQuantity: | |
value: int | |
@dataclass | |
class KilogramQuantity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx jsx */ | |
import { Hono, Context } from "https://deno.land/x/hono/mod.ts"; | |
import { basicAuth } from "https://deno.land/x/hono/middleware.ts"; | |
import { serveStatic } from "https://deno.land/x/hono/middleware.ts"; | |
import { jsx } from "https://deno.land/x/hono/middleware.ts"; | |
import { env } from "https://deno.land/x/hono/helper.ts"; | |
import { getProject, setProject } from './project.ts'; | |
import { renderPrompt } from './prompt.ts'; | |
import { getAIOutput } from './ai.ts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' | |
if not vim.loop.fs_stat(lazypath) then | |
vim.fn.system({ | |
'git', | |
'clone', | |
'--filter=blob:none', | |
'https://github.com/folke/lazy.nvim.git', | |
'--branch=stable', -- latest stable release | |
lazypath, | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::arch::asm; | |
fn main() { | |
let str = b"Hello world\n"; | |
unsafe { | |
let res = syswrite(str.as_ptr() as u64, str.len() as u64); | |
println!("res: {}", res); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% bouncing balls | |
-initialization(main). | |
main :- | |
poke(0x4c00, [0x3c, 0x7e, 0xff, 0xff, 0xff, 0xff, 0x7e, 0x3c], D1), | |
set_colors(0x0ce9, 0x01c0, 0x0ce5, D2), | |
start(D1, D2). | |
start([], []) :- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide low scores from filmvandaag.nl | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hides every score below a 6 from filmvandaag.nl movie results | |
// @author Erik Terpstra | |
// @match https://www.filmvandaag.nl/* | |
// @icon https://www.google.com/s2/favicons?domain=filmvandaag.nl | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gleam/list | |
import gleam/result | |
import gleam/string | |
type PersonalName { | |
PersonalName( | |
first_name: String, | |
middle_initial: result.Option(String), | |
last_name: String, | |
) |
NewerOlder