Skip to content

Instantly share code, notes, and snippets.

View Sephi-Chan's full-sized avatar

Romain Tribes Sephi-Chan

  • Nîmes, France
View GitHub Profile
diff --git a/activesupport/lib/active_support/core_ext/array/grouping.rb b/activesupport/lib/active_support/core_ext/array/grouping.rb
index 4cd9bfa..b6ccef5 100644
--- a/activesupport/lib/active_support/core_ext/array/grouping.rb
+++ b/activesupport/lib/active_support/core_ext/array/grouping.rb
@@ -97,4 +97,16 @@ class Array
results
end
end
+
+
@Sephi-Chan
Sephi-Chan / response.js
Created June 4, 2011 15:32
Youtube video response
{
"version": "1.0",
"encoding": "UTF-8",
"entry": {
"xmlns": "http://www.w3.org/2005/Atom",
"xmlns$media": "http://search.yahoo.com/mrss/",
"xmlns$gd": "http://schemas.google.com/g/2005",
"xmlns$yt": "http://gdata.youtube.com/schemas/2007",
"gd$etag": "W/\"DEMFR347eCp7ImA9WhZVFkQ.\"",
"id": {
Training Load (0.2ms) SELECT `trainings`.* FROM `trainings` WHERE ((begin_at <= '2011-06-15 09:00:00' AND '2011-06-15 09:00:00' <= finish_at)
OR (begin_at <= '2011-06-15 11:00:00' AND '2011-06-15 11:00:00' <= finish_at))
Training Load (0.2ms) SELECT `trainings`.* FROM `trainings` WHERE `trainings`.`trainer_id` = 3
ig
.module('game.entities.levelchange')
.requires('impact.entity')
.defines ->
window.EntityLevelchange = ig.Entity.extend
_wmDrawBox: true
_wmBoxColor: 'rgba(0, 0, 255, 0.7)'
size:
x: 8
ig
.module('game.main')
.requires(
'impact.game'
'impact.font'
'game.menu'
'game.levels.test'
'game.entities.player'
'game.entities.levelchange'
'game.entities.trigger'
ig
.module('game.main')
.requires(
'impact.game'
'impact.font'
'game.menu'
'game.levels.test'
'game.entities.player'
'game.entities.levelchange'
'game.entities.trigger'
ig
.module('game.main')
.requires(
'impact.game'
'impact.font'
)
.defines ->
mockGame = ig.Game.extend
computeTexts: (texts, parameters)->
compiledText = {}
jQuery ->
window.game = new Game
players: window.players
territories: window.territories
mapView = new MapView(model: game)
$("#application").append(mapView.render().el)
class window.MapTerritoryView extends Backbone.View
model: Territory
tagName: "area"
events:
"click": "handleClick"
handleClick: ->
console.log "Click on", @model
class window.MapBadgeView extends Backbone.View
model: Territory
tagName: "li"
initialize: ->
@model.bind("change", @render)
render: ->
@