This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = new MySQLi("localhost", "root", "password", "widget_corp"); | |
if ($conn->connect_errno()) { | |
die("Failed to connect: " . $conn->connect_error()); | |
} | |
$result = $conn->query("SELECT * FROM subjects"); | |
// You wouldn't usually have this, as you only get an error if the sql's | |
// wrong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git svn clone https://tuxxedo.googlecode.com/svn tuxx // check url | |
cd tuxx | |
git remote add origin $GITHUB_URL | |
git push origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minecraft has crashed! | |
---------------------- | |
Minecraft has stopped running because it encountered a problem. | |
If you wish to report this, please copy this entire text and email it to [email protected]. | |
Please include a description of what you did when the error occured. | |
Note: Occurred during loading newly generated world - showed horizon, no blocks then crashed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Itsy-bitsy spider decided to have a laugh, | |
So itsy-spider crept into a bath, | |
But along came Ross who didn't want to share his shower with a 5 inch spider so he blasted it down the plug hole. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function closeIt() | |
{ | |
return "Are you sure you want to leave this page?"; | |
} | |
window.onbeforeunload = closeIt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tuxxedo { | |
/** | |
* The class autoloader | |
*/ | |
class Loader | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FourChanPoster | |
{ | |
const VERSION = "1.0"; | |
public $name; | |
public $email; | |
public $password; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Anti-block proxy | |
* @author Ross Masters <[email protected]> | |
* @package antiblock | |
* @version 0.1 | |
*/ | |
// Bail on empty/unset url | |
if (!isset($_GET['url']) || empty($_GET['url'])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Suppress everything except for title | |
*/ | |
#feedControl .gf-snippet, | |
#feedControl .gf-author, | |
#feedControl .gf-spacer, | |
#feedControl .gf-relativePublishedDate { | |
display: none; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.load("feeds", "1"); | |
function initialize() { | |
var feedControl = new google.feeds.FeedControl(); | |
feedControl.addFeed("http://twitter.com/statuses/user_timeline/14399435.atom", "Tweets"); | |
feedControl.addFeed("http://stackoverflow.com/feeds/user/2025", "StackOverflow"); | |
feedControl.addFeed("http://www.google.com/reader/public/atom/user%2F04968712295736668054%2Fstate%2Fcom.google%2Fbroadcast", "Shared Items"); | |
feedControl.addFeed("http://feeds.delicious.com/v2/rss/rossmasters?count=15", "Shared Bookmarks"); | |
feedControl.draw(document.getElementById("feedControl")); | |
} |