Skip to content

Instantly share code, notes, and snippets.

View jplattel's full-sized avatar

Joost Plattel jplattel

View GitHub Profile

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 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>"
@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 = ""
# 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 / 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)
#!/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"
https://www.filepicker.io/api/file/ZgvsMoJcSXSUewgmJNCY
package { import as3isolib.graphics.SolidColorFill; import flash.net.URLRequest; import flash.display.Loader; import flash.events.*; import as3isolib.enum.IsoOrientation; import flash.display.Bitmap; import as3isolib.graphics.BitmapFill; import as3isolib.display.IsoSprite; public class BoxFactory { private var stage:Object; private var view:ViewMediatheek; private var mySprite = new IsoSprite(); private function imgLoadComplete(e:Event):void { var myImg:Bitmap = new Bitmap(e.target.content.bitmapData); mySprite.sprites = [myImg]; } private var position:Object = { x: 0, y: 0, z: 0 } private var size:Object = { x: MediatheekConstante.gridSize, y: MediatheekConstante.gridSize, z: MediatheekConstante.gridSize - 10 } private var color:int = 0x000000; public function BoxFactory( stage:Object, view:ViewMediatheek ) { this.stage = stage; this.view = view; } public function createBox( position:Object, color, size:Object ):void {
# Imports
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import GetPosts, NewPost
from wordpress_xmlrpc.methods.users import GetUserInfo
import markdown
import sys
import webbrowser
# Converts a markdown file to a post and asks for titles, tags and categories
def post(f):
# Imports
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import GetPosts, NewPost
from wordpress_xmlrpc.methods.users import GetUserInfo
import markdown
import sys
import webbrowser
# Converts a markdown file to a post and asks for titles, tags and categories
def post(f):