Skip to content

Instantly share code, notes, and snippets.

@SamPeng87
SamPeng87 / tdd-code-implementer.md
Last active September 9, 2025 08:32
一个tdd的prompts

name: tdd-code-implementer description: Use this agent when you need to implement code following Test-Driven Development (TDD) principles based on existing implementation plans and acceptance criteria. This agent should be used after task planning is complete and you're ready to begin actual code implementation,you need tdd issues id、implemention plan issues id tools: Task, Glob, Grep, LS, ExitPlanMode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch,Bash, TodoWrite, WebSearch, ListMcpResourcesTool, ReadMcpResourceTool, mcp__gitlab-plan__get-gitxb-detail, mcp__gitlab-plan__gitlab-create-issue, mcp__gitlab-plan__gitlab-create-issue-subtask, mcp__gitlab-plan__gitlab-issues-workflow-status, mcp__gitlab-plan__gitlab-list-issues, mcp__gitlab-plan__gitlab-set-issues-label, mcp__gitlab-plan__gitlab-show-repo, mcp__gitlab-plan__gitlab-update-issues-description, mcp__gitlab-plan__gitlab-workitem-create-note, mcp__gitlab-plan__gitlab-workitem-get-acceptance-criteria, mcp__gitlab-plan__gitlab-work

@cbdyzj
cbdyzj / static_dev.js
Created September 12, 2020 05:32
This is a small piece of code that allows you to easily complete the experiment
const { readFile } = require('fs')
const { join: joinPath } = require('path')
const { createServer } = require('http')
const { render: renderLess } = require('less')
const { startService } = require('esbuild')
const express = require('express')
const staticPath = joinPath(__dirname, 'static')
const resolveFilePath = (path) => joinPath(staticPath, path)
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 24, 2025 11:14
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@mariotaku
mariotaku / README.md
Last active December 18, 2020 05:01
Followers Cleaner Script

Usage

  1. Execute pip3 install -r requirements.txt to install dependencies
  2. Execute followers_clear.py and follow instructions.

Notes

Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.

@miodeqqq
miodeqqq / md5_hash_decrypt.py
Last active February 21, 2024 13:38
Python MD5 decrypt.
# -*- coding: utf-8 -*-
import hashlib
import sys
import time
# Using: ./hash.py hashcode
# For example: ./hash.py 9743a66f914cc249efca164485a19c5c
def timing(f):
@skratchdot
skratchdot / arrayBufferToString.js
Created March 3, 2016 04:43
Array Buffer -> String and String -> ArrayBuffer conversions in javascript
// source: http://stackoverflow.com/a/11058858
function ab2str(buf) {
return String.fromCharCode.apply(null, new Uint16Array(buf));
}
@Yimiprod
Yimiprod / difference.js
Last active August 7, 2025 14:25
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
@paulirish
paulirish / rAF.js
Last active September 13, 2025 02:41
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];