Skip to content

Instantly share code, notes, and snippets.

@rozzy
rozzy / HCKR.terminal
Created July 2, 2014 09:05
install font before: http://goo.gl/6H4xJ
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjIwODQ2NzE3NjIgMC4yMzQ4MDUxMDg3IDAuNjM4OTU3Njc5MwAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@rozzy
rozzy / git-empty-dir.fish
Created July 3, 2014 12:39
Create .gitignore file in empty directories to commit them. (Fish)
function commit-empty-dir -d "Create .gitignore file in empty directories to commit them"
sudo find . -type d -empty -exec touch '{}'/.gitignore \;
end
@rozzy
rozzy / devices-mixins.less
Last active August 29, 2015 14:09
Auto retina images with background-size
@screenMobile: 320px;
@screenTablet: 768px;
@screenDesktop: 992px;
@screenLarge: 1200px;
@screenExtraLarge: 1600px;
.mobile(@rules, @invert: false) {
.mixin (@invert) when (@invert = false) {
@query: ~"(min-width: @{screenMobile})";
@media @query {
void replace_string_in_place(std::string& subject, const std::string& search,
const std::string& replace) {
size_t pos = 0;
while ((pos = subject.find(search, pos)) != std::string::npos) {
subject.replace(pos, search.length(), replace);
pos += replace.length();
}
}
@rozzy
rozzy / agent loop
Created March 14, 2025 20:31 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet