Project description goes here. This should include:
- Is this project currently being used in production?
- If not, what was its purpose? Is it an ongoing experiment or deprecated code?
- What's the role this code plays in the org's ecosystem?
| resp, err := svc.InvokeModelWithResponseStream(context.TODO(), &bedrockruntime.InvokeModelWithResponseStreamInput{ | |
| Accept: &accept, | |
| ModelId: &modelId, | |
| ContentType: &contentType, | |
| Body: []byte(string(payloadBody)), | |
| }) |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| ) | |
| func stringPrompt(label string) string { |
| resp, err := svc.InvokeModel(context.TODO(), &bedrockruntime.InvokeModelInput{ | |
| Accept: &accept, | |
| ModelId: &modelId, | |
| ContentType: &contentType, | |
| Body: []byte(string(payloadBody)), | |
| }) |
| func stringPrompt(label string) string { | |
| var s string | |
| r := bufio.NewReader(os.Stdin) | |
| for { | |
| fmt.Fprint(os.Stderr, label+" ") | |
| s, _ = r.ReadString('\n') | |
| if s != "" { | |
| break |
| ### code to make rest calls to the Tessitura API | |
| import requests | |
| import json | |
| import base64 | |
| import os | |
| ## Tessitura API | |
| hostName = os.environ['TESSITURA_API'] |
| const http = require('http'); | |
| const path = require('path'); | |
| const express = require('express'); | |
| const translate = require('moji-translate'); | |
| const app = express(); | |
| app.use(express.static(path.join(__dirname, ''))); | |
| app.set('views', './views') | |
| app.set('view engine', 'pug') |
| git filter-branch --prune-empty --tree-filter ' | |
| git lfs track "*.csv" | |
| git add .gitattributes .gitconfig | |
| for file in $(git ls-files | xargs git check-attr filter | grep "filter: lfs" | sed -r "s/(.*): filter: lfs/\1/"); do | |
| echo "Processing ${file}" | |
| git rm -f --cached ${file} | |
| echo "Adding $file lfs style" | |
| git add ${file} |
| git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs |