- Get key ratio, return csv format file
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=<market>:<stock>
Market
- XHKG: Hong Kong Stock Exchange
- XASE: American Stock Exchange
- XNAS: Nasdaq Stock Exchange >* XNYS: New York Stock Exchange
| function duplicateCharCount(str) { | |
| if(str) { | |
| var obj = {}; | |
| for(let i = 0; i < str.length; i++) { | |
| if(obj[str[i]]){ | |
| obj[str[i]] += obj[str[i]]; | |
| }else { | |
| obj[str[i]] = 1; |
| function useSelectors(reducer, mapStateToSelectors) { | |
| const [state] = reducer; | |
| const selectors = useMemo(() => mapStateToSelectors(state), [state]); | |
| return selectors; | |
| } | |
| function useActions(reducer, mapDispatchToActions) { | |
| const [, dispatch] = reducer; | |
| const actions = useMemo(() => mapDispatchToActions(dispatch), [dispatch]); | |
| return actions; |
| Lenovo Thinkcentre M92P | |
| When booting to USB installer disk installation proceeds as expected | |
| 1962 no operating system found | |
| When booting into preview mode all disks load without issue, so its not the cable | |
| Secure Boot option either not present or disabled | |
| Last time I fixed this by adding a fake line to the boot loader from instructions on the web | |
| Got a warning during installation about UEFI mode | |
| Windows Fast Startup disabled | |
| jfly comment below: |
I wanted to know: How can I get the current timestamp for UTC in ISO 8601 format to appear in the body data of a Postman request?
After reading some of the Postman documentation and online comments, this is the solution (using Postman v5.0.1 for Chrome 58.0.3029.110 on macOS 10.12.5) I used:
In the Builder, while editing a request, click the "Pre-request Script" heading below the URL field.
In the editor field that appears, enter this single line of JavaScript:
postman.setGlobalVariable('timestampUtcIso8601', (new Date()).toISOString());| license: mit | |
| height: 700 |
| var Types = new Map(); | |
| Types.set(Array, function(v) { | |
| var l = v.length; i = 0, a = Array(l); | |
| for (i; i<l; i++) { | |
| a[i] = v[i]; | |
| } | |
| return a; | |
| }); | |
| Types.set(Number, function(v) { | |
| return v * 1; |