Skip to content

Instantly share code, notes, and snippets.

View portfolio.md
View jekyll2.html
{% for category in page.categories %}
[<a class="post-meta" href="/{{category}}">{{category}}</a>]
{% endfor %}
View jekyll1.html
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts in the category [coding]</h1>
<ul class="post-list">
{% for post in site.categories.coding %}
@neudabei
neudabei / live_tweets_in_email.rb
Created May 31, 2015
Include live Tweets an email
View live_tweets_in_email.rb
# This code is based on the explanations by Kevin Thompson (http://kevinthompson.info/) here https://gist.github.com/kevinthompson/c3023df8e2c904ad00d9
# See the email here: http://www.mailerbob.com/live-tweets/email.html
require 'sinatra'
require 'twitter'
helpers do
def twitter
@twitter ||= Twitter::REST::Client.new do |config|
config.consumer_key = ENV.fetch("TWITTER_CONSUMER_KEY")