Skip to content

Instantly share code, notes, and snippets.

View nqpz's full-sized avatar
💭
💥 💥 💥

Niels G. W. Serup nqpz

💭
💥 💥 💥
View GitHub Profile
@nqpz
nqpz / issue.c
Created February 12, 2023 10:31
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "lib.h"
#define ISSUE_DIMS 2
#if ISSUE_DIMS == 1
typedef struct futhark_f32_1d cells_t;
#define free_cells futhark_free_f32_1d
@nqpz
nqpz / gist:e9b54bf4127e52d1af2be2dc8a53a883
Created December 23, 2022 18:30
Borgerforslag om Dansk Sprogcenter
Farvel til den danske sprogfascisme: Fremtidssikr Dansk Sprognævn NU
----------------------------------------------------------------------
Vi foreslår at give Dansk Sprognævn beføjelser til at udvikle og
markedsføre en mindre firkantet udgave af det danske sprog — "New
Danish" — med færre uregelmæssigheder, friere kommatering, samt større
accept af internationale låneord.
I samme ombæring skal Dansk Sprognævn ændre navn til "Dansk
@nqpz
nqpz / raster.fut
Last active March 9, 2019 16:58 — forked from athas/raster.fut
type pixel = { z: f32
, colour: i32
}
let closest (a: pixel) (b: pixel): pixel =
if a.z < b.z
then a
else b
let raster_onepass (w: i32) (pixel_pos: []i32) (pixels: []pixel) =
// Only works for constants and arrays, so watch out.
#define write(s) syscall_write(1, s, sizeof(s))
void write_char(char c) {
syscall_write(1, &c, 1);
}
void write_int(int n) {
int k, leading_zeros, div;

Keybase proof

I hereby claim:

  • I am nqpz on github.
  • I am ngws (https://keybase.io/ngws) on keybase.
  • I have a public key whose fingerprint is A281 1D02 FBC9 F96D 9521 CE40 7546 8AE4 8544 5363

To claim this, I am signing this object: