01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| /* | |
| * File: FindRange.java | |
| * Name: | |
| * Section Leader: | |
| * -------------------- | |
| * This file is the starter file for the FindRange problem. | |
| */ | |
| import acm.program.*; |
| /* | |
| * File: Breakout.java | |
| * ------------------- | |
| * Name: | |
| * Section Leader: | |
| * | |
| * This file will eventually implement the game of Breakout. | |
| */ | |
| import acm.graphics.*; |
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
| Running shell scripts that have contain sudo commands in them from jenkins might not run as expected. To fix this, follow along | |
| Simple steps: | |
| 1. On ubuntu based systems, run " $ sudo visudo " | |
| 2. this will open /etc/sudoers file. | |
| 3. If your jenkins user is already in that file, then modify to look like this: | |
| jenkins ALL=(ALL) NOPASSWD: ALL | |
| 4. save the file by doing Ctrl+O (dont save in tmp file. save in /etc/sudoers, confirm overwrite) | |
| 5. Exit by doing Ctrl+X | |
| 6. Relaunch your jenkins job |
| wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz | |
| mkdir -p /usr/local/lib /usr/local/bin | |
| sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib | |
| sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku |
<a href="https://www.buymeacoffee.com/gbraad" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>