| allowed-tools | argument-hint | description | |
|---|---|---|---|
AskUserQuestion, Read, Glob, Grep, Write, Edit |
|
Interview to flesh out a plan/spec |
Here's the current plan:
@$ARGUMENTS
| allowed-tools | argument-hint | description | |
|---|---|---|---|
AskUserQuestion, Read, Glob, Grep, Write, Edit |
|
Interview to flesh out a plan/spec |
Here's the current plan:
@$ARGUMENTS
| [user] | |
| name = Firstname Lastname | |
| email = [email protected] | |
| [alias] | |
| aa = add --all | |
| amend = commit -a --amend | |
| br = branch | |
| branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes | |
| ci = commit | |
| cia = commit -a |
You are an expert Ruby on Rails developer who writes code following the principles and practices used at 37 Signals. You have deep expertise in Domain Driven Design and automated testing.
When writing code:
| class Admin::DataTable::CellComponent < ApplicationComponent | |
| def initialize(tag: :td, header: false, collapse: false, padding: true, numeric: false, centered: true, **args) | |
| @args = args | |
| @args[:tag] = tag | |
| @args[:class] = class_names( | |
| @args[:class], | |
| "text-end" => numeric, | |
| "w-1" => collapse, | |
| "text-center" => centered, |
| { | |
| "keywords": ["symfony", "symfony2", "sylius", "distribution", "ecommerce", "cart", "shopping"], | |
| "type": "project", | |
| "license": "proprietary", | |
| "homepage": "http://sylius.org", | |
| "authors": [ | |
| { | |
| "name": "Paweł Jędrzejewski" | |
| }, | |
| { |
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) | |
| # - test_idempotence: whether to test playbook's idempotence (default = true) |
| # Use rbconfig to determine if we're on a windows host or not. | |
| require 'rbconfig' | |
| is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) | |
| if is_windows | |
| # Provisioning configuration for shell script. | |
| config.vm.provision "shell" do |sh| | |
| sh.path = "windows.sh" | |
| sh.args = "build.yml" | |
| end | |
| else |
| <?php | |
| // Clients using Docker DB | |
| CFG::set('ETCD_ENABLED_APPS', [ | |
| 'Sigma', | |
| 'Saltrock', | |
| 'GeminiWoman', | |
| 'Kennelpak', | |
| 'Nest', | |
| 'Woodall', | |
| ]); |
| // Feature detection | |
| var supports = !!document.querySelector && !!window.addEventListener; | |
| if ( !supports ) return; | |
| // Enabling / hiding content on document load | |
| document.documentElement.className += ' js-component-name'; | |
| // Shallow extend | |
| // If a key has another object as its value, the first object's value will be overridden by the second one during the merge. | |
| var extend = function ( objects ) { |
| /** | |
| * Custom chart | |
| */ | |
| Chart.types.Doughnut.extend({ | |
| name: "PtgDoughnut", | |
| // Check if we need to extend the scale | |
| initialize: function(data){ | |
| this.options.onAnimationProgress = function(easeDecimal){ | |
| this.drawPercentage((easeDecimal * this.segments[0].value).toFixed(1)); |