-
First, add
asdf
to the Nix configuration with the package namedasdf-vm
. Add the following line to yourconfiguration.nix
file:environment.systemPackages = with pkgs; [ asdf-vm ];
defmodule MyMacro do | |
defmacro create_some_function_by_number(name, num, do: block) do | |
params = | |
for n <- 1..num do | |
{"id#{n}", Macro.var(:"id#{n}", nil)} | |
end | |
# We can't call Macro.escape because it is for escaping values. | |
# In this case, we have a mixture of values "id#{n}" and | |
# expressions "Macro.var(...)", so we build the map AST by hand. |
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.
To grab the new archive, simply run:
extension String { | |
/// Checks if the `String` is a valid email address. | |
/// ```` | |
/// // Example | |
/// "[email protected]".isValidEmailAddress() // true | |
/// "name(at)email(dot)com".isValidEmailAddress() // false | |
/// "name@email".isValidEmailAddress() // false | |
/// "[email protected]".isValidEmailAddress() // false | |
/// "name.com".isValidEmailAddress() // false |
git clone --recursive https://github.com/WebAssembly/wabt | |
cd wabt | |
make | |
make clang-debug | |
make gcc-i686-release | |
make clang-debug-lsan | |
make gcc-debug-no-re2c | |
chmod +x bin/ |
#!/bin/bash | |
# Get directory of script | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
if [[ $# -ne 1 ]] | |
then | |
echo "ERROR: This script expects the namespace name to be given as an argument" | |
echo "e.g. ./ecr-cred-updater.sh my-namespace" | |
exit 1 |
How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
-
Edit the configuration file: