Skip to content

Instantly share code, notes, and snippets.

@mkawserm
mkawserm / A01.F90
Last active August 29, 2015 14:01
Solve Linear system using Gaussian elimination with pivot [actually partial pivot] and without pivot [ actually interchange the row with the next non zero row if the diagonal element is 0 ] using FORTRAN 90 /95
!Name : GAUSSIAN ELIMINATION
!Author : KAWSER
!Blog : http://blog.kawser.org
!Created : 15/05/2014 11:23 AM
!Updated : 19/05/2014 10:18 PM
!
!Short URL : http://goo.gl/V0QEg6
!
!Purpose : Solve Linear system using Gaussian elimination with pivot [actually partial pivot]
! and without pivot [actually interchange the row with the next non zero row if the
@mkawserm
mkawserm / PyDriveMount.py
Last active August 29, 2015 14:00
Mount partition or folder using python on any linux distro
#!/usr/bin/env python3
"""
Object Name : PyDriveMount
Author : kawser
Author Blog : http://blog.kawser.org
Date : 20/04/2014
Time : 1:40 PM
/*
Author : kawser
Author blog : http://blog.kawser.org
Problem ID : 100
Time Limit : 3s
OJ Link : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=36
*/
@mkawserm
mkawserm / uva - 100.py
Created April 5, 2014 09:03
The 3n + 1 problem
#!/usr/bin/env python
"""
Author : kawser
Author blog : http://blog.kawser.org
Problem ID : 100
Time Limit : 3s
@mkawserm
mkawserm / cmdfy.cpp
Last active January 23, 2023 23:02
The code demonstrates how to use function pointer to call a method via string using c++
/* Program Name : cmdfy
* Developer : kawser
* Developer Blog: http://blog.kawser.org
* Blog Link: http://blog.kawser.org/2014/02/calling-cpp-function-fly.html
*
*
* Objective : This code demonstrates how to use function pointer
* to call a method via string
*
* IDEA : We will define some functions with similar signature and store these