Copyright 2015 Wendy Smoak
Spinny is an Elixir port of the Adafruit_PWM_Servo_Driver code in Adafruit's Raspberry-Pi Python Code Library
As such, it inherits the BSD license and the additional information shown below:
| { | |
| "Statement":[ | |
| { | |
| "Action":[ | |
| "route53:ChangeResourceRecordSets", | |
| "route53:GetHostedZone", | |
| "route53:ListResourceRecordSets" | |
| ], | |
| "Effect":"Allow", | |
| "Resource":[ |
| # Paginate a collection | |
| # | |
| # Usage: | |
| # | |
| # {% paginate contents.projects by 5 %} | |
| # {% for project in paginate.collection %} | |
| # {{ project.name }} | |
| # {% endfor %} | |
| # {% endpaginate %} | |
| # |
| # Install dependencies | |
| # | |
| # * checkinstall: package the .deb | |
| # * libpcre3, libpcre3-dev: required for HTTP rewrite module | |
| # * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module | |
| apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \ | |
| mkdir -p ~/sources/ && \ | |
| # Compile against OpenSSL to enable NPN |
Copyright 2015 Wendy Smoak
Spinny is an Elixir port of the Adafruit_PWM_Servo_Driver code in Adafruit's Raspberry-Pi Python Code Library
As such, it inherits the BSD license and the additional information shown below:
| defmodule Shopify.Oauth do | |
| @moduledoc """ | |
| An OAuth2 strategy for Shopify. | |
| Based on the OAuth2 strategy for GitHub by Sonny Scroggin | |
| in https://github.com/scrogson/oauth2_example | |
| """ | |
| use OAuth2.Strategy | |
| alias OAuth2.Strategy.AuthCode | |
| alias OAuth2.Request |
| # Building an Phoenix (Elixir) Release targeting Amazon Linux for EC2 | |
| # By https://github.com/treygriffith | |
| # Original by the Phoenix team: https://hexdocs.pm/phoenix/releases.html#containers | |
| # | |
| # Note: Build context should be the application root | |
| # Build Args: | |
| # OTP_VERSION - the OTP version to target, like 23.0 | |
| # ELIXIR_VERSION - the Elixir version to target, like 1.10.4 | |
| # | |
| # If you have other environment variables in config/prod.secret.exs, add them as `ARG`s in this file |
For apps built before the image_processing gem became the default, the migration will involve two steps:
Before changing from ImageMagick to Vips, it's better to first test the new syntax and ensure everything is still working.
variant(format: :jpg, strip: true, quality: 80)| defmodule RequestHelper do | |
| @moduledoc """ | |
| Reference from https://gist.github.com/avdi/7990684 | |
| Stream download large file from url | |
| """ | |
| require Logger | |
| @doc """ | |
| Get stream data from url | |
| mode could be `:binary` or `:line` |
| defmodule Mix.Tasks.ConvertToVerifiedRoutes do | |
| @shortdoc "Fix routes" | |
| use Mix.Task | |
| @regex ~r/(Routes\.)(.*)_(path|url)\(.*?\)/ | |
| @web_module MyAppWeb | |
| def run(_) do | |
| Path.wildcard("lib/**/*.*ex") |