Skip to content

Instantly share code, notes, and snippets.

View volgar1x's full-sized avatar

Antoine Chauvin volgar1x

View GitHub Profile
{% 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 %}
{% extends "::base.html.twig" %}
{% block title %}
{{ 'pages.admin_index.title'|trans }}
{% endblock %}
{% block content %}
<table>
<thead>
<tr>
<div class="content">
<div class="title">
{% block content_title %}
{% endblock %}
</div>
<div class="body">
{% block content_body %}
{% endblock %}
</div>
<!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 %}
@volgar1x
volgar1x / gist:3218021
Created July 31, 2012 15:56
essai d'une commande en Ruby
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
@volgar1x
volgar1x / gist:3217932
Created July 31, 2012 15:42
essai d'une action d'objet utilisable en Ruby
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")