Skip to content

Instantly share code, notes, and snippets.

View perky's full-sized avatar

Luke perky

View GitHub Profile
@perky
perky / BTF Winner
Created September 1, 2014 17:05
Beat the Frog Emails.
<p>
Hi <%= @user.stage_name %>,
</p>
<p>
Congratulations, you beat the frog on <%= @event_date %> at Frog and Bucket <%= @event_city %>. So what's next? You can now book a couple of 8 minute spots, that's 8 uninterrupted minutes on stage at the start of the show. To book simply login to the Beat The Frog website and you'll see a new button appear to book an 8 spot. <%= link_to "Book now", root_url %>.
</p>
<p>
<a href="<%= @event_url %>">Link to event.</a>
</p>
<p>
import processing.video.*;
import oscP5.*;
class Preset
{
public void activate(PImage src, PImage dst) {}
}
Capture video;
//Movie video;
RewriteEngine on
RewriteRule ^lukeperkin$ lukeperkin.html
@perky
perky / MindCrack pack + MineChem
Last active December 10, 2015 10:09
OreDictionary Names: Direworlf20 pack + MineChem
100kEUStore
10kCoolantStore
10kEUStore
10kkEUPack
10kkEUStore
180kCoolantStore
1kkEUStore
300kEUPack
30kCoolantStore
360kCoolantStore
@perky
perky / gist:4413516
Last active March 16, 2019 22:18
Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.remove(Unknown Source) Line 9: potionKey.remove();
private void cureAllPotions(World world, EntityPlayer entityPlayer) {
List<PotionEffect> activePotions = new ArrayList(entityPlayer.getActivePotionEffects());
for(PotionEffect potionEffect : activePotions) {
entityPlayer.removePotionEffect(potionEffect.getPotionID());
}
}
public static String getLocalString(String key) {
LanguageRegistry lr = LanguageRegistry.instance();
String localString = lr.getStringLocalization(key);
if(localString.equals("")) {
localString = lr.getStringLocalization(key, "en_GB");
}
return localString;
}
public void updateArm(TileEntitySynthesis synthesis) {
float horizontalTimer;
float verticalTimer;
float newX;
float newY;
animationTimer += 0.1F;
//ARM UP
if(animationTimer > 0.0F && animationTimer <= 10.0F) {
verticalTimer = animationTimer;
newY = MinechemHelper.translateValue(verticalTimer, 0.0F, 10.0F, 13, 11);
package ljdp.minechem.client;
import ljdp.minechem.common.ModMinechem;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.FMLClientHandler;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.item.ItemStack;
package ljdp.minechem.client;
import ljdp.minechem.common.ModMinechem;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.FMLClientHandler;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.item.ItemStack;
package ljdp.minechem.client;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.registry.TickRegistry;
import net.minecraft.world.World;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.client.MinecraftForgeClient;