Skip to content

Instantly share code, notes, and snippets.

-- this program is crude and ugly sometimes ugly. But it's tutorial/demo and not good programming practices tutorial
local args = {...}
side = args[1]
point_num = args[2]
if not point_num or point_num < 1 then
point_num = 8
end
package testmod;
import dan200.computercraft.api.lua.ILuaContext;
import dan200.computercraft.api.lua.LuaException;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.peripheral.IPeripheral;
public class TestPeripheral implements IPeripheral {
@Override
OpenEye has very basic API for querying daily stats (collected for all reports).
Note: results are updated and generated in real time, even though it looks like collection of static files
http://openeye.openmods.info/counters/dimension/[dimension].[type]
> returns allowed range of queries.
http://openeye.openmods.info/counters/[date]/[counter].[type]
> queries values of counter. Results will be returned in random order.
http://openeye.openmods.info/counters/[date]/[counter].[sort].[type]
@boq
boq / mods.csv
Created December 10, 2016 10:35
len id name
56 netminecraftscalarreplace_foot_undermod_replacefootunder Replace Foot Under
55 netminecraftscalarlevel_the_groundmod_levelthegroundsmp LevelTheGroundSMP
52 netminecraftscalarliquid_removermod_liquidremoversmp LiquidRemoverSMP
50 minefactoryreloadedcompatmagicalcropsstandardcrops MineFactoryReloaded Compatability: MagicalCrops (Standard)
50 netminecraftscalardestructorblockmod_destructorsmp mod_DestructorSMP
49 netminecraftscalarpickupwidelymod_pickupwidelysmp PickupWidelySMP
47 planetguy_hackedupnonportabletenminuterecipefix planetguy_HackedUpNonPortableTenMinuteRecipeFix
43 boatcraftcompatibilityforestrymaterialswood BoatCraft: Compatibility with Forestry woods
43 minefactoryreloadedcompatappliedenergistics MFR Compat: Applied Energistics
package com.example.examplemod;
import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
@Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION)
public class ExampleMod
{
at java.lang.System.exit(System.java:968)
at net.minecraftforge.srg2source.ast.SymbolRangeEmitter.log(SymbolRangeEmitter.java:436)
at net.minecraftforge.srg2source.ast.SymbolRangeEmitter.emitFieldRange(SymbolRangeEmitter.java:135)
at net.minecraftforge.srg2source.ast.SymbolReferenceWalker.visit(SymbolReferenceWalker.java:227)
at org.eclipse.jdt.core.dom.FieldDeclaration.accept0(FieldDeclaration.java:281)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at net.minecraftforge.srg2source.ast.SymbolReferenceWalker.walk(SymbolReferenceWalker.java:87)
at net.minecraftforge.srg2source.ast.SymbolReferenceWalker.visit(SymbolReferenceWalker.java:438)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:453)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
import java.util.Optional;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
We can't make this file beautiful and searchable because it's too large.
domain,path,variant,
advgenerators,generators_data_port,inventory,
advgenerators,generators_data_port,normal,
appliedenergistics2,models/block/crafting/crafting_accelerator/builtin,,
appliedenergistics2,models/blocks/spatial_pylon/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_16k/builtin,,
appliedenergistics2,models/block/crafting/crafting_unit/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_4k/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_1k/builtin,,
appliedenergistics2,models/block/crafting/crafting_monitor/builtin,,
@boq
boq / exc1
Created January 6, 2018 13:25
[14:19:17] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:94]: [LWJGL] KHR_debug message
[14:19:17] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:95]: ID: 65536
[14:19:18] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:120]: Source: API
[14:19:22] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:147]: Type: OTHER
[14:19:35] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:165]: Severity: MEDIUM
[14:19:36] [main/INFO] [STDERR]: [org.lwjgl.opengl.KHRDebugCallback$1:handleMessage:167]: Message: Framebuffer unsupported. Framebuffer object 1 is unsupported because the depth and stencil attachments are mismatched.
Thread [Client thread] (Suspended)
KHRDebugCallback$1.handleMessage(int, int, int, int, String) line: 149
EXTFramebufferObject.nglFramebufferTexture2DEXT(int, int, int, int, int, long) line: not available [native method]
// Glyphs with blurry pixels in scale 1/100
// hShift = -ix0 * scale; vShift = -iy0 * scale;
// 'blurred' value contains counts for pixels values other than 0 and 255.
[00A6]BROKEN BAR: x0=50 y0=-100 x1=150 y=1800 glyph=103 blurred={128=2}
[00C5]LATIN CAPITAL LETTER A WITH RING ABOVE: x0=50 y0=0 x1=550 y=1900 glyph=127 blurred={128=6}
[00C8]LATIN CAPITAL LETTER E WITH GRAVE: x0=50 y0=0 x1=550 y=1900 glyph=130 blurred={128=4}
[00EC]LATIN SMALL LETTER I WITH GRAVE: x0=0 y0=0 x1=200 y=1700 glyph=166 blurred={128=10}
[00ED]LATIN SMALL LETTER I WITH ACUTE: x0=0 y0=0 x1=200 y=1700 glyph=167 blurred={128=10}
[00F9]LATIN SMALL LETTER U WITH GRAVE: x0=50 y0=0 x1=550 y=1700 glyph=179 blurred={128=4}