Generate a new Elixir project using mix
and add cowboy
and plug
as dependencies in mix.exs
:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end
#!/usr/bin/env jruby | |
require 'rubygems' | |
require 'spoon' | |
APPNAME = 'fileserver' | |
WORK_PATH = Dir.pwd | |
EXEC = "#{ENV['HOME']}/.rbenv/shims/puma" | |
PID_PATH = "#{WORK_PATH}/log/#{APPNAME}.pid" | |
OUT_PATH = "#{WORK_PATH}/log/#{APPNAME}.out.log" |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'bundler' | |
require 'fileutils' | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
TMP_DIR = "/tmp/gems" |
defmodule Koncur.AuthenticationPlug do | |
alias Plug.Conn | |
alias Phoenix.Status | |
alias Phoenix.Controller.Errors | |
alias Poison, as: JSON | |
import Phoenix.Controller.Connection | |
import Plug.Conn | |
import Ecto.Query, only: [from: 2] | |
def init(opts), do: opts |
Generate a new Elixir project using mix
and add cowboy
and plug
as dependencies in mix.exs
:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end
conversation of the cutting-edge techs
link to subscribe feed
{ | |
"clusters": { | |
"destinations": { | |
"version": "0.90.10", | |
"config": { | |
"cluster": { | |
"name": "destinations_development" | |
}, | |
"path": { | |
"data": "tmp/elasticsearch", |
amend-commit = "!f() { START=`(git symbolic-ref -q HEAD || git rev-parse HEAD) | cut -d"/" -f 3`; git checkout -q $1 && git commit --amend && git rebase --onto HEAD $1 $START; }; f" |
import javafx.animation.FadeTransition; | |
import javafx.application.Application; | |
import javafx.beans.property.ReadOnlyObjectProperty; | |
import javafx.beans.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.collections.FXCollections; | |
import javafx.collections.ObservableList; | |
import javafx.concurrent.Task; | |
import javafx.concurrent.Worker; | |
import javafx.event.ActionEvent; |