Skip to content

Instantly share code, notes, and snippets.

View aunetx's full-sized avatar

Aurélien Hamy aunetx

View GitHub Profile
@cb372
cb372 / riscv.md
Last active April 2, 2024 06:41
Writing an OS in Rust to run on RISC-V

(This is a translation of the original article in Japanese by moratorium08.)

(UPDATE (22/3/2019): Added some corrections provided by the original author.)

Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.

@andyholmes
andyholmes / gjs-timeout-and-interval.js
Created January 13, 2019 06:09
Simple ports of setTimeout and setInterval in GJS
#!/usr/bin/env gjs
const GLib = imports.gi.GLib;
/**
* https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
* https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval
*/
window.setInterval = function(func, delay, ...args) {