Sunday, December 30, 2012


A simple program that I wrote to ease the compilation process using GCC. It takes one string as the input file name and the output file is named as the input file.

For example, to make an EXE from the file Example.c, one must type in the command prompt:
gcc Example.c -o Example.exe

By using cc.exe, one must only type:
cc Example

Below is the source code:

#include <stdio.h>

int main(int argc, char *argv[]) {
    char a[100];
    sprintf(a, "gcc %s.c -o %s.exe", argv[1], argv[1]);
    return 0;

Saturday, December 22, 2012

A Typing Game (source file)

In this game, you must type the meaning of the Arabic words that are shown above the robots in the language that you choose (Bahasa Melayu or English). Press enter to shoot. Don't let the robots get near you! The table below shows the translations for each word:

  (source file, requires Game Maker: Studio)

I also include the source file for the program that I used to create the Arabic characters. It is useful to make Arabic sprite font. It is for US keyboard. To use it, type in the alphabet that has the closest sound with the Arabic character that you want to write. For example, if you want to write "alif", press A. But if you want to write "kha", you must press H first and you will get "ha". Then press shift to shuffle between the characters until you get "kha".

(source file, requires Game Maker: Studio)

Wednesday, December 5, 2012

Rusty Chain

Rusty Chain by FoxKid1994
Rusty Chain, a photo by FoxKid1994 on Flickr.

Captured using Casio Exilim EX-Z33 at Taman Tasik Perdana