Skip to content

Instantly share code, notes, and snippets.

@guludo
guludo / find-waf.sh
Created November 23, 2015 17:07
Piece of script to find waf
#!/bin/bash
#
# Source this file.
#
D=$(while [[ $PWD != / && ! -x waf ]]; do cd .. ; done; echo $PWD)
WAF_PATH="$D/waf"
waf() {
@guludo
guludo / MYBOARD_GPIO.cpp
Last active August 27, 2015 18:12
Example of GPIO Sysfs virtual pins
/*
* This is the cpp file for your board GPIO
*/
const unsigned LinuxGPIO_Sysfs::pin_table[] = {
[MYBOARD_GPIO_A] = 560,
[MYBOARD_GPIO_B] = 569,
[MYBOARD_GPIO_C] = 450,
[MYBOARD_GPIO_D] = 327,
[MYBOARD_GPIO_E] = 328
class A {
public:
virtual void foo(int a, int b = 1) = 0;
};
class B : public A {
public:
void foo(int a, int) {
}
};
@guludo
guludo / example.txt
Created July 29, 2015 18:54
Output of "ap_scheduler_stats.py example.log +histogram50"
Task 0 - rc_loop:
example.log
Time limit 130.000
Average 4.276
Variance 30.165
Standard Deviation 5.492
Number of samples 6272.000
Number of overruns 0.000
Overrun rate 0.000