Skip to content

Instantly share code, notes, and snippets.

View brycehemme's full-sized avatar

Bryce Hemme brycehemme

  • Granular
  • Des Moines, IA
View GitHub Profile
@brycehemme
brycehemme / fitbit-heartrate-data-visualizer.html
Last active August 12, 2019 00:52
Visualize Fitbit Heart Rate Data. From the Fitbit data export, this tool will visualize one to many heartrate*.json files. This gist is heavily based on the details outlined here: https://jrtechs.net/data-science/a-closer-look-at-fitbit-data
<html>
<head>
<script type="text/javascript" src="//unpkg.com/vis-timeline@latest/dist/vis-timeline-graph2d.min.js"></script>
<link href="//unpkg.com/vis-timeline@latest/dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="col-4 shadow-lg p-3 bg-white rounded">
<label>Heart Rate JSON Files</label>
<input type="file" id="files" name="files[]" multiple />
<output id="list"></output>
@brycehemme
brycehemme / sync-projects
Created September 27, 2017 12:33 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"