Skip to content

Instantly share code, notes, and snippets.

View Ribesg's full-sized avatar
🇫🇷

Gael Ribes Ribesg

🇫🇷
View GitHub Profile
/***************************************************************************
* Project file: NPlugins - NCore - Filter.java *
* Full Class name: fr.ribesg.bukkit.ncore.common.logging.Filter *
* *
* Copyright (c) 2012-2014 Ribesg - www.ribesg.fr *
* This file is under GPLv3 -> http://www.gnu.org/licenses/gpl-3.0.txt *
* Please contact me at ribesg[at]yahoo.fr if you improve this file! *
***************************************************************************/
package fr.ribesg.bukkit.ncore.common.logging;
#####################################################################
## Config file for NPermissions plugin GROUPS ##
## If you don't understand something, please ask on dev.bukkit.org ##
## Ribesg ##
#####################################################################
# The group 'user', also defines the following permissions:
# - maingroup.user - For players for whom this group is the main group (unique per player)
# - group.user - For members of this group AND members of subgroups
# Members of this group also have the following permissions:
automos:
priority: 0
flags:
- ENDERMANGRIEF
- EXPLOSION_BLOCK
- EXPLOSION_ITEM
- FIRE
- PVP
attributes:
EXPLOSION_BLOCK_DROP: 100
public
class
IAmDoingItWrong
{
public
static
void
main
(
String

Keybase proof

I hereby claim:

  • I am Ribesg on github.
  • I am ribesg (https://keybase.io/ribesg) on keybase.
  • I have a public key whose fingerprint is 85F1 8AD6 F9F7 5AA6 09AF D81C 75A4 0E53 375E 1F43

To claim this, I am signing this object:

@Ribesg
Ribesg / doge.kt
Last active August 29, 2015 14:22
import kotlin.platform.platformStatic as such
such fun wow() = println("very doge")
package com.github.bobacadodl.AterHelp;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
2013-02-17 12:27:12 [INFO] [Buildcraft] Starting BuildCraft 3.4.3 (:16)
2013-02-17 12:27:12 [INFO] [Buildcraft] Copyright (c) SpaceToad, 2011
2013-02-17 12:27:12 [INFO] [Buildcraft] http://www.mod-buildcraft.com
2013-02-17 12:27:12 [INFO] [Buildcraft] Beginning version check
Appuyez sur une touche pour continuer...
2013-02-17 12:36:43 [INFO] [ForgeModLoader] Forge Mod Loader version 4.7.32.553 for Minecraft 1.4.7 loading
2013-02-17 12:36:44 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-02-17 12:36:44 [INFO] [ForgeModLoader] MinecraftForge v6.6.1.524 Initialized
2013-02-17 12:36:44 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-02-17 12:36:44 [INFO] [ForgeModLoader] Reading custom logging properties from D:\Users\Ribesg\Documents\Minecraft\Serveur MCPC\config\logging.properties
2013-02-17 12:36:44[ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-02-17 12:36:44 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer, codechicken.core.asm.CodeChickenCoreModContainer, codechicken.nei.asm.NEIModContainer]
2013-02-17 12:36:44 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2013-02-17 12:36:44 [FINE]
// The call is always made with an existing file
public static HashMap<Character, Integer> countCharactersInFile(Path pathToFile) {
final HashMap<Character, Integer> characterMap = new HashMap<Character, Integer>();
try (BufferedReader reader = Files.newBufferedReader(pathToFile, Charset.defaultCharset())) {
char c;
while (reader.ready()) {
c = (char) reader.read();
if (characterMap.containsKey(c)) {
characterMap.put(c, characterMap.get(c) + 1);
} else {