Skip to content

Instantly share code, notes, and snippets.

View siddhant3030's full-sized avatar
🎯
Focusing

Siddhant Singh siddhant3030

🎯
Focusing
View GitHub Profile
defmodule TuringWeb.Router do
use TuringWeb, :router
use Plug.ErrorHandler
use Sentry.Plug
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 1: patching: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 2: Hunk: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 4: ===: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 6: ===: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 8: ===: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 9: ===: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 11: ===: command not found
/Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.8/otp_build_22.1.8.log: line 13:
###
### ejabberd configuration file
###
###
### The parameters used in this configuration file are explained in more detail
### in the ejabberd Installation and Operation Guide.
### Please consult the Guide in case of doubts, it is included with
### your copy of ejabberd, and is also available online at
### http://www.process-one.net/en/ejabberd/docs/
Last login: Wed Nov 13 12:59:17 on ttys001
icicle@Icicles-MacBook-Air ~ % cd ~
icicle@Icicles-MacBook-Air ~ % ls -a
. .mkshrc Desktop
.. .mysql_history Documents
.CFUserTextEncoding .profile Downloads
.DS_Store .rvm Library
.Trash .subversion Movies
.bash_profile .vscode Music
.bashrc .zlogin Pictures
%Plug.Conn{
adapter: {Plug.Cowboy.Conn, :...},
assigns: %{},
before_send: [#Function<0.66442134/1 in Plug.Telemetry.call/2>],
body_params: %{"bank" => %{"name" => "sidass12asaassskfkwqojwq"}},
cookies: %Plug.Conn.Unfetched{aspect: :cookies},
halted: false,
host: "localhost",
method: "POST",
owner: #PID<0.432.0>,
defmodule Banking.Schema.Bank do
use Ecto.Schema
import Ecto.Changeset
alias Banking.Schema.Branch
schema "banks" do
field :name, :string
has_many :branches, Branch
timestamps()
defmodule Banking.Schema.Bank do
use Ecto.Schema
import Ecto.Changeset
alias Banking.Schema.Branch
schema "banks" do
field :name, :string
has_many :branches, Branch
timestamps()
elixir: "~> 1.5",
{:phoenix, "~> 1.4.9"}
defmodule Banking.MixProject do
use Mix.Project
def project do
[
app: :banking,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),