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
| --- | |
| disable-model-invocation: true | |
| description: Run the full assembly pipeline - 9 sequential code quality steps using sub-agents. | |
| --- | |
| # /assemble - Assembly Pipeline | |
| Run 9 sequential code quality steps. Each step is dispatched as a `general-purpose` sub-agent via the Task tool. Steps run **sequentially** because each modifies code and runs tests - parallel execution would cause conflicts. | |
| **Fail-fast**: If any step's sub-agent reports a failure attempt to resolve the failure first. |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| APP_ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| cd "$APP_ROOT" | |
| TOOLS="Bash,Read,Edit,Write,Glob,Grep" | |
| run_step() { | |
| local name="$1" |
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
| feature "share documents" do | |
| specify do | |
| Given "Mary is signed in" | |
| ... | |
| When "Joe is signed in" | |
| ... | |
| end | |
| let(:mary) { "Mary" } |
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
| :tddium: | |
| :tests: | |
| - :type: custom | |
| :command: bundle exec rake jasmine:ci | |
| :invocation: single | |
| :output: exit-status |
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
| pushd `pwd` | |
| if rvm --version 2>/dev/null; then | |
| gem install soloist | |
| else | |
| sudo gem install soloist | |
| fi | |
| mkdir -p ~/cookbooks; cd ~/cookbooks |
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
| module Foo | |
| def say | |
| 'foo' | |
| end | |
| end | |
| module Bar | |
| def say | |
| 'bar' | |
| end |
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 HttpMethod | |
| object HttpPostMethod extends HttpMethod { override def toString = "POST" } | |
| object HttpGetMethod extends HttpMethod { override def toString = "GET" } | |
| object HttpDeleteMethod extends HttpMethod { override def toString = "DELETE" } | |
| object HttpPutMethod extends HttpMethod { override def toString = "PUT" } | |
| abstract class Param(){ | |
| val name: String | |
| val description: String |
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
| var connection = http.createClient(80, 'content.guardianapis.com'); | |
| var request = connection.request('GET', q.uri, {'host':'content.guardianapis.com'}); | |
| request.end(); | |
| request.on('response', function(response){ | |
| var apiData = ""; | |
| response.setEncoding('utf8'); | |
| response.on('data', function(chunk){ | |
| apiData += chunk; | |
| }); | |
| response.on('end', function(){ |
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
| { error: null | |
| , ended: false | |
| , maxFieldsSize: 2097152 | |
| , keepExtensions: true | |
| , uploadDir: '/tmp' | |
| , encoding: 'utf-8' | |
| , headers: | |
| { host: 'localhost:3000' | |
| , 'user-agent': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' | |
| , accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' |
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
| { error: null | |
| , ended: false | |
| , maxFieldsSize: 2097152 | |
| , keepExtensions: true | |
| , uploadDir: '/tmp' | |
| , encoding: 'utf-8' | |
| , headers: | |
| { host: 'localhost:3000' | |
| , connection: 'keep-alive' | |
| , referer: 'http://localhost:3000/' |
NewerOlder