A function is a unit of code that does a thing.
With Elixir being a functional language, functions
are a core tenant of the language.
Elixir has both named functions and anonymous functions.
Named Functions
Functions are defined in Elixir with the
def
keyword.
Anonymous Functions
...
A short post, documenting the process of
copying your SSH keys from Windows 10 to
linux host.
This will save future Brad having to go
on a duck hunt
to find this information for the 10 billionth time.
Requirements
In recent versions of Windows 10 you can
enable both an SSH...
Handy tips and tricks for working with the
Palo Alto network CLI.
Config Output Format
The configuration output format can be changed. This can be
useful for backing up the config or capturing a structured
format from the CLI.
The following formats are available:
default
json
...
Define a variable in Elixir with the equals
(=)
operator.
Considerations
Variables can start with a lowercase [a-z]
or an underscore _
Variables can contain upper/lower case
[a-zA-Z] and the
_ underscore characters.
snake_case is the
formatting convention used for...
Elixir is a functional programming language with a
syntax inspired by Ruby that runs on the Erlang
virtual machine.
In this post I will cover the process of creating
an Elixir package with Mix and publishing it to
Hex.pm which is the
package repository for Elixir progect....
Elixir is a
dynamic functional programming language that runs on
the Erlang virtual machine.
In this post I will outline my reasoning for learning
Elixir and document the resources used in the process.
I will update the Books, Videos and Blogs section as
I move through the learning...
Stimulus JS is
a "A modest JavaScript framework for the HTML you already have."
The aim of the project is to sprinkle your webapp with
Javascript to load dynamic content as opposed to building your
entire frontent with JS.
In this post I will cover the process of installing and
...
I recently came across a couple of caveates when working with
has_and_belongs_to_many
relationships with Rails. This post covers them and how to
solve or work around them.
Software Versions
Rails - 6.0.3.4
Many to Many Relationship Type
When creating a many to many relationship, you...
Friendly ID, is
a ruby gem that makes adding slugs to your Rails
records painless giving you nice human readible URI's.
Instead of accessing URI's by their database ID:
/site/23 they are
accessed via /site/hogwarts
instead. Much better.
In this post I will show you how to add...
In this post I will outline a method the paginate database records
in a Rails 6 app using the Pagy.
gem. I will also cover the process of styling the paging navbar with bootstrap
and font awesome icons.
Software
The following software was used in this post.
Rails - 6.0.3.4
Pagy -...