I hereby claim:
- I am flamerohr on github.
- I am flamerohr (https://keybase.io/flamerohr) on keybase.
- I have a public key ASBNMetcQv0IpOF-nl4963iBezu0LfGNAG_WJSmAOROv7wo
To claim this, I am signing this object:
| DataShape *read_csv(uint32_t resource_id, CsvRowCallback process_csv_row) { | |
| ResHandle handle = resource_get_handle(resource_id); | |
| size_t size = resource_size(handle); | |
| size_t chunk_size = 128; | |
| char x[20] = ""; | |
| char y[20] = ""; | |
| char z[20] = ""; | |
| int idx = 0; |
| import { | |
| useRef, useLayoutEffect, | |
| } from 'react'; | |
| const FRAME_RATE = 1000 / 60; | |
| /** | |
| * A react hook for using animation frame, which will cancel when unmounted. | |
| * This was intended for basic drawing logic on a canvas, anything too complex should | |
| * consider using a drawing library instead. |
I hereby claim:
To claim this, I am signing this object:
| 049955ca0b42c586a5422a9d47fe1edf80c871b90740b2784a563af708a33859b7196059d704cec6881facc187e12bdb2c1f1868ebe66393b50003696bf9d037da;JonForest |
| // glocal function to use with the success in all $.ajax calls | |
| // two callbacks are given, to handle when the ajax data succeeds and when the ajax data fails. | |
| function check_response(success_callback, error_callback) { | |
| // the function the success will call | |
| var check(data, textStatus, jqXHR) { | |
| try { | |
| // try to parse the json | |
| data = $.parseJSON(data); | |