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
val statsMatch = xml \ "stats" \ "match" \ "summ" \ "stat" | |
val playersStat = xml \ "stats" \ "match" \ "match_stats" \ "ms" |
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
class Player | |
include DataMapper::Resource | |
property :id, Integer, :key => true | |
property :name, String | |
property :hfr_name, String | |
property :last_statistics_id, Integer | |
has 1, :lastStatistics, 'Statistics', |
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
SELECT p.id, MAX(g.date) | |
FROM players p | |
INNER JOIN games g ON (g.player_id = p.id) | |
GROUP BY p.id |
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
game = Game.select{[ | |
count(:over, :* => true){}.as(nb_game), | |
sum({1 => 1}.case(0, :result_id)).as(nb_win), | |
sum(psr_gain).as(psr_gain), | |
sum(nb_death).as(nb_death), | |
sum(nb_hero_kill).as(nb_hero_kill), | |
sum(nb_hero_assist).as(nb_hero_assist), | |
sum(nb_first_kill).as(nb_first_kill), | |
sum(nb_kill_combo_2).as(nb_kill_combo_2), | |
sum(nb_kill_combo_3).as(nb_kill_combo_3), |
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
class User < ActiveRecord::Base | |
include ActiveModel::ForbiddenAttributesProtection | |
has_secure_password | |
has_many :topics, foreign_key: 'author_id' | |
def unread_topics | |
Topic |
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
Pendant une classe où l'on enseigne la morale et les bonnes manières, l'institutrice demande aux élèves: | |
- Michel, si tu étais en train de faire la cour à une jeune fille de bonne famille, | |
très bien éduquée pendant un dîner en tête à tête et que tu avais besoin d'aller | |
aux toilettes que dirais-tu? | |
- Attends-moi une seconde, je vais pisser un coup. | |
- Ça serait très grossier et très malpoli de ta part. Jean comment dirais-tu? |
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 controllers | |
import play.api.mvc.PathBindable | |
import play.api.Play | |
import play.api.libs.Files | |
import java.net.JarURLConnection | |
import Play.current | |
import java.io.File | |
import scalax.io.Resource | |
import com.google.common.cache.CacheBuilder |
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
<link rel="import" href="../ace-element/ace-element.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
{% block choice_widget %} | |
{% for child in form %} | |
{{ form_widget(child) }} | |
{% endfor %} | |
{% 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
<route id="entry_show" path="/fiche/{name}-{id}/{pagePrefix}{page}/{commentId}" methods="GET"> | |
<default key="_controller">AppBundle:Front/Entry:show</default> | |
<requirement key="id">\d+</requirement> | |
<requirement key="name">[a-z0-9-]+</requirement> | |
<requirement key="pagePrefix">page-</requirement> | |
<requirement key="page">\d+</requirement> | |
<requirement key="commentId">\d+</requirement> | |
<default key="pagePrefix">page-</default> | |
<default key="page">1</default> | |
<default key="commentId">0</default> |
OlderNewer