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
amIAlive = Yes # Binary answer to my existence | |
numOfRecipes = 3 # number of recipes i know how to cook | |
myFav = "Priyanka Chopra" # My Favourite Actor | |
myGPA = 8.3 # My GPA score in undergrad | |
myFavTvshows = ["24", "Game of Thrones", "Suits", "Fringe", "Black Mirror"]. # Favourite TV shows | |
baywatchCast = { "Director" : "Seth Gordon", "Lead Actor" : "Dwayne Johnson", "Villian" : "Priyanka Chopra"} # Cast and crew of Baywatch |
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
// to illuminate 3 leds | |
int ledArray[ ] = {2,4,7}; | |
void setup() { | |
for(int i = 0, i < 3, i++) { | |
pinMode(ledArray[i], OUTPUT); | |
} | |
} | |
void loop() { |
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
void setup() { | |
Serial.begin(9600); | |
pinMode(11, OUTPUT); | |
} | |
void loop() { | |
int state = analogRead(pin); | |
brightness = state*(255/1023); |
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
# allocating numbers to rollet categories | |
for rollet in range (36) | |
// initializing cell counts of categories to zero | |
rcc = 0, bcc = 0, ecc = 0, occ = 0, dz2c = 0, dz3c = 0, fh=0, sh=0, r1=0,r2=0,r3=0 | |
if (rollet <=1 and rollet >= 10) | |
y = rollet % 2 | |
if (y is 0): | |
bcc +=1, ecc +=1 | |
black[bcc] = rollet | |
even[ecc] = rollet |
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
/* | |
sketch to open a digital lock | |
*/ | |
int attemptCount = 0; | |
int lastButtonState3 = 0; | |
int lastButtonState4 = 0; | |
int lastButtonState5 = 0; | |
int lastButtonState6 = 0; | |
int buttonState3; | |
int buttonState4; |
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
int analog_range; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(8, OUTPUT); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { |
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
int analog_range; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(8, OUTPUT); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { |
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
score = 0 | |
oddNumList=[] # declare an array | |
evenNumList=[] | |
firstHalfList=[] | |
secHalfList=[] | |
firstDozen=[] | |
secDozen=[] | |
thirdDozen=[] | |
row1=[] | |
row2=[] |
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
from turtle import * | |
import random | |
colors = ['orange', 'yellow', 'red', 'green', 'blue','cyan'] | |
for n in range(50): | |
penup() | |
goto(random.randint(-400, 400), random.randint(-400, 400)) | |
pendown() | |
distance = random.randint(10, 40) |
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
score = 0 | |
denomination = 0 | |
oddNumList=[] # declare an array | |
evenNumList=[] | |
firstHalfList=[] | |
secHalfList=[] | |
firstDozen=[] | |
secDozen=[] | |
thirdDozen=[] | |
row1=[] |
OlderNewer