This file contains hidden or 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
services: | |
moviebundle.form.movietype: | |
class: Acme\MovieBundle\Form\MovieType | |
arguments: | |
- @doctrine.orm.entity_manager |
This file contains hidden or 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
<h3>Popular genres</h3> | |
<ul> | |
{% for genre in popularGenres %} | |
{% set genreObj = genre[0] %} | |
<li>{{ genreObj.name }} ({{ genre.movie_count }} movies)</li> | |
{% endfor %} | |
</ul> |
This file contains hidden or 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
{"1000_words":{"title":"1000 Words","artist":["Hiroko Kokubu"],"album":"Final Fantasy X-2: Piano Collections"},"akagi_party":{"title":"Akagi Party","artist":["Masahiro Sayama"],"album":"Final Fantasy X-2: Piano Collections"},"calm_lands":{"title":"Calm Lands","artist":["Hiroko Kokubu"],"album":"Final Fantasy X-2: Piano Collections"},"creature_creation":{"title":"Creature Creation","artist":["Masahiro Sayama"],"album":"Final Fantasy X-2: Piano Collections"},"demise":{"title":"Demise","artist":["Febian Reza Pane"],"album":"Final Fantasy X-2: Piano Collections"},"epilogue_reunion":{"title":"Epilogue ~Reunion~","artist":["Shinko Ogata"],"album":"Final Fantasy X-2: Piano Collections"},"eternity_memories_of_light_waves":{"title":"Eternity ~Memories of Light & waves~","artist":["Hiroko Kokubu"],"album":"Final Fantasy X-2: Piano Collections"},"nightmare_in_a_cave":{"title":"Nightmare in a Cave","artist":["Shinko Ogata"],"album":"Final Fantasy X-2: Piano Collections"},"paines_theme":{"title":"Paine's Theme","artist":[ |
This file contains hidden or 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
var fs = require('fs'), | |
mmd = require('musicmetadata'); | |
// Parser | |
var walk = function(dir, done) { | |
var results = []; | |
fs.readdir(dir, function(err, list) { | |
if (err) return done(err); | |
var i = 0; | |
(function next() { |
This file contains hidden or 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
Printer = (info) -> | |
@name = info.name | |
Printer.prototype.print = () -> console.log(@name) | |
# Result | |
Printer = function(info) { | |
return this.name = info.name; | |
}; |
This file contains hidden or 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 Printer | |
constructor: (info) -> | |
@name = info.name | |
print: () -> | |
console.log(@name) | |
printer = new Printer(name: 'Nico') | |
# Result: | |
var Printer, printer; |
This file contains hidden or 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
splitArray = (array, chunkSize) -> | |
result = [] | |
while (array.length) | |
result.push(array.splice(0, chunkSize)) | |
result |
This file contains hidden or 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
EventEmitter = () -> | |
EventEmitter.prototype = | |
# Add a new listener for an event | |
bind: (event, func) -> | |
this._events = this._events or {} | |
this._events[event] = this._events[event] or [] | |
this._events[event].push(func) | |
# Remove a listener for an event | |
unbind: (event, func) -> |
This file contains hidden or 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
#include <stdlib.h> | |
#include <GL/glew.h> | |
#ifdef __APPLE__ | |
# include <GLUT/glut.h> | |
#else | |
# include <GL/glut.h> | |
#endif | |
#include <math.h> | |
#include <stdio.h> | |
#include "util.h" |
This file contains hidden or 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
#include "Engine.h" | |
/* #include <windows.h> // For the WaitMessage() function. */ | |
/** Default constructor. **/ | |
CEngine::Cengine() | |
{ | |
m_lLastTick = 0; | |
m_iWidth = 800; | |
m_iHeight = 600; | |
m_czTitle = 0; |