Skip to content

Instantly share code, notes, and snippets.

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:

@shrink
shrink / showin.html
Last active January 4, 2016 20:19
A BBCode thing for IPB, take a list of comma separated values as the option and only show the content in those topics. For example "[showin=123,456]Hello![/showin]" would only show in topics of the ID 123 and 456.
<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();
@shrink
shrink / banlists_model.php
Created April 18, 2013 17:40
Poor quality, hacked together code I wrote a long time ago, for someone that wants to see how whitelist.mcf.li works.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Banlists_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
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).
@shrink
shrink / gist:1577063
Last active September 29, 2015 08:58
Minecraft sales vs. registrations data for 2010. Starting July 29th 2010 until September 11th 2010. Format is date, sales, registrations.
['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],