Skip to content

Instantly share code, notes, and snippets.

View jens-ox's full-sized avatar
☺️

Jens Ochsenmeier jens-ox

☺️
View GitHub Profile
@jens-ox
jens-ox / heatmap.js
Last active August 10, 2018 14:04
Heatmap Example
import React from 'react';
import { Group } from '@vx/group';
import { genBins } from '@vx/mock-data';
import { scaleBand, scaleLinear } from '@vx/scale';
import { HeatmapCircle, HeatmapRect } from '@vx/heatmap';
import { extent, min, max } from 'd3-array';
let data = genBins(16, 16);
// reproduce data structure

Keybase proof

I hereby claim:

  • I am jens-ox on github.
  • I am jens_ox (https://keybase.io/jens_ox) on keybase.
  • I have a public key ASBG5Xn4A3o5CDWjwie8PRsxxVR4b0dF5D1EIhnc6N6LVQo

To claim this, I am signing this object:

@jens-ox
jens-ox / summary.cls
Last active November 22, 2017 22:51
Class file I use for my lecture summaries
\ProvidesClass{summary}[summary class (Jens Ochsenmeier)]
\NeedsTeXFormat{LaTeX2e}[1996/06/01]
% load base class
\LoadClass[aip,jmp,amsmath,amssymb,reprint,nobalancelastpage]{revtex4-1}
% Packages --- General
\RequirePackage[T1]{fontenc}
@jens-ox
jens-ox / mydiss.cls
Last active November 22, 2017 21:10 — forked from ummels/mydiss.cls
Class file that I use for lecture notes
% Copyright (c) 2010 Michael Ummels <michael@ummels.de>
%
% Permission to use, copy, modify, and/or distribute this software for any
% purpose with or without fee is hereby granted, provided that the above
% copyright notice and this permission notice appear in all copies.
%
% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
@jens-ox
jens-ox / lock
Created October 14, 2017 13:49
Script to make blurry lock screen. I previously did this using imagemagick, which was horrifyingly slow, especially on very high resolutions. The ffmpeg approach is way faster 😄
#!/bin/bash
# temporary path for screenshot
TMPBG=/tmp/screen.png
# replace this with your own "lock" icon
LOCK=$HOME/Dropbox/Bilder/Wallpaper/lock.png
# get resolution
RES=$(xrandr | grep 'current' | sed -E 's/.*current\s([0-9]+)\sx\s([0-9]+).*/\1x\2/')
@jens-ox
jens-ox / layout
Created October 14, 2017 09:28
Switch layout through rofi
#!/bin/bash
XRANDR=$(which xrandr)
MONITORS=( $( ${XRANDR} | awk '( $2 == "connected" ){ print $1 }' ) )
NUM_MONITORS=${#MONITORS[@]}
TITLES=()