This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "IC Script Hub Installer v 1.0.1" | |
echo "" | |
if [ -d "scripthub" ]; then | |
echo "Updating Script Hub" | |
git -C scripthub pull | |
else | |
echo "Getting Script Hub" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
=for doc | |
Script to generate expand a list of commands with placeholders. | |
Output is written to "gentmp.cmd". Directly calling the commands from this script doesn't work with SD. | |
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package info.loenwind.foo; | |
import java.util.Random; | |
public class TitleGen { | |
// When a possessed pair of jeans begins to kill the staff of a trendy clothing store, it is up to Libby, an idealistic young salesclerk, to stop its bloody | |
// rampage. | |
static final String sentence = "When a %1$s %2$s begins to %3$s the %4$s of a %5$s %6$s, it is up to %7$s, a %8$s %9$s %10$s, to %11$s its %12$s %13$s."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraftforge.fluids.capability; | |
import net.minecraftforge.fluids.*; | |
import javax.annotation.Nonnull; | |
import javax.annotation.Nullable; | |
public interface IFluidHandler | |
{ | |
int getSlots(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
our $mapping = {}; | |
while (my $line = <DATA>) { | |
my ($searge, $name, undef) = split /,/, $line; | |
if (defined $searge and defined $name) { | |
$mapping->{$searge} = $name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.ArrayList; | |
import java.util.ConcurrentModificationException; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Set; | |
public class ConcurrentIterator<E> implements Iterator<E> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use File::Find; | |
our $DOMAIN = 'enderio:'; | |
our $dryrun = 1; | |
unless (@ARGV) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L1 | |
LINENUMBER 28 L1 | |
LDC "UNKNOWN" | |
ASTORE 2 | |
L2 | |
LINENUMBER 30 L2 | |
ALOAD 1: computer | |
IFNULL L3 | |
L4 | |
LINENUMBER 31 L4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tmp; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.util.EnumFacing; | |
import net.minecraft.util.EnumHand; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.world.IBlockAccess; |