This document was formed out of the consensus of leaders in software development companies in Cape Town, and proposes some changes to the undergraduate Computer Science curriculum, in order to improve the level of understanding and effectiveness of students, both in order to increase their relevant skills on graduation,
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 | |
# symlink a system package or module into the current virtual env | |
import logging | |
import optparse | |
import os | |
import sys | |
import shutil | |
import subprocess | |
import pickle |
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 | |
import sqlite3 | |
import logging | |
import shutil | |
# copy | |
shutil.copy2("original.sqlite", "updated.sqlite") | |
original = sqlite3.connect("original.sqlite") | |
backup = sqlite3.connect("backup.sqlite") |
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
import cssutils | |
from xml.sax import saxutils | |
from lxml.html import tostring, fromstring, clean | |
from lxml import etree | |
import logging | |
class Cleaner(clean.Cleaner): | |
def clean_html(self, html): | |
if not isinstance(html, unicode): |
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
#!/bin/bash | |
target_displays="$1" | |
VGA=VGA-0 | |
LVDS=LVDS-0 | |
if [[ "$target_displays" == "auto" || "$target_displays" == "" ]] | |
then | |
xrandr_output="`xrandr -q`" | |
vga_connected=`echo "$xrandr_output" | grep "^$VGA " | cut -d' ' -f2` |
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 | |
import sqlite3 | |
import pprint | |
import datetime | |
import time | |
# install from https://github.com/pmarti/python-messaging/tarball/master - built against 0.5.12 | |
from messaging import sms | |
import pprint |
NewerOlder