- 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 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 |
This file contains 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 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 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 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 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 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 | |
# Copyright (c) 2014, Joseph Lisee | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. |
This file contains 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]> | |
# Purpose: Test out various clang formatting options | |
# Usage: compare-format.py <diff-tool> <input-path> [<clang-options] | |
# Example: | |
# compare-format.py meld file.cpp "-style={BasedOnStyle: Google, IndentWidth: 4}" | |
import os |
This file contains 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 | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
OlderNewer