Skip to content

Instantly share code, notes, and snippets.

View caspar's full-sized avatar
🌴

Caspar Lant caspar

🌴
View GitHub Profile
@caspar
caspar / AddWord.java
Last active December 30, 2015 09:59
Adds a word to Wordsearch.java
public boolean AddWord (int r, int c, int dx, int dy, String word){
if (dx == 0 && dy == 0)
return false; //this would mean that the word was not sprouting in any direction. Only the first letter would render.
int i = 0;
//dx: "X-Direction" -- (-1) for Left, (1) for Right, (0) for neither;
//dy: "Y-Direction" -- ditto;
try{
@fideloper
fideloper / usevm.md
Created June 6, 2012 02:24
You should develop in a Virtual Machine

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!