Tags » Code Snippet

Code Snippet Practice

/*	K&R Fahrenheit Celsius table
	typed in from K&R page 9
int main()  
	int fahr, celsius;
	int lower, upper, step;
	lower = 0;		/* lower limit of temp table*/
	upper = 300;	/* upper limit */
	step = 20;		/* step size */

	fahr = lower;
	while (fahr <= upper) {
		celsius = 5 * (fahr - 32) / 9;
		printf("%d\t%d\n", fahr, celsius);
		fahr = fahr + step;

    return 0;  

Error Prone

We, as a developers, sometimes, make mistakes or add bugs to our code without realizing. For this reason static analyzers are a handy tool to apply during our builds or during our code verification processes. 437 more words


Respect Mechanic

And after a long period of silence, a new project. Which is a continuation of an old project.

At one point I was working on ideas for a game. 207 more words

Instamojo Payment Gateway Integration in PHP


Instamojo is one of the easiest payment gateway to integrate in PHP. It gives your user option to pay with Cards, NetBanking and even Wallets. 451 more words

Code Snippet

How To Activate Imported Buddypress Users

Activating Imported Buddypress users is helpful because if you dont activate the users they don’t appear on searches and on the members directory.

Its pretty straight forward. 149 more words


Making a Snoopy calendar in Unix

For those of you who don’t know, the Snoopy calendar is a gimmick of the hacker culture. It basically refers to a line printer calendar for 1969 featuring the iconic beagle from Peanuts, that apparently hangs on the wall of every Real Programmer’s office. 1,179 more words