Skip to content

Instantly share code, notes, and snippets.

boolean sorted = false;
do {
TopologicalSort.DirectedGraph<IntegrationContainer> graph = new TopologicalSort.DirectedGraph<>();
for (IntegrationContainer container : integrationSets) {
graph.addNode(container);
}
try {
for (IntegrationContainer container : integrationSets) {
for (String after : container.sortAfter) {
IntegrationContainer other = IntegrationContainer.createdSets.get(after);
package powercrystals.minefactoryreloaded.api;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import java.io.File;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
0eNrtnU1v20gShv9KwOOsNGB/sNltYPY4c9/MbREItM04xOgLFJVdI/B/H1JybJnsEt9XNuyMnEsQS+KjUld1d3VVsfgtuZxvy3VdLZvk4ltSXa2Wm+Tiv9+STXWzLObda83tukwukqopF8kkWRaL7q+6qObJ3SSpltfl/5MLdTdhL9HAJTdFUx5cYvhL7N2nSVIum6qpyv0P2/1xO1tuF5dl3Ur+cOVmNS/q6bpYlvMWt15t2mtWy+6LWs5UqV+zSXLb/S/8mt11kvRIGiT5MZB5BDWrZTn9XzGPcdx3jk7jHItxsjF5MlIeieMgjhnD5BDGjo2O5zCSNAHT+ujgqBQDhVHQCRbtBBRv0hLJsLboBdCBUS9axnReLNZHjbEDTZJ2XWvq1Xx2WX4pvlaruvvcVVVfbatm1r53/XDx56reNLPBIvO1qpttMX9cZ/afmBbL2+ZLtbxJ9t+xaYpuIU27Pxbroi6a7quSf3dvbzdl+1XzVd2uQ029LfdXLMur7qs33Xep7p+6vD5cp6r2L53ffbqLjsbj1CyurraL7Xz3hZHhuB+MPErBJubUjionZ0G5AMImpx4VKJAcQR6dkkuXII9WkPXaczJe4wTj1RozXnvMdrVh119hhdKWXX8lUPbE45nea+PYWpfttHxd1fvhvPeN+lzHrnyZICA9S92oFa7W5XK2c7121jF5eKMui+vZplxuus9/Luabg/eeY7qd1zpqtriRKnswULslN0hW65+6msNxM71xG9NrYNWR/RPV8RujjnbDe6oO09ePU4J+TDqmH83px6gxoCKBegSYkjwzJiALtOSu+Q4MMvQN0vVfkHw0k42ohzUfR2qHWr17KniiHtJpVcM5LIxQju2Y5siGOeIkzVet//LdeGIW+OSt9tfMVttmvSUM7s/O2lZ1sbwpT7v2B9wVZY150o8VXBFzuPe1ur/50kx3YaLIIqvvUXZ8itgUx6YEVsFYT1A1THUEdXRTeFSOFcJHFhbMEoJluGBGEMzBgjFGk6N
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;
public class Time {
import flash.utils.getQualifiedClassName;
public static const TIME_IS_INTRINSIC:int = 0;
public static const TIME_IS_EXTRINSIC:int = 1;
private static const CLASSNAME:String = getQualifiedClassName(new Time());
protected var paused:Boolean;
protected var lastTime:uint;
protected var accumulated:uint;
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 */
@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.
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;
(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
@skyboy
skyboy / Kongregate Scripts.js
Created October 4, 2009 18:51
JavaScript urls for use on kongregate.com; for use on a page with chat unless otherwise stated
// fix the kong bot message bug
javascript:ChatDialogue.prototype.receivedPrivateMessage=holodeck.activeDialogue().receivedPrivateMessage=function (a){if(a.data.success){this.displayUnsanitizedMessage(a.data.from,this.sanitizeIncomingMessage(a.data.message)+'&nbsp; (<a class="reply_link" onclick="holodeck.insertPrivateMessagePrefixFor(\''+a.data.from+'\');return false;" href="#">reply</a>)',{"class":"whisper received_whisper"})}else{this.kongBotMessage(a.data.to+" can not be reached. Please try again later.")}};void(0)
// list your muted users
javascript:var a=0,b=holodeck._chat_window._mutings,s="",q=$("sky-muted"),p;for(p in b){s+=p+(++a%(12)?'  |  ':'<br/>')};a="<center>"+a+" users muted:<br/>"+s.substr(0,s.length-5)+"</center>";!q?$("global").innerHTML+=('<span id="sky-muted">'+a+"</span>"):q.innerHTML=a;void(0);
// clear active chat
javascript:holodeck.activeDialogue().clear();void(0);
// remove ads -- can be used on any page