- There should be FOSS for teaching classes on FOSS
- Github Native courseware. Homework? No, pull requests.
Ryan S. Brown
Software Engineer, OpenStack
@app.route('/syllabus')
def syllabus():
"""
Render the syllabus page.
"""
with open(app_path('schedule.yaml')) as schedule_yaml:
schedule = yaml.load(schedule_yaml)
return render_template('syllabus.mak', schedule=schedule, name='mako')
@app.route('/participants/<year>/<term>/<username>')
def participant_page(year, term, username):
participant_data = {}
yaml_dir = app_path('people')
participant_yaml = os.path.join(yaml_dir, year, term, username + '.yaml')
with open(participant_yaml) as participant_data:
participant_data = yaml.load(participant_data)
return render_template(
'participant.mak', name='make',
participant_data=participant_data,
gravatar=gravatar
)
<div class='jumbotron'>
<h1>${participant_data['irc']}</h1>
<p>${participant_data['name']}</p>
</div>
%if 'github' in participant_data:
<h2><a href="https://github.com/${participant_data['github']}">GitHub</a></h2>
%endif
blog: http://gearchicken.com/blog/
feed: http://gearchicken.com/blog/rss.xml
forges:
- http://github.com/liam-middlebrook
- http://bitbucket.org/liam-middlebrook
irc: loothelion
name: Liam Middlebrook
rit_dce: ljm2906
hw:
litreview1: http://gearchicken.com/....
quiz1: http://gearchicken.com/blog/....
litreview2: http://gearchicken.com/....
quiz2: http://gearchicken.com/blog/....
bugfix: http://gearchicken.com/blog/....
bio: Born hacking.
twitter: liammiddlebrook
$PATH
tox
[tox]
minversion = 1.6
envlist = py27,py33,pep8
language: python
install: pip install tox
script: tox
hflossk new
hflossk run
hflossk openshift
git
def is_dirty():
"""Check for uncommitted changes. True if dirty."""
repo = git.Repo(os.getcwd())
s = git.status(repo)
return any(s.staged.values() + [s.unstaged])
with TempBranch(branch, repo, delete=True):
for name, body in openshift_files.items():
with open(name, 'w') as f:
f.write(body.get("contents", ""))
repo.stage(fname)
repo.do_commit("Commit openshift files")