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
defp deps do | |
[ | |
{:broadway_sqs, "~> 0.4.0"}, | |
{:broadway, "~> 0.4.0"}, | |
{:ex_aws_s3, "~> 2.0"}, | |
{:ex_aws_sns, "~> 2.0"}, | |
{:ex_aws_sqs, "~> 3.0"}, | |
{:ex_aws, "~> 2.1"}, | |
{:hackney, "~> 1.9"}, | |
{:poison, "~> 3.1"} |
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
{"location": "World"} |
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
<html> | |
<body> | |
<h1>Hello {{ location }}</h1> | |
</body> | |
</html> |
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
defmodule Pdfer do | |
@moduledoc """ | |
Documentation for Pdfer. | |
""" | |
# | |
def generate(pdf_path, template_path, mapping_path) do | |
mapping = Jason.decode!(read_file(mapping_path)) | |
template = read_file(template_path) |
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
defp deps do | |
[ | |
{:bbmustache, github: "soranoba/bbmustache"}, | |
{:jason, "~> 1.1"}, | |
{:pdf_generator, ">=0.5.5"} | |
] | |
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
run.config: | |
engine: ruby | |
extra_packages: | |
- git | |
- nodejs | |
- nginx | |
- ImageMagick | |
- optipng | |
- jpegoptim | |
- gifsicle |
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
# | |
# DO NOT EDIT THIS FILE | |
# If you need to make changes create a file called discourse.conf in this directory with your changes | |
# On import this file will be imported using ERB | |
# | |
# Discourse supports multiple mechanisms for production config. | |
# | |
# 1. You can do nothing and get these defaults (not recommended, you should at least set hostname) | |
# 2. You can copy this file to config/discourse.conf and amend with your settings |
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
# boxfile.yml | |
run.config: | |
engine: ruby | |
# add extra packages | |
extra_packages: | |
- nodejs | |
- nginx | |
# |
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
package commands | |
import ( | |
"fmt" | |
"github.com/spf13/cobra" | |
"github.com/spf13/viper" | |
) | |
var ( |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/nanopack/hoarder/commands" | |
) | |
// |
NewerOlder