Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hello! Nice to see you!

Anders Lindén AndersBillLinden

💭
Hello! Nice to see you!
  • Sandviken, Sweden
View GitHub Profile
View dataknas.txt
1.
jag sitter här och testar en applikation
den snackar massa sql av okänd version
nu är det inte långt kvar till jag kan söka sluten
kompetent vård på psykakuten
för jag har tappat tråden i våran databas
var tusan har jag lagt den det blir ju bara knas
@AndersBillLinden
AndersBillLinden / Setting up gimp on linux.md
Last active July 14, 2018 07:25
Building gimp on linux
View Setting up gimp on linux.md

Setting up gimp on linux

debootstrap

debootstrap --components=main,universe unstable gimpdev

mount

@AndersBillLinden
AndersBillLinden / Setting up gimp on windows.md
Last active June 5, 2018 22:25
Setting up gimp on windows
View Setting up gimp on windows.md

Building gimp on Windows

Following instructions on https://wiki.gimp.org/wiki/Hacking:Building/Windows on windows 10 pro, build 16299

  1. Surfing to www.msys2.org

  2. Downloading msys2-x86_64-20180531.exe by clicking link.

  3. Checking the sha-256 checksum of the file so its 3b233de38cb0393b40617654409369e025b5e6262d3ad60dbd6be33b4eeb8e7b

@AndersBillLinden
AndersBillLinden / Antipatterns.md
Last active October 15, 2017 20:39
Antipatterns
View Antipatterns.md

Patterns/Antipatterns

Patterns

KISS "Keep it simple stupid"

KISS is a pattern and the anti pattern of KISS is

  • Using algorithms that are more complex than needed.
  • Adding extra unneeded layers/folders.
View truth document, cgeo + Android Studio.md

#Research

This is a research document, used to settle a knowledge base to develop cgeo in Android Studio. It is written for those who come from eclipse, has no experience of Android Studio and has not been into the cgeo code base before.

##Packages structure

By selecting "Packages" in the dropdown in the "1: Project" tab, you will see that cgeo consists of 5 projects: cgeo-calendar, cgeo-contacts, main, mapswithme-api and showcaseview.

The list comes from the file settings.gradle.

View console message
[LWJGL] Initial mode: 1920 x 1080 x 32 @50Hz
[LWJGL] MemoryUtil Accessor: AccessorUnsafe
Thu Jul 14 20:36:39 CEST 2016 INFO:Use Java PNG Loader = true
View IronGolemFarmKit.java
package items;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.BlockDoor;
import net.minecraft.block.BlockTorch;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.passive.EntityVillager;
@AndersBillLinden
AndersBillLinden / foo.java
Created January 24, 2016 10:43
harvest block in PlayerInteractEvent
View foo.java
@SubscribeEvent
public boolean onPlayerInteract(PlayerInteractEvent event)
{
World world = event.world;
EntityPlayer player = event.entityPlayer;
ItemStack item = player.getCurrentEquippedItem();
if (item != null && item.getItem() == IronGolemFarmMod.redstonePickaxe &&
event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK)
View crash-2015-12-07_22.05.27-server.txt
---- Minecraft Crash Report ----
// Uh... Did I do that?
Time: 2015-12-07 22:05
Description: Ticking entity
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
at java.util.LinkedList$ListItr.remove(Unknown Source)
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:308)