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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<style> | |
html, body { | |
height: 100%; | |
overflow: hidden; | |
} |
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
<script>window.close();</script> |
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
var GameSchema = Schema({ | |
state: Object | |
}); | |
// Mongoose sørger for kun at sende ændrede felter til MongoDB, så man har så små payloads mellem app og db som muligt | |
// Men når man bruger generiske objekter, så er Mongoose dårlig til at opdage changes dybt i objekterne, så for at være | |
// sikker på at 'state' bliver taget med i update-statementet til MongoDB, så markerer vi 'state'-property'en som | |
// 'modified' hvilket forcer den med i update-statementet :-) | |
GameSchema.pre('save', function(next) { | |
this.markModified('state'); |
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.find({ /*...*/ }, function(err, game) { | |
Player.findById(game.playerA, function(err, player) { | |
// nu har du player | |
}); | |
}); |
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
var playerA = /*...*/; | |
var playerB = /*...*/; | |
var game = new Game(); | |
game.playerA = playerA._id; | |
game.playerB = playerB._id; | |
game.players = [playerA._id, playerB._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
var GameSchema = new Schema({ | |
name: String, | |
// one to one | |
playerA: { type: mongoose.Schema.Types.ObjectId, ref: 'Player' }, | |
playerB: { type: mongoose.Schema.Types.ObjectId, ref: 'Player' }, | |
// one to many | |
players: { type: [mongoose.Schema.Types.ObjectId], ref: 'Player' } | |
}); |
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
- How are you going to earn money / What is the revenue model? | |
- Who are the main competitors? | |
- How do we ensure that companies want to use our solution, rather than implementing their own? | |
- What is unique about your solution? | |
- Who is the primary segment? | |
- What are the market value? | |
- Where is the company in 5 years? | |
- What will be our primary focus onwards - consultancy or this? | |
- You write you have close to no establishing cost, which *do* you have, and how are they covered? | |
- You are both developers, is the team falling short on marketing and sales competences? |
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
Translation = TranslationService({ | |
headers: { | |
'Accept-Language': $routeParams.locale, | |
'Content-Language': $routeParams.locale | |
} | |
}); | |
$scope.translationsObject = Translation.queryObject({}); |
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
/* Oversigt over standard devices -> http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ */ | |
@media only screen and (max-width : 420px) { | |
#epay_content_bottom_content_center | |
{ | |
width:180px; | |
background:none; | |
} |
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
/* | |
* generated by Xtext | |
*/ | |
package mdd.project.generator | |
import org.eclipse.emf.ecore.resource.Resource | |
import org.eclipse.xtext.generator.IGenerator | |
import org.eclipse.xtext.generator.IFileSystemAccess | |
import Project.* | |
import org.eclipse.core.resources.ResourcesPlugin |