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
#!/bin/sh | |
# Downloads all of Jonathan Coulton's free songs | |
# from http://www.jonathancoulton.com/store/downloads/ | |
curl -C - "http://songs.jonathancoulton.com/free/mp3/Washy%20Ad%20Jeffy.mp3" -o "Washy Ad Jeffy.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/SkyMall.mp3" -o "SkyMall.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Creepy%20Doll.mp3" -o "Creepy Doll.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Big%20Bad%20World%20One.mp3" -o "Big Bad World One.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Mr.%20Fancy%20Pants.mp3" -o "Mr. Fancy Pants.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/I'm%20Your%20Moon.mp3" -o "I'm Your Moon.mp3" \ |
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
// in routes.js | |
function redirectWhenLoggedIn(context) { | |
var user = Meteor.user(); | |
if (user && !Meteor.loggingIn()) { | |
context.redirect('/dashboard'); | |
} | |
} | |
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
<head> | |
<title>Cinder</title> | |
</head> | |
<body> | |
{{#isolate}} | |
{{renderPage}} | |
{{/isolate}} | |
{{!>logs_bootstrap}} | |
</body> |
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
// Client | |
Meteor.subscribe('todos'); |
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
if (Meteor.isClient) { | |
function updateHTML(elmId, value) { | |
document.getElementById(elmId).innerHTML = value; | |
} | |
// This function is called when an error is thrown by the player | |
function onPlayerError(errorCode) { | |
alert("An error occured of type:" + errorCode); | |
} |
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
<head> | |
<title>Title</title> | |
<meta charset="utf-8"> | |
<meta name="robots" content="all"> | |
</head> | |
<body> | |
{{> nav_header}} | |
{{> index}} | |
</body> |
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
client.addListener('PING', function() { | |
Fiber(function() { | |
client.send('PONG'); | |
}).run(); | |
}); |
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
Template.admin.events = | |
"click #createPost": () -> | |
Meteor.render(() -> | |
"{{> create_news_post}}" | |
) |
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
@Queue = new Meteor.Collection 'queue' | |
Meteor.startup -> | |
Meteor._processQueue = -> | |
if Meteor._queueProcessing ||= false | |
Meteor.setTimeout Meteor._processQueue, 100 | |
return | |
Meteor._queueProcessing = true | |
qsize = Meteor._queue.length | |
qdone = 0 |
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
Meteor.Router.add({ | |
'/': { | |
to: 'index', | |
and: function () { | |
Session.set('genre', null); | |
} | |
}, // site index | |
'/:action/:action2/:action3': function (action, action2, action3) { | |
var genreSession = null, |
OlderNewer