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
default: &default | |
adapter: postgresql | |
encoding: unicode | |
development: | |
adapter: postgresql | |
encoding: unicode | |
database: development | |
username: mike | |
password: secret |
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
web: bundle exec puma -p $PORT -C config/puma.rb |
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
<%= render 'header' %> | |
<ul class="episodes"> | |
<% collection.each do |episode| %> | |
<%= render 'list_item', user_episode: episode %> | |
<% end %> | |
</ul> | |
<% if collection.empty? %> | |
<% if action_name == 'index' %> |
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
--- | |
da: | |
activerecord: | |
errors: | |
messages: | |
record_invalid: 'Godkendelse gik galt: %{errors}' | |
restrict_dependent_destroy: | |
has_one: Kunne ikke slette posten fordi en afhængig %{record} findes | |
has_many: Kunne ikke slette posten fordi afhængige %{record} findes | |
date: |
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
command! -nargs=? -bang Husk call <SID>Husk(<bang>0, "<args>") | |
function! s:Husk(bang, comment) | |
if a:comment != "" || a:bang | |
call <SID>WriteHusk(a:comment) | |
else | |
call <SID>ViewHusk() | |
endif | |
endfunction |
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
require 'net/http' | |
require 'json' | |
class MercuryParser | |
attr_reader :url | |
def initialize(url) | |
@url = url | |
end |
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
title = "#{@user.username} podcast feed" | |
author = @user.username | |
description = "#{@user.username} feed" | |
keywords = "comma, separated" | |
image = ENV["ROOT_URL"] + '/logo.png' | |
xml.rss "xmlns:itunes" => "http://www.itunes.com/dtds/podcast-1.0.dtd", "xmlns:media" => "http://search.yahoo.com/mrss/", :version => "2.0", "xmlns:atom" => "http://www.w3.org/2005/Atom" do | |
xml.channel do | |
xml.title title | |
xml.link 'http://mikejakobsen.herokuapp.com' |
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
require 'net/http' | |
require 'json' | |
class MercuryParser | |
attr_reader :url | |
def initialize(url) | |
@url = url | |
end |
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
require 'net/http' | |
require 'nokogiri' | |
require 'json' | |
class FeedParser | |
attr_accessor :url | |
def initialize url | |
@url = url |
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
require 'net/http' | |
require 'json' | |
class MercuryParser | |
attr_reader :url | |
def initialize(url) | |
@url = url | |
end |