- @idlehands: I don't post new things
- @idlehahands@mastodon.social: if I post new things, it's here
- help@testingelixir.com: I like to help people
- Testing Elixir Book: the sample code is downloadable without buying the book
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyAppWeb.GettextTest do | |
| use ExUnit.Case | |
| import MyAppWeb.Gettext | |
| # A unit test for Gettext translations that checks if the original and the translation | |
| # use the same HTML tags. | |
| # | |
| # Uses Floki to parse HTML. | |
| describe "translations" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Phoenix esbuild with Tailwind+Fontawesome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| networks: | |
| kong-net: | |
| driver: bridge | |
| services: | |
| ####################################### | |
| # Postgres: The database used by Kong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DIRECTUS_KEY=<...> | |
| DIRECTUS_SECRET=<...> | |
| DIRECTUS_DB_DATABASE=<...> | |
| DIRECTUS_DB_USER=<...> | |
| DIRECTUS_DB_PASSWORD=<...> | |
| DIRECTUS_CACHE_ENABLED=true | |
| DIRECTUS_CACHE_STORE=redis | |
| DIRECTUS_ADMIN_EMAIL=<...> | |
| DIRECTUS_ADMIN_PASSWORD=<...> | |
| DIRECTUS_PUBLIC_URL=https://<server_name>/directus/ # server_name is the one used in nginx. Note the slash at the end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // assets/js/app.js | |
| // ... | |
| import Pickr from "./pickr" | |
| const hooks = { | |
| Pickr | |
| } | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Step 2: Pipe the curl's output into elixir directly. | |
| # Warning: only execute scripts you trust. | |
| $ FILENAME="https://raw.githubusercontent.com/wojtekmach/mix_install_examples/d98fce880eedda18747e592ec6c42b6ca817136f/scenic.exs" \ | |
| curl "$FILENAME" | exsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <link rel="stylesheet" href="./style.css"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
| </head> | |
| <body> | |
| <canvas id="canvasDemo" height="1920" width="1080"> | |
| Sorry, your browser does not support canvas. | |
| </canvas> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const plugin = require("tailwindcss/plugin"); | |
| module.exports = { | |
| mode: "jit", | |
| purge: { | |
| content: ["./src/**/*.{js,ts,jsx,tsx,mdx,vue}"], | |
| }, | |
| theme: { extend: {} }, | |
| variants: {}, | |
| plugins: [ |