- Are responsibilities well defined?
- Are the collaborations well defined?
- Is coupling minimized?
- Can you identify potential duplication?
- Are interface definitions and constraints acceptable?
- Can modules access needed data—when needed?
This file contains hidden or 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
# Author: Joseph Lisee <[email protected] | |
import os | |
import time | |
from contextlib import contextmanager | |
# Little timing helper | |
@contextmanager | |
def timer(msg): | |
now = time.time() |
This file contains hidden or 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
// Creating: | |
// c++ -O3 card.cpp -o card | |
// ./card > beth.ppm | |
// | |
// Rendering the letters EBB | |
// | |
// 1111100111100011110 511774 | |
// 1000000100010010001 264337 | |
// 1000000100010010001 264337 | |
// 1110000111100011110 462622 |
This file contains hidden or 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
#! /usr/bin/env python | |
# Author: Joseph Lisee <[email protected]> | |
__doc__ == """ | |
Example of using docutils to process reStructedText into HTML. | |
Usage to file: | |
./rst2html_example.py README.rst -o README.html |
This file contains hidden or 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
<section id="archive"> | |
{% capture this_year %}{{ site.time | date: '%Y' }}{% endcapture %} | |
{% capture post_year %}{{ site.posts[0].date | date: '%Y' }}{% endcapture %} | |
{% if this_year == post_year %} | |
<h3>This year's posts</h3> | |
{% else %} | |
<h3>{{ post_year }}</h3> | |
{% endif %} |
This file contains hidden or 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
# Author: Joseph Lisee <[email protected]> | |
# License: No rights reserved, code is in the public domain. | |
# Date: May 2013 | |
__doc__ = """ | |
Downloads and unpacks a tarball from the Internet. | |
""" | |
import argparse | |
import os |
This file contains hidden or 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
#!/usr/bin/env python | |
''' | |
Conduct rolling backups of a mysql DB server. | |
Daily backups are kept for the previous 7 days, | |
weekly for the previous 4 weeks, and monthly backups | |
for the previous 12 months. | |
Run ./mysql_backup --help for usage instructions |
NewerOlder