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 config = { | |
name: 'rupert-basic-example', | |
stassets: { | |
root: './src/client' | |
}, | |
server: { | |
root: './src/server' | |
} | |
}; |
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 config = { | |
name: "rupert-api-example", | |
stassets: { | |
root: './src/client' | |
}, | |
server: { | |
root: './src/server' | |
} | |
}; |
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 config = { | |
name: "rupert-basic-example", | |
stassets: { | |
root: './src/client' | |
} | |
}; | |
require('rupert')(config).start(); |
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
<!DOCTYPE html> | |
<head> | |
<title>QUnit Test Page</title> | |
<link rel="stylesheet" href="libs/qunit-1.12.0.css"> | |
</head> | |
<body> | |
<div id="qunit"></div> | |
<div id="qunit-fixture"></div> | |
<script src="libs/qunit-1.12.0.js"></script> | |
</body> |
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
function LibraryController(Library, Actions) { | |
this.Library = Library; // A library has albums, which have tracks | |
this.albums = Library.albums; // Updates on Library mutation events | |
this.Actions = Actions; | |
} | |
LibraryController.prototype.play = function(track) { | |
return this.Actions.Play(track).dispatch(); | |
}; | |
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
<!-- PlayerController Template --> | |
<div class="Player"> | |
<pre class="title">playing {{ state.track.title }}</pre> | |
<audio | |
ng-if="state.track.path" | |
autoplay controls | |
ng-src="{{ state.track.path }}" | |
/> | |
</div> |
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
PlayerFactory = function(Actions, song) { | |
function PlayerStore() { | |
global.EventEmitter.call(this); | |
this.dispatcher = song.getDispatcher('trkstr'); | |
this.Events = PlayerStore.Events; | |
this.currentTrack = { title: "Nothing Playing..." }; | |
this.doPlay = this.dispatcher.register(Actions.Play, this.play.bind(this)); | |
} | |
PlayerStore.prototype = Object.create(EventEmitter.prototype); |
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
angular.module('trkstr.player.actions', [ | |
'songFlux' | |
]).factory('PlayerActions', function(songFactory){ | |
function PlayAction(track){ | |
this.track = track; | |
this.purpose = 'Request a track be played.'; | |
this.dispatcher = songFactory.getDispatcher('trkstr'); | |
} | |
PlayAction.prototype.dispatch = function(){ |
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
angular.module('trkstr.player.actions', [ | |
'songFlux' | |
]).factory('PlayerActions', function(songFactory){ | |
function PlayAction(track){ | |
this.track = track; | |
this.purpose = 'Request a track be played.'; | |
this.dispatcher = songFactory.getDispatcher('trkstr'); | |
} | |
PlayAction.prototype.dispatch = function(){ |
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
Question and Answer from Grantland on the Boston Olympics: | |
Q: Have you ever been to a party where 100 people show up, but the space provided is only really enough for about 20 of them. And only one person that lives there is actually throwing the party, so pretty much all of the people that live there are pissed off that you are there? And the one person throwing the party doesn’t actually have enough money to fund the party, so they had to ask their roommates (who already didn’t want you there) for money, just pissing them off even more? And the party apartment has furniture oddly place around it so its almost impossible to get around as is, let alone with 80% more people in it? Oh, and those roommates that live there and don’t want you there and are already pissed off? They love to drink. Mostly whiskey. So they are definitely going to abrasively let all the outsiders know how they really feel? I give you #Boston2024. | |
A: BS: Come on, anytime you can put the Summer Olympics in a city that’s way too cra |