Skip to content

Instantly share code, notes, and snippets.

Luke perky

View GitHub Profile
perky / BindComponentAttribute.cs
Created Apr 16, 2019
A little script for Unity that helps binding references to other components in the scene.
View BindComponentAttribute.cs
using UnityEngine;
using System.Linq;
using System;
using System.Reflection;
public class BindComponent : PropertyAttribute
public enum FindMode
InSelf, // Find the component on the calling GameObject.
View LobbyMenu.cs
using UnityEngine;
using Bolt;
public class LobbyMenu : GlobalEventListener
[SerializeField] string _gameplayScene;
[SerializeField] ushort _port = 27000;
[SerializeField] ushort _broadcastPort = 27001;
bool _bClientLANInit;
View gist:873e01daf635007870ee3535d862cee7

Useful Unreal Engine Stuff


command description
FREEZERENDERING This commands freezes the culling state and lets you fly around to see what is actually being rendered.
stat initviews stats relevant to culling.


perky / BTF Winner
Created Sep 1, 2014
Beat the Frog Emails.
View BTF Winner
Hi <%= @user.stage_name %>,
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 %>.
<a href="<%= @event_url %>">Link to event.</a>
View gist:6041837
import oscP5.*;
class Preset
public void activate(PImage src, PImage dst) {}
Capture video;
//Movie video;
View gist:4420971
RewriteEngine on
RewriteRule ^lukeperkin$ lukeperkin.html
perky / MindCrack pack + MineChem
Last active Dec 10, 2015
OreDictionary Names: Direworlf20 pack + MineChem
View MindCrack pack + MineChem
perky / gist:4413516
Last active Mar 16, 2019
Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.remove(Unknown Source) Line 9: potionKey.remove();
View gist:4413516
private void cureAllPotions(World world, EntityPlayer entityPlayer) {
List<PotionEffect> activePotions = new ArrayList(entityPlayer.getActivePotionEffects());
for(PotionEffect potionEffect : activePotions) {
View GetLocalString
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;
View gist:4346777
public void updateArm(TileEntitySynthesis synthesis) {
float horizontalTimer;
float verticalTimer;
float newX;
float newY;
animationTimer += 0.1F;
if(animationTimer > 0.0F && animationTimer <= 10.0F) {
verticalTimer = animationTimer;
newY = MinechemHelper.translateValue(verticalTimer, 0.0F, 10.0F, 13, 11);
You can’t perform that action at this time.