Skip to content

Instantly share code, notes, and snippets.

View echelon's full-sized avatar
💭
🤖

Brandon Thomas echelon

💭
🤖
View GitHub Profile
@echelon
echelon / 1_point_cloud_renderer.rs
Last active August 14, 2020 04:24
Point cloud rendering issues
//! This is a port of Microsoft's libk4a `k4apointcloudrenderer.cpp`.
//! This provides the visual output.
use std::ffi::CString;
use std::fmt::Formatter;
use std::mem::size_of;
use std::os::raw::{c_char, c_void};
use std::ptr;
use std::ptr::null;
use std::str;
key = "watsonkey"
url = "watsonurl"
@echelon
echelon / irasshai.rst
Last active July 19, 2018 03:09
Irasshai vocabulary

Irasshai Vocabulary

Lesson 1

Key vocabulary

  • desu am, is, are

  • -san

    Mr., Ms., etc.

@echelon
echelon / .tmux.conf
Last active May 12, 2023 06:07
tmux.conf
# TODO(bt): reorganize, check into github
# Default configuration
# set -g utf8
# setw -g utf8 on
set -g default-terminal "screen-256color"
set -g history-limit 1000000 # Much history.
set -s escape-time 0 # Vim escape cannot be laggy!
set -g repeat-time 1000
# See https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
@echelon
echelon / random_color.sh
Last active February 16, 2017 00:17
Random terminal color for grep, silver searcher, etc.
#!/bin/bash
# Select a random color for search utilities such as 'grep' or 'ag'.
# Create an alias: alias ag='ag --color-match="$(random_color)"'
# Or, alias grep='GREP_COLOR="$(random_color)" grep'
random_color() {
# List of highlight colors to iterate between
# Legacy Terminal color codes,
# 01;33 - light yellow text
# 01;34 - dark blue text
@echelon
echelon / keybase.md
Created November 11, 2016 06:32
keybase.md

Keybase proof

I hereby claim:

  • I am echelon on github.
  • I am echelon (https://keybase.io/echelon) on keybase.
  • I have a public key ASC5Rhx4DjyRmNP0NZJXwHR_gOpHtMOPR5eLB2bGrptvhQo

To claim this, I am signing this object:

#!/usr/bin/perl
# By Michael Chaney, Michael Chaney Consulting Corporation
# Copyright 2006, Michael Chaney Consulting Corporation, all rights reserved
# read wav chunks, see what each chunk is
use strict;
use POSIX qw(strftime);
@echelon
echelon / rust-cross-compile.sh
Created December 22, 2015 08:29
Rust Raspberry Pi cross-compilation
# https://github.com/Ogeon/rust-on-raspberry-pi/blob/master/MANUAL.md
git clone https://github.com/raspberrypi/tools.git ~/pi-tools
git clone http://github.com/rust-lang/rust.git && cd rust
git checkout 1.5.0 # or whatever version tag
export PATH=~/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
./configure --target=arm-unknown-linux-gnueabihf --prefix=$HOME/pi-rust
make -j4 && make install
@echelon
echelon / agar.io.js
Created May 21, 2015 04:56
agar.io unminified, with a parameter to zoom out. Obviously I don't own the rights to this.
// ==UserScript==
// @name agar.io
// @namespace agar.io
// @include http://agar.io/
// @version 1
// @grant none
// ==/UserScript==
(function (_window, _jquery) {
console.log('installing custom agar.io');
@echelon
echelon / core.vimrc
Last active August 29, 2015 14:05
Made some changes to vimrc on my work machine that I want to sync with home machine, then merge both into cleaned-up final version
" Brandon Thomas' vimrc etc.
" A highly opinionated vim config.
" https://github.com/echelon/dotfiles-vim
" web: http://brand.io
" email: bt at brand.io
" ===== Pathogen =====
" Usage Note:
" Source vimrc, then call :PluginInstall to install/update plugins.