Skip to content

Instantly share code, notes, and snippets.

View ChristianAlexander's full-sized avatar

Christian Alexander ChristianAlexander

View GitHub Profile
@ChristianAlexander
ChristianAlexander / Coding Agent README.md
Last active June 13, 2025 07:44
Setup Steps for Copilot Coding Agent in Phoenix Apps

Setup Steps

Workflow File

Add copilot-setup-steps.yml to your .github/workflows directory so Copilot Coding Agent doesn’t get lost trying to set up Elixir and Erlang.

This also ensures a postgres database is running, which is helpful for Phoenix apps out of the box.

Dependencies are cached to make the agent start up quickly, as well as saving on metered GitHub Actions compute time.

Copilot Instructions

@ChristianAlexander
ChristianAlexander / notebook.livemd
Created February 21, 2025 14:15
Pythonx: Python in Elixir

Pythonx

Mix.install([
  {:pythonx, "~> 0.3.0"},
  {:kino, "~> 0.14.2"},
  {:kino_vega_lite, "~> 0.1.13"}
])

Benchee Demos

Mix.install([
  {:benchee, "~> 1.3"},
  {:kino_benchee, "~> 0.1.0"},
  {:jason, "~> 1.4"},
  {:jiffy, "~> 1.1"},
  {:benchee_markdown, "~> 0.3.3"}
])
@ChristianAlexander
ChristianAlexander / detect.livemd
Last active May 5, 2025 14:09
Face Detection in Elixir

Face Detection in Elixir

Mix.install(
  [
    {:evision, "~> 0.1"},
    {:kino, "~> 0.7"}
  ],
@ChristianAlexander
ChristianAlexander / Podcast Transcription.livemd
Created April 12, 2024 23:03
Podcast Transcription LiveBook

Podcast Transcription

Mix.install([
  {:req, "~> 0.4.14"},
  {:fast_rss, "~> 0.5.0"},
  {:bumblebee, "~> 0.5.3"},
  {:exla, "~> 0.7.1"},
  {:kino, "~> 0.12.3"}
])
function formatMatch({ indices, value }) {
let lastIndex = 0;
return (
<span>
{indices.map(([start, end], index) => {
const nonMatch = value.slice(lastIndex, start);
lastIndex = end;
const match = value.slice(start, end);
return (
<React.Fragment key={index}>
@ChristianAlexander
ChristianAlexander / rcf.livemd
Created August 6, 2023 22:05
An Elixir LiveBook file showing an implementation of the Random Cut Forest Algorithm for anomaly detection.

Random Cut Forest

Mix.install([
  {:nx, "~> 0.5.3"},
  {:ex_zipper, "~> 0.1.3"},
  {:kino_vega_lite, "~> 0.1.9"}
])
```json
{
"test": true
}
```
@ChristianAlexander
ChristianAlexander / keybase.md
Created February 21, 2018 13:18
keybase.md

Keybase proof

I hereby claim:

  • I am christianalexander on github.
  • I am calexanderbolste (https://keybase.io/calexanderbolste) on keybase.
  • I have a public key ASByxhqXGTxmCM6GRDNyukQEv9RY04MpLeuJvp8AECUgsQo

To claim this, I am signing this object:

@ChristianAlexander
ChristianAlexander / Test.java
Last active August 29, 2015 14:09
Tester for money module of Task 6, CSCD 349, Fall '14, EWU
package task6.money;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Christian Alexander on 11/10/14.
*/
public class Test {