- these are the calls used by the dexcom uploader app
- these are in no particular order!
User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0
GET
| # These are my notes from the PragProg book on CoffeeScript of things that either | |
| # aren't in the main CS language reference or I didn't pick them up there. I wrote | |
| # them down before I forgot, and put it here for others but mainly as a reference for | |
| # myself. | |
| # assign arguments in constructor to properties of the same name: | |
| class Thingie | |
| constructor: (@name, @url) -> | |
| # is the same as: |
| <canvas height="720" width="1280" id="canvas"></canvas> | |
| <button id="snapshotBtn">snapshot</button> | |
| <script> | |
| var fragments = []; | |
| var frames = []; | |
| var ws = new WebSocket('ws://192.168.1.3:4001'); | |
| var canvas = document.getElementById('canvas'); | |
| var ctx = canvas.getContext('2d'); | |
| var reader = new FileReader(); |
| This is the title of the gist (It is first, since it starts with a space in the name) |
| function markGithubFileViewed() { | |
| getFirstOldGithubUiViewedCheckbox = () => $('input[type="checkbox"].js-reviewed-checkbox:not([checked])'); | |
| getFirstNewGithubUiViewedCheckbox = () => $('button[aria-pressed="false"'); | |
| let firstMatchingElement = getFirstOldGithubUiViewedCheckbox() ?? getFirstNewGithubUiViewedCheckbox(); | |
| if (!firstMatchingElement) { | |
| console.error('No viewed checkbox found'); | |
| return; | |
| } | |
| firstMatchingElement.scrollIntoView(); | |
| setTimeout(() => firstMatchingElement.click(), /*Time to Read the code*/10); |