Skip to content

Instantly share code, notes, and snippets.

View anthonyringoet's full-sized avatar

Anthony R anthonyringoet

View GitHub Profile
@anthonyringoet
anthonyringoet / keybase.md
Last active November 5, 2019 14:50
keybase

Keybase proof

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:

@anthonyringoet
anthonyringoet / clean.js
Created August 12, 2019 11:25
golden cheetah / road grand tours activity cleanup
// 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
@anthonyringoet
anthonyringoet / index.js
Created July 28, 2018 10:53
micro-sse-possible
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;
}
@anthonyringoet
anthonyringoet / dabblet.css
Created October 9, 2012 07:12
Center with calc(), tip from Lea Verou presentation
/**
* Center with calc(), tip from Lea Verou presentation
*/
body{
/* housekeeping */
background: #ffa;
min-height: 100%;
font-family:sans-serif;
}
@anthonyringoet
anthonyringoet / dabblet.css
Created January 25, 2012 09:20
html5 progress bar styling
/**
* html5 progress bar styling
*/
html{
background: #f06;
background: linear-gradient(45deg, #f33, #a33);
min-height:100%;
}
/* remove standard styling
@anthonyringoet
anthonyringoet / Gruntfile.js
Created November 22, 2013 08:37
Auto compile browserify with Grunt and watch
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
browserify: {
dist: {
files: {
'build/module.js': ['js/**/*.js']
}
}
@anthonyringoet
anthonyringoet / trash.sh
Created August 26, 2013 07:30
Take out the trash
#!/bin/bash
rm -Rf ~/.Trash/*
@anthonyringoet
anthonyringoet / gist:5803425
Created June 18, 2013 07:50
html file start
<!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>