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
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 |
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
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) |
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
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 |
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
## | |
# 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?"] |
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
## 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 |
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
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()); | |
} |
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
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; |
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
arr = [7600, 5900, 1400] | |
seats = 37 | |
total = 0.0 | |
arr.each { |e| total += e } | |
puts "Total: #{total}" | |
s_d = total / seats |
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
arr = [7600, 5900, 1400] | |
seats = 36 | |
total = 0.0 | |
arr.each { |e| total += e } | |
puts "Total: #{total}" | |
s_d = total / seats |
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
# 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 |
NewerOlder