Skip to content

Instantly share code, notes, and snippets.

View hatf0's full-sized avatar
💠

Harrison hatf0

💠
View GitHub Profile
@hatf0
hatf0 / keybase.md
Last active February 9, 2018 07:09

Keybase proof

I hereby claim:

  • I am hatf0 on github.
  • I am metario (https://keybase.io/metario) on keybase.
  • I have a public key whose fingerprint is E173 106F D1E0 F3D9 00D4 6DB5 F9ED 7645 B2E7 D075

To claim this, I am signing this object:

@hatf0
hatf0 / main.cpp
Last active May 8, 2018 04:40
the opencv stuff
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <array>
#include <stdio.h>
#include <list>
#include <vector>
using namespace cv;

Keybase proof

I hereby claim:

  • I am hatf0 on github.
  • I am metario (https://keybase.io/metario) on keybase.
  • I have a public key whose fingerprint is EC49 F930 415D C9FD CA6E B291 17A3 4D96 3FD4 D282

To claim this, I am signing this object:

module shotty.uploaders;
import asdf;
import std.traits;
import std.conv : to;
static foreach(member; EnumMembers!ShottyUploaders) {
mixin("public import shotty.uploaders." ~ to!string(member) ~ ";");
}
enum ShottyUploaders {
#!/bin/bash
# Screenshot wrapper
# Uses shotty (which uses maim (which uses slop))
# "Friendship ended with maim. Now shotty is my best friend."
SCREENSHOTS_DIR=~/screenshots
TIMESTAMP="$(date +%Y.%m.%d-%H.%M.%S)"
#TIMESTAMP="$(date +%Y.%m.%d--%s)"
FILENAME=$SCREENSHOTS_DIR/$TIMESTAMP.screenshot.png
PHOTO_ICON_PATH=~/.icons/oomox-only_icons/categories/scalable/applications-photography.svg
@hatf0
hatf0 / app.d
Last active June 24, 2020 00:28
import std.stdio;
import automem;
import stdx.allocator : theAllocator, make, dispose;
import std.experimental.allocator.mallocator: Mallocator;
import stdx.allocator : theAllocator, allocatorObject;
interface MemoryLeakTest {
void hello();
string test();
}
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = false;
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = false;
@tim aple eple  aple tim cok
```