Skip to content

Instantly share code, notes, and snippets.

View qgadrian's full-sized avatar
🛰️

Adrián Q qgadrian

🛰️
View GitHub Profile
System.put_env("FCM_SERVER_KEY", "my_project_id")
Fcmex.push("/topics/test_topic",
data: %{
title: "hi!",
body: "this is a message",
click_action: "open",
icon: "new"
}
)
@qgadrian
qgadrian / elixir_alexa_1.exs
Created December 20, 2018 19:23
elixir_alexa_1.exs
defp deps do
[
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:aws_lambda_elixir_runtime, "~> 0.1.0", only: [:lambda]},
{:distillery, "~> 2.0"},
{:tmdb, git: "https://github.com/seanabrahams/elixir-tmdb.git"},
{:mox, "~> 0.4", only: :test}
]
end
@qgadrian
qgadrian / elixir_alexa_2.exs
Last active December 20, 2018 19:32
elixir_alexa_2.exs
defmodule ThemoviedbAlexa do
@moduledoc """
Entrypoint for Alexa skill requests to the AWS lambda.
"""
require Logger
alias ThemoviedbAlexa.Response.{Spanish}
@tmdb_client Application.get_env(:themoviedb_alexa, :tmdb_client)
@qgadrian
qgadrian / elixir_alexa_3.exs
Last active December 20, 2018 19:38
elixir_alexa_3.exs
defmodule ThemoviedbAlexa.Response.Spanish do
@moduledoc """
Module that provides an Alexa response to an intent in the spanish.
"""
@behaviour ThemoviedbAlexa.Response.Behaviour
@doc """
Returns an Alexa skill response with the rating info of a movie
"""
@qgadrian
qgadrian / elixir_alexa_4.exs
Created December 20, 2018 19:51
elixir_alexa_4.exs
import Mix.Config
config :tmdb,
api_key: "replace_this_with_your_tmdb_api_key"
@qgadrian
qgadrian / svim.css
Created July 30, 2019 16:43
Svim css style
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {

Keybase proof

I hereby claim:

  • I am qgadrian on github.
  • I am qgadrian (https://keybase.io/qgadrian) on keybase.
  • I have a public key ASBu5sdGCLjARjQURnO-Bz_V_DNG4HjpAFnfcBqkLeTiiwo

To claim this, I am signing this object:

@qgadrian
qgadrian / femtasy_frontend_challenge.md
Last active November 6, 2020 17:08
femtasy frontend challenge

Femtasy frontend technical test

Introduction

Write a simple front React application that consumes the Star Wars API and shows the content requested by the user.

Specifications

  • By default, the app will show the list of films
  • When users clicks on an element of the film list, show the following information: