Skip to content

Instantly share code, notes, and snippets.

View jplattel's full-sized avatar

Joost Plattel jplattel

View GitHub Profile
#!/usr/local/bin/python
import os
import urllib
import simplejson as json
import time
#params
def fetchPage(i):
url = "https://api.mobypicture.com/"
apikey = "jhIMirqEUScIcDH6"
@jplattel
jplattel / csv2osc.py
Last active December 20, 2015 21:18
Pipe a CSV file column over to OSC and send it, a small commandline interface.
import time
import OSC
import argparse
# Argument parser
parser = argparse.ArgumentParser(description='(loop) a CSV file to a OSC adress with values according to the file.')
parser.add_argument('input')
parser.add_argument('-o','--out', help='Out OSC adress', required=True)
parser.add_argument('-t','--time', help='Pause length', required=True)
# Before using this script, you should have python installed. < http://python.org >
# For auth, go to http://web.kengao.tw/Untitled.php, and following the instruction of Moves.
# If done, you will see a line : your auth token : <a lot of characters>, just copy these characters
# download this .py file, and open it using text-editor
import requests
# paste your previously copied access token to replace the following ACCESS_TOKEN_TO_MOVES_APP
payload = {"access_token": "ACCESS_TOKEN_TO_MOVES_APP", "trackPoints":"true"}
@jplattel
jplattel / mobypy
Created December 30, 2013 13:00
Mobypicture export trough their API.
#!/usr/local/bin/python
import os
import urllib
import simplejson as json
import time
#params
def fetchPage(i):
url = "https://api.mobypicture.com/"
apikey = ""
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 / mobypicture.py
Created January 2, 2017 20:10
A simple script to pull all my latest Mobypicture photos
#!/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>"

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:

version: "2"
services:
user-api:
image: 3e5d32ad6dd5
environment:
MONGO_URL: mongodb://mongo
MONGO_DB: meteor
METEOR_URL: meteor
METEOR_PORT: 3000
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)
@jplattel
jplattel / bubble-counter.cpp
Last active January 7, 2018 21:01
A simple bubble counter for a Wemos D1 mini lite
/*
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.