This file contains 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
/* | |
Code Objective | |
Push encoder to turn on LED and servo control | |
Rotate encoder to move servo | |
Push encoder to turn off LED and servo control | |
Code by: Steven B. Combs (steven.combs@gmail.com) | |
Code date: 2020-03-08 |
This file contains 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
{"lastUpload":"2019-12-26T23:31:36.251Z","extensionVersion":"v3.4.3"} |
This file contains 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
const int ledPin = 13; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(ledPin, HIGH); | |
delay(1000); | |
digitalWrite(ledPin, LOW); | |
delay(500); | |
} |
This file contains 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
# Ruby Getting Started with Programming | |
# A Codecademy Ruby (Redacted) assignment | |
# Dr. Steven B. Combs, coding novice | |
puts "Text to search through: " #Puts text | |
text = gets.chomp #Request input and "chomp" return | |
puts "Word to redact: " #Puts text | |
redact = gets.chomp #Request second input and "chomp" return | |
words = text.split (" ") #Splits the input into words at each space |
This file contains 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
# Ruby Getting Started with Programming | |
# Control flow examples | |
# Dr. Steven B. Combs, coding novice | |
# Do | |
puts "Do" | |
10.times do | |
print "Hello. " | |
end | |
puts "" |
This file contains 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
# Ruby Getting Started with Programming | |
# A Codecademy Ruby (Thith Meanth War!) assignment | |
# Dr. Steven B. Combs, coding novice | |
print "Thtring pleathe: " # Print request for input | |
user_input = gets.chomp # Capture input and remove default extra line (.chomp) | |
user_input.downcase! # Change input to all lowercase and replace variable content | |
if user_input.include? "s" # If the input inlcludes an 's' | |
user_input.gsub!(/s/, "th") # Perform a global substitution of every 's' with 'th' | |
print "Your new sting is #{user_input}." # Print string including the new value |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<title>Anna Dowlin</title> | |
<style> | |
body { | |
text-align: center; | |
background: url("http://dash.ga.co/assets/anna-bg.png"); | |
background-size: cover; | |
background-position: center; | |
color: white; |
This file contains 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
# Ruby Getting Started with Programming | |
# A Codecademy Ruby (Unless) assignment | |
# Dr. Steven B. Combs, coding novice | |
hungry = true | |
unless hungry # tests for false condition | |
puts "I'm writing Ruby programs!" | |
else # if not false, but true | |
puts "Time to eat!" |
NewerOlder