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
  • 02:58 (UTC -04:00)
  • X @fish2000
View GitHub Profile
@fish2000
fish2000 / catastrophic-failure-console-log.txt
Created August 29, 2016 22:19
Catastrophic `brew tap homebrew/science` failure
==> Tapping homebrew/science
git clone https://github.com/Homebrew/homebrew-science /usr/local/Library/Taps/homebrew/homebrew-science
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-science'...
remote: Counting objects: 20226, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 20226 (delta 6), reused 0 (delta 0), pack-reused 20211
Receiving objects: 100% (20226/20226), 5.93 MiB | 656.00 KiB/s, done.
Resolving deltas: 100% (11949/11949), done.
Checking connectivity... done.
Error: Invalid formula: /usr/local/Library/Taps/homebrew/homebrew-science/jellyfish-1.1.rb
@fish2000
fish2000 / buffer-t.md
Created July 28, 2016 19:45
Halide buffer_t serialization notes

int32_t extent[0] int32_t extent[1] int32_t extent[2] int32_t extent[3]

int32_t stride[0] int32_t stride[1] int32_t stride[2] int32_t stride[3]

#ifndef EVIL_CASTS_HPP
#define EVIL_CASTS_HPP
//
// Consider:
//
// some_evil_cast_operation<char const *>("foo")
//
// … There are two possible interpretations for the result: either
// a) the array should decay into a pointer and be immediately returned, or
@fish2000
fish2000 / homebrew-cryptocpp-log.txt
Created July 1, 2016 04:10
Homebrew CryptoCPP log
asio-otus:pylire[master]$ brew uninstall cryptopp && brew install cryptopp --c++11
Uninstalling /usr/local/Cellar/cryptopp/5.6.3_1... (143 files, 14.1M)
rm /usr/local/bin/cryptest.exe
rm /usr/local/include/cryptopp
rm /usr/local/lib/libcryptopp.a
==> Downloading https://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.3/cryptopp563.zip
==> Downloading from http://ufpr.dl.sourceforge.net/project/cryptopp/cryptopp/5.6.3/cryptopp563.zip
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.11.5) curl/7.43.0 http://ufpr.dl.sourceforge.net/project/cryptopp/cryptopp/5.6.3/cryptopp563.zip -C 0 -o /Users/fish/Library/Caches/Homebrew/cryptopp-5.6.3.zip.incomplete --connect-timeout 5
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
@fish2000
fish2000 / halide-compilation-error.txt
Created June 20, 2016 15:39
Halide compilation error
Scanning dependencies of target Halide
[ 40%] Building CXX object src/CMakeFiles/Halide.dir/AddImageChecks.cpp.o
[ 40%] Building CXX object src/CMakeFiles/Halide.dir/AlignLoads.cpp.o
[ 40%] Building CXX object src/CMakeFiles/Halide.dir/AddParameterChecks.cpp.o
[ 41%] Building CXX object src/CMakeFiles/Halide.dir/AllocationBoundsInference.cpp.o
In file included from /tmp/halide-20160620-20824-swyhu4/src/AddParameterChecks.cpp:1:
In file included from /tmp/halide-20160620-20824-swyhu4/src/AddParameterChecks.h:10:
In file included from /tmp/halide-20160620-20824-swyhu4/src/IR.h:11:
In file included from /tmp/halide-20160620-20824-swyhu4/src/Buffer.h:14:
In file included from /tmp/halide-20160620-20824-swyhu4/src/Argument.h:10:
/// Originally from the Geordi project, mirrored here:
/// https://github.com/Eelis/geordi/blob/master/prelude/evil_casts.hpp
///
/// Written by the Geordi authors - q.v. http://www.eelis.net/geordi/
/// Reformatted and annotated by Alexander Bohn - q.v. https://about.me/alexanderbohn
#ifndef EVIL_CASTS_HPP
#define EVIL_CASTS_HPP
@fish2000
fish2000 / xcodebuild-output.txt
Created August 7, 2015 17:06
CF++ error when `xcodebuild --alltargets`-ing
This file has been truncated, but you can view the full file.
asio-otus:CFPP[master •]$ xcodebuild -alltargets
2015-08-07 12:39:07.647 xcodebuild[4679:36370] [MT] PluginLoading: Required plug-in compatibility UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XQuit.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-08-07 12:39:07.649 xcodebuild[4679:36370] [MT] PluginLoading: Required plug-in compatibility UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeRefactoringPlus.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-08-07 12:39:07.650 xcodebuild[4679:36370] [MT] PluginLoading: Required plug-in compatibility UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-08-07 12:39:07.650 xcodebuild[4679:36370] [MT] PluginLoading: Required plug-in compatibility UUID
@fish2000
fish2000 / fizzbuzz.js
Created May 20, 2015 20:39
Variantions On The Classic FizzBuzz Function In (Relatively) Pure JavaScript, As Prescribed By Mr. On Software, For Demonstrative Purposes
/*
Write a function, `fizzBuzz`, that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
*/
// Write your implementation here
function fizzBuzz() {
for (var i = 1; i < 101; i++) {
if ((i % 3 == 0) && (i % 5 == 0)) {
console.log("FizzBuzz");
@fish2000
fish2000 / pincrush.c
Created May 6, 2015 21:53
I forget what change I evidently made to this (source: https://github.com/DHowett/pincrush/blob/master/pincrush.c)
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <unistd.h>
#include <png.h>
#define RDERR(...) { debuglog(LEVEL_ERROR, infilename, __VA_ARGS__); goto out; }
#define WRERR(...) { debuglog(LEVEL_ERROR, inplace?infilename:outfilename, __VA_ARGS__); goto out; }
#define INFO(level, ...) { if(verbose) debuglog(level, infilename, __VA_ARGS__); }
@fish2000
fish2000 / bgfx-image.cpp
Created May 6, 2015 21:20
I really, really, *really* like how bgfx does a pixel format descriptor LUT (from https://github.com/bkaradzic/bgfx/blob/master/src/image.cpp)
/*
* Copyright 2011-2015 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "bgfx_p.h"
#include <math.h> // powf, sqrtf
#include "image.h"