Archive

Category Archives for "Coding Packets Blog"

Elixir Notes: Functions

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 ...

Palo Alto CLI Tips and Tricks

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 ...

Elixir Notes: Variables

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...

Learning Elixir

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...

Add Stimulus JS to a Rails 6 app

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 ...

Add Friendly ID to a Rails 6 App

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...
1 8 9 10 11 12 29