Skip to content

Instantly share code, notes, and snippets.

View cararemixed's full-sized avatar
🏳️‍🌈

Cara Mitchell cararemixed

🏳️‍🌈
View GitHub Profile
{
"@context": {
"foo": {
"@id": "http://example.com/foo",
"@container": "@set"
}
},
"foo": [
{
"@context": {"foo": "http://example.com/other"},
@cararemixed
cararemixed / merge
Last active August 29, 2015 14:11 — forked from anonymous/merge
#!/usr/bin/env escript
-mode(compile).
-export([main/1]).
main(_) ->
Mode = subtree_mode(),
Repos = read_repos(),
ok = filelib:ensure_dir(apps_path()),
@cararemixed
cararemixed / .gitconfig
Last active November 15, 2018 15:46
Git URL shortcuts
[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/"]
[Erln8]
color=true
banner=false
default_config=default
system_default=OTP-17.0-dirty
[Repos]
default=https://github.com/erlang/otp.git
[Erlangs]
@cararemixed
cararemixed / inject.txt
Created May 12, 2014 02:13
old articles I've written on Io
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:
@cararemixed
cararemixed / config
Created March 24, 2014 20:38
erln8.d/config
[Erln8]
color=true
banner=false
default_config=default
system_default=R17RC2-dirty
[Repos]
default=https://github.com/erlang/otp.git
[Erlangs]
@cararemixed
cararemixed / gitconfig
Created November 20, 2013 15:57
For those times when firewalls block port 22.
[url "https://github.com/"]
insteadOf = git://github.com/
insteadOf = git@github.com:
@cararemixed
cararemixed / 01.configure
Created October 17, 2013 16:35
spidermonkey build logs on 10.9
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
@cararemixed
cararemixed / actual.css
Created September 4, 2013 15:15
Sass extend problem/bug
/* output from running `scss extend.scss` */
error, .badError {
border: 1px #f00;
background: #fdd; }
.error.intrusion, .intrusion.badError {
font-size: 1.3em;
font-weight: bold; }
@cararemixed
cararemixed / cons.erl
Created July 10, 2013 02:35
This is derived from a demo I gave to explain the ins and outs of Erlang list construction literals at the NYC user group.
-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]) ->