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
$(function(){ | |
// omg overwrite console.log | |
if(console._native){ | |
console = console._native; | |
} | |
console.clear() | |
$.getScript('http://underscorejs.org/underscore-min.js', function(){ | |
_.sortBy($('#talks tr').get(), function(talk){ | |
var strong = $(talk).find('td strong')[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
var string = "String"; | |
console.log(string); | |
console.debug(string); | |
console.warn(string); | |
console.error(string); | |
console.exception(string); |
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
<ul class="nav navbar-nav"> | |
<li class="{{isActive 'main'}}"><a href="/home">Home</a></li> | |
<li class="{{isActive 'second'}}"><a href="/services">Services</a></li> | |
</ul> |
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>testChat</title> | |
</head> | |
<body> | |
<div class="row"> | |
{{> room}} | |
{{renderPage}} | |
</div> | |
</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
Rooms = new Meteor.Collection('rooms'); | |
if (Meteor.isServer && Rooms.find().count() == 0) { | |
var roomsA = [ | |
{name: 'Meteor Talk', members: 3, last_activity: '1 minute ago', id: 0, | |
messages: [ | |
{author: 'Tom', text: 'Hi there Sacha!'}, | |
{author: 'Sacha', text: 'Hey Tom, how are you?'}, | |
{author: 'Tom', text: 'Good thanks!'}, |
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.subscribe("parametrizedPublish", Session.get('A'), Session.get('B')); |
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.publish("parametrizedPublish", function (param1, param2) { | |
// do your stuff | |
}); |