Skip to content

Instantly share code, notes, and snippets.

View emptyflask's full-sized avatar

Jon Roberts emptyflask

View GitHub Profile
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
ruby-nix.url = "github:inscapist/ruby-nix";
bundix = {
url = "github:inscapist/bundix/main";
inputs.nixpkgs.follows = "nixpkgs";
};
fu.url = "github:numtide/flake-utils";
bob-ruby.url = "github:bobvanderlinden/nixpkgs-ruby";
@emptyflask
emptyflask / slim_to_haml.rb
Last active July 17, 2024 15:02
convert slim templates to haml using openai
# frozen_string_literal: true
require 'openai'
require 'fileutils'
require 'haml'
# Initialize OpenAI client
openai_client = OpenAI::Client.new(access_token: ENV.fetch('OPENAI_ACCESS_TOKEN'), log_errors: true)
# Root directory containing Slim templates
@emptyflask
emptyflask / fibonacci.txt
Created January 31, 2025 16:44
Deepseek R1 (1.5b) writes code
❯ nix run nixpkgs#ollama -- run deepseek-r1:1.5b
pulling manifest
pulling aabd4debf0c8... 100% ▕█████████████████████████▏ 1.1 GB
pulling 369ca498f347... 100% ▕█████████████████████████▏ 387 B
pulling 6e4c38e1172f... 100% ▕█████████████████████████▏ 1.1 KB
pulling f4d24e9138dd... 100% ▕█████████████████████████▏ 148 B
pulling a85fe2a2e58e... 100% ▕█████████████████████████▏ 487 B
verifying sha256 digest
writing manifest
success