Skip to content

Instantly share code, notes, and snippets.

View tatimblin's full-sized avatar

Tristan Timblin tatimblin

View GitHub Profile
@tatimblin
tatimblin / pangram.zig
Created October 6, 2023 06:21
Trying out the zig programming language.
pub fn main() !void {
var buffer: [100]u8 = undefined;
var fba = std.heap.FixedBufferAllocator.init(&buffer);
const allocator = fba.allocator();
var seen: [26]bool = undefined;
var seenCount: u8 = 0;
var i: usize = 0;
while (i < seen.len) : (i += 1) {
seen[i] = false;
export { urlWritebackPlugin } from "src/urlWritebackPlugin";
export { jiraNotification } from "src/jiraNotification";
var img = new Image();
img.src = 'img/assets/background.png';
var int = setInterval(function() {
if (img.complete) {
clearInterval(int);
document.getElementById('content').setAttribute('style', 'background-image: url(' + img.src + '); opacity:1;');
}
}, 50);