When evaluating this code in an org-mode document:
const sq = x => x * x;
const cube = x => sq(sq(x));
return cube(4);| f(). | |
| Str = fun(X) -> io_lib:format("~p", [X]) end. | |
| Percent = fun | |
| (A, 0) -> "100%"; | |
| (A, B) -> [Str(round(100*A/B)), "%"] | |
| end. | |
| Get = fun |
| ' NOTE: additional discussion & implementations can be found here: https://gist.github.com/ropnop/10800fb5066bd5144d9aaad55a8a4d18 | |
| ' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156 | |
| set shell = WScript.CreateObject("Shell.Application") | |
| if not IsProcessRunning("vcxsrv.exe") then | |
| shell.shellExecute "vcxsrv.exe", ":0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto", "C:\Program Files\VcXsrv\", "", 0 | |
| end if | |
| shell.ShellExecute "bash", "-c -l ""DISPLAY=:0 terminator""", "", "open", 0 | |
| ' https://stackoverflow.com/questions/19794726/vb-script-how-to-tell-if-a-program-is-already-running |
| -module(decode_erlang_external_term_format). | |
| -export([binary_to_term/1]). | |
| binary_to_term(<<131, 80, _UncompressedSize:32, CompressedData/binary>>) -> | |
| Data = zlib:uncompress(CompressedData), | |
| decode(Data); | |
| binary_to_term(<<131, Data/binary>>) -> | |
| decode(Data). | |
| decode(<<82, _AtomCacheReferenceIndex, _Rest/binary>>) -> |
| %% graph_fsm.erl | |
| %% | |
| %% Author: Vance Shipley, Motivity Telecom Inc. <vances@motivity.ca> | |
| %% Date: November, 2000 | |
| %% | |
| %% | |
| %% This library is free software; you can redistribute it and/or | |
| %% modify it under the terms of the GNU Lesser General Public | |
| %% License as published by the Free Software Foundation; either | |
| %% version 2 of the License, or (at your option) any later |
| #!/usr/bin/env bash | |
| # Kill an Erlang process by node name | |
| # | |
| # e.g.: kill-erlang-node kred | |
| # Check usage | |
| if [ -z "$1" ]; then | |
| echo "Usage: `basename $0` NODE_NAME" | |
| exit 1 |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: