Skip to content

Instantly share code, notes, and snippets.

probably drinking coffee

James Drew jdrew1303

probably drinking coffee
View GitHub Profile
jdrew1303 / SMBDIS.ASM
Last active October 13, 2022 00:06 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;by doppelganger (
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
jdrew1303 /
Created April 7, 2021 01:50 — forked from morewry/
Rollup Bundle Stats of "Hello, World" Web Components with SkateJS renderer options. Your approximate bundle size starting point before adding your own code.

Bundle Sizes

Your mileage will vary.


│                                    │
│   Destination: dist/index.umd.js   │
jdrew1303 /
Created March 20, 2021 22:29 — forked from yakovsh/
Converting from DJVU to PDF
# Here is the software that is needed for the conversion to take place:
# 1. DjVuLibre .
# 2. LibTiff .
# NOTE: The ddjvu utility has an option to convert specific layers. One common mistake is to convert only the mask layer
# or the foreground layer . Technically speaking, the mask layer is the one that should have the actual text but in
# practice I have seen that the the DjVu encoder occasionally puts portions of the text in the background layer. Thus,
# if you only take the foreground or mask layers, you will lose those bits in the background. If your specific files
View KalmanFilterExample.R
mycols <- topo.colors(100,0.5)
xhat <- c(0.2, -0.2)
Sigma <- matrix(c(0.4, 0.3,
0.3, 0.45), ncol=2)
x1 <- seq(-2, 4,length=151)
x2 <- seq(-4, 2,length=151)
f <- function(x1,x2, mean=xhat, varcov=Sigma)
dmnorm(cbind(x1,x2), mean,varcov)
z <- outer(x1,x2, f)
jdrew1303 / chr_crl_registers.png
Last active February 7, 2023 17:00
STM32 registers and programming
jdrew1303 /
Created December 26, 2019 03:12 — forked from mithi/



  • The purpose of this learning plan is for anyone to acquire a strong foundation of electronic and mechanical prototyping to build your own physical robots. It is designed specifically for people with at least some experience in basic coding (any language) but with no background in electronics and/or robotics. Upon completion, you should be be able build your own domestic home service robot from scratch and give you the confidence to independently build the robot of your dreams. There are many good tutorials scattered all over the web but they assume you have basic knowledge in the said areas. Upon finishing this self-learning plan, following any online tutorials to add the features you want to your robot should be a breeze.
  • Most of the materials here are completely free, however some require purchase those with a (moneybag) 💰icon. I am not paid to endorse any of these products.
  • The ones with the (double exclamation) ‼️ icon are t

Autonomous Mobile Robot (Experimental)


The aim of this project is to create mobile robot that can navigate correctly in-door environment. The robot can scan and save surrounding environment as occupancy grid, then basing on that map, it can localize and navigate itself on scanned map. Due to these capabilites, the robot can plan a path from A to B as instructed via Rviz on global map (scanned map), it can also detect unknown obstacles during operation and plan a local path to robustly avoid them and ensure the success of navigation task.

Link to github:

Building robot (Hardware part)

jdrew1303 /
Created December 26, 2019 02:46 — forked from plusk01/
Installing ROS Kinetic on Mac OS X El Capitan (10.11.6) and macOS Sierra

Installing ROS Kinetic on Mac OS X - El Capitan and macOS Sierra

Having rather painlessly installed ROS Indigo on El Capitan using Mike Purvis's script, I attempted to upgrade to ROS Kinetic. This gist outlines the problems I encoutered and how I solved them. Hopefully this guide will help others attempting to install ROS Kinetic / Gazebo 7 on El Capitan.

ROS Install OSX

Start with Mike Purvis's script, which currently is setup to install ROS Indigo. In order to install Kinetic instead of Indigo, make sure to set the ROS_DISTRO environment variable: export ROS_DISTRO=kinetic.

After you get through rosdep errors, it's quickest to just work with the catkin config ... and catkin build ... commands directly. In fact, I found it most helpful to leave my catkin workspace terminal open at ros-install-osx/kinetic_desktop_full_ws and t

jdrew1303 / ros_kinetic_install_raspizero.bash
Created December 26, 2019 02:45 — forked from Tiryoh/ros_kinetic_install_raspizero.bash
ROS Kinetic installation on Raspberry Pi Zero/Raspberry Pi Zero W
View ros_kinetic_install_raspizero.bash
sudo apt-get update
sudo apt-get install -y build-essential gdebi
mkdir -p ~/tmp
sudo gdebi rpi-zerow-kinetic_1.0.0-1_armhf.deb
sudo /opt/ros/kinetic/