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
(* Note: `cdnr` and `cdnem` are custom aliases for this project *) | |
tell application "iTerm" | |
(* Creates a new window for our project *) | |
set newWindow to (create window with default profile) | |
select first window | |
tell the current window | |
(* cd to rails directory and start server *) | |
activate current session |
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
// return [{ "name": '', "id": '' }].concat(paymentOptions.map(function(p){ return {"name": p.get('name'), "id": p.get("id")} })); | |
return paymentOptions.reduce((a, b) => a.push(b.getProperties('id', 'name')), [{"name": "", "id": ""]); | |
// OR | |
return paymentOptions.reduce(function(a, b) { | |
return a.push(b.getProperties('id', 'name')); | |
}, [{"name": "", "id": ""}]) |
OlderNewer