Skip to content

Instantly share code, notes, and snippets.

View simistern's full-sized avatar
🍊

Simon Stern simistern

🍊
View GitHub Profile
<head>
<title>FoodCal</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/material-fullpalette.min.css"/>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/ripples.min.css"/>
</head>
Meals = new Mongo.Collection('meals');
if (Meteor.isClient) {
Meteor.subscribe('meals');
Template.body.helpers({
meals: function () {
var meals = Meals.find({});
return meals;
}
});
meteor-platform
mrt:jquery-ui
accounts-ui
accounts-password
.app {
width: 95%;
margin: 0 auto;
}
.delete-meal,
.edit-meal,
.move-meal-left,
.move-meal-right {
font-size: 15px !important;
Meteor.publish('subredditSearch', function(subreddit) {
var self = this;
try {
var response = HTTP.get('http://reddit.com/r/' + subreddit + '.json');
_.each(response.data.data.children, function(item) {
var data = item.data;
var len = 200;
<head>
<title>RedditReader</title>
</head>
<body>
<div class="navbar navbar-inverse">
<div class="navbar-header">
<a class="navbar-brand" href="#">Reddit Reader</a>
</div>
<template name="post">
<div class="list-group-item post" data-id="{{id}}">
<div class="row-picture">
{{#if thumbnail}}
<img class="icon shadow-z-1" src="{{thumbnail}}" alt="icon">
{{else}}
<i class="mdi-editor-insert-drive-file icon shadow-z-1"></i>
{{/if}}
<br class="clear" />
</div>
.app {
width: 95%;
margin: 0 auto;
}
.comment-link {
font-size: .8em;
}
.image-preview-holder {
Posts = new Mongo.Collection('posts');
Session.setDefault('subreddit', 'all');
Session.setDefault('searching', false);
SUPPORTED_MEDIA_TYPES = ['jpg', 'png', 'gif'];
Tracker.autorun(function() {
console.log('show session ', Session);
if (Session.get('subreddit')) {
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-platform
insecure
http
fezvrasta:bootstrap-material-design