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
| # This diff editor uses the state of the git index (staged files) to edit the diff. | |
| # This gives an effect similar to `git commit`, which can be useful due to tooling | |
| # often being high-quality for using the git index to split up changes. | |
| # | |
| # This tool is designed to be used with the commit, split, and squash commands. | |
| # This is made easier with some aliases. A custom merge-editor definition is unneeded. | |
| # | |
| # LIMITATIONS: | |
| # 1. jj doesn't allow a diff editor to edit files which are only changed in the index, | |
| # and unchanged in the working copy, those will be discarded. |
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
| # To be added to .config/jj/config.toml | |
| # A diff editor --tool to automatically select the contents of the git index. | |
| [merge-tools.git-index] | |
| diff-args = [] # disable using as a diff viewer | |
| edit-args = ["--work-tree=$output", "checkout", "--", "."] | |
| program = "git" | |
| # Can be used with jj commit, split, and squash | |
| [aliases] |
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
| #ifndef tracing_core_h | |
| #define tracing_core_h | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif |
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
| (rr) p (nsCString*)malloc(sizeof(nsCString)) | |
| $65 = (nsCString *) 0x7f74904b3430 | |
| (rr) p $65->nsTString() | |
| $66 = void | |
| (rr) p uri->GetSpec(*$65) | |
| $67 = nsresult::NS_OK | |
| (rr) p $65->get() | |
| $68 = 0x7f748a61c50c "about:blank" |
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
| void generic(); | |
| void specific(); | |
| template<typename T> | |
| void f(T&&) { | |
| generic(); | |
| } | |
| void f(const int&) { | |
| specific(); |
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 perl | |
| # This short script queries the icecream scheduler to discover what machines are connected, | |
| # and sums the maximum job counts for all x86-64 machines. | |
| # It can be used in your mozconfig as follows: | |
| # mk_add_options MOZ_MAKE_FLAGS="-j$(icecc-jobs)" | |
| # if this script is on your PATH, and named icecc-jobs | |
| use List::Util qw(sum0); |
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
| # You could also do this in emacs probably, but this is easier. | |
| export RUST_SRC_PATH=/path/to/rust/checkout/src | |
| export PATH="$PATH:/path/to/racer/binary/" |
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
| var irc = require('irc'); | |
| var client = new irc.Client("irc.mozilla.org", "spoofme", { | |
| channels: [ "#interns" ] | |
| }); | |
| client.addListener("pm", function(from, msg) { | |
| if (from === "mystor" && msg === "hack") { | |
| client.say("#interns", "mystor: Help! Someone hacked me!"); |
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
| % gcc --version | |
| Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
| Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) | |
| Target: x86_64-apple-darwin14.0.0 | |
| Thread model: posix | |
| % gcc test.c | |
| Undefined symbols for architecture x86_64: | |
| "_foo", referenced from: | |
| _main in test-696342.o |
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
| /target | |
| /Cargo.lock |
NewerOlder