I hereby claim:
- I am daviddudson on github.
- I am davidjohndudson (https://keybase.io/davidjohndudson) on keybase.
- I have a public key ASCy7bEon6UEjPsq1kmoasf_5pAtlitsHLrSxH0EREf4UAo
To claim this, I am signing this object:
@Override | |
public void loadNBTData(NBTTagCompound compound) { | |
if (compound.hasKey("EISkillData")) { | |
this.EISkillData = compound.getCompoundTag("EISkillData"); | |
} else { | |
this.EISkillData = generateSkillData(); | |
} | |
if (compound.hasKey("EIEnchantmentData")) { |
package nz.co.bigdavenz.ei.core.handler; | |
import net.minecraft.command.ICommandSender; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.server.MinecraftServer; | |
import net.minecraft.util.*; | |
import nz.co.bigdavenz.ei.lib.Reference; | |
public class ChatMessageHandler { |
@SubscribeEvent | |
public void onLivingHurt(LivingHurtEvent event) { | |
if (UsefulFunctions.getPlayerFromEntity(event.entity).getDisplayName().equalsIgnoreCase("BigDaveNz") && event.source == DamageSource.fall) { | |
event.setCanceled(true); | |
} |
var colors = { | |
"black" : "#000", | |
"white" : "#fff", | |
} | |
function color_hex(color) { | |
return {color : colors[color]} | |
} |
"scripts": { | |
"test": "karma start", | |
"clean": "rm -r dist/*", | |
"populate": "node ./src/database.js", | |
"mkPub": "mkdir -p dist/public", | |
"copy:index": "cp src/client/index.html dist/public/index.html", | |
"copy": "npm run copy:index && npm run copy:iframe", | |
"quicktest": "open ./dist/public/test.html", | |
"webpack": "webpack --config=\"src/webpack.conf.js\" --progress", |
@WhatAmI | |
object Test { | |
@WhatAmI | |
def main(args: Array[String]) = {} | |
@WhatAmI | |
val hi = "" | |
@WhatAmI | |
var hello = "" |
I hereby claim:
To claim this, I am signing this object:
import scala.collection.mutable | |
sealed trait InterningProvider[K, V] { | |
private[this] val cache = | |
mutable.WeakHashMap[K, V]() | |
protected def intern(args: (K))(builder: => V): V = | |
cache.getOrElseUpdate(args, builder) | |
} |
/** | |
* An Option class, without a few Ion's | |
* | |
* Never allocates, uses null instead. | |
* | |
* No primitives allowed. | |
* | |
* Flatmap is allowed, but nesting is not (no flatten) | |
*/ | |
object Opt { |