Skip to content

Instantly share code, notes, and snippets.

@s10mcow
s10mcow / fit.js
Created November 15, 2023 18:14
Fit file creator
const {
parseISO,
differenceInSeconds,
addSeconds,
isBefore,
isAfter,
getUnixTime
} = require('date-fns');
const garmin_offset = 631065600;
@s10mcow
s10mcow / data.json
Created November 15, 2023 18:06
workout metrics
[
{
"metric_id": 16244889,
"workout_id": 10513,
"user_sensor_id": 1532,
"type": "thb",
"value": 13.27,
"barColor": null,
"recorded_at": "2023-11-15T17:21:52.233Z"
},
@s10mcow
s10mcow / schema.json
Created April 7, 2023 14:43
Prisma Schema
This file has been truncated, but you can view the full file.
{
"data": {
"__schema": {
"queryType": { "name": "Query" },
"mutationType": { "name": "Mutation" },
"subscriptionType": null,
"types": [
{
"kind": "OBJECT",
"name": "Query",
const start = "8:00";
const end = "18:00";
const cal1 = [
["9:00", "10:00"],
["10:30", "11:30"],
["12:30", "13:00"],
["16:00", "17:00"],
];
const start = "8:00";
const end = "18:00";
const cal1 = [
["9:00", "10:00"],
["10:30", "11:30"],
["12:30", "13:00"],
["16:00", "17:00"],
];

Keybase proof

I hereby claim:

  • I am stenmuchow on github.
  • I am chaz_m (https://keybase.io/chaz_m) on keybase.
  • I have a public key ASC8y0pDVqBTbRfB1yvMfgpydyRVtN4NtZ3Uo3dxsqLWYAo

To claim this, I am signing this object:

@s10mcow
s10mcow / gist:40675369757afcbdd1cd2c0a3c532964
Created December 26, 2017 16:13
webpack-prod.config.js
'use strict';
/* eslint-env es6 */
const glob = require('glob'),
webpack = require('webpack'),
path = require('path'),
apps = require('./apps.json'),
loaders = require('./webpack.loaders'),
sharedConfig = require('./webpack.shared.config'),
@s10mcow
s10mcow / webpack.production.js
Created December 8, 2017 20:01
Webpack Production Config
'use strict';
/* eslint-env es6 */
const glob = require('glob'),
webpack = require('webpack'),
path = require('path'),
apps = require('./apps.json'),
loaders = require('./webpack.loaders'),
sharedConfig = require('./webpack.shared.config'),
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var wrench = require('wrench');
var options = {
src: 'src',
dist: 'dist',
tmp: '.tmp',
{
"name": "ubideo",
"version": "0.0.0",
"dependencies": {
"body-parser": "~1.4.3",
"bower": "~1.3.5",
"bowser": "^0.7.1",
"ejs": "latest",
"entities": "latest",
"express": "~4.4.4",