Skip to content

Instantly share code, notes, and snippets.

View jskyjohnson's full-sized avatar
💭
I like to code!

Sky Johnson jskyjohnson

💭
I like to code!
View GitHub Profile
Sky Johnson
Feburary 28th, 2017
CSCI-3308
Questions
1.When would you choose an IaaS over PaaS and why? Give an example scenario where an IaaS would be the best option and explain why it is a better choice than a PaaS (in your scenario).
IaaS is best utilized in situations where rapid scaling is needed. Infastructure based systems allow for the buisness to have direct control over that aspect of their company, without having to worry about a 3rd party resource to provide for them. This will help reduce capital costs in these applications as well.
2. Describe a security concern in cloud computing data storage.
Obviously, since the data is offsite, a certain degree of trust must be made in who/how the data is being managed. If sensitive information is being used, it might be in the best interest of the company to keep it off of a cloud system.
#include <Adafruit_NeoPixel.h>
#define BUTTON1 10
#define BUTTON2 11
#define BUTTON3 12
#define NEOPIXELPIN 9
#define PIXEL_COUNT 5
int pot;
int light;
const int potentpin = A0;
const int lightpin = A1;
const int light1pin = 9;
const int light2pin = 10;
void setup() {
const int speakerOut = 10;
const int photos = A0;
int value;
void setup() {
// put your setup code here, to run once:
pinMode(10, OUTPUT);
Serial.begin(9600);
}
/* Interesting Music box
* BY: Sky Johnson
* FOR: ATLS3300 Object
* Lab 3, Analog IO
*
* This entire project was inspired by this BEAUTIFUL piece of bitshift abuse
* Called Bitshift Variations in C Minor
* https://www.youtube.com/watch?v=cRFMip5NlgY
* However, I wasn't able to get this exact song to work (I'm very sad still, maybe someday but I need to abuse the timers more)
*
// Sky Johnson
// Lab 4. Part 2, DC Controller
bool direction; //false is spinning one way, true is spinning the other way.
const int ledpin1 = 11;
const int ledpin2 = 10;
const int buttonpin = A0;
#include <Stepper.h>
const int stepsPerRevolution = 513;
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
pinMode(13, OUTPUT);
myStepper.setSpeed(25);
Serial.begin(9600);
//Sky Johnson
//Lab 4, Servo thing. Literally copied almost entirely from the examplew
#include <Servo.h>
Servo servo;
int potpin = 0;
int val;
void setup()
var serial; // variable to hold an instance of the serialport library
var portName = 'COM6'; // fill in your serial port name here
var inData;
var options = { baudrate: 9600};
var divisions = 3;
var canvasObect;
var speed = 5; //between 0.5 - 5?
var heightMultiplier = 1;
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(5, 6, NEO_GRB + NEO_KHZ800);
int Pot = A0;
int Mic = A1;