Forum Topic: Google Code Search!

(164 views • 4 replies)

This topic is 1 page long.

<< < > >>
Elated

InnerChild548

Reply To Post Reply & Quote

Posted at: 6/25/09 12:01 AM

InnerChild548 FAB LEVEL 23

Sign-Up: 08/10/07

Posts: 2,436

Checks this out!

Google has an engine where you can search for codes in any language!

Just type in your search terms as normal. (Use Advance search to specify a language)

ex. functions lang:java

Play around with it.

Languages I know: AS2, AS3, Javascript, Python, HTML, CSS
Languages I am learning: C++, PHP, SQL
Languages I plan to learn: XML, ASP

BBS Signature

None

djconnect

Reply To Post Reply & Quote

Posted at: 6/25/09 12:34 AM

djconnect EVIL LEVEL 18

Sign-Up: 01/13/07

Posts: 822

Welcome, you must be new to the internet.

I am a hacker of a Nu-Aira

BBS Signature

None

Super-Yombario

Reply To Post Reply & Quote

Posted at: 6/25/09 12:46 AM

Super-Yombario FAB LEVEL 06

Sign-Up: 03/16/07

Posts: 1,156

I saw this, and couldn't resist, so I made my own Google Code search:

<?php
	if(!isset($_GET['do'])){
		$lang = Array(
			"actionscript",
			"asp",
			"assembly",
			"C",
			"C++",
			"C#",
			"css",
			"html",
			"java",
			"javascript",
			"perl",
			"python",
			"ruby"
		);
		$disp = Array(
			"Action Script",
			"ASP",
			"Assembly",
			"C",
			"C++",
			"C#",
			"CSS",
			"HTML",
			"Java",
			"Java Script",
			"Perl",
			"Python",
			"Ruby"
		);
		echo ('<form action="?do=search" method="post">
			<input type="text" name="key" value="Keywords" onfocus="this.value=\'\'" /><br />
			<select name="lang"><option selected="selected" value="null">Language (Keep here to not be language-specific)</option>
		');
		for($i=0;$i<count($lang);$i++){
			echo '<option value="'.$lang[$i].'">'.$disp[$i].'</option>';
		}
		echo '</select><br /><input type="submit" value="Search" /></form>';
	}else{
		if($_POST['lang']!='null')
			$lang='lang:'.$_POST['lang'];
		else
			$lang='';
		$key=strtolower(str_replace(' ','+',$key));
		header('Location:http://www.google.com/codesearch?hl=en&lr=&q='.$key.'+'.$lang);
	}
?>

RIP Ed McMahon - RIP Farrah Fawcett - RIP Michael Jackson
But wait, there's more...
RIP Billy Mays


None

InnerChild548

Reply To Post Reply & Quote

Posted at: 6/25/09 12:53 AM

InnerChild548 FAB LEVEL 23

Sign-Up: 08/10/07

Posts: 2,436

At 6/25/09 12:34 AM, djconnect wrote: Welcome, you must be new to the internet.

Born yesterday in fact.

6 other code search engines.

Languages I know: AS2, AS3, Javascript, Python, HTML, CSS
Languages I am learning: C++, PHP, SQL
Languages I plan to learn: XML, ASP

BBS Signature

None

littleMonsterGames

Reply To Post Reply & Quote

Posted at: 6/28/09 01:32 AM

littleMonsterGames DARK LEVEL 05

Sign-Up: 12/24/08

Posts: 340

I have a feeling this is something I should have already known about...

The LittleMonsterGames website: http://www.littlemonstergames.com - super fun, I promise :)

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 05:44 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!