- c5.xlarge AWS instance: 4 CPUs, 8 GB RAM
- Ubuntu 18.04
- Go 1.12
- Python 2.7
- Vips 8.7.4
let (|IsMultiple|_|) n x = if x % n = 0 then Some n else None | |
[1..100] | |
|> List.map (function | |
| IsMultiple 15 x -> "FizzBuzz" | |
| IsMultiple 5 x -> "Buzz" | |
| IsMultiple 3 x -> "Fizz" | |
| x -> $"{x}") | |
|> List.iter (printfn "%s") |
[user] | |
name = Mattia Astorino | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[color "status"] |
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:
Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.
import url from 'url' | |
import qs from 'qs' | |
export default function (ctx) { | |
fixRedirect(ctx) | |
const { route, redirect } = ctx | |
const { path, query } = route | |
// Redirect trailing slashes, preserving query string: /foo/ -> /foo | |
if (path.length > 1 && path.slice(-1) === '/') { |
from __future__ import print_function | |
''' | |
Basic Multi GPU computation example using TensorFlow library. | |
Author: Aymeric Damien | |
Project: https://github.com/aymericdamien/TensorFlow-Examples/ | |
''' | |
''' | |
This tutorial requires your machine to have 2 GPUs | |
"/cpu:0": The CPU of your machine. |
curl -XDELETE localhost:9200/*
function compose(...fnArgs) { | |
const [first, ...funcs] = fnArgs.reverse(); | |
return function(...args) { | |
return funcs.reduce((res, fn) => fn(res), first(...args)); | |
}; | |
} |