Skip to content

Instantly share code, notes, and snippets.

@daym
daym / a.py
Created August 27, 2019 12:43
from PyQt5.QtWidgets import QWidget, QLabel, QApplication
from PyQt5.QtCore import QTimer, QVariant, pyqtSlot
style=\
"""QLabel {
qproperty-alignment: AlignCenter;
min-width: 84px;
min-height: 84px;
max-width: 84px;
/* gcc -fplan9-extensions foo1.c */
struct H {
int a;
};
struct S {
struct H;
int b;
};
int main() {
starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to `/gnu/store/d8l3aaq7vs2kzkwg0afj1lv1hb2s5fxm-automake-1.16.3/bin:/gnu/store/km9l89sd4wm9jp358481v2z6qacwl2h9-autoconf-2.69/bin:/gnu/store/b4mskl4py1zqmxdy1v260r3h6x5p92fm-flex-2.6.4/bin:/gnu/store/ny7ifgnkk7fbfhvpnhj32yg2mk6cdk8c-gettext-0.21/bin:/gnu/store/81n58x4293zwhvydzvvnypcz7y59jqmx-libtool-2.4.6/bin:/gnu/store/2b3blhwbag1ial0dhxw7wh4zjxl0cqpk-pkg-config-0.29.2/bin:/gnu/store/af9svhgvcy0xzphpv4fq17g8zm40x675-which-2.21/bin:/gnu/store/2hywg4rlq56v33xjw4ygxlcg6d18370n-check-0.15.2/bin:/gnu/store/dpkh77jsjcy8g87nj9y2xb0c1xi1mhki-llvm-9.0.1/bin:/gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34/bin:/gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10/bin:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/bin:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/bin:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/bin:/gnu/store/ahmmvw21p1
{
"header": {
"signature": [
"0x41",
"0x50",
"0x43",
"0x42"
],
"header_size": "0x0080",
"version": "0x0030",
{
processor_generation: "Milan",
psp: {
PspDirectory: {
entries: [
{
source: {
BlobFile: "AmdPubKey.tkn"
},
target: {
@daym
daym / main.rs
Created December 2, 2022 20:04
Matrices and Vectors
#![feature(array_zip)]
use core::iter::Sum;
use core::ops::{Add, Sub, Mul, Div};
use num_traits::{Zero, One};
// TODO: AddAssign and so on (sigh)
pub trait Field: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + Sized + Copy + Zero + One + PartialEq + Sum {}
impl Field for f32 {}
Finished dev [optimized + debuginfo] target(s) in 0.20s
Running `target/debug/xtask dist -v app/gimlet/rev-c.toml`
building crate task-jefe
Fresh unicode-ident v1.0.8
Fresh proc-macro2 v1.0.52
Fresh unicode-xid v0.2.2
Fresh autocfg v1.0.1
Fresh hashbrown v0.12.3
Fresh winnow v0.3.0
Fresh itoa v0.4.8
https://gist.github.com/daym/30e655e4193d48793797d5123cc90689
{
"version": "0.1.4",
"header": {
"signature": "APCB",
"header_size": 128,
"version": 48,
"apcb_size": 4732,
"unique_apcb_instance": 2,
"checksum_byte": 224,
"_reserved_1": [
steveklabnik (he/him): it's interesting because for my crates I've standardized on a workflow where pushing a tag creates a release (and publishes to crates.io) from CI
rain: I'd definitely give cargo-dist a shot for new CLI tools. (I had a conversation with Gankra and she said she was "amazed" at the tooling I'd built up around nextest lol, but it does make it hard to use ca
rgo-dist for now)
rain: daym: Yeah, I use it for nextest to do releases from CI. It works pretty well
dap: We use this for dropshot and steno. It solves a useful task well enough. I wouldn't say I love it.
OK: cargo-release
weird nits:
It will release no matter what
If ssh is unavailable, it will have published already but failed ssh and then not allow you to try again. If you change version number it will publish even without changes. But there will be a