Skip to content

Instantly share code, notes, and snippets.

View universemaster's full-sized avatar
💭
Taking a breather

universemaster

💭
Taking a breather
View GitHub Profile
@universemaster
universemaster / Code.gs
Created June 14, 2022 16:54 — forked from abfo/Code.gs
Google fit to google sheets improved sample, handles steps, weight and distance for one or more days at a time. See https://ithoughthecamewithyou.com/post/export-google-fit-daily-steps-to-a-google-sheet for instructions.
// add your Google API Project OAuth client ID and client secret here
var ClientID = '';
var ClientSecret = '';
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Google Fit')
.addItem('Authorize if needed (does nothing if already authorized)', 'showSidebar')
.addItem('Get Metrics for Yesterday', 'getMetrics')
.addItem('Get Metrics for past 60 days', 'getHistory')
$$x^2 + y$$
We write
$$\begin{aligned}
df &= (dx,dy) ⋅ \left( \frac{∂ f}{∂ x}, \frac{∂f}{∂y} \right) \\
&= d 𝐬 ⋅ ∇f\,.
\end{aligned}$$
---
@universemaster
universemaster / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console