I read the Bible this night. I found amazing verse.
For the wages of sin is death, but the gift of God is eternal life in
Christ Jesus our Lord. Rom 6:23.
Because of what we’ve done hard working in the past, we may be paid
with death, BUT God gives us life without working. It is not matter [...]
Archive for the ‘Uncategorized’ Category
Amazing verse
Posted in Uncategorized, tagged Bible, Thought on February 5, 2009 | Leave a Comment »
Vim tip – replace
Posted in Uncategorized, tagged Tip, VIm on October 5, 2008 | Leave a Comment »
:%s/foo/bar/g = find each occurance of ‘foo’ and replace it with ‘bar’ without asking for confirmation
:%s/foo/bar/gc = find each occurance of ‘foo’ and replace it with ‘bar’ asking for confirmation first
:%s/<foo>/bar/gc = find (match exact word only) and replace each occurance of ‘foo’ with ‘bar’
:%s/foo/bar/gci = find (case insensitive) and replace each occurance of ‘foo’ [...]
2D Array Dynamic Allocation ( C++)
Posted in Uncategorized, tagged C++ on September 18, 2008 | Leave a Comment »
double** A = NULL; //Pointer to rows of A Matrix (NxN, type double)
//Allocate space for pointers to rows of A matrix
if (!(A = new double*[N])){
cout << “Allocation for A failed. \n”;
return 0;
} //End if
// Allocate space for entries of the columns of the A Matrix
for (i = 0; i < N; i++) {
if (!(A[i] = [...]
Hello world!
Posted in Uncategorized on June 15, 2008 | 1 Comment »
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!