This file contains 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
-- PROBLEM 1: Large objects as arguments | |
react.createClass Obj#{ | |
render: fn -> | |
doSomething! | |
} | |
-- Becomes -- | |
<{ | |
react.createClass Obj#{ | |
render: fn -> | |
<{ doSomething! }> |
This file contains 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
#include "test.h" | |
int main() { | |
return real_main(); | |
} |
This file contains 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 |
This file contains 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 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 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
%lex | |
%% | |
\s+ /* skip whitespace */ | |
"."|","|";"|":" /* skip punctuation */ | |
[Rr][Ee][Cc][Oo][Mm][Mm][Ee][Nn][Dd] | |
|[Rr][Ee][Cc][Oo][Mm][Mm][Ee][Nn][Dd][Aa][Tt][Ii][Oo][Nn][Ss]? | |
return 'RECOMMEND'; |
This file contains 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
################ | |
# ENTERING LEX # | |
################ | |
### | |
# Define Tokens | |
### | |
tokens = ( | |
'COURSE', | |
'RECOMMEND', |
This file contains 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 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 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/" |
OlderNewer