Skip to content

Instantly share code, notes, and snippets.

Avatar

Julien Louette JulienLouette

  • Belgium
View GitHub Profile
@JulienLouette
JulienLouette / autodetect_receiver.py
Created Jun 23, 2016
Raspoid - autodetect script (receiver side).
View autodetect_receiver.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
from threading import Thread
import sys
import time
import json
## logs levels
FORCED = 0 # Very few logs - critically needed
@JulienLouette
JulienLouette / visualizer.html
Created Jun 23, 2016
Raspoid - Accelerometer, gyroscope, complementary filter: visualizer.
View visualizer.html
<html>
<head>
<meta charset="UTF-8" />
<link href="bootstrap.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery-1.12.1.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
var active = false;
var ipAddress;
var port;
View bootstrap.min.css
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-si
View jquery-1.12.0.min.js
/*! jQuery v1.12.0 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:func
@JulienLouette
JulienLouette / 3DVisualizer.py
Created Jun 23, 2016
Raspoid - 3D visualizer, based on work of Andrew Birkett, presented in a post on Bitify (http://blog.bitify.co.uk/2013/11/3d-opengl-visualisation-of-data-from.html 16 November 2013)
View 3DVisualizer.py
#!/usr/bin/python
import socket
import pygame
import urllib
from OpenGL.GL import *
from OpenGL.GLU import *
from math import radians
from pygame.locals import *
import sys
You can’t perform that action at this time.