Skip to content

Instantly share code, notes, and snippets.

View neophob's full-sized avatar
😎

Michael Vogt neophob

😎
View GitHub Profile
@neophob
neophob / gist:5021637
Created February 23, 2013 22:29
PixelController config for Rainbowduino
#
# Copyright (C) 2011-2013 Michael Vogt <michu@neophob.com>
#
# This file is part of PixelController.
#
# PixelController is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@neophob
neophob / gist:4967797
Created February 16, 2013 17:23
PixelController DMX Configuration for PixelController v1.3.0, 10x15 Configuration
#
# Copyright (C) 2011-2013 Michael Vogt <michu@neophob.com>
#
# This file is part of PixelController.
#
# PixelController is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@neophob
neophob / gist:3141124
Created July 19, 2012 06:20
Stream node.js to struts
protected StreamInfo getStreamInfo(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
URL url = new URL("http://192.168.128.160:8001/grepper.htm");
HttpURLConnection httpcon = (HttpURLConnection) url.openConnection();
BufferedInputStream bis = new BufferedInputStream(httpcon.getInputStream());
ServletOutputStream out = response.getOutputStream();
log.debug("streamopen");
byte[] outputByte = new byte[4096];