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
{ | |
"@context": { | |
"foo": { | |
"@id": "http://example.com/foo", | |
"@container": "@set" | |
} | |
}, | |
"foo": [ | |
{ | |
"@context": {"foo": "http://example.com/other"}, |
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
#!/usr/bin/env escript | |
-mode(compile). | |
-export([main/1]). | |
main(_) -> | |
Mode = subtree_mode(), | |
Repos = read_repos(), | |
ok = filelib:ensure_dir(apps_path()), |
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
[url "https://github.com/"] | |
insteadOf = git://github.com/ | |
insteadOf = git@github.com: | |
insteadOf = gh: | |
insteadOf = github: | |
[url "https://github.com/standard-analytics/"] | |
insteadOf = sa: | |
[url "https://git.apache.org/repos/asf/"] | |
insteadOf = apache: | |
[url "https://github.com/strmpnk/"] |
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
[Erln8] | |
color=true | |
banner=false | |
default_config=default | |
system_default=OTP-17.0-dirty | |
[Repos] | |
default=https://github.com/erlang/otp.git | |
[Erlangs] |
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
Everyone who has used Ruby for a little while will quickly become familiar with its custom control structures. They are easy to use and very quick to build. Here is an example implementation of Enumerable#inject: | |
def inject(initial) | |
memo = initial # note that this line is only here for clarity. It could be shorter. | |
each {|x| memo = yield(memo,x)} | |
memo | |
end | |
Now that was easy! It is easy to use and works cleanly: |
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
[Erln8] | |
color=true | |
banner=false | |
default_config=default | |
system_default=R17RC2-dirty | |
[Repos] | |
default=https://github.com/erlang/otp.git | |
[Erlangs] |
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
[url "https://github.com/"] | |
insteadOf = git://github.com/ | |
insteadOf = git@github.com: |
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
creating cache ./config.cache | |
checking host system type... x86_64-apple-darwin13.0.0 | |
checking target system type... x86_64-apple-darwin13.0.0 | |
checking build system type... x86_64-apple-darwin13.0.0 | |
checking for mawk... no | |
checking for gawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking for perl5... no | |
checking for perl... /usr/bin/perl |
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
/* output from running `scss extend.scss` */ | |
error, .badError { | |
border: 1px #f00; | |
background: #fdd; } | |
.error.intrusion, .intrusion.badError { | |
font-size: 1.3em; | |
font-weight: bold; } |
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
-module(cons). | |
-export([demo/0, reveal/1]). | |
format(Form, Terms) -> lists:flatten(io_lib:format(Form, Terms)). | |
%% Show that all lists are actually a construction of pairs | |
%% (aka. the "cons" operator [ L | R ]) by converting terms | |
%% into an explicit string form via pattern matching. | |
reveal([Left|Right]) -> |