This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# В контроллере вызывается код, который через HTTPoison делает POST-запрос | |
# на сторонний сервис. Сервис отвечает 302 редиректом. Этот редирект обернут в HTTPoison response | |
# и у пользователя в браузере редиректа не происходит. Как сделать так, чтобы произошел редирект? | |
# (Т.е. понятно, что нужно, чтобы функция вернула conn, а не HTTPoison response, как это сделать? | |
## controller | |
... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Table of Contents | |
1. [1) Назовите участников финансовых рынков (пометить верные варианты): \*](#org0a3057b) | |
2. [2) Назовите виды анализа финансовых рынков (пометить верные варианты): \*](#org1a601ee) | |
3. [3) Что такое CFD? \*](#org15a1522) | |
4. [4) Что такое марк-ап? \*](#orgf1a1839) | |
5. [5) Что такое ликвидность? \*](#orgc5a582d) | |
6. [1) Основные продукты компании это (пометить верные варианты): \*](#org2bc294d) | |
7. [2) Какие торговые платформы предоставляет AMarkets клиентам? (пометить верные варианты) \*](#org366b1a2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PsRbk.MixProject do | |
use Mix.Project | |
def project do | |
[ | |
app: :ps_rbk, | |
version: "0.1.0", | |
elixir: "~> 1.7.4", | |
elixirc_paths: elixirc_paths(Mix.env()), | |
compilers: [:phoenix, :gettext] ++ Mix.compilers(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP="my_app" | |
BUILD_HOST="<my_prod_server.com>" | |
BUILD_USER="deploy" | |
BUILD_AT="/home/deploy/app_build" | |
PRODUCTION_HOSTS="<my_prod_server.com>" | |
PRODUCTION_USER="deploy" | |
DELIVER_TO="/home/deploy/app_release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import all plugins from `rel/plugins` | |
# They can then be used by adding `plugin MyPlugin` to | |
# either an environment, or release definition, where | |
# `MyPlugin` is the name of the plugin module. | |
~w(rel plugins *.exs) | |
|> Path.join() | |
|> Path.wildcard() | |
|> Enum.map(&Code.eval_file(&1)) | |
use Mix.Releases.Config, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show(conn, _params) do | |
invoice_id = get_session(conn, :invoice_id) | |
invoice_access_token = get_session(conn, :access_token) | |
case [not is_nil(invoice_id), not is_nil(invoice_access_token)] do | |
[true, true] -> render_form(conn, invoice_id, invoice_access_token) | |
_ -> render_error(conn, _params) | |
end | |
end | |
def show(conn, _params) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:httpc.request(:get, {'https://testrest.vload.expert/voucher/validate/2698937783822253/Chrome/11234576536', [{'AUTHENTICATION','HMAC GPLDIS8H7N5KY8DG:c6881c8bbcee2daceb5d8c2bb54078702bca23d828d7468afeb2f6ed0f25366f:1549890568'}], ['content-type','application/json'], '<some_body>'}, [], []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ListCount do | |
{:ok, string} = Path.expand('~/tutorials/hackerrank/input00.txt') |> Path.absname |> File.read | |
string | |
|> String.split("\n") | |
|> Enum.map(&(String.to_integer(&1))) | |
|> work | |
def work([mult|rest]) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Время от времени появляется ошибка #object[clojure.core.async.impl.channels.ManyToManyChannel | |
;; Почему? По идее `random-add` никак не влияет на заполнение канала, только на таймаут? | |
(ns async-tea-party.core | |
(:require [clojure.core.async :as async])) | |
(def google-tea-service-chan (async/chan 10)) | |
(def yahoo-tea-service-chan (async/chan 10)) | |
(def result-chan (async/chan 10)) |
OlderNewer