Skip to content

Instantly share code, notes, and snippets.

View bryanwieger's full-sized avatar

bryanwieger bryanwieger

View GitHub Profile
@bryanwieger
bryanwieger / euler.py
Last active September 7, 2016 03:35 — forked from limabeans/euler.py
euler rotations for robotics
import numpy as np
# NOTE: numpy uses radians for its angles
# constants
PI = np.pi
cos = lambda ang: np.cos(ang)
ncos = lambda ang: -1*np.cos(ang)
sin = lambda ang: np.sin(ang)
nsin = lambda ang: -1*np.sin(ang)
@bryanwieger
bryanwieger / openra.md
Last active July 20, 2024 21:17
Setting up openra on aws ec2

To set up openra on AWS EC2

Disclaimer: This is not the best architected solution, so no guarantees on up-time

PreReqs:

  • Have an AWS account
  • Know basics of ssh and bash

Setting up the EC2 Server:

  1. Launch an EC2 with a Ubuntu OS. I used ami-059e7901352ebaef8 on a t2.micro
# you'll need a .txt file of english words.
# you can find one here https://github.com/dwyl/english-words/blob/master/words_alpha.txt
# inspiration 8 out of 10 cats does countdown https://youtu.be/l9MXCjPwDro
from enum import Enum, auto
SYMBOL = "+*-/"
cache = set()
def symbol(arr, target, path):