Skip to content

Instantly share code, notes, and snippets.

@neudabei
neudabei / portfolio.md
Last active November 30, 2015 12:29
Portfolio
@neudabei
neudabei / jekyll2.html
Created June 13, 2015 15:46
jekyll code
{% for category in page.categories %}
[<a class="post-meta" href="/{{category}}">{{category}}</a>]
{% endfor %}
@neudabei
neudabei / jekyll1.html
Created June 13, 2015 15:43
jekyll code
---
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 22:31
Include live Tweets an email
# 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")