Skip to content

Instantly share code, notes, and snippets.

View ahundt's full-sized avatar

Andrew Hundt ahundt

View GitHub Profile
@ahundt
ahundt / linuxbrew-standalone.sh
Last active April 2, 2022 11:50
Linuxbrew Standalone Installer, tested with Ubuntu 14.04
# /bin/bash
set -e
set -u
set -x
cd $HOME
# TODO: The next ln -s line breaks cross compiling with multiarch, need an alternative!
# source: http://stackoverflow.com/a/9004026/99379
if [! -d "/usr/lib64" ]; then
import os
import h5py
import io
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
def JpegToNumpy(jpeg):
stream = io.BytesIO(jpeg)
@ahundt
ahundt / atrous_test.py
Created March 13, 2017 06:34
tf tensorflow atrous convolution aka dilated convolution test
import tensorflow as tf
import numpy as np
dim = 256
kernel_dim = 3
dilation_rate = np.array([2, 2])
input_img_np = np.random.random((1, dim, dim, 1)).astype(np.float32)
kernel = np.random.random((kernel_dim,kernel_dim,1,1)).astype(np.float32)
with tf.Session() as sess:
@ahundt
ahundt / # glog - 2017-08-01_03-28-15.txt
Last active August 1, 2017 10:45
glog on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for glog on macOS 10.11.6
Build date: 2017-08-01 03:28:15
//
// echo_server.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2015 Andrew Hundt
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@ahundt
ahundt / # sdformat5 - 2017-06-05_20-38-01.txt
Created June 6, 2017 00:39
sdformat5 (osrf/simulation/sdformat5) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for osrf/simulation/sdformat5 on macOS 10.11.6
Build date: 2017-06-05 20:38:01
@ahundt
ahundt / # bullet - 2017-05-08_23-34-01.txt
Last active May 9, 2017 03:54
bullet on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for bullet on macOS 10.11.6
Build date: 2017-05-08 23:34:01
@ahundt
ahundt / CMakeLists.txt
Last active January 11, 2017 00:18
boost log error
cmake_minimum_required (VERSION 3.5)
project (HELLO)
find_package(Boost COMPONENTS log_setup log)
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
add_executable(main main.cpp)
target_link_libraries(main ${Boost_LOG_SETUP_LIBRARY} ${Boost_LOG_LIBRARY})
@ahundt
ahundt / X_t.txt
Last active November 7, 2016 04:41
grl Tasks V-REP plugin debug data for https://github.com/jrl-umi3218/Tasks/issues/10
Xt_ std::__1::vector<sva::PTransform<double>, std::__1::allocator<sva::PTransform<double> > > size=10
[0] sva::PTransform<double>
E_ sva::PTransform<double>::matrix3_t
Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 3, 0, 3, 3> > Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 3, 0, 3, 3> >
m_storage Eigen::DenseStorage<double, 9, 3, 3, 0>
m_data Eigen::internal::plain_array<double, 9, 0, 0>
array double [9]
[0] double -0.99999999931219463 -0.99999999931219463
[1] double -0.000026226043692152668 -0.000026226043692152668
[2] double 0 0
@ahundt
ahundt / # cmake-basis - 2016-10-26_01-55-15.txt
Created October 26, 2016 05:56
cmake-basis (ahundt/robotics/cmake-basis) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for ahundt/robotics/cmake-basis on macOS 10.11.6
Build date: 2016-10-26 01:55:15