Skip to content

Instantly share code, notes, and snippets.

<?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
git svn clone https://tuxxedo.googlecode.com/svn tuxx // check url
cd tuxx
git remote add origin $GITHUB_URL
git push origin
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.
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.
function closeIt()
{
return "Are you sure you want to leave this page?";
}
window.onbeforeunload = closeIt;
<?php
namespace Tuxxedo {
/**
* The class autoloader
*/
class Loader
{
/**
<?php
class FourChanPoster
{
const VERSION = "1.0";
public $name;
public $email;
public $password;
@rmasters
rmasters / antiblock.php
Created March 24, 2009 12:26
Antiblock proxy
<?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'])) {
@rmasters
rmasters / feedcontrol.css
Created March 19, 2009 20:42
Styling FeedControl on uvshock
/**
* Suppress everything except for title
*/
#feedControl .gf-snippet,
#feedControl .gf-author,
#feedControl .gf-spacer,
#feedControl .gf-relativePublishedDate {
display: none;
}
@rmasters
rmasters / feedcontrol.js
Created March 19, 2009 20:40
Using the FeedControl on uvshock
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"));
}