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 org.shivas.data.entity.ItemTemplate | |
import org.shivas.data.entity.ItemAction | |
import org.shivas.server.database.model.Player | |
import org.shivas.protocol.formatters.ItemGameMessageFormatter | |
class GiveItemAction < ItemAction | |
TYPE = 4 | |
def self.make(parameters, datas) | |
raw = parameters.get("item") |
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 org.shivas.server.core.commands.Command | |
import org.shivas.server.core.commands.types.PlayerType | |
import org.shivas.common.params.Conditions | |
import org.shivas.common.params.Types | |
class GiveKamasCommand < Command | |
def name | |
"give_kamas" | |
end | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>{{ server_name }} | {% block title %}{% endblock %}</title> | |
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}" /> | |
<link type="text/css" href="{{ asset('css/ui-lightness/jquery-ui-1.8.21.custom.css') }}" rel="stylesheet" /> | |
{% block stylesheets %}{% endblock %} |
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
<div class="content"> | |
<div class="title"> | |
{% block content_title %} | |
{% endblock %} | |
</div> | |
<div class="body"> | |
{% block content_body %} | |
{% endblock %} | |
</div> |
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
{% extends "::base.html.twig" %} | |
{% block title %} | |
{{ 'pages.admin_index.title'|trans }} | |
{% endblock %} | |
{% block content %} | |
<table> | |
<thead> | |
<tr> |
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
{% extends "::base.html.twig" %} | |
{% block title %} | |
Les news | |
{% endblock %} | |
{% block body %} | |
{% for news in news_list %} | |
{% embed "::content.html.twig" %} | |
{% block content_title news.title %} |
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 main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"strings" | |
) |
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
public static void println(String string, int radix) { | |
byte[] bytes = string.getBytes(); | |
for (byte b : bytes) { | |
System.out.print(Integer.toString(b, radix)); | |
} | |
System.out.println(); | |
} | |
public static void printlnBinary(String string) { | |
println(string, 2); |
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 org.shivas.server.database.models; | |
import org.javalite.activejdbc.Model; | |
import org.javalite.activejdbc.LazyList; | |
public class Account extends Model { | |
public String getName() { | |
return getString("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
package fr.blackrush.activejdbc; | |
import java.util.*; | |
public class App { | |
static String capitalize(String s) { | |
return Character.toUpperCase(s.charAt(0)) + s.substring(1); | |
} | |
static class Pair<T> { |
OlderNewer