I hereby claim:
- I am glenndevenish on github.
- I am paniercas (https://keybase.io/paniercas) on keybase.
- I have a public key whose fingerprint is F0E1 7FE2 4D6B EEC0 8B62 B4FA 81EB 77E8 2080 D6CD
To claim this, I am signing this object:
| /* | |
| As it stands, Xero reports from their API are not very nice to use. This function will return them in a flattened format. | |
| This takes the Report data (so, `parseXeroReport(response.Reports)` where response is the raw response from the API), and parses it. | |
| There's two formats it could take - one where it returns simply the value, and one where it returns an array of values. | |
| { | |
| "Date": "30 Sep 2018", | |
| "Sales": "12345.67", | |
| "Total Income": "12345.67", |
| /* | |
| How to use: | |
| Go to pantone.com | |
| open console | |
| paste the below function | |
| Run with getPantoneData('123 c').then(...) | |
| It returns an object with the format: |
| async function selectBatches (pause) { | |
| const wait = (ms) => { | |
| return new Promise((resolve) => { | |
| setTimeout(resolve, ms); | |
| }); | |
| } | |
| $('.fa-plus-square').each(i => $('.fa-plus-square')[i].click()) | |
| await wait(pause) | |
| $("a:contains('Select Oldest')").each(i => $("a:contains('Select Oldest')")[i].click()) | |
| await wait(pause) |
| /* | |
| From the Google Form, go to script editor. Enter this code. | |
| You will need: | |
| Calendar ID | |
| Form ID | |
| License: | |
| Share — copy and redistribute the material in any medium or format | |
| Adapt — remix, transform, and build upon the material for any purpose, even commercially. |
| arr.filter(arr => arr.name.match(new RegExp($("#search").val().replace(/ /g, "|"), "i"))) |
| /* | |
| merge.js | |
| Merge duplicates in JSON array. | |
| */ | |
| old_array = [ | |
| { | |
| "Some": "data", | |
| "Here": "would", | |
| "Be": "nice", |
| // Todo: get document from array of pantones | |
| // Load jQuery | |
| (function () { | |
| if ( !window.jQuery ) { | |
| var dollarInUse = !!window.$; | |
| var s = document.createElement('script'); | |
| s.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js'); | |
| s.addEventListener('load', function(){ | |
| console.log('jQuery loaded!'); |
| /* | |
| Automatically scroll on a page (for getting lazy-loaded pages). | |
| Run in the console. | |
| UPDATE: Now shows percentage | |
| */ | |
| var scroll_units = 1000; | |
| var scroll_iterations = 30; | |
| var scroll_delay = 2000; | |
| var iterations = 0; |
| /* | |
| Automatically click 'connect' on every LinkedIn search result on the page. | |
| Enter in the console, and click 'Send now' quickly on each one. | |
| Requires jQuery, which is automatically loaded. | |
| 2.0 Features: | |
| Selectively click on people with words in their profile (only works on the suggestions page) | |
| Remove irrelevant suggestions from list | |
| Reload page after clicking | |
| */ |
I hereby claim:
To claim this, I am signing this object: