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
@xbony2
xbony2 / modlist
Last active August 29, 2015 14:07
Bronze Lord Modpack Modlist
Forge
Industrialcraft 2
Immibis Core
Copycore + Advanced Health Options
Turbo
CodeChickenCore + NEI
Waila
Baubles
Zombie Awareness (Maybe)
<!--
This is experimental just to see what it looks like. I'm probably not going to make a compiler :P
-->
<import type="static">java.lang.System.out</import>
<class name="HelloWorld">
<method name="main" arguments="String[] args">
<call name="out.println" args="Hello World!"/>
</method>
</class>
[11:50:13] [main/INFO] [GradleStart]: Extra: []
[11:50:13] [main/INFO] [GradleStart]: Found and added coremod: ic2.core.coremod.IC2core
[11:50:13] [main/INFO] [GradleStart]: Found and added coremod: codechicken.core.launch.CodeChickenCorePlugin
[11:50:13] [main/INFO] [GradleStart]: Found and added coremod: codechicken.nei.asm.NEICorePlugin
[11:50:13] [main/INFO] [GradleStart]: Found and added coremod: li.cil.oc.common.launch.TransformerLoader
[11:50:13] [main/INFO] [GradleStart]: Found and added coremod: thaumcraft.codechicken.core.launch.DepLoader
[11:50:13] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, /Users/xbony2/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
[11:50:13] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:50:13] [main/I
//This class is a stub, obviously.
TileEntityRangeTrigger trigger;
private boolean checked;
@Override
public boolean mousePressed(Minecraft minecraft, int i, int j) {
if (super.mousePressed(minecraft, i, j)) {
checked = !checked;
int value = checked ? -2 : -1;
trigger.setInvertRedstone(checked);

Stuff that is planned for Java 9:

  • Project Jigsaw: a Java Module System
  • Money Currency API
  • JSON API
  • HTTP 2 Client
  • Smart Compilation
  • Process API improvements
  • HTML 5 Javadocs and Unicode 7.0
  • JNI 2.0 (yes please)
require_relative 'lib/mediawiki-butt'
require 'open-uri'
butt = MediaWiki::Butt.new("http://habbo.gamepedia.com")
butt.login("ESAEBSAD", "-REDACTED-")
butt.get_category_members("Category:Missing badge image").each do |page|
text = butt.get_text(page)
id = text.match(/id=(.+)\}\}/)[0].delete("id=").delete("}}")
begin
require_relative 'lib/mediawiki-butt'
require 'open-uri'
f = File.new("Documents/domains.txt", "r").read.chomp.each_line do |url|
butt = MediaWiki::Butt.new(url.chomp)
butt.login("xbony2", "-REDACTED-")
if butt.get_extensions.include? "Semantic MediaWiki"
if butt.get_text("User:Xbony2/common.css").nil?
butt.create_page("User:Xbony2/common.css", "/* Hides \"This page supports semantic in-text annotations\" message */\n#smw-form-editpage-help {\n display: none;\n}\n", "Automated task: contact [[User:Xbony2]] with any issues.")
end
(*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
# Maps Minecraft language names to MediaWiki languages.
# Simple format:
# "mc-language" [as in the file name] => "lang"
# or
# "mc-language" => {"lang1", "lang2"}
#
# Created by Xbony2
languages = {
"af_ZA" => "af",
"ar_SA" => "ar",
require "mediawiki-butt"
butt = MediaWiki::Butt.new("http://habbo.gamepedia.com")
butt.login("ESAEBSAD", "-REDACTED-")
butt.get_category_members("Category:Has furni image", 5000).each do |page|
page = page.tr(":", "")
big_file = butt.get_text("File:#{page}.png")
if big_file != nil && big_file != "{{Furniture Image}}"