This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from controller import Supervisor | |
| import math | |
| class BotController(): | |
| # Initalize the motors. | |
| def setup(self): | |
| self.robot = Supervisor() | |
| self.motor_left = self.robot.getMotor("motor_left") | |
| self.motor_right = self.robot.getMotor("motor_right") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| output "dns_name" { | |
| value = "${heroku_app.example_app.web_url}" | |
| } | |
| # Configure the Heroku provider | |
| provider "heroku" { | |
| email = "firstname.lastname@example.com" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sources: | |
| =============== | |
| https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04 | |
| https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 | |
| https://github.com/yyx990803/pod | |
| https://www.namecheap.com/support/knowledgebase/article.aspx/1162/46/how-can-i-point-my-domain-name-to-my-home-servers-ip | |
| Basic setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Change default ctrl-b to ctrl-a | |
| unbind C-b | |
| set -g prefix C-a | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on |