Skip to content

Instantly share code, notes, and snippets.

View jcbrinfo's full-sized avatar

Jean-Christophe Beaupré jcbrinfo

View GitHub Profile
Initialize memory with "\0\0zero\0one\0two\0three\0"
(space for a counter; read index; array of strings)
0x char
65 == 'e'
68 == 'h'
6E == 'n'
6F == 'o'
72 == 'r'
74 == 't'
77 == 'w'
@jcbrinfo
jcbrinfo / get_avail.sh
Last active April 20, 2016 03:00
Get the availibility of some courses at UQAM for a specific semester
#! /bin/sh
# List all courses available for the specified semester.
#
# The courses to consider are given trought the standard input (one code by
# line).
#
# Takes one argument: the semester code, that is the year, followed by 1, 2 or
# 3. For example, `20153` corresponds to the semester of fall 2015.
#
# Copyright (c) 2016, jcbrinfo <[email protected]>.