Skip to content

Instantly share code, notes, and snippets.


Robert Skalko RobertSkalko

View GitHub Profile
View world gen reg
package com.robertx22.mmorpg.registers.common;
import com.robertx22.db_lists.WorldProviders;
import com.robertx22.mmorpg.Ref;
import com.robertx22.world_gen.features.RandomSurfaceDecoration;
import com.robertx22.world_gen.features.RandomSurfaceEggFeature;
import com.robertx22.world_gen.features.RandomSurfaceTreasure;
import com.robertx22.world_gen.structures.TowerStructure;
import net.minecraft.util.registry.Registry;
View LootRPG.js
$(document).ready(function() {
var player = {
level: 1,
gold: 0,
experience: 0,
summons: 30,
RobertSkalko / index.html
Created Aug 16, 2016
Item generator prototype
View index.html
<div id="main">
<h4 style="color:white"class="m text-center">Random Item Generator!</h4>
<div class="inventory">
<p class="rarity text-center">Item</p>
<p style="text-align:center"><img class="pic center" src=""></p>
<p class="text-center"> <button id="gen" type="button" class="btn btn-md btn-success">Generate!</button></p>
<p class="text-center"> <button id="save" type="button" class="btn btn-md btn-warning">Save Item!</button></p>
View fcc1.js
function checkCashRegister(price, cash, cid) {
var change=(cash-price).toFixed(2);
// 0:available, 1:money type, 2:name, 3:chang given
var money=[
[cid[0][1] ,0.01,'PENNY',0],
[cid[1][1] ,0.05,"NICKEL",0],
[cid[2][1] ,0.10,'DIME',0],
[cid[3][1] ,0.25,'QUARTER',0],
View binarytrans.js
function binaryAgent(str) {
var firstslice = [];
var lastslice = [];
var indexof1 = [];
var lastnumber = [];
var splitstr = str.split(" ");
var finalstr = [];
var binary = [1,10,11,100,101,110,111,1000,1001,1010,1011,1100,1101,1110,1111,