<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| var Promise = require('bluebird'); | |
| var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n))); | |
| funcs | |
| .each(iterator) // logs: 500, 100, 400, 200 | |
| .then(console.log) // logs: [ [Function], [Function], [Function], [Function] ] | |
| funcs | |
| .mapSeries(iterator) // logs: 500, 100, 400, 200 |
| var reA = /[^a-zA-Z]/g; | |
| var reN = /[^0-9]/g; | |
| function sortAlphaNum(a, b) { | |
| var aA = a.replace(reA, ""); | |
| var bA = b.replace(reA, ""); | |
| if (aA === bA) { | |
| var aN = parseInt(a.replace(reN, ""), 10); | |
| var bN = parseInt(b.replace(reN, ""), 10); | |
| return aN === bN ? 0 : aN > bN ? 1 : -1; |
http://stackoverflow.com/questions/3612628/erlang-getting-error-1-syntax-error-before
Sum = fun([], _) -> 0; ([H | T], F) -> H + F(T, F) end,
Sum([1,2,3], Sum).| /* | |
| Parts of this code is inspired from the following: | |
| [1] https://userstyles.org/styles/105000/smart-dark | |
| */ | |
| html { | |
| background-color: #222 !important; | |
| } | |
| body { |
| var | |
| // Local ip address that we're trying to calculate | |
| address | |
| // Provides a few basic operating-system related utility functions (built-in) | |
| ,os = require('os') | |
| // Network interfaces | |
| ,ifaces = os.networkInterfaces(); | |
| // Iterate over interfaces ... |
| launch() -> | |
| register(echo, spawn(demo, echo, [])). | |
| echo() -> | |
| receive | |
| {Pid, Msg} -> | |
| Pid ! Msg, | |
| echo() | |
| end. |
| /* | |
| Parts of this code is inspired from the following: | |
| [1] https://userstyles.org/styles/105000/smart-dark | |
| */ | |
| html { | |
| background-color: #222 !important; | |
| } | |
| body { |