25811 W St Kateri Dr
Buckeye, AZ 85326
(623) 498-7649
import sys # import sys | |
sys.path.insert(1, "./lib") # add the lib folder to sys so python can find the libraries | |
import epd2in7b # import the display drivers | |
from PIL import Image,ImageDraw,ImageFont # import the image libraries | |
import time | |
from gpiozero import Button # import the Button control from gpiozero | |
btn1 = Button(5) # assign each button to a variable | |
btn2 = Button(6) # by passing in the pin number |
import sys | |
sys.path.insert(1, "./lib") | |
import epd2in7b | |
from PIL import Image, ImageDraw, ImageFont | |
epd = epd2in7b.EPD() # get the display | |
epd.init() # initialize the display | |
print("Clear...") # prints to console, not the display, for debugging | |
epd.Clear(0xFF) # clear the display |
import sys | |
sys.path.insert(1, "./lib") | |
import epd2in7b | |
from PIL import Image, ImageDraw, ImageFont | |
from gpiozero import Button | |
btn = Button(5) | |
epd = epd2in7b.EPD() |
%option noyywrap | |
A [a-zA-Z] | |
DIGIT [0-9] | |
/* 1. include other pattern definitions here, if needed. Digits maybe? */ | |
%{ | |
#include "tokens.h" /* Leave this section untouched */ |
<program> ::= <statement_list> | |
<statement_list> ::= <variable_def> | |
| <assignment_statement> | |
| <conditional_statement> | |
| <loop_statement> | |
| <block_statement> | |
| <variable_def> <statement_list> | |
| <assignment_statement> <statement_list> | |
| <conditional_statement> <statement_list> | |
| <loop_statement> <statement_list> |
void main() { | |
Deck deck = new Deck(); | |
print(deck.length()); | |
deck.removeCard("Jack", "Hearts"); | |
print(deck.length()); | |
print(deck); | |
} | |
class Deck { |
FOR doc in any 'games/VnZGCbECR0I' edges | |
OPTIONS { bfs: true, uniqueVertices: 'global' } | |
return doc.name |
// edge cases: no islands, all zeros | |
// constraints: none | |
// start with first row | |
// walk through each index in the row | |
// if it sees a 1 | |
// check each potential island in array | |
// check each coordinate | |
// determine if the stored coordinate is adjacent to the current coordinate |