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
/* | |
Java port of PolymurHash 2.0. | |
Copyright (c) 2024 Chris Vest. | |
Requires Java 18 for Math.unsignedMultiplyHigh(). | |
*/ | |
/* | |
PolymurHash version 2.0 | |
Copyright (c) 2023 Orson Peters | |
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
package com.tinymolly; | |
import java.awt.*; | |
import java.util.HashSet; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Queue; | |
import java.util.Set; | |
public class Main { |
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
[chris@flowerpot:~]$ git clone https://github.com/spacejam/rio.git | |
Cloning into 'rio'... | |
remote: Enumerating objects: 22, done. | |
remote: Counting objects: 100% (22/22), done. | |
remote: Compressing objects: 100% (16/16), done. | |
remote: Total 514 (delta 6), reused 14 (delta 5), pack-reused 492 | |
Receiving objects: 100% (514/514), 112.48 KiB | 643.00 KiB/s, done. | |
Resolving deltas: 100% (274/274), done. | |
[chris@flowerpot:~]$ cd rio | |
[chris@flowerpot:~/rio (master)]$ cargo test |
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
Jul 25 11:20:12 flowerpot upowerd[1829]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.001B | |
Jul 25 11:20:13 flowerpot kernel: magicmouse 0005:05AC:030E.001C: unknown main item tag 0x0 | |
Jul 25 11:20:13 flowerpot kernel: input: Touchy-Feely as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:512/0005:05AC:030E.001C/input/input38 | |
Jul 25 11:20:13 flowerpot kernel: magicmouse 0005:05AC:030E.001C: input,hidraw2: BLUETOOTH HID v1.60 Mouse [Touchy-Feely] on b4:6b:fc:31:1b:3f | |
Jul 25 11:20:13 flowerpot upowerd[1829]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:512/0005:05AC:030E.001C | |
Jul 25 11:20:13 flowerpot upowerd[1829]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:512/0005:05AC:030E.001C/power_supply/hid-d8:96:95:e3:fa:64-battery |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
uname -a && echo $'O_RDONLY\nO_RDWR\nSEEK_SET\nSEEK_END\nEBADF\nEINVAL\nENXIO\nEOVERFLOW\nESPIPE\nEACCES\nEAGAIN\nEDQUOT\nEEXIST\nEFAULT\nEINTR\nEIO\nEISDIR\nELOOP\nEMFILE\nENAMETOOLONG\nENFILE\nENOENT\nENOSPC\nENOTDIR\nEOPNOTSUPP\nEROFS\nEFBIG\nEPIPE\nEWOULDBLOCK' | gcc -imacrosunistd.h -imacrosfcntl.h -imacrossys/errno.h -E - | tail -n 29 |
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
void popAll( Consumer<Object> consumer ) { | |
Node nodes = stack.getAndSet( END ); | |
while ( nodes != END ) { | |
consumer.accept( nodes.value ); | |
Node next; | |
do { | |
next = nodes.next; | |
} while ( next == null ); | |
nodes = next; | |
} |
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
void push( Object value ) { | |
Node node = new Node( value ); | |
node.next = stack.getAndSet( node ); | |
} |
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
class Handover { | |
private static class Node { | |
final Object value; | |
volatile Node next; | |
Node( Object value ) { | |
this.value = value; | |
} | |
} | |
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 "files" | |
use "collections" | |
actor Main | |
new create(env: Env) => | |
let collector = Collector(env) | |
let parser = Parser(collector) | |
let caps = recover val FileCaps.set(FileRead).set(FileStat) end | |
try |
NewerOlder