A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| #!/usr/bin/sed -rf | |
| # Unmangle Rust symbols | |
| # See https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=cae15db74999edb96dd9f5bbd4d55849391dd92b | |
| # Example, with [FlameGraph](https://github.com/brendangregg/FlameGraph): | |
| # perf record -g target/debug/bin | |
| # perf script | stackcollapse-perf | rust-unmangle | flamegraph > perf.svg | |
| # Remove hash and address offset | |
| s/::h[0-9a-f]{16}//g | |
| s/\+0x[0-9a-f]+//g |
| #![recursion_limit = "128"] // You didn't think we could do without this, did you? | |
| /// A compile-time map from identifiers to arbitrary (heterogeneous) expressions | |
| macro_rules! ident_map { | |
| ( $name:ident = { $($key:ident => $e:expr),* $(,)* } ) => { | |
| macro_rules! $name { | |
| $( | |
| ( $key ) => { $e }; | |
| )* | |
| // Empty invocation expands to nothing. Needed when the map is empty. |
| This code is under the MIT license. | |
| The GLSL code was taken from https://github.com/mattdesl/glsl-fxaa and is also under the MIT license. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| { | |
| "version": "0.1.0", | |
| "command": "cargo", | |
| "isShellCommand": true, | |
| "tasks": [ | |
| { | |
| "taskName": "build", | |
| "isBuildCommand": true, | |
| "showOutput": "always", | |
| "problemMatcher": { |
| # FontInstaller (by @olemoritz) | |
| # This script installs a custom TTF font on iOS (system-wide). | |
| # It can be used in one of two ways: | |
| # 1. Simply run it in Pythonista, you'll be prompted for the URL of the font | |
| # you'd like to install (if there's a URL in the clipboard, it'll be used by default) | |
| # 2. Use it as an 'Open in...' handler, i.e. select this file in Pythonista's 'Open in... | |
| # menu' setting. This way, you can simply download a ttf file in Safari and open it in |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.