Skip to content

Instantly share code, notes, and snippets.

@frmdstryr
frmdstryr / readtest2.zig
Created December 7, 2019 02:22
With IOStream
// Run with zig run --release-fast readtest.zig
const std = @import("std");
const net = std.net;
const os = std.os;
const math = std.math;
const mem = std.mem;
const File = std.fs.File;
const assert = std.debug.assert;
//pub const io_mode = .evented;
const Buffer = std.Buffer;
@frmdstryr
frmdstryr / readtest.zig
Created December 6, 2019 13:56
Zig read tests
// Run with zig run --release-fast readtest.zig
const std = @import("std");
const net = std.net;
const os = std.os;
const math = std.math;
const mem = std.mem;
const File = std.fs.File;
const assert = std.debug.assert;
//pub const io_mode = .evented;
const buffer_size = 16384;
from enaml.qt.QtGui import QCursor
enamldef PopupMenu(Menu): menu:
attr selected = set()
attr choices = []
attr pos = None
activated ::
# Save where it was opened
self.pos = QCursor.pos()
Looper: