This file contains hidden or 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
| function varGet(style, name) { | |
| style.getPropertyValue(`--${name}`); | |
| } | |
| function varSet(style, name, ...vals) { | |
| style.setProperty(`--${name}`, vals); | |
| } |
This file contains hidden or 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
| thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:366 | |
| stack backtrace: | |
| 1: 0x55f32d6aead0 - sys::backtrace::tracing::imp::write::h1fe79f3711caca0eUnt | |
| 2: 0x55f32d6b0ea5 - panicking::log_panic::_<closure>::closure.39701 | |
| 3: 0x55f32d6b08f1 - panicking::log_panic::hffc6d029fed602571nx | |
| 4: 0x55f32d6a8483 - sys_common::unwind::begin_unwind_inner::h7045c1c64d9ab8edYgs | |
| 5: 0x55f32d6a8858 - sys_common::unwind::begin_unwind_fmt::h40ee994bfe85f7a54fs | |
| 6: 0x55f32d6ae1a1 - rust_begin_unwind | |
| 7: 0x55f32d6da02f - panicking::panic_fmt::h4c8d12e3c05f3b8cZEK | |
| 8: 0x55f32d6d9b68 - panicking::panic::hb8a57f0c8013c90awDK |
This file contains hidden or 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
| function parseExpression(program) { | |
| program = skipSpace(program); | |
| var match, expr; | |
| if (match = /^"([^"]*)"/.exec(program)) { | |
| expr = {type: "value", value: match[1]}; | |
| } else if (match = /^\d+\b/.exec(program)) { | |
| expr = {type: "value", value: Number(match[0])}; | |
| } else if (match = /^[^\s(),"]+/.exec(program)) { | |
| expr = {type: "word", name: match[0]}; |
This file contains hidden or 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
| added_keys='ssh-add -l' | |
| if [! $(echo $added_keys | grep <key string>)]; then | |
| ssh-add "$HOME/.ssh/id_rsa | |
| fi |
This file contains hidden or 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
| { | |
| "providers": [ | |
| { | |
| "provider": "ubs", | |
| "currencyPairs": [...] | |
| }, | |
| { | |
| "provider": "deutsche_bank", | |
| "currencyPairs": [...] | |
| } |
This file contains hidden or 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
| "use strict"; | |
| { | |
| let i = 3; | |
| console.log(i); | |
| } | |
| console.log(i); |
This file contains hidden or 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
| function groupBy(arr, fun) { | |
| let group = {}; | |
| arr.forEach(function(elm) { | |
| ((fun(elm) in group)) ? group[fun(elm)].push(elm) : group[fun(elm)] = [elm]; | |
| }); | |
| return group; | |
| } |
This file contains hidden or 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
| function groupBy(arr, fun) { | |
| let group = {}; | |
| arr.forEach(function(elm) { | |
| ((fun(elm) in group)) ? group[fun(elm)].push(elm) : group[fun(elm)] = [elm]; | |
| }); | |
| return group; | |
| } |
This file contains hidden or 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
| // POST -> /v1/rates | |
| { | |
| "provider": "UBS", | |
| "currency_pairs": [ | |
| "USD/SEK", | |
| "GBP/USD" | |
| ] | |
| } | |
| // GET -> /v1/rates | |
| { |
This file contains hidden or 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
| Advertisement (4.0+) | |
| AllocationInstruction (4.0+) | |
| AllocationInstructionAck (4.0+) | |
| DontKnowTrade (4.0+) | |
| Email (4.0+) | |
| ExecutionReport (4.0+) | |
| Heartbeat (4.0+) | |
| IOI (4.0+) | |
| ListCancelRequest (4.0+) | |
| ListExecute (4.0+) |