Skip to content

Instantly share code, notes, and snippets.

View xbony2's full-sized avatar
🤔
I'm around, sometimes

Eric Schneider xbony2

🤔
I'm around, sometimes
View GitHub Profile
Recreate https://www.curseforge.com/minecraft/mc-mods/netherbound
Port https://www.curseforge.com/minecraft/mc-mods/pillagers
Port https://www.curseforge.com/minecraft/mc-mods/meanmobs
Port https://www.curseforge.com/minecraft/mc-mods/ghostly
Port https://www.curseforge.com/minecraft/mc-mods/augmented-interactions
Port https://www.curseforge.com/minecraft/mc-mods/creepers-fire
Recreate https://www.curseforge.com/minecraft/mc-mods/insomnia
Recreate https://www.curseforge.com/minecraft/mc-mods/insta-boom
require "mediawiki-butt"
butt = MediaWiki::Butt.new("https://ftb.gamepedia.com/api.php", assertion: :bot)
puts "Enter your password"
STDOUT.flush
butt.login("ESAEBSAD@ESAEBSAD-bot", gets.chomp)
butt.get_category_members("Tilesheets", "file").each do |tilesheet|
match = /(File:Tilesheet [A-Z\d-]+ \d\d)\.png/.match(tilesheet)
AmbientSounds_v3.0.19_mc1.15.2.jar
AnimalCrops-1.15.2-0.5.0.jar
AppleSkin-mc1.15.2-forge-1.0.13.jar
BiomesOPlenty-1.15.2-10.0.0.360-universal.jar
Blur-1.1.0-1.jar
BonsaiTrees-2.1.2.6.jar
Bookshelf-1.15.2-5.5.34.jar
Botania-r1.15-384.jar
BotanyPots-1.15.2-2.0.17.jar
Clumps-5.0.2.jar
@xbony2
xbony2 / main.rb
Created June 9, 2019 13:34
Coabot
##
# It's like a coach, but it's a bot
# @author Eric Schenider
require 'yaml'
puts "Thank you for using Coabot. But first, an inspiring quote from a coach..."
puts
quotes = ["Work harder!", "Act like you really want to be on the team!", "Act like you're serious!", "RUN FASTER!", "MOVE IT!", "If you're going to go that slow anyway, what's the point in running?"]
## Created by Eric Schneider
def makeTriangle(rows)
rows.times do |row| # Note this starts at 0
print " " * (rows - row - 1)
makeRow(row + 1).each do |n|
print "#{n} "
end
puts
class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
Main d= new Main();
System.out.println(d.getMonth());
d.setMonth(6);
System.out.println(d.getMonth());
}
class Main {
public static void main(String[] args) {
System.out.println(sin(0.1, 10));
}
public static int factorial(int n){
if(n <= 0)
return 1;
return factorial(n - 1) * n;
arr = [7600, 5900, 1400]
seats = 37
total = 0.0
arr.each { |e| total += e }
puts "Total: #{total}"
s_d = total / seats
arr = [7600, 5900, 1400]
seats = 36
total = 0.0
arr.each { |e| total += e }
puts "Total: #{total}"
s_d = total / seats
# Used to crawl Minecraft's index files and generate a list of languages that it supports.
file = "1.12.json" # Feel free to change this to whatever
languages = []
File.open(file, "r").each do |line|
test_match = line.match(/"minecraft\/lang\/(.+)\.lang": {/)
next if test_match.nil?
languages << test_match[1]
end