Skip to content

Instantly share code, notes, and snippets.

View cogumbreiro's full-sized avatar

Tiago Cogumbreiro cogumbreiro

View GitHub Profile
public class Fin1 {
public static def main(s:Array[String](1)) {
//val f = Clock.make();
val c = Clock.make();
async clocked(c, /*f*/) {
Clock.advanceAll(); // deadlocks here
}
//f.advance();
}
}
public class Fin {
public static def main(s:Array[String](1)) {
finish {
val c = Clock.make();
async clocked(c) {
c.advance(); // deadlocks here
}
} // deadlocks here
}
}
@cogumbreiro
cogumbreiro / url-unmangler.user.js
Last active August 21, 2019 18:37 — forked from bbqsrc/google-unmangler.user.js
Outlook / Google Search Unmangler - Greasemonkey Script
// ==UserScript==
// @name Google Search / Outlook /Gmail Unmangler
// @namespace URLUnmangle
// @description Gmail / Google Search URLs
// @include http://google.tld/*
// @include http://www.google.tld/*
// @include https://mail.google.tld/*
// ==/UserScript==
var URLUnmangle = {};
@cogumbreiro
cogumbreiro / 99-asus-falchion.hwdb
Created January 11, 2022 22:33 — forked from jnettlet/99-asus-falchion.hwdb
Stop Asus ROG Falchion mechanical keyboard from sending POWER and SLEEP key presses when the keyboard goes to sleep. Put in /etc/udev/hwdb.d and then run sudo systemd-hwdb update
evdev:input:b*v0B05p193Ee0111*
KEYBOARD_KEY_10081=reserved
KEYBOARD_KEY_10082=reserved