Skip to content

Instantly share code, notes, and snippets.

View nikAizuddin's full-sized avatar
⚠️
s t a t i c

Nik Mohamad Aizuddin nikAizuddin

⚠️
s t a t i c
View GitHub Profile
@nikAizuddin
nikAizuddin / ReceiptTutorial.java
Created December 5, 2014 03:38
This program will display receipt using read-only TextArea
//////////////////////////////////////////////////////////////////////
// //
// This program will display receipt using read-only TextArea //
// //
//////////////////////////////////////////////////////////////////////
package mainprogram;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
@nikAizuddin
nikAizuddin / GUITutorial.java
Created December 3, 2014 20:06
This program will display a simple GUI, asking for input.
//////////////////////////////////////////////////////////////////////
// //
// This program will display a simple GUI, asking for input. //
// //
//////////////////////////////////////////////////////////////////////
package mainprogram;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
@nikAizuddin
nikAizuddin / if_else_1.pl
Created November 30, 2014 20:02
BCN2053 Operating System Lab Sheet 6 (PERL)
#!/bin/perl
# ==========================================================
# Write a shell script, which will ask you for input 'yes'
# or 'no' and based on that will give you what is your
# input;
#
# a) If you enter yes as your input, it will echo you have
# entered yes.
#
@nikAizuddin
nikAizuddin / if_else_1.rb
Created November 30, 2014 20:01
BCN2053 Operating System Lab Sheet 6 (RUBY)
#!/bin/ruby
# ==========================================================
# Write a shell script, which will ask you for input 'yes'
# or 'no' and based on that will give you what is your
# input;
#
# a) If you enter yes as your input, it will echo you have
# entered yes.
#
@nikAizuddin
nikAizuddin / if_else_1.sh
Created November 30, 2014 20:01
BCN2053 Operating System Lab Sheet 6 (BASH)
#!/bin/bash
# ==========================================================
# Write a shell script, which will ask you for input 'yes'
# or 'no' and based on that will give you what is your
# input;
#
# a) If you enter yes as your input, it will echo you have
# entered yes.
#
@nikAizuddin
nikAizuddin / if_else_2.pl
Created November 30, 2014 20:00
BCN2053 Operating System Lab Sheet 6 (PERL)
#!/bin/perl
# ==========================================================
# Write a shell script base on below requirements:
#
# a) Script prompt user to enter a password
#
# b) Script then checks the password entered with the given
# password. (Assume that the system password is "secret")
#
@nikAizuddin
nikAizuddin / if_else_2.rb
Created November 30, 2014 19:54
BCN2053 Operating System Lab Sheet 6 (RUBY)
#!/bin/ruby
# ==========================================================
# Write a shell script base on below requirements:
#
# a) Script prompt user to enter a password
#
# b) Script then checks the password entered with the given
# password. (Assume that the system password is "secret")
#
@nikAizuddin
nikAizuddin / if_else_2.sh
Created November 30, 2014 19:53
BCN2053 Operating System Lab Sheet 6 (BASH)
#!/bin/bash
# ==========================================================
# Write a shell script base on below requirements:
#
# a) Script prompt user to enter a password
#
# b) Script then checks the password entered with the given
# password. (Assume that the system password is "secret")
#
@nikAizuddin
nikAizuddin / mycgpa.pl
Created November 30, 2014 19:52
BCN2053 Operating System Lab Sheet 6 (PERL)
#!/bin/perl
# ==========================================================
# This script requires user to input the name and last
# semester GPA. The output of the script will display your
# current CGPA (Assume that your current CGPA for 2 semester
# is 3.5).
#
# Sample output will be:
#
@nikAizuddin
nikAizuddin / mycgpa.rb
Created November 30, 2014 19:51
BCN2053 Operating System Lab Sheet 6 (RUBY)
#!/bin/ruby
# ==========================================================
# This script requires user to input the name and last
# semester GPA. The output of the script will display your
# current CGPA (Assume that your current CGPA for 2 semester
# is 3.5).
#
# Sample output will be:
#