Skip to content

Instantly share code, notes, and snippets.

@jsfaint
jsfaint / gif2bin.c
Created May 27, 2014 03:10
Convert gif to binary file.
/*
v0.3 implement getFileName(), optimize output file.
v0.2 add multi file support
v0.1 first demo
*/
#include <string.h>
#include <stdio.h>
void getFileName(const char *szFullName, char *szFileName);
@jsfaint
jsfaint / Question.txt
Created August 1, 2013 07:21
An bash script resolve the topic described in "Question.txt"
Description
Assume there is a directory contains student records regarding to different courses. These files have “.rec” extension. Each file belongs to a course and has the following format:
COURSE NAME: <the name of the course>
CREDITS: <credits>
Student# <a list of numbers belong to different activities have been done in the course>
For example a course record file can be like this:
COURSE NAME: Operating Systems