Skip to content

Instantly share code, notes, and snippets.

View b-adkins's full-sized avatar

b-adkins

  • A tech company
View GitHub Profile
@b-adkins
b-adkins / two_step_grid.py
Created November 19, 2021 00:20
Two-step grid - a grid of points with two step sizes - the smaller one near "special points"
# Unfinished! I half-finished it before realizing I didn't neet it. It might be handy for
# me or somebody else later
import numpy as np
def two_step_grid(special_points: list[float],
min: Optional[float] = None,
max: Optional[float] = None,
neighborhood_size=0.01,
step_sizes=(0.05, 0.01)):
@b-adkins
b-adkins / .emacs
Created November 1, 2021 21:13
Emacs config
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@b-adkins
b-adkins / terminator.cfg
Last active May 13, 2023 04:05
My config for the multi-console program Terminator so it opens it with four terminals, 2x2. mv to ~/.config/terminator/config. Great for ROS!
[global_config]
suppress_multiple_term_dialog = True
[keybindings]
[profiles]
[[default]]
background_image = None
[layouts]
[[default]]
[[[child0]]]
position = 73:27
@b-adkins
b-adkins / pronter.ini
Last active March 17, 2017 02:06
My latest Slic3r config for my Prusa i3 3D printer
# generated by Slic3r 1.2.9 on Thu Mar 16 19:02:58 2017
avoid_crossing_perimeters = 1
bed_shape = 0x0,200x0,200x200,0x200
bed_temperature = 60
before_layer_gcode =
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
// Copyright 2016 People Gotta Play. All rights reserved.
#include "ProjectMK.h"
#include "UMGExtensionLibrary.h"
UTextureRenderTarget2D * UUMGExtensionLibrary::RenderWidgetToTexture(bool UseGamma, TextureFilter Filter, UUserWidget * WidgetToRender, FVector2D DrawSize, float DeltaTime)
{
if (!WidgetToRender) return nullptr;
if (DrawSize == FVector2D(0, 0)) return nullptr;
@b-adkins
b-adkins / gimp.bat
Created May 16, 2016 22:09
Quickly, simply give a Windows .exe an easier name
:: Example is gimp
::
:: Put script in C:\Program Files\GIMP 2\bin
:: Add this folder to PATH environment variable
start gimp-2.8.exe %*
:: Just type "gimp" in the command line like on Linux!
@b-adkins
b-adkins / quick_classify.py
Last active February 2, 2016 06:40
GUIs to make it as fast as possible to classify training images for computer vision.
import cv2
import matplotlib.image as mpimg
import matplotlib.pyplot as pyplot
import matplotlib.patches
import numpy as np
import os
import PIL.Image
import sys
@b-adkins
b-adkins / example.dot
Last active December 21, 2015 21:29
Script that generates include graphs from Robot Operating System .launch files.
digraph graphname {
"sim_stage.launch" -> "environment_stage.launch";
"sim_stage.launch" -> "sim_to_map_stage.launch";
"navigation_stage.launch" -> "asdf.launch";
"nav_stack_stage.launch" -> "navigation_stage.launch";
"nav_stack_stage.launch" -> "tf_robot_base2rel_teleop_wasd.launch";
"environment_stage.launch" -> "asdf_node.xml";
"environment_stage.launch" -> "move_base_stage.xml";
"run_all_stage.launch" -> "sim.launch";
"run_all_stage.launch" -> "sim_stage.launch";
@b-adkins
b-adkins / roscpp_param_patch.h
Created August 28, 2013 05:06
Proposed method templates to get vectors and maps from the ROS param server, to be added to <ros/param.h>.
/**
* @file
*
* Proposed method templates to get vectors and maps from the ROS param server, to be added to <ros/param.h>.
*
* @date Aug 2, 2013
* @author Bea Adkins
*/
#ifndef ROSCPP_PARAM_PATCH_H_