I hereby claim:
- I am ernie on github.
- I am ernie (https://keybase.io/ernie) on keybase.
- I have a public key whose fingerprint is DE33 68E0 9D43 082C 3145 78E8 4E8C 6B3F EC74 DCB2
To claim this, I am signing this object:
| local openai = require('codecompanion.adapters.http.openai') | |
| local log = require('codecompanion.utils.log') | |
| local utils = require('codecompanion.utils.adapters') | |
| local Curl = require('plenary.curl') | |
| local config = require('codecompanion.config') | |
| local _cache_expires | |
| local _cache_file = vim.fn.tempname() | |
| local _cached_models | |
| ---Remove any keys from the message that are not allowed by the API |
| server { | |
| listen 80; | |
| server_name venture.mydomain.com; | |
| return 301 https://venture.mydomain.com$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name venture.mydomain.com; |
| #!/bin/sh | |
| echo $( | |
| find app/controllers -path app/controllers/concerns -prune -o -type f | wc -l | |
| ) / $(( | |
| $(egrep -r -l '<\s*ActiveRecord::Base' app/models | wc -l) | |
| + $( | |
| ( | |
| [ -d app/models/concerns ] && | |
| find app/models/concerns -type f | wc -l |
| #!/usr/bin/env ruby | |
| gem 'activerecord' | |
| gem 'minitest' | |
| require 'active_record' | |
| require 'minitest/autorun' | |
| ActiveRecord::Base.establish_connection( | |
| adapter: 'postgresql', | |
| database: 'playground' |
| require 'kramdown' | |
| require 'kramdown/parser' | |
| module Kramdown | |
| module Parser | |
| class MyParser < GFM | |
| def initialize(source, options) | |
| super | |
| @span_parsers.delete(:span_html) |
| class PersonRepository < Norm::PostgreSQLRepository | |
| def named(name) | |
| select_records(select_statement.where(:name => name)) | |
| end | |
| def select_statement | |
| Norm::SQL.select.from('people') | |
| end |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # ... some resources regarding escape sequences ... | |
| # man console_codes | |
| # http://en.wikipedia.org/wiki/ANSI_escape_code | |
| # http://rtfm.etla.org/xterm/ctlseq.html | |
| # http://linuxgazette.net/137/anonymous.html | |
| # http://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
| # http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlvt100.html | |
| # http://pushpopnil.info/post/804629866/zsh-cursor-color-vi-mode |
| #!/usr/bin/env ruby | |
| class Module | |
| private | |
| def delegate(*args) | |
| dest, prefix = _extract_valid_delegation_options(args.pop) | |
| _define_delegators(caller_locations.first, prefix, dest, args) | |
| end |
| #!/usr/bin/env ruby | |
| require 'minitest/autorun' | |
| class Reorder | |
| SINGLE_CHAR = /./ | |
| def initialize(word, order) | |
| @word, @order = word, order | |
| end |