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 requests = { | |
set: createPostRequest('POST', 'text'), | |
get: createRequest('GET', 'query') | |
}; | |
function createPostRequest(type, method, payload) { | |
twitch.rig.log($("#input").val()); //input | |
return { | |
type: type, | |
url: location.protocol + '//localhost:8081/sayit/' + method, |
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
# 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 |
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
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')) { |
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
.app { | |
width: 95%; | |
margin: 0 auto; | |
} | |
.comment-link { | |
font-size: .8em; | |
} | |
.image-preview-holder { |
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
<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> |
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
<head> | |
<title>RedditReader</title> | |
</head> | |
<body> | |
<div class="navbar navbar-inverse"> | |
<div class="navbar-header"> | |
<a class="navbar-brand" href="#">Reddit Reader</a> | |
</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
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; |
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
.app { | |
width: 95%; | |
margin: 0 auto; | |
} | |
.delete-meal, | |
.edit-meal, | |
.move-meal-left, | |
.move-meal-right { | |
font-size: 15px !important; |
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
meteor-platform | |
mrt:jquery-ui | |
accounts-ui | |
accounts-password |
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
Meals = new Mongo.Collection('meals'); | |
if (Meteor.isClient) { | |
Meteor.subscribe('meals'); | |
Template.body.helpers({ | |
meals: function () { | |
var meals = Meals.find({}); | |
return meals; | |
} | |
}); |