Skip to content

Instantly share code, notes, and snippets.

View jamierocks's full-sized avatar

Jamie jamierocks

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jamierocks on github.
  • I am jamierocks (https://keybase.io/jamierocks) on keybase.
  • I have a public key whose fingerprint is 1F90 8B72 99BF 0CFB 31E6 76E2 08C0 67AF 5B44 74B4

To claim this, I am signing this object:

var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
function cipher(input, shift) {
var result = '';
for (var i = 0; i < input.length; i++) {
var position = alphabet.indexOf(input[i].toUpperCase()) + Math.floor(shift);
if (position > 25) {
position -= 26;
}
class Block implements MetaOwner<Block> {
}

Keybase proof

I hereby claim:

  • I am jamierocks on github.
  • I am jamierocks (https://keybase.io/jamierocks) on keybase.
  • I have a public key whose fingerprint is C076 873C 4C34 3CBB 216E D420 27F6 918C 0D47 DF94

To claim this, I am signing this object:

@jamierocks
jamierocks / Dont-Want.md
Last active November 29, 2015 14:44
Steam keys I do not want. Comment if you have activated one.

Not Activated

None :(

Activated

Commander-Conquest-Of-The-Americans.txt

SOURCE: DLH.NET

@jamierocks
jamierocks / jenks.css
Created January 1, 2016 16:15 — forked from stephan-gh/jenks.css
Jenks - A simple and clean theme for the Jenkins continous integration server. (Demo: http://ci.minecrell.net)
/*
* Jenks - A simple and clean theme for the Jenkins continous integration server.
* Copyright (c) 2014, Minecrell <https://github.com/Minecrell>
* Licensed under the MIT License: http://opensource.org/licenses/MIT
*/
@import url(//fonts.googleapis.com/css?family=Open+Sans|Source+Code+Pro);
body, table, form, input, td, th, p, textarea, select {
font-family: 'Open Sans', sans-serif;
package uk.jamierocks.sponge.hack.scoreboard;
import uk.jamierocks.sponge.hack.util.Wrapper;
import com.google.common.collect.Sets;
import org.spongepowered.api.scoreboard.Score;
import org.spongepowered.api.scoreboard.Team;
import org.spongepowered.api.text.Text;
public class HackScore extends Wrapper<Score> {
@jamierocks
jamierocks / 1.java
Last active February 12, 2017 13:09
A block builder system for Minecraft Forge. Licensed MIT.
@SubscribeEvent
public static void registerBlocks(RegistryEvent.Register<Block> event) {
// tungsten
registerBlock(event.getRegistry(), UnnamedBlock.oreBuilder()
.identifier("tungsten_ore")
.drop(() -> tungsten, ItemDropBehaviour.Ore.of(1, 3))
.drop(ExpDropBehaviour.of(2, 5))
.build());
registerBlock(event.getRegistry(), UnnamedBlock.builder()
.identifier("tungsten_block")
/*
* This file is part of Lorenz, licensed under the MIT License (MIT).
*
* Copyright (c) Jamie Mansfield <https://www.jamierocks.uk/>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell