Skip to content

Instantly share code, notes, and snippets.

View hwatkins's full-sized avatar

Hugh Watkins hwatkins

View GitHub Profile
FROM crystallang/crystal:0.27.2
WORKDIR /opt/src
# Install nodejs
COPY bin ./bin
RUN bin/nodesource_11.x
RUN apt-get update && apt-get install -y nodejs
# npm install
@AndrewDryga
AndrewDryga / ael_simplified.ex
Last active August 1, 2017 19:44
AEL: Simplified code for context that is responsible for Signing URL's
defmodule Ael.Secrets.API do
def get_secret_url(secret) do
%Secret{
action: action,
expires_at: expires_at,
bucket: bucket,
resource_id: resource_id,
resource_name: resource_name
} = secret
@mbenatti
mbenatti / 0-font-awesome-bootstap-phoenix.md
Last active February 2, 2024 14:59
Installing Bootstrap 4 + Font Awesome from NPM in Phoenix Framework using sass
  • Tested with Phoenix 1.3

1) Installing sass, font-awesome and bootstrap package's using Brunch

First, install the Sass, Font Awesome, bootstrap(and deps) package:

cd assets

  • npm install --save-dev sass-brunch
  • npm install --save font-awesome