Skip to content

Instantly share code, notes, and snippets.

View cortfritz's full-sized avatar
💭
what order: curiosity, empathy, clarity, energy, resolve?

Cort Fritz cortfritz

💭
what order: curiosity, empathy, clarity, energy, resolve?
View GitHub Profile
@cortfritz
cortfritz / ai.ex
Created August 4, 2025 14:08
elixir mix task version of harper reed's feb 2025 llm workflow
# Harper's post: https://harper.blog/2025/02/16/my-llm-codegen-workflow-atm/
#
# I mostly copied his file based workflow here
#
defmodule Mix.Tasks.Ai do
use Mix.Task
@shortdoc "AI-assisted development workflow tasks"
@moduledoc """
@cortfritz
cortfritz / mise.toml
Last active August 4, 2025 14:09
mise toml to support a workflow using ollama
# AI-Powered Development Tasks Configuration
# =====================================================
#
# This configuration provides AI-powered development tasks using Ollama and repomix
# to analyze your repository and generate various development artifacts.
#
# It is based on Harper Reed's Feb 2025 LLM workflow described here: https://harper.blog/2025/02/16/my-llm-codegen-workflow-atm/
# ...worth a read.
#
# PREREQUISITES:
@cortfritz
cortfritz / keybase.md
Created October 5, 2017 18:31
keybase.md

Keybase proof

I hereby claim:

  • I am cortfritz on github.
  • I am cortfritz (https://keybase.io/cortfritz) on keybase.
  • I have a public key ASAc-Ud4oZuQOm5Ki_MJ1LDdMeI9xbn9g_5Mv2bwYg3Ldgo

To claim this, I am signing this object:

@cortfritz
cortfritz / gist:8921761
Created February 10, 2014 18:47
sailsjs blueprint is strangely sensitive to query parameters set in a policy
/**
* queryLimited
*
* @module :: queryLimited
* @description :: policy ensures the existence of query variables limit and skip and keeps them in reasonable bounds
* @docs :: http://sailsjs.org/#!documentation/policies
*
*/
module.exports = function queryLimited(req, res, next) {
var defaultLimit = 10
@cortfritz
cortfritz / Explore JSON in Bootstrap and Jade
Created July 26, 2012 19:44
Recursively display contents of JSON object using bootstrap and jade
mixin prettyDate(uglyDate)
daysAgo = ((((new Date() - uglyDate) / 1000) / 60) / 60) / 24
hours = uglyDate.getHours()
minutes = uglyDate.getMinutes()
ampm = hours >= 12 ? 'pm' : 'am'
hours = hours % 12
hours = hours ? hours : 12
minutes = minutes < 10 ? '0'+minutes : minutes
strTime = hours + ':' + minutes + ' ' + ampm