Skip to content

Instantly share code, notes, and snippets.

@victorgan
victorgan / gist:cbf7e0216e802844198a
Last active March 15, 2020 14:47
Installing ROS Indigo on a Ubuntu 14.04 Fresh Install
# Literally, from a completely fresh install, except for system updates.
# START TUTORIAL: http://wiki.ros.org/indigo/Installation/Ubuntu
# Note: In Ubuntu 9.04 (Jaunty) and later, the main, universe, restricted and multiverse repositories are enabled by default.
# accept software from ROS sources
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
# set up keys
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key.
; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below.
Home::PgUp
End::PgDn
PgUp::Home
#!/usr/bin/env python
import roslib
roslib.load_manifest("sensor_msgs")
roslib.load_manifest("message_filters")
roslib.load_manifest("rxtools")
import rospy
import rxtools
import rxtools.rosplot
import sys
- Remove from packaging, turn on, name PC, choose colour
- Download Updates
- Pair with Thinkpad Bluetooth Keyboard, which automatically prompts to download another drive (restart required)
- Pair with Bluetooth Mouse
- Name: poo (after the Earthbound character, of course)
- Download windows 10: https://www.microsoft.com/en-us/software-download/windows10
- Choose "Not keep anything" (everything will be removed).
- Let it install. It'll say "Installing Windows" "Your PC will restart several times. Sit back and relax."
- US/US English/US Keyboard/Pacific Time
- Connect to WiFi
@victorgan
victorgan / viz.hs
Created January 16, 2016 18:03 — forked from TikhonJelvis/viz.hs
Generating graphs for my Quora answer
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
import qualified Data.Graph.Inductive as Graph
import Data.Graph.Inductive (Gr, match, matchAny)
import Data.String.Interpolation (str)
complex :: Gr () ()
complex = Graph.mkGraph nodes edges
where nodes = [(x, ()) | x <- [1..10]]
@victorgan
victorgan / The Technical Interview Cheat Sheet.md
Created March 1, 2016 23:51 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.