Skip to content

Instantly share code, notes, and snippets.

Have GPT-4 write a song

Mix.install(
  [
    {:midiex, "~> 0.6.1"},
    {:instructor, "~> 0.0.5"}
  ],
  config: [
    instructor: [

OOMing Affinity Propagation

Mix.install([
  {:scholar, "~> 0.2.1"},
  {:exla, "~> 0.6.0"}
])

Nx.global_default_backend(EXLA.Backend)

Mint closed

Mix.install([
  {:mint, "~> 1.5"},
  {:kino, "~> 0.9.4"}
])

Section

{
description = "Monorepo";
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";

Benchmark Explorer.DataFrame.from_list/1

Deps

Mix.install([
  {:benchee, "~> 1.0.0"},
  {:explorer, github: "kimjoaoun/explorer", branch: "joao/from_list"}
])

Exploring Explorer

Installation

Mix.install([
  {:explorer, "~> 0.1.0-dev",
   github: "amplifiedai/explorer", ref: "9b95d08679ecc97fcd4b5a9eedaaade95954bdfb"}
])
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
subprocess32 = python38Packages.buildPythonPackage rec {
pname = "subprocess32";
version = "3.5.4";
src = python38Packages.fetchPypi {
inherit pname version;
sha256 =
#!/usr/bin/bash
# install dependencies
sudo add-apt-repository ppa:neovim-ppa/stable
sudo add-apt-repository ppa:lazygit-team/release
sudo apt-get update
sudo apt-get install -y git \
curl \
zsh \
direnv \
import { useEffect } from "react";
const useOnClickOutside = (ref, handler) => {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) {
return;
}
handler(event);
import { useEffect } from "react";
const useOnClickOutside = (ref, handler) => {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) {
return;
}
handler(event);