Skip to content

Instantly share code, notes, and snippets.

Joost Plattel jplattel

View GitHub Profile
@jplattel
jplattel / asetniop.json
Created Mar 9, 2020
Karabiner Elements configuration for asetniop layout
View asetniop.json
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 300,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
@jplattel
jplattel / jplattel.zsh-theme
Last active Jan 18, 2020
Personal zsh theme
View jplattel.zsh-theme
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '± >' && return
echo '>'
}
View gist:95d2e0c974009081ef23df2438357d11
This file has been truncated, but you can view the full file.
[
{
"message": {
"method": "Page.loadEventFired",
"params": {
"timestamp": 146256.825428
}
},
"webview": "(CDC7F7C5FAEE3C55AE8315884E3A3846)"
@jplattel
jplattel / bubble-counter.cpp
Last active Jan 7, 2018
A simple bubble counter for a Wemos D1 mini lite
View bubble-counter.cpp
/*
Bubble Counter for fermentation processes
Made by: Joost Plattel
Email: jsplattel@gmail.com
This little arduino project is used for tracking fermentation processes
it works with a little photo interupter and posts the bubble count every
10 minutes to a endpoint specified.
View gist:28593ef4ffd96856dce8c2380f4b8272
com.partup.PartupIntegrationTest *** ABORTED *** (1 millisecond)
java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: com.partup.PartupIntegrationTest
at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:81)
at org.scalatest.tools.DiscoverySuite.$anonfun$nestedSuites$1(DiscoverySuite.scala:38)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
at scala.collection.Iterator.foreach(Iterator.scala:929)
at scala.collection.Iterator.foreach$(Iterator.scala:929)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
at scala.collection.IterableLike.foreach(IterableLike.scala:71)
at scala.collection.IterableLike.foreach$(IterableLike.scala:70)
View gist:68dcee684f4d207c8a3fc85f6ed24392
version: "2"
services:
user-api:
image: 3e5d32ad6dd5
environment:
MONGO_URL: mongodb://mongo
MONGO_DB: meteor
METEOR_URL: meteor
METEOR_PORT: 3000
View keybase.md

Keybase proof

I hereby claim:

  • I am jplattel on github.
  • I am jplattel (https://keybase.io/jplattel) on keybase.
  • I have a public key whose fingerprint is 763D BCE5 4150 FB8A 2F75 E404 7F0C 1D5B 7999 28B3

To claim this, I am signing this object:

@jplattel
jplattel / mobypicture.py
Created Jan 2, 2017
A simple script to pull all my latest Mobypicture photos
View mobypicture.py
#!/usr/local/bin/python
import os
import urllib
import simplejson as json
import time
#params
def fetchPage(i):
url = "https://api.mobypicture.com/"
apikey = "<YOUR_API_KEY_HERE>"
View lifeslice-average.py
import glob, numpy, PIL
from PIL import Image
# Access all JPG files in current directory, change this if neccesary
webcamshot_list=glob.glob('*.jpg')
# Assuming all images are the same size, get dimensions of first image
width,heigth = Image.open(webcamshot_list[0]).size
# Get the amount of files
@jplattel
jplattel / mobypy
Created Dec 30, 2013
Mobypicture export trough their API.
View mobypy
#!/usr/local/bin/python
import os
import urllib
import simplejson as json
import time
#params
def fetchPage(i):
url = "https://api.mobypicture.com/"
apikey = ""
You can’t perform that action at this time.