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
apply plugin: 'java' | |
//this is the same ad Maven groupID | |
//usually it refers to domain name you own. If your domain is tutorial.bukkit.com then your droupID is com.bukkit.tutorial | |
group = 'com.tutorial' | |
//the same as Maven artifactID. This will be used as base for jar name. Usually the same as plugin name | |
archivesBaseName = 'Tutorial' | |
//Plugin version. "-SNAPSHOT" at the end is reserved for development versions. | |
version = '1.0-SNAPSHOT' |
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
package dbg; | |
import it.unimi.dsi.fastutil.ints.IntArrayList; | |
import it.unimi.dsi.fastutil.ints.IntList; | |
import it.unimi.dsi.fastutil.longs.Long2ObjectMap; | |
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.multiplayer.ChunkProviderClient; | |
import net.minecraft.client.multiplayer.WorldClient; | |
import net.minecraft.entity.player.EntityPlayer; |
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
#!/bin/bash | |
mkdir ~/radio || true | |
#change to other online radio? | |
RADIO_NAME=radiozet | |
NAME=~/radio/$RADIO_NAME-$(date).mp3 | |
LINK_TO_RADIO=http://radiozetmp3-07.eurozet.pl:8400/ | |
mplayer $LINK_TO_RADIO -dumpstream -dumpfile "$NAME" -vc dummy -vo null & | |
sleep 2 | |
mplayer -vo null "$NAME" |
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
typedef struct { | |
uint8_t taskStatus = 0; | |
uint16_t R_SP; | |
} Regs; | |
const size_t MAX_TASKS = 2; | |
Regs tasks[MAX_TASKS]; | |
uint8_t currentTask = 0; | |
void setup() { |
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
import net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension | |
import net.minecraftforge.gradle.user.patcherUser.forge.ForgePlugin | |
import org.gradle.api.JavaVersion | |
import org.gradle.api.plugins.JavaPluginConvention | |
import org.gradle.language.jvm.tasks.ProcessResources | |
import org.gradle.script.lang.kotlin.* | |
// Gradle repositories and dependencies | |
buildscript { | |
repositories { |
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
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
import net.minecraftforge.gradle.user.ReobfMappingType | |
import net.minecraftforge.gradle.user.ReobfTaskFactory | |
import net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension | |
import net.minecraftforge.gradle.user.patcherUser.forge.ForgePlugin | |
import nl.javadude.gradle.plugins.license.LicenseExtension | |
import nl.javadude.gradle.plugins.license.LicensePlugin | |
import org.ajoberstar.grgit.Grgit | |
import org.ajoberstar.grgit.operation.DescribeOp |
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
/* | |
* This file is part of Cubic Chunks Mod, licensed under the MIT License (MIT). | |
* | |
* Copyright (c) 2015 contributors | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
package cubicchunks.worldgen.gui; | |
import com.google.common.base.Converter; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.function.DoubleUnaryOperator; | |
import javax.annotation.ParametersAreNonnullByDefault; |
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
#!/usr/bin/env python | |
import errno | |
import os | |
import sys | |
from gi.repository import Gio | |
os.environ["DRI_PRIME"] = "1" | |
arg, *rest = sys.argv[1:] | |
if not os.path.isfile(arg): |
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
package DEBUG; | |
import static org.apache.commons.io.FileUtils.listFiles; | |
import static org.lwjgl.input.Keyboard.KEY_D; | |
import static org.lwjgl.input.Keyboard.KEY_LCONTROL; | |
import static org.lwjgl.input.Keyboard.KEY_RCONTROL; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | |
import net.minecraftforge.fml.common.gameevent.TickEvent; |
OlderNewer