Skip to content

Instantly share code, notes, and snippets.

package cofh.cobblehaters;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLLoadCompleteEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.eventhandler.Event.Result;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import gnu.trove.map.hash.TObjectIntHashMap;
<div>
<script>
function uListC(o) {
var R = new Array(), T = o.length, s = 0;
for (var i = 0; i < T; i++) {
var q = o[i].username;
if(q == holodeck.username() || !q) {
s++;
continue;
}
HolodeckProxy = function(h,l){this.initialize(h,l);}
HolodeckProxy.prototype = {
initialize:function(h,l) {
this._listners = h||{};
this._trackers = l||[];
window.konduitToHolodeck = function(){
var arg = arguments[0];
setTimeout(function() { holodeck.konduitEvent(arg) }, 0);
setTimeout(function() { holodeckProxy.send(arg) }, 0);
HolodeckProxy = function(a,b,c,d){this.initialize(a,b,c,d);}
HolodeckProxy.prototype = {
initialize:function(l, t, c, ct) {
this._listners = l||{};
this._trackers = t||[];
this._callbacks = c||{};
this._callbackTrackers = ct||{};
var a = this;
window.konduitToHolodeck = function(){
function sendMail($to1, $subject1, $body1, $from_email1, $from_name1){
$headers="From: $from_email1\r\n";
$headers.="Reply-To: $from_name1<$from_email1>\r\n";
$headers.='X-Mailer: PHP/'.phpversion()."\r\n";
$headers.="MIME-Version: 1.0\r\n";
$headers.="Content-Type: text/plain; charset=iso-8859-1\r\n"."\n\n";
$sendmail_params = "-f$from_email1";
return mail($to1,$subject1,$body1,$headers,$sendmail_params);
}
function beginningAnimation() : void
{
trace("1");
var li = allLights[0];
moveLight(li,wid,heig);
li.nextFunc = continueAnimation;
trace("1.1");
}
function continueAnimation(e:TweenEvent) : void
{
(Note: none of these are intended as racist or offensive, it's all in good fun.)
Pick the month you were born in:
1 (Jan) - I stabbed
2 (Feb) - I robbed
3 (Mar) - I killed
4 (Apr) - I shot
5 (May) - I banged
6 (Jun) - I ran shirtless with
7 (Jul) - I hugged
using System.IO;
namespace WindowsFormsApplication1
{
public class sky
{
public string GetFlashData()
{
string data = "_height=700&_width=300&api=false&chat_host=of1.kongregate.com&chat_ip=216.246.59.237&chat_port=5222&game_id=0&game_rooms_enabled=true&game_title=Chatting.&game_url=http%3A%2F%2Fwww.kongregate.com%2Fgames%2Fskyboy%2Fsky-splorer_preview&initial_username=skyb0v&room_id=35141&room_name=Feed+the+Ducks&show_beacon=false&stat_grl=10000&stat_irl=30000&uid=503322_8abce8834e96eb5e79d8a519a5fecd13d5e1097e";
return data;
@skyboy
skyboy / gist:260264
Created December 19, 2009 22:35
A "That's what she said." button and more
// original
javascript:$('header').innerHTML+='<div class="skyBox"><div id="skyTitle">[Buttons & Notes]</div><style>#skyTitle{background:#808080 none repeat scroll 0 0; margin: 0;position:absolute; top: 0; left: 0; width: 100%;}.skyBox{background:black none repeat scroll 0 0; border:1px solid black; cursor:default;font-size:13px; line-height:20px; margin:0; padding: 5px;position:fixed; z-index:199; top: 90px; left: 0px;}._SKY-InfoMessage{font-weight:bold;background-color:#EFEFEF;border: 1px solid #808080;}</style><p><br><textarea rows="5" cols="32" id="console2"></textarea><br><input type="button" onclick="sendChatMessage($(\'console2\').value)" value="Send"/><input type="button" onclick="sheSaid()" value="She Said"/><input type="button" onclick="Clear()" value="Clear"/></p></div>';function Clear() {holodeck.activeDialogue().clear();}function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, "\\\\\\\\");dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.
javascript:holodeck={roomGroups:function(data){document.open();for(var i in data){try{var a=data[i], d=a.rooms;document.write("<br><h2>"+a.name+"</h2><br>");for(var b in d){try{var c=d[b];document.write(c.name+" [ <b>"+c.owner+"</b> ] ("+c.registered_user_count+" users, "+(c.total_user_count-c.registered_user_count)+"guests): <input value='?room_id="+c.id+"' onclick='this.select()'><br/>")}catch(e){throw e;}}}catch(a){document.write(a);break;}}document.close();}};eval(document.body.textContent);void(0)
/* Go to http://www.kongregate.com/rooms.js?game_id=6829 then paste the above script into the url bar and press enter */