Brewing the firmware for Raspberry PI with Elixir and Nerves

Brewing the firmware for Raspberry PI with Elixir and Nerves for PIX_PROJECT

https://blog.fazibear.me/brewing-the-firmware-for-raspberry-pi-with-elixir-and-nerves-5dd67970d073

AC6: Putting an Elixir OTP app in our Elixir OTP app

Building the http://Alchemist.Camp website, Part 6. It’s time to put an app in our app!

With only minimal changes to our mix.exs file and a couple of tweaks to paths, we make StatWatch into a dep for our web server so it always gets started with the server and added to its supervision tree.

https://youtu.be/PPNlWrKGlG0

Code Formatter- The Big Feature in Elixir V1.6.0

https://medium.com/@blackode/code-formatter-the-big-feature-in-elixir-v1-6-0-f6572061a4ba

Code formatting is easy now with the help of mix task mix format . It will take care of all you care about cleaning and refactoring as well. It can assure a clean code base…more

ExVenture Updates for December 2017

Changes made in the last month for ExVenture, a MUD written in Elixir. This month includes mostly back end admin changes and documentation.

https://blog.oestrich.org/2017/12/exventure-updates/

The Rigid Code Behind Smooth Code— Elixir Intermediate

The Rigid Code Behind Smooth Code

What you see is more simplified

https://medium.com/@blackode/the-rigid-code-behind-smooth-code-elixir-beginner-77eb0a32218c

This article shows you the rigid lines of code behind smooth lines you write in elixir.

As we know, the most of the Elixir programming language is written in Elixir itself with the power of Macros and also we all know why we love to code in Elixir because of its simplicity. But, today we are going to walk back to find the light in the dark.

Alchemist Camp L11: A worker to log stats from a YouTube's API

https://youtu.be/vqxyhJewKjI

Alchemist Camp has been growing much more quickly in its third week than in its first two, so let’s make an app to fetch stats from YouTube and log them every 6 hours!

We used YouTube’s API, HTTPoison, Poison to decode the JSON, and OTP to keep the worker up.

Phoenix & Elm landing page (pt.2)

Here is the second part of my new series on building a landing page with Phoenix and Elm.

http://codeloveandboards.com/blog/2017/12/23/phoenix-elm-landing-page-pt-2/

Merry Christmas and Happy New Coding Year!

Releasing Gringotts: A payment library for elixir with upto 6 gateways and more coming soon

We have worked on gringotts which is a payment gateways integrator library, it draws huge motivation from shopify’s activemerchant gem which is defacto library for payments in Ruby on Rails world.

The aim is to make Gringotts an activemerchant of Elixir world.

https://github.com/aviabird/gringotts

Morphix v0.2.1 released, now with bug fixes!

Many thanks to the shannonbrooks for expanding and uberbrodt for the bug fix on atomorphif*, which now properly handles struct types.

Morphix is a small library of convenience methods for transforming Enumerables.

https://hex.pm/packages/morphix

Alchemist Camp C10: Threatened by rooks, bishops and knights

https://youtu.be/kiIzDcKYw-I

Normally it’s somewhat tedious to generate the squares of a chess board that can be attacked by bishops or nights, but we make short work of it using comprehensions to generate and filter the board positions down to the solution. We also reach to Erlang to fill in a gap in Elixir’s logical operator tool set.

The Square module was from Lesson 8 and the challenge was from Lesson 10 of Alchemist Camp.

Finishing out tic-tac-toe game and giving it a CLI

https://youtu.be/Mrdgd-Hmz-w

We finish our tic-tac-toe game, make a command line user interface for it and debug it.. This entails extensive use of comprehensions, filters and higher-order functions.

Case insensitive column in Phoenix

I wanted to have a case insensitive database column to store email address in the open source application I’m working on. I’m using PostgreSQL and there’s a nice extension that does exactly that – citext – so I gave it a try. I spent some time figuring things out so now I’m sharing the knowledge in this blog post. Case insensitive column in Phoenix

Sealas - Zero Knowledge Online Accounting Software For Freelancers

Sealas is our open source encrypted accounting software with a backend written in Elixir using Phoenix.

https://github.com/Brainsware/sealas

We want to make it easier to build secure web applications, so we also write about our whole development process here:

https://sealas.at/blog/

Composing Ecto Queries

In our latest episode we compose Ecto queries in a Phoenix app.

https://elixircasts.io/composing-ecto-queries

Designing scalable application with Elixir: from umbrella project to distributed system

Hi colleagues! I’ve just published a post:

Designing scalable application with Elixir: from umbrella project to distributed system

I hope it helps you to write better Elixir code!

Morphix v0.2.0 released, now with even better atomorphification!

Morphix is a small library of convenience methods for transforming Enumerables.

atomorphify/atomorphiform methods convert string keys to atom keys in a map. Some improvements have been made:

  • Added atomorphify(map, list) :: {:ok, map} The returned map will have strings in list at the top level of map converted to atoms.
  • Added atomorphiform(map, list)::{:ok, map} The returned map will have strings in list at any level of map converted to atoms.

added ! versions of the above methods and all other methods in the atomorphif* group, which return the transformed map alone. This is much more useful when using these methods in a pipeline.

Alchemist Camp L9: Game state machine

https://youtu.be/elBAk6iZ2fc

We build a pattern matching state machine for our tic-tac-toe game. This video digs further into working with module structs and makes use of default field values. Next lesson, we’ll be ready to hook everything up and play the game.

The rationale for using a state machine in computer games was tic-tac-toe whiteboarding video.

The (not so) Magic Tricks of Testing in Elixir (1/2)

A new blog post by Daniel Caixinha about testing in Elixir. This is part 1. More to come soon! https://medium.com/onfido-tech/the-not-so-magic-tricks-of-testing-in-elixir-1-2-89bfcf252321

PostgresDescribe

I found myself wanting documented state of my database within my Elixir/Phoenix app, similar to what schema.rb or schema.sql provides in a Rails app.

Announcing the initial release of PostgresDescribe. Does what you think it does - generates a set of files on disk that contain the output of the \d command in a PG shell.

AC5 Adding EEx templates to a Cowboy web server

Building the Alchemist.Camp website, Part 5.

Today, we added ability to dynamically render and serve up EEx template files, without requiring a restart of the web server. In the process of building this, it was convenient to flesh out our minimal clone of Plug.Conn a little bit.

https://youtu.be/hjXewfWuddY

Previous page Next page