Python code

import itertools
import time
import math
from turtle import *
import random

# Takes a polygon p and returns its perimeter
def perimeter(p):
perim = 0 # perimeter
numPoints = len(p)
for i in range(numPoints): # for the P above, i will count 0, 1, 2, 3
perim = perim + EKdistance(p[i], p[(i+1)%numPoints])
print perim

# finds the distance between points p and q
# p and q are both tuples p=(0,3) q=(1,5)
def EKdistance(p, q):
return math.sqrt((p[0]-q[0])**2+(p[1]-q[1])**2)

def Is_Counter_Clockwise(P):
sumDet = 0
numPoints = len(P)
for i in range (numPoints):
sumDet = sumDet + EKdet(P[i], P[(i+1)%numPoints])
if sumDet < 0:
return False
return True




Computer Science wins Trunk or Treat!


Hello, all,

We won! The ACM Student Chapter just got the first place prize in Trunk or Treat. I’d like to thank everyone who volunteered to help out, especially Jack, who let us use his car even though he couldn’t be there himself, John Peter, who programmed the robot and dressed up like Darth Vader, and Ted Morin, who helped weaponize the robot and got costumes for the rest of us. Now we have $75 more for public events, so let’s start thinking about how we can use it!
Thanks again,
Brian McCutchon

Interesting Workshop — Free! End of April. Register now.

This year we are repeating the AT&T IoT and IFTTT Coding Workshops 4 times – the content is identical, so chose the one that works best for you.

Session 1: Wednesday afternoon, April 20

When: 12 – 4 p.m. (registration & lunch 12 – 1, workshop 1 – 4)


Session 2: Wednesday evening, April 20

When: 5 – 9 p.m. (registration & dinner 5 – 6, workshop 6 – 9)


Session 3: Thursday afternoon, April 21

When: 12 – 4 p.m. (registration & lunch 12 – 1, workshop 1 – 4)


Session 4: Thursday evening, April 21

When: 5 – 9 p.m. (registration & dinner 5 – 6, workshop 6 – 9)


(All sessions are the same.)

Free and open to everyone. Note that you must register on Eventbrite (links above)

Additional Info:

Excited by the Internet of Things (IoT)? Interested in learning about IFTTT (If This Then That)? Then join the AT&T Developer Program and Texas Instruments as we expand on last year’s IoT DevLab Coding Workshop. This year we have added labs on IFTTT and AT&T Flow Designer (a web-based development environment for designing, building, and deploying IoT solutions). In addition, TI will join us to talk about hardware solutions in the world of IoT.

Attendance at last year’s DevLab is not required to participate in this year’s event.

This year we will be using the TI MSP432 LaunchPad and CC3100 SimpleLink Wi-Fi BoosterPack Internet-connected development boards – yours to keep – for our lab exercises. An extra perk? Attendees will be entered in drawings for a TI Educational BoosterPack MKII and a CC2650 SensorTag Bluetooth kit!

This is a 3-hour, hands-on coding workshop in which AT&T and Texas Instruments subject matter experts show you how to work with Internet-enabled devices then provide help as you go through coding examples yourself.
The event is free and we will be serving dinner. So bring your Windows or Mac laptop and join us for an afternoon of learning, coding, socializing, and eating!

Tools: Using Postman, cURL, and JavaScript for the lab exercises. More technical details on the Eventbrite registration site. So bring your laptop and join AT&T, Girl Develop It Chicago, and TI for an afternoon or evening of learning, coding, socializing, and eating!

Seating is limited so sign up soon. (Note that the content of all workshops is the same.)

Tech EdVentures is hiring for the summer


Tech EdVentures teaches engineering, coding and design to kids in grades K-8. Now in our third year of operations, we are experiencing dramatic growth.
We currently have openings for summer staff between May 31 and Aug 19. For details see our website.
We are also looking for undergraduates/grad students at UTA, UTD, DBU and SMU to help us recruit staffing for summer and year-round programs.


How to be the guy in “git.txt”

I’ve started shying away from graphical Git clients like GitHub Desktop recently. While they’re great for beginners and make visualizing the repository history easy, I wouldn’t want to be dependent on them and be lost when working on a machine that doesn’t have them installed or a remote server via SSH.

The title, for those who don’t know, is a reference to the hover text on xkcd: Git. How can you get to be that person? Check out this flowchart from

Git flowchart

Of course, this flowchart doesn’t cover everything, and, unlike the guy whose phone number is in git.txt, it doesn’t really talk about branches. You’ll still be lost if you run into merge conflicts, for example. It does, however, cover a few common issues you might run into, like adding a file to your last commit or fixing a commit message (assuming you haven’t pushed/synced). To really master Git, check out the book here: Also, remember to write better commit messages than these!

A Note from Dr. Norris — Summer Teaching Opportunities for CS Students

This summer, UD will run for the second time a STEM program for young local students entering 9th or 10th grade called TexPREP. Last year we ran the third year courses: Intro to Statistics and Intro to Technical Writing. This summer, we will also run the fourth year courses: Computer Science, and another course which could be Water Science, Nano-Technology, Cyber-Security, or Computer Aided Design.

There will be approximately 20 high-achieving local Irving ISD students in both the third and fourth year programs.

The program runs June 15-July 24, Monday-Friday, with classes being held in the morning, 8:30-11:30 and in the afternoon from 12:30-3:30.

We are looking for two things:
* people who would be interested in teaching these courses (we already have someone in line for the Intro to Statistics course)
* student assistants who could be aides in the classroom and during the lunch period.

​The student assistants get paid approximately $11/hr. We would need 2 students who could work 8-4 with time off for lunch and rest in the middle, and a student who would work 2 hrs from 11-1. Maria Buckner was our assistant last summer and enjoyed it greatly. It is a great learning experience for students who have eventual interest in science and education, and a lot of fun as well.