Skip to content

Instantly share code, notes, and snippets.

@rokroskar
rokroskar / main.py
Created February 28, 2024 22:53
ToF 8x8 sensor data over USB
#
# This code goes on the Pico. See https://learn.pimoroni.com/article/micropython-and-vl53l5cx for
# information on how to get the VL53LCX sensor set up.
#
import micropython
import sys
import ustruct
import breakout_vl53l5cx
digraph G {
compound = true;
rankdir=LR
user -> analyst[label="provide question\n & data"]
analyst -> QC[lhead=cluster_0];
subgraph cluster_0 {
style=filled;
color=lightgrey;
@rokroskar
rokroskar / User-pod-stats.json
Created December 15, 2021 16:48
Renku grafana dashboards
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
with import <nixpkgs> { system = "x86_64-linux"; };
let ubuntu = pkgs.dockerTools.pullImage {
imageName = "ubuntu";
finalImageTag = "focal";
imageDigest = "sha256:9d6a8699fb5c9c39cf08a0871bd6219f0400981c570894cd8cbea30d3424a31f";
sha256 = "1yv17hm2y82kdg4cypkvw3xi2hh22l1kkvvbqgmhf8wxvbs4bya1";
};
in
pkgs.dockerTools.buildImage {
name = "jupyter";
@rokroskar
rokroskar / NA12878_2.bam
Last active November 14, 2019 14:27
htsget as a git filter
# htsget pointer file
url: http://htsnexus.rnd.dnanex.us/v1/reads/BroadHiSeqX_b37/NA12878
reference_name: 2
start: 1000
end: 200000
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sample presentation</title>
<meta name="author" content="Rok Roskar">

Keybase proof

I hereby claim:

  • I am rokroskar on github.
  • I am rrrrrok (https://keybase.io/rrrrrok) on keybase.
  • I have a public key ASBDsDcy7tr0knxAJ_ubO2SIv96Qtd9zcCbUMUjHBIqY_Qo

To claim this, I am signing this object:

@rokroskar
rokroskar / twitter_filtering-working-copy.ipynb
Created April 27, 2016 11:36
twitter groupBy and pivot example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"id": 1,
"title": "Spark Prometheus",
"originalTitle": "Spark Prometheus",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,