Skip to content

Instantly share code, notes, and snippets.

View ChristianAlexander's full-sized avatar

Christian Alexander ChristianAlexander

View GitHub Profile

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 November 2, 2024 02:23
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 {
@ChristianAlexander
ChristianAlexander / Task4CADriver.java
Created October 28, 2014 16:00
Driver for Task 4 in CSCD 349, 9:00 M-F, Fall 2014
/**
* Created by Christian Alexander on 10/26/14.
*/
import java.awt.Point;
import java.awt.Dimension;
import java.util.*;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Color;