This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], | |
[cid[4][1],1,"ONE",0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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="http://res.cloudinary.com/treborx555/image/upload/v1471340423/rod_dkey85.png"></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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var player = { | |
level: 1, | |
gold: 0, | |
experience: 0, | |
summons: 30, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
import net.minecraft.world.biome.Biome; |
I had some issues installing new java so here's a small guide!
- Go to this link and install the java 16 you want: https://adoptopenjdk.net/
They have a nice installation executable that auto sets your java home and other stuff.
- Copy what fabric example project did here: https://github.com/FabricMC/fabric-example-mod/commit/50f0be767c69f3ac49c3a2c4c8669354a39fd9b3
Remember to copy what the commit did for: build.gradle, fabric.mod.json, mixins.json, gradle-wrapper properties file, but update the gradle.properties with new versions from here: https://fabricmc.net/versions.html