Skip to content

Instantly share code, notes, and snippets.

View arfoll's full-sized avatar

Brendan Le Foll arfoll

  • Deutschland
View GitHub Profile
@arfoll
arfoll / xbmcGLESfix.patch
Created February 7, 2011 11:00
Patch to fix compilation on gitmaster for XBMC with GLES
diff -uNr xbmc-20110207/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp xbmc-20110207-arfoll/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
--- xbmc-20110207/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp 2011-02-07 10:11:20.000000000 +0000
+++ xbmc-20110207-arfoll/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp 2011-02-07 10:33:24.306163877 +0000
@@ -41,6 +41,7 @@
#include "guilib/Texture.h"
#include "lib/DllSwScale.h"
#include "../dvdplayer/DVDCodecs/Video/OpenMaxVideo.h"
+#include "threads/SingleLock.h"
using namespace Shaders;
@arfoll
arfoll / python_avahi_browse.py
Created February 8, 2011 10:05
Python equivalent to avahi-browse service
#!/usr/bin/python
import sys
try:
import gobject
import avahi
import dbus
import gtk
import avahi.ServiceTypeDatabase
@arfoll
arfoll / gist:1278972
Created October 11, 2011 18:39
build lib32 kroc failure
Fixing up ./distribution/common/python-lib/distribution_tools/copy.py.
Fixing up ./distribution/common/python-lib/distribution_tools/command.py.
Fixing up ./distribution/common/python-lib/distribution_tools/__init__.py.
Fixing up ./distribution/common/python-lib/distribution_tools/archive.py.
Fixing up ./distribution/common/python-lib/distribution_tools/download.py.
Fixing up ./distribution/deb-pkg/build-tvm-avr.py.
Fixing up ./distribution/deb-pkg/copy-files.py.
Fixing up ./distribution/deb-pkg/util.py.
Fixing up ./distribution/deb-pkg/checkout-source.py.
Fixing up ./distribution/deb-pkg/make-deb-pkg.py.
@arfoll
arfoll / .bashrc
Created January 28, 2012 16:31
bashrc file
#!/bin/bash
#
# bashrc_config configuration script by Brendan Le Foll <brendan@fridu.net>
#
# skip setup if not an interactive shell
if [ -z "$PS1" ]; then
return
fi
@arfoll
arfoll / blink-io.cpp
Created October 18, 2014 14:56
mraablinksplit
@arfoll
arfoll / binding.gyp
Created November 23, 2014 18:03
mraa binding.gyp
{
'targets': [
{
'target_name': 'mraa',
'sources': [ '../src/mraa.c',
'../src/gpio/gpio.c',
'../src/aio/aio.c',
'../src/i2c/i2c.c',
'../src/pwm/pwm.c',
'../src/spi/spi.c',
@arfoll
arfoll / gist:65621988a6064e8cd47c
Created December 6, 2014 23:24
edison_boarddef_cleanup
diff --git a/src/intel_edison_fab_c.c b/src/intel_edison_fab_c.c
index 9a3a1db..4ac0009 100644
--- a/src/intel_edison_fab_c.c
+++ b/src/intel_edison_fab_c.c
@@ -101,13 +101,21 @@ mraa_intel_edison_gpio_dir_pre(mraa_gpio_context dev, gpio_dir_t dir)
mraa_gpio_context output_e;
output_e = mraa_gpio_init_raw(outputen[pin]);
- if (mraa_gpio_dir(output_e, MRAA_GPIO_OUT) != MRAA_SUCCESS)
+ if (output_e == NULL) {
@arfoll
arfoll / gist:f450a0630c8b120a1f94
Created March 1, 2015 10:34
mraa buld error issue #144 (nodejs 0.12.0 + swig 3.0.5)
This file has been truncated, but you can view the full file.
INFO - libmraa Version v0.6.1-8-g2c74ba7
INFO - Target arch is x86_64
INFO - Adding x86 platforms
-- Configuring done
-- Generating done
-- Build files have been written to: /home/brendan/git/mraa/build
[ 6%] Swig source
Scanning dependencies of target mraajs
[ 12%] Building CXX object src/javascript/CMakeFiles/mraajs.dir/mraajsJAVASCRIPT_wrap.cxx.o
/home/brendan/git/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:772:13: error: ‘Arguments’ in namespace ‘v8’ does not name a type
@arfoll
arfoll / gist:8eabe0fd1e04fc865bec
Last active February 23, 2016 19:02
imraa_concept
/etc/imraa.conf
Defines how pins will be used:
{
"lockfile-location": "xxx",
"Platform" :[
{"id":"512", "type":"GENERIC_FIRMATA", "flash":"/var/cache/101/firmata.img", "usbserial": "auto"}
],
"IO" :[
#!/usr/bin/env bash
# Author: Stefan Andritoiu <stefan.andritoiu@intel.com>
# Copyright (c) 2016 Intel Corporation.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to