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 / data.csv
Created August 12, 2015 13:22
data! from editdata.org!
foo meh
bar wow
beep bop
#!/bin/bash
rm -Rf ~/.Trash/*
@anthonyringoet
anthonyringoet / gulpfile.js
Created December 9, 2014 08:30
Tiny static live reload server
var gulp = require('gulp');
var livereload = require('gulp-livereload')
var port = process.env.PORT || 4444;
gulp.task('server', function(next) {
var finalhandler = require('finalhandler');
var http = require('http');
var serveStatic = require('serve-static');
var serve = serveStatic(__dirname, {'index': ['index.html']});
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
@anthonyringoet
anthonyringoet / index.js
Created June 13, 2014 07:09
requirebin sketch
var Game = require('crtrdg-gameloop');
var canvas = document.createElement('canvas');
canvas.id = 'game';
var body = document.getElementsByTagName('body')[0];
body.appendChild(canvas);
var game = new Game({
canvasId: 'game',