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
// result for blog post on my machine | |
// 10.7 Ma/s 93.60 ns/d 4.17 GHz 390.21 c/d 778.90 i/d 24.39 c/b 48.68 i/b 2.00 i/c | |
// ^^^^^^^^ | |
// | |
// binary_gcd_paolo_1 wins for #instructions, but is really bad in terms of ipc | |
// 5.3 Ma/s 189.59 ns/d 4.16 GHz 788.92 c/d 324.72 i/d 49.31 c/b 20.30 i/b 0.41 i/c | |
// ^^^^^^^^^^ | |
// | |
// binary_gcd_paolo_2 wins overall on my machine, saving more in #instructions than it loses ipc | |
// 12.0 Ma/s 82.99 ns/d 4.15 GHz 344.06 c/d 592.35 i/d 21.50 c/b 37.02 i/b 1.72 i/c |
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
#titlebar { | |
height: 44px; | |
} | |
#navigation-toolbox, #tabmail-tabs, #tabmail-arrowscrollbox { /* Outer tab containers */ | |
min-height: 44px !important; | |
} |
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
blueprint: | |
name: Personal Zone Notification | |
description: Send a notification with a URL to a device when it enters a specific zone. | |
domain: automation | |
input: | |
zone: | |
name: Zone | |
description: Zone triggering the notification | |
selector: | |
entity: |
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
#! /usr/bin/env python3 | |
# | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
# | |
# Command line access to GNOME Online Accounts mail accounts | |
# | |
# Authors: | |
# Daniel P. Berrange <[email protected]> | |
# Paolo Bonzini <[email protected]> |
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
#include "coro.h" | |
#include <cstdio> | |
static __thread Coroutine *current; | |
void Yield::await_suspend(std::coroutine_handle<> parent) const noexcept { | |
//printf("!!!! top = %p, yielding from %p\n", current->top, parent); | |
current->top = parent; | |
} |
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
#! /usr/bin/env python3 | |
from collections import defaultdict | |
import asyncio | |
import paho.mqtt.client | |
import json | |
import weakref | |
class ActiveSubscription: | |
def __init__(self, topic, obj, client): |
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
#! /bin/sh | |
if test $1 = -n; then | |
ARGS=--dry-run | |
shift | |
else | |
ARGS=--confirm=always | |
fi | |
mboxsplit() { |
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
#!/bin/sh | |
# /etc/initramfs-tools/hooks/sunxi_wdt | |
set -e | |
PREREQS="" | |
prereqs() { echo "$PREREQS"; } | |
case $1 in | |
prereqs) | |
prereqs | |
exit 0 | |
;; |
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
#!/usr/bin/perl -w | |
=head1 NAME | |
egypt - create call graph from gcc RTL dump | |
=head1 SYNOPISIS | |
egypt [--omit function,function,...] [--only function,function,...] [--include-external] [--files] <rtl-file>... | dotty - | |
egypt [--omit function,function,...] [--only function,function,...] [--include-external] [--files] <rtl-file>... | dot <dot-options> |
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
[ | |
{ | |
"key": "shift+alt+right", | |
"command": "-editor.action.smartSelect.expand", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-editor.action.insertCursorBelow", | |
"when": "editorTextFocus" |
NewerOlder