I hereby claim:
- I am acj on github.
- I am acj (https://keybase.io/acj) on keybase.
- I have a public key whose fingerprint is 8B49 8B25 F16C A3F2 78BD 9E98 BB8F 2A78 6D76 A639
To claim this, I am signing this object:
; Example usage: (mergesort [5 1 8 16 25 11 4]) | |
(ns mergesort | |
(:use clojure.contrib.math)) | |
(defn merge-two | |
"Merge two (already sorted) vectors" | |
[vec1 vec2] | |
(let [v1f (first vec1) v2f (first vec2)] | |
(cond | |
(empty? vec1) vec2 |
// This implementation assumes that the origin is at the upper-left corner of the | |
// drawing surface. | |
// | |
// Sample usage: | |
// | |
// Paint paint = new Paint(); | |
// paint.setStyle(Paint.Style.STROKE); | |
// float centerX = 200; | |
// float centerY = 200; | |
// float radius = 100; |
I hereby claim:
To claim this, I am signing this object:
// | |
// TrimVideo.swift | |
// VideoLab | |
// | |
// Created by Adam Jensen on 3/28/15. | |
// Updated for Swift 5 (tested with Xcode 10.3) on 7/30/19. | |
// MIT license | |
// | |
import AVFoundation |
Please refer to the TimeLapseBuilder-Swift repository on GitHub from now on.
I will leave the original code here as a reference, but new comments may be removed. Please open an issue on GitHub if you have questions or would like to contribute.
Thanks!
// | |
// BuildTimelapseViewController.swift | |
// | |
// Created by Adam Jensen on 5/9/15. | |
// | |
import JGProgressHUD | |
import JoePro | |
import UIKit |
def md5_digest_for_file_at_path(file_path) do | |
File.stream!(file_path, [:read, :binary], 1024 * 1024) | |
|> Stream.chunk(1) | |
|> Enum.reduce( | |
:crypto.hash_init(:md5), | |
fn(chunk, acc) -> | |
:crypto.hash_update(acc, hd(chunk)) | |
end) | |
|> :crypto.hash_final | |
|> Base.encode16 |
I recently spent a few hours rescuing a faithful 2011-era MacBook Pro that had begun to suffer from the "Radeongate" graphics distortion problem. While it's possible to disable the Radeon GPU, the steps involve a lot of manual labor. Their automated solution produced an ISO that wouldn't boot for me, so I ended up building a custom ISO that only requires me to run one command after installing each macOS update. A non-technical family member can perform the fix, which is a big plus.
You'll need to buy RealMacMods' automated utility so that you can grab their script that does the heavy lifting. It's $10 at the time of this writing and is a nice way to support the
I wanted to run Microk8s on a Proxmox 6 host inside of an LXC container. These are my notes from the journey.
This is a niche problem, but these steps worked for me. Proxmox 6.1-5 with microk8s v1.18.0 running in an LXC container. Tested with actions-runner-controller 0.4.1.
--allow-privileged=true
to /var/snap/microk8s/current/args/kube-apiserver
sudo systemctl restart snap.microk8s.daemon-apiserver.service
lxc.cgroup.devices.allow: a