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 swift | |
import Foundation | |
import NaturalLanguage | |
import Cocoa | |
// Check if there are input arguments | |
guard CommandLine.arguments.count > 1 else { | |
print("Usage: nlp_split.swift <input_string>") | |
exit(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
#!/usr/bin/env swift | |
import Cocoa | |
class MetadataQueryExample: NSObject { | |
var query: NSMetadataQuery? | |
override init() { | |
super.init() | |
startQuery() | |
} |
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
type item = "minecraft:stick" | "minecraft:fuck" | "minecraft:wool" | "mymod:ingot" | |
type letters = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | |
type craftInput = letters | ' ' | |
type craftInputLine = `${craftInput}${craftInput}${craftInput}` | |
type craftInputMatrix = [craftInputLine, craftInputLine, craftInputLine] |
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 swift | |
import AppKit | |
import Foundation | |
let arguments = CommandLine.arguments | |
guard arguments.count > 1 else { | |
print("Usage: script.swift <file-path1> <file-path2> ...") | |
exit(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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "LiteLoaderQQNT Plugin manifest", | |
"properties": { | |
"manifest_version": { | |
"type": "integer", | |
"enum": [ | |
1, | |
2, | |
3, |
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
payload: | |
- 173.245.48.0/20 | |
- 103.21.244.0/22 | |
- 103.22.200.0/22 | |
- 103.31.4.0/22 | |
- 141.101.64.0/18 | |
- 108.162.192.0/18 | |
- 190.93.240.0/20 | |
- 188.114.96.0/20 | |
- 197.234.240.0/22 |
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
payload: | |
- otheve.beacon.qq.com | |
- tpstelemetry.tencent.com | |
- h.trace.qq.com | |
- report.gamecenter.qq.com |
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
const headers = $request.headers; | |
let ua_start = headers['User-Agent'].match(/(Mozilla\/5.0 \()(.+?)\)/); | |
if (ua_start == null) { | |
$done({}); | |
} else { | |
ua_start = ua_start[0]; | |
} | |
delete headers["user-agent"]; |