curl -s -X POST 'http://localhost:11000/api/projections/ai-search' -H 'Content-Type: application/json' -d '{"query":"retractable roof stadiums"}' | jq '.data[0]' | node -e '
let input = "";
process.stdin.on("data", chunk => input += chunk);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| number | category | priority | incident_state | short_description | assigned_to | |
|---|---|---|---|---|---|---|
| INC0020002 | Inquiry / Help | 4 - Low | New | |||
| INC0020003 | Inquiry / Help | 4 - Low | New | |||
| INC0020004 | Inquiry / Help | 4 - Low | New | |||
| INC0020005 | Inquiry / Help | 4 - Low | New |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ALL_STUDENTS_SHEET_NAME = 'All Students'; | |
| const ColumnIDs = { | |
| NAME: 0, | |
| GRADE: 1, | |
| SCORE: 2 | |
| }; | |
| const HEADER_ROW = JSON.stringify(["Name", "Grade", "Test Score"]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ServiceNowComSource { | |
| static sys_id = '67890'; | |
| async *#mapHistoryEntry(event) { | |
| yield { sys_id: event.sys_id, code: `class ServiceNowComSource { static sys_id = ${event.sys_id} }`, schema_version: '12345', }; | |
| } | |
| async *mapHistory(history) { | |
| for (const event of history) { | |
| yield* this.#mapHistoryEntry(event); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use like `node ts-module-lexer.js packages/extensions/foo/src/extension.ts` | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const ts = require('typescript'); | |
| const [_processName, _scriptName, ...args] = process.argv; | |
| const fileName = path.basename(args[0]); | |
| const sourceText = fs.readFileSync(args[0], 'utf8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autoload -U add-zsh-hook | |
| load-nvmrc() { | |
| local node_version="$(nvm version)" | |
| local nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then | |
| local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
| if [ "$nvmrc_node_version" = "N/A" ]; then | |
| nvm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=$(node -e "console.info(require('./package.json').packageManager.match(/[0-9.]+/g)[0])") sh - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/ | |
| # runs git grep on a pattern, and then uses git blame to who did it | |
| ggb() { | |
| git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } | |
| # small modification for git egrep bash | |
| geb() { | |
| git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autoload -U add-zsh-hook | |
| load-nvmrc() { | |
| local node_version="$(nvm version)" | |
| local nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then | |
| local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
| if [ "$nvmrc_node_version" = "N/A" ]; then | |
| nvm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///Users/jameswomack/Projects/github/SportsCardInvestor/sci-api/jest.config.js","entries":[{"id":"Xi7a.js","source":"Workspace Edit","timestamp":1663784147251}]} |
NewerOlder