This file contains 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
# bragdoc.ai - instructions for code-generating LLMS | |
Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase. | |
## Project Context | |
The project is called bragdoc.ai and is a chatbot that helps users keep a brag document about their achievements at work. Key features: | |
- Reads/listens to user messages, creates rows in a Achievements table for each achievement the user mentioned | |
- Creates weekly/monthly/performance review documents based on the data in the Achievements table | |
- Integrates with GitHub to extract achievements from commit messages and pull request descriptions |
This file contains 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
# Project Instructions for Code-Generating LLMs | |
Every time you opt to implement a rule(s), explicitly articulate the rule(s) in the output. You can shorten the rule description to a single word or phrase. | |
## Project Context | |
The project is focused on developing a chatbot that does cool things | |
- List | |
- Your | |
- Features |
This file contains 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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"worker": true, | |
"es6": true | |
}, | |
"globals": {}, | |
"plugins": [ |
This file contains 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
/** | |
* The final thing is to add a tap listener that is called whenever the user taps on the screen. | |
* We do a quick check to make sure they're not tapping on the carousel indicators (tapping on | |
* those indicators moves you between items so we don't want to override that), then either hide | |
* or show the info Component. | |
*/ | |
Ext.Viewport.element.on('tap', function(e) { | |
if (!e.getTarget('.x-carousel-indicator')) { | |
if (titleVisible) { | |
info.element.removeCls('apod-title-visible'); |
This file contains 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
(function() { | |
var originalRequest = Ext.Ajax.request; | |
Ext.Ajax.request = function(o) { | |
if (!(/config\/environment/.test(o.url))) { | |
o.url = String.format("/myprependString/{0}", o.url.replace(/^\//, '')); | |
} | |
return originalRequest.call(this, o); | |
}; |
This file contains 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
+--------------------------+-----------+-----------+-----------+-----------+ | |
| Name | Lines | LOC | Classes | LOC/C | | |
+--------------------------+-----------+-----------+-----------+-----------+ | |
| Controllers | 1876 | 1288 | 53 | 24 | | |
| Models | 1466 | 936 | 49 | 19 | | |
| Views | 9816 | 7035 | 94 | 74 | | |
| Libraries | 375 | 257 | 5 | 51 | | |
| Controller Specs | 174 | 119 | 4 | 29 | | |
| Model Specs | 171 | 134 | 3 | 44 | | |
| View Specs | 446 | 315 | 3 | 105 | |
This file contains 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
/** | |
* Defines all routes required for this application | |
*/ | |
ExtMVC.router.Router.defineRoutes = function(map) { | |
/** | |
* Sets up REST-like urls for a given model or models: | |
* | |
* map.resources('users'); | |
* | |
* Is equivalent to: |
This file contains 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
edward-spencers-mac-pro:root ed$ ruby script/build auto all | |
Built Ext MVC Application | |
Built the ColumnTree plugin | |
Built the DrilldownLayout plugin | |
Built the Exporter plugin | |
Built the GroupNavPanel plugin | |
Built the Notification plugin | |
Built the PazPar2 plugin | |
Built the Printer plugin |
This file contains 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
=== Contents of ../config/environment.json === | |
{ | |
//define the app. files are loaded in this order | |
overrides : ['Ext.Ajax', 'Ext.Component'], | |
plugins : ['Printer', 'Notification', 'GroupTabPanel', 'ColumnTree', 'Exporter', 'PazPar2'], | |
models : ['Operator', 'Fund'], | |
controllers: ['Application', '] | |
This file contains 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 Ext.ux.HumanReadableGrid | |
* @extends Ext.grid.GridPanel | |
* An extended MVC scaffold grid with support for easily showing human-readable strings for associated models | |
* instead of the default numerical ID. See loadAssociatedModel documentation for implementation details | |
*/ | |
Ext.ux.HumanReadableGrid = Ext.extend(Ext.grid.GridPanel, { | |
closable: true, |
NewerOlder