Skip to content

Commit a853b56

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 7067ffb + 8c93ca5 commit a853b56

29 files changed

Lines changed: 908 additions & 294 deletions

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
slides_sources/build

‎Examples/Session01/schedule.txt‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
week 2: Chantal Huynh
2+
week 2: Eric Buer
3+
week 2: Ian M Davis
4+
week 2: Schuyler Alan Schwafel
5+
week 3: James Brent Nunn
6+
week 3: Lauren Fries
7+
week 3: Lesley D Reece
8+
week 3: Michel Claessens
9+
week 4: Benjamin C Mier
10+
week 4: Robert W Perkins
11+
week 4: Vinay Gupta
12+
week 4: Wayne R Fukuhara
13+
week 5: Darcy Balcarce
14+
week 5: David Fugelso
15+
week 5: Henry B Fischer
16+
week 5: Kyle R Hart
17+
week 6: Aleksey Kramer
18+
week 6: Alexander R Galvin
19+
week 6: Gideon I Sylvan
20+
week 6: Hui Zhang
21+
week 7: Andrew P Klock
22+
week 7: Danielle G Marcos
23+
week 7: Ousmane Conde
24+
week 7: Salim Hassan Hamed
25+
week 8: Alireza Hashemloo
26+
week 8: Arielle R Simmons
27+
week 8: Eric W Westman
28+
week 8: Ryan J Albright
29+
week 9: Alexandra N Kazakova
30+
week 9: Erik Ivan Lottsfeldt
31+
week 9: Louis John Ascoli
32+
week 9: Ralph P Brand
33+
week 10: Bryan L Davis
34+
week 10: Carolyn J Evans
35+
week 10: Changqing Zhu

‎Examples/Session01/students.txt‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
name: languages
2-
Albright, Ryan J :
3-
Ascoli, Louis John :
4-
Balcarce, Darcy :
5-
Brand, Ralph P :
6-
Buer, Eric :
7-
Claessens, Michel :
8-
Conde, Ousmane :
9-
Davis, Bryan L :
10-
Davis, Ian M :
11-
Evans, Carolyn J :
12-
Fischer, Henry B :
13-
Fries, Lauren :
14-
Fugelso, David :
15-
Fukuhara, Wayne R :
16-
Galvin, Alexander R :
17-
Gupta, Vinay :
18-
Hamed, Salim Hassan :
19-
Hart, Kyle R :
20-
Hashemloo, Alireza :
21-
Huynh, Chantal :
22-
Kazakova, Alexandra N :
23-
Klock, Andrew P :
24-
Kramer, Aleksey :
25-
Lottsfeldt, Erik Ivan :
26-
Marcos, Danielle G :
27-
Mier, Benjamin C :
28-
Nunn, James B :
29-
Perkins, Robert W :
30-
Reece, Lesley D :
31-
Schwafel, Schuyler Alan :
32-
Simmons, Arielle R :
2+
Albright, Ryan J : VBA,
3+
Ascoli, Louis John : Basic, assm, shell
4+
Balcarce, Darcy : matlab, autocad, python
5+
Brand, Ralph P : C, C++, SQL,
6+
Buer, Eric : matlab, VBA, SQL,
7+
Claessens, Michel : VBA, basic SQL, pascal, matlab
8+
Conde, Ousmane :
9+
Davis, Bryan L :
10+
Davis, Ian M : C++
11+
Evans, Carolyn J : SQL,
12+
Fischer, Henry B : C, VB, SQL, SAS,
13+
Fries, Lauren : python
14+
Fugelso, David : C, C++, C#, Java
15+
Fukuhara, Wayne R : VB,
16+
Galvin, Alexander R : shell, C++, python
17+
Gupta, Vinay : C, C++, shell
18+
Hamed, Salim Hassan : Java, R, SAS, VBA
19+
Hart, Kyle R : QBasic, HTML,
20+
Hashemloo, Alireza :Javascript, PHP, C++
21+
Huynh, Chantal : Basic, SQL, Stata
22+
Kazakova, Alexandra N : R, python,
23+
Klock, Andrew P : C++, R, perl
24+
Kramer, Aleksey :Java, R, shell
25+
Lottsfeldt, Erik Ivan : basic, fortran,
26+
Marcos, Danielle G : python
27+
Mier, Benjamin C : C++, C#,
28+
Nunn, James Brent : shell, SQL, perl, pl1
29+
Perkins, Robert W : fortran, pascal, stata, javascript, sql
30+
Reece, Lesley D : html, SQL, PLSQL, perl, shell
31+
Schwafel, Schuyler Alan : bash, python, perl, php
32+
Simmons, Arielle R : Scheme, Java, VBA, python
3333
Sylvan, Gideon I :
34-
Westman, Eric W :
35-
Zhang, Hui :
36-
Zhu, Changquing :
34+
Westman, Eric W : C#, PHP, SQL, javascript
35+
Zhang, Hui : FoxBase
36+
Zhu, Changqing : C,

‎Examples/Session01/test.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
print x, y
55

6+
def f():
7+
x = 5
8+

‎Solutions/Session01/print_grid.py‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Chris' solution to the week 1 homework problem.
5+
6+
Note that we hadn't talked about loops yet, so this is a solution with no
7+
loops.
8+
9+
Note also that there is more than one way to skin a cat -- or code a function
10+
"""
11+
12+
13+
def print_grid(size):
14+
"""
15+
print a 2x2 grid with a total size of size
16+
17+
:param size: total size of grid -- it will be rounded if not one more than
18+
a multiple of 2
19+
"""
20+
number = 2
21+
box_size = int((size-1) // 2) # size of one grid box
22+
print "box_size:", box_size
23+
# top row
24+
top = ('+ ' + '- ' * box_size) * number + '+' + '\n'
25+
middle = ('| ' + ' ' * 2 * box_size) * number + '|' + '\n'
26+
27+
row = top + middle*box_size
28+
29+
grid = row*number + top
30+
31+
print grid
32+
33+
34+
def print_grid2(number, size):
35+
"""
36+
print a number x number grid with each box of size width and height
37+
38+
:param number: number of grid boxes (row and column)
39+
40+
:param size: size of each grid box
41+
"""
42+
# top row
43+
top = ('+ ' + '- '*size)*number + '+' + '\n'
44+
middle = ('| ' + ' '*2*size)*number + '|' + '\n'
45+
46+
row = top + middle*size
47+
48+
grid = row*number + top
49+
50+
print grid
51+
52+
53+
def print_grid3(size):
54+
"""
55+
same as print_grid, but calling print_grid2 to do the work
56+
"""
57+
number = 2
58+
box_size = (size-1) / 2 # size of one grid box
59+
print_grid2(number, box_size)
60+
61+
62+
print_grid(11)
63+
print_grid(7)
64+
65+
print_grid2(3, 3)
66+
print_grid2(3, 5)
67+
68+
print_grid3(11)

‎Students/SSchwafel/test.py‎

Whitespace-only changes.

‎lightning_schedule.txt‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
week 2: Chantal Huynh
2+
week 2: David Fugelso
3+
week 2: Ian M Davis
4+
week 2: Schuyler Alan Schwafel
5+
week 3: James Brent Nunn
6+
week 3: Lauren Fries
7+
week 3: Lesley D Reece
8+
week 3: Michel Claessens
9+
week 4: Benjamin C Mier
10+
week 4: Robert W Perkins
11+
week 4: Vinay Gupta
12+
week 4: Wayne R Fukuhara
13+
week 5: Darcy Balcarce
14+
week 5: Eric Buer
15+
week 5: Henry B Fischer
16+
week 5: Kyle R Hart
17+
week 6: Aleksey Kramer
18+
week 6: Alexander R Galvin
19+
week 6: Gideon I Sylvan
20+
week 6: Hui Zhang
21+
week 7: Andrew P Klock
22+
week 7: Danielle G Marcos
23+
week 7: Ousmane Conde
24+
week 7: Salim Hassan Hamed
25+
week 8: Alireza Hashemloo
26+
week 8: Arielle R Simmons
27+
week 8: Eric W Westman
28+
week 8: Ryan J Albright
29+
week 9: Alexandra N Kazakova
30+
week 9: Erik Ivan Lottsfeldt
31+
week 9: Louis John Ascoli
32+
week 9: Ralph P Brand
33+
week 10: Bryan L Davis
34+
week 10: Carolyn J Evans
35+
week 10: Changqing Zhu

‎slides_sources/ToDo.txt‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Things to do for the UWPCE INtro to Python class:
2+
3+
For Session 2:
4+
5+
Note: I decided to not confuse things with unicode off teh bat --
6+
so I'm stripping the 'u' from string literals wherever I find them.
7+
8+
[x] Update presentaion for UWPCE instead of CodeFellows
9+
[x] - mention of CodeFellows
10+
[x] - urls for git
11+
12+
[x] Add outline of class to beginning of slides
13+
14+
[x] Add section breaks to slides for LAB time and lightning talks:
15+
some lecture
16+
some lab time
17+
two lightning talks
18+
19+
[ ] General slide proofread and clean up for layout, etc.
20+
21+
I think we shouod remove the parameter unpacking: *args and **kwargs --
22+
too much when you don't really know what a tuple or dict is...
23+
24+
[x] Remove parameter unpacking
25+
26+
[ ] Add more to the function lab -- should be 20min or so of work.
27+
- they have learned about returning multiple values.
28+
29+
[ ] Put in solution to this weeks homework in Solutions
30+
--Chris has soem kicking around to find...
31+
32+
33+
Future Sessions:
34+
35+
Add discusion of parameter unpacking: *args and **kwargs

‎slides_sources/requirements.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ Pygments==1.6
44
Sphinx==1.2.2
55
docutils==0.11
66
sphinx-rtd-theme==0.1.6
7+
gnureadline==6.2.5
8+
# hieroglyph==0.7.dev
9+
-e git+https://github.com/nyergler/hieroglyph.git#egg=hieroglyph
10+
ipython==2.3.0
11+
libsass==0.5.1

‎slides_sources/scss_sources/slides_custom.scss‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ article {
112112
font-size: inherit;
113113
}
114114
}
115+
.figure {
116+
text-align: center;
117+
a.center {
118+
margin: auto;
119+
text-decoration: none;
120+
border: none;
121+
img.center {
122+
margin: auto;
123+
}
124+
}
125+
}
115126
dl {
116127
margin-bottom: 10em;
117128
dt {

0 commit comments

Comments
 (0)