2015-10-21
- jennifer
- martym
| # RIPER-5 智能编程助手协议 | |
| ## 基本设置 | |
| 你是集成在Cursor IDE中的高智能AI编程助手,能够基于用户需求进行多维度思考并解决所有问题。 | |
| 但是,由于你的高级能力,经常会在没有明确请求的情况下过度热情地实施更改,这可能导致代码逻辑错误。为防止这种情况,你必须**严格遵循此协议**。 | |
| **语言设置**: 除非用户另有指示,所有常规交互响应应使用中文。但模式声明(如[MODE: RESEARCH])和特定格式输出(如代码块)应保持英文以确保格式一致性。 | |
| **模式声明要求**: 必须在每个响应开头用方括号声明当前模式,格式:`[MODE: MODE_NAME]` |
| #!/bin/bash | |
| cd $(dirname $0) ; CWD=$(pwd) | |
| PRGNAM=broadcom-wl | |
| VERSION=${VERSION:-6.30.223.271} | |
| BUILD=${BUILD:-1} | |
| TAG=${TAG:-_SBo} | |
| PKGTYPE=${PKGTYPE:-tgz} |
| #!/usr/bin/env python3 | |
| class A: | |
| def dec(func): | |
| def wrapper(self, *args, **kwargs): | |
| print("Pre") | |
| func(self, *args, **kwargs) | |
| print("Post") | |
| return wrapper |
| { | |
| "rules": [ | |
| { | |
| "rulePriority": 10, | |
| "description": "For `latest` tag, keep last 5 images", | |
| "selection": { | |
| "tagStatus": "tagged", | |
| "tagPrefixList": ["latest"], | |
| "countType": "imageCountMoreThan", | |
| "countNumber": 5 |
| #!/bin/bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| REPO_NAME="jenkins-master" | |
| function manifest() { |
| #!/usr/bin/env python | |
| import io | |
| import os | |
| import tarfile | |
| import requests | |
| import stash | |
| SITE_PACKAGES = os.path.expanduser("~/Documents/site-packages-3") |
| #!/usr/bin/env python | |
| # encoding=utf8 | |
| """ | |
| This script will cleanup leftover resources(instance, key-pair and security group) | |
| related to an instance specified by its ipaddr or instance-id. | |
| I frequently ran out of time when I have a packer debug session open and | |
| the saml role only grant me one hour of access. So instead of manually | |
| removing the keypair and the security group, I come up with this script. | |
| """ |
| # For this codewar question: https://www.codewars.com/kata/54baad292c471514820000a3 | |
| import math | |
| def create_number_class(bases): | |
| base = len(bases) | |
| def __init__(self, value): | |
| self.value = value |
| import json | |
| import sys | |
| import requests | |
| AUTH ={ | |
| 'username': "xiaket", | |
| 'password': "YourPasswordHere", | |
| } |