Skip to content

Instantly share code, notes, and snippets.

View Ribesg's full-sized avatar
🇫🇷

Gael Ribes Ribesg

🇫🇷
View GitHub Profile
public static Transaction deserialize(LinkedHashMap section) {
if(!section.containsKey("sender") ||
!section.containsKey("itemstack") ||
!section.containsKey("timestamp") ||
!section.containsKey("lifetime")) {
return null;
}
final String sender = section.getString("sender");
final ItemStack is = section.getItemStack("itemstack");
Java conception problem:
Context: a Java IRC API
Problem: Callback*
*Term may not be correct, name propositions encouraged
When an IRC Packet is sent by the API user, he can choose to have some response handling.
The user specifies which IRC packets he would like his Callback to listen.
server {
server_name javadocs.ribesg.fr;
location / {
proxy_pass http://127.0.0.1:9999;
}
}
#####################################################################
## Config file for NPermissions plugin GROUPS ##
## If you don't understand something, please ask on dev.bukkit.org ##
## Ribesg ##
#####################################################################
# The following group, 'user', also defines the
# following permissions:
# - group.user - For members of this group AND members of subgroups
# - maingroup.user - For players for whom this group is the main group (unique per player)
#####################################################################
## Config file for NPermissions plugin ##
## If you don't understand something, please ask on dev.bukkit.org ##
## Ribesg ##
#####################################################################
defaultGroup: user
/***************************************************************************
* 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: