I hereby claim:
- I am anthonyringoet on github.
- I am anthonyr (https://keybase.io/anthonyr) on keybase.
- I have a public key ASDnCRXewbW53F8Dn5lZIbOA-zh0jI7Sf55EPrmEC_jzpwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Road grand tours imported activities in Golden Cheetah give issues if there are multiple entries per second. | |
// The detail view seems to be correct but it leads to incorrect max wattages in the trends overview. | |
const fs = require('fs'); | |
const { set, find, forEach } = require('lodash') | |
const activityData = require('./input.json') | |
const samples = activityData.RIDE.SAMPLES | |
let updatedSamples = [] |
# Usage: | |
########## | |
# dcu : docker-compose up -d | |
# dcd : docker-compose down | |
# dex <container>: execute a bash shell inside the RUNNING <container> | |
# di <container> : docker inspect <container> | |
# dim : docker images | |
# dip : IP addresses of all running containers | |
# dl <container> : docker logs -f <container> | |
# dnames : names of all running containers |
module.exports = async (req, res) => { | |
res.writeHead(200, { | |
'Connection': 'keep-alive', | |
'Content-Type': 'text/event-stream', | |
'Cache-Control': 'no-cache' | |
}); | |
setInterval(() => { | |
res.write({ foo: 'bar' }); | |
}, 500) |
html { | |
line-height: 1.15; /* 1 */ | |
-webkit-text-size-adjust: 100%; /* 2 */ | |
} | |
body { | |
margin: 0; | |
font-size: 0.8rem; | |
} |
/** | |
* Center with calc(), tip from Lea Verou presentation | |
*/ | |
body{ | |
/* housekeeping */ | |
background: #ffa; | |
min-height: 100%; | |
font-family:sans-serif; | |
} |
/** | |
* html5 progress bar styling | |
*/ | |
html{ | |
background: #f06; | |
background: linear-gradient(45deg, #f33, #a33); | |
min-height:100%; | |
} | |
/* remove standard styling |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
browserify: { | |
dist: { | |
files: { | |
'build/module.js': ['js/**/*.js'] | |
} | |
} |
#!/bin/bash | |
rm -Rf ~/.Trash/* |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Untitled</title> | |
<link href="css/app.css" rel="stylesheet" /> | |
</head> | |
<body> |