Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am citricsquid on github.
  • I am citricsquid (https://keybase.io/citricsquid) on keybase.
  • I have a public key whose fingerprint is 1302 0787 1BF3 0D39 9372 015F 7409 F743 72C0 93A7

To claim this, I am signing this object:

View gist:b42c5015761d0a22b3ea
<?php
function splitAddress($address, $width = 35) {
if (strlen($address) < $width)
return array('address1' => $address, 'address2' => null);
$string = wordwrap($address, $width);
$full = explode("\n", $string);
list($address1, $address2) = $full;
View showin.html
<div class="showintopic">
{content}
</div>
<script type="text/javascript">
var showintopics = "{option}";
var topic = String(ipb.topic.topic_id);
var topics = showintopics.split(",");
if (jQuery.inArray(topic, topics) != '-1') {
jQuery('script:last').prev('.showintopic').show();
View banlists_model.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Banlists_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
View gist:1577089
I had the idea for this at the last minute, just before the game hit 1,000,000
sales. I threw it together as fast as I could so there's probably many errors, if
you do find a problem email sam@samryan.co.uk and I'll fix it.
The idea is simply to have a bunch of skins all presented side by side to
represent the Minecraft "community". I would love to have all 1,000,000 players
added, but a large number don't have skins or don't play the game any more. If
it does get a few thousand submissions (what I hope for) I'll work out some sort
of pagination system so it doesn't lag (probably lazy load).
View gist:1577063
['07.29', 38553, 299897],
['07.30', 40140, 304401],
['07.31', 41525, 308100],
['08.01', 42777, 311643],
['08.02', 43937, 314949],
['08.03', 45288, 318246],
['08.04', 46997, 321978],
['08.05', 48451, 325486],
['08.06', 49817, 328765],
['08.07', 51117, 331896],