The complete guide to building Skills for Claude — covers fundamentals, planning, testing, distribution, patterns, and YAML frontmatter reference (converted from Anthropic's official PDF)
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
| package main | |
| // Working example: https://goplay.space/#Sa7qCLm6w65 | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/hex" | |
| "fmt" |
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
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/hex" | |
| "fmt" | |
| ) |
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
- open
Terminal, go to the dir :cd /Applications/Beyond Compare.app/Contents/MacOS - change the name
BComparetoBCompare.bak:mv BCompare BCompare.bak - touch a file name
BCompare, andchmod a+ux BCompare:touch BCompare && chmod a+ux BCompare - open
BComparewith text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
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 python | |
| from flask.sessions import SecureCookieSessionInterface | |
| from itsdangerous import URLSafeTimedSerializer | |
| class SimpleSecureCookieSessionInterface(SecureCookieSessionInterface): | |
| # Override method | |
| # Take secret_key instead of an instance of a Flask app | |
| def get_signing_serializer(self, secret_key): | |
| if not secret_key: | |
| return None |
The following commands will start a container with Kafka and Zookeeper running on mapped ports 2181 (Zookeeper) and 9092 (Kafka).
docker pull spotify/kafka
docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=kafka --env ADVERTISED_PORT=9092 --name kafka spotify/kafka
ADVERTISTED_HOST was set to kafka, which will allow other containers to be able to run Producers and Consumers.
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |
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 python | |
| class Point(object): | |
| def __init__(self, _x, _y, _order = None): self.x, self.y, self.order = _x, _y, _order | |
| def calc(self, top, bottom, other_x): | |
| l = (top * inverse_mod(bottom)) % p | |
| x3 = (l * l - self.x - other_x) % p | |
| return Point(x3, (l * (self.x - x3) - self.y) % p) |
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
| + (NSString*)numberToChineseUppercase:(double)num{ | |
| int iLen,iNum,iAddZero=0; | |
| NSMutableString *szChMoney = [[NSMutableString alloc] init]; | |
| NSArray *hzUnit = @[@"分",@"角",@"元",@"拾",@"佰",@"仟",@"万",@"拾",@"佰",@"仟",@"万",@"亿",@"拾",@"佰",@"仟",@"万",@"拾",@"佰",@"仟"]; | |
| NSArray *hzNum = @[@"零",@"壹",@"贰",@"叁",@"肆",@"伍",@"陆",@"柒",@"捌",@"玖"]; | |
| NSString *szNum = [NSString stringWithFormat:@"%18.0f",num*100]; | |
| szNum = [szNum stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
| iLen =(int) szNum.length; | |
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 | |
| # 免翻墙安装Go tools | |
| branch="release-branch.go1.4" | |
| mkdir -p $GOPATH/src/golang.org/x | |
| git clone -b $branch git@github.com:golang/tools.git $GOPATH/src/golang.org/x/tools | |
| git clone git@github.com:golang/net.git $GOPATH/src/golang.org/x/net | |
| cd $GOPATH | |
| go install golang.org/x/tools/cmd/goimports |
NewerOlder