Skip to content

Instantly share code, notes, and snippets.

@alextdavis
alextdavis / code_style_guidelines.md
Last active August 29, 2015 14:12
Official i²robotics Team Code Style Conventions

Official i²robotics Team Code Style Conventions

A lot of this is borrowed from Github's Ruby styleguide

General Style

  • Use spaces for indentation, with a 2 space indent.
    • Choosing Edit > Code Formatting > Untabify Whole File in RobotC will convert indenting spaces to tab characters
    • Choosing Edit > Code Formatting > Format Whole File in RobotC will fix any indentation errors
  • Keep lines fewer than 100 characters.
  • Never leave trailing whitespace.
@alextdavis
alextdavis / Install_Postgres_gems.txt
Last active December 8, 2015 22:09
Installing Postgres Gems on my Mac
This is a note for myself, but it may work for other people too.
sudo gem install do_postgres -- --with-pgsql-server-dir=/Applications/Postgres.app/Contents/MacOS --with-pgsql-server-include=/Applications/Postgres.app/Contents/MacOS/include/server
sudo gem install pg -v '0.18.1' -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
Version 9.3 (old)
sudo gem install do_postgres -v '0.10.15' -- --with-pgsql-server-dir=/Applications/Postgres.app/Contents/Versions/9.3 --with-pgsql-server-include=/Applications/Postgres.app/Contents/Versions/9.3/include/postgresql/server
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
@alextdavis
alextdavis / bar_builder.rb
Last active August 29, 2015 14:02
It's Code!
#It's Code! How I often think.
module BSBar
class << self
attr_accessor :strings
end
@instances = {}
@bars = {}
@queue = []