Skip to content

Instantly share code, notes, and snippets.

View fish2000's full-sized avatar
👉
My Python work is on the Mars helicopter, and ubiquitous on earth, and more!!!!

Alexander Böhn fish2000

👉
My Python work is on the Mars helicopter, and ubiquitous on earth, and more!!!!
  • Objects in Space and Time, LLC
  • Baltimore, MD
  • 03:06 (UTC -04:00)
  • X @fish2000
View GitHub Profile
@fish2000
fish2000 / # lepton - 2017-11-28_08-58-51.txt
Created November 28, 2017 13:59
lepton on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for lepton on macOS 10.13.1
Build date: 2017-11-28 08:58:51
@fish2000
fish2000 / # hdf5 - 2017-09-06_09-25-22.txt
Created September 6, 2017 13:48
hdf5 on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for hdf5 on macOS 10.12.6
Build date: 2017-09-06 09:25:22
@fish2000
fish2000 / asscat.py
Last active May 10, 2019 01:23
Pillow-based asset catalog image-scaler CLT
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# asscat.py
#
# Generate a properly scaled 1x/2x/3x set of PNGs, optionally with
# generated JSON metadata and/or subfolders, for each single given image.
# For use with, like, all those Xcode asset catalogs and shit.
# Requires the Pillow and docopt modules; optionally makes use of six.
#
@fish2000
fish2000 / clang-format-ocd
Last active May 26, 2017 23:05
clang-format config for maximum-OCD Objective-C++
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
# AlignEscapedNewlinesRight: true
# AlignEscapedNewlines: Right
@fish2000
fish2000 / llvm-formula-inreplace-linker-args.patch
Created April 22, 2017 03:58
Homebrew Issue #10017 Addendum: LLVM formula patch
From 0e83d56c82700c498a1be907625768f6fa5a3405 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20B=C3=B6hn?= <[email protected]>
Date: Fri, 21 Apr 2017 23:24:50 -0400
Subject: [PATCH] =?UTF-8?q?Patch=20llvm.rb=20with=20=E2=80=9CFormula::inre?=
=?UTF-8?q?place=E2=80=9D=20...=20or=20should=20that=20be=20=E2=80=9CFormu?=
=?UTF-8?q?la#inreplace=E2=80=9D=3F=3F=20I=20really=20don=E2=80=99t=20know?=
=?UTF-8?q?,=20=20=20=20=20I=20am=20the=20opposite=20of=20a=20Rubyist=20re?=
=?UTF-8?q?ally=20--=20I=20would=20rather=20do=20=20=20=20=20SFINAE,=20CRT?=
=?UTF-8?q?P=20and=20RAII=20all=20day=20long,=20in=20leu=20of=20having=20t?=
=?UTF-8?q?o=20type=20=20=20=20=20=E2=80=9Cend=E2=80=9D=20over=20and=20ove?=
@fish2000
fish2000 / almost-ascii-deletion-distance.py
Created March 14, 2017 17:56
Almost ASCII Deletion Distance
def ascii_deletion_distance(str1, str2):
from collections import defaultdict
histogram = defaultdict(int)
for ch in str1:
histogram[ch] += 1
for ch in str2:
histogram[ch] += 1
union = set(str1) | set(str2)
intersection = set(str1) & set(str2)
result = union - intersection
@fish2000
fish2000 / # llvm - 2017-02-23_20-59-02.txt
Created February 24, 2017 02:06
llvm on macOS 10.12.3 - Homebrew build logs
Homebrew build logs for llvm on macOS 10.12.3
Build date: 2017-02-23 20:59:02
@fish2000
fish2000 / # llvm - 2017-02-23_20-59-02.txt
Created February 24, 2017 02:05
llvm on macOS 10.12.3 - Homebrew build logs
Homebrew build logs for llvm on macOS 10.12.3
Build date: 2017-02-23 20:59:02
@fish2000
fish2000 / keybase.md
Created February 23, 2017 18:24
keybase.md

Keybase proof

I hereby claim:

  • I am fish2000 on github.
  • I am fish2000 (https://keybase.io/fish2000) on keybase.
  • I have a public key whose fingerprint is 51FC D32D 1F38 68BD 4F7E BB8D 7265 E412 F2CA 23E3

To claim this, I am signing this object:

@fish2000
fish2000 / AXDatabase.h
Created February 20, 2017 01:29
Basic Objective-C RocksDB Wrapper (w/ KVC)
//
// AXDatabase.h
// YoDogg
//
// Created by Alexander Böhn on 2/19/17.
// Copyright © 2017 Alexander Böhn. All rights reserved.
//
#import <Foundation/Foundation.h>