This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __DBL_MIN_EXP__ (-1021) | |
#define __HQ_FBIT__ 15 | |
#define __cpp_attributes 200809 | |
#define __UINT_LEAST16_MAX__ 0xffff | |
#define __ARM_SIZEOF_WCHAR_T 4 | |
#define __ATOMIC_ACQUIRE 2 | |
#define __SFRACT_IBIT__ 0 | |
#define __FLT_MIN__ 1.1754943508222875e-38F | |
#define __GCC_IEC_559_COMPLEX 2 | |
#define __cpp_aggregate_nsdmi 201304 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 | |
1120 -hsync +vsync | |
xrandr --addmode Virtual1 1920x1080_60.00 | |
xrandr --output Virtual1 --mode 1920x1080_60.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Autostart-donateCPU | |
Comment=This starts the Cppchecks donate-cpu.py script at startup | |
Type=Application | |
Exec=/usr/pi/cppcheckDonateCPU.bash & | |
Terminal=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
(while true; do | |
/usr/bin/python ~/cppcheck-donate-cpu-workfolder/cppcheck/tools/donate-cpu.py &> ~/Desktop/log.txt | |
done) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RGB to HSV convert sample | |
// | |
// see also : http://ja.wikipedia.org/wiki/HSV%E8%89%B2%E7%A9%BA%E9%96%93 | |
// | |
#include <stdio.h> | |
#include <math.h> | |
#define min_f(a, b, c) (fminf(a, fminf(b, c))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -type f -name '*.sln' -exec readlink -f {} \; | uniq | sed -e 's/^/cppcheck --enable=all --std=posix --library=std,windows --project=/' > /tmp/cppcheck.sh && sh /tmp/cppcheck.sh && rm /tmp/cppcheck.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <inttypes.h> | |
#include <iostream> | |
#include <cstdio> | |
// def.h | |
struct INFO { | |
uint32_t val1; | |
uint32_t val2; | |
}; | |
struct INFO_LIST { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define concat0(str1, str2) (str1 " " str2) | |
#define concat1(str1, str2) (#str1 " " #str2) | |
int main() | |
{ | |
printf("%s\n%s\n", | |
concat0 ("a","b"), | |
concat1 ("a","b")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.o | |
a.out | |
test | |
.*.swp | |
*~ | |
*.png | |
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
const std::string operand[6] = { "a", "!(a)", "!(!a)", "~(a)", "~(!a)", "!(~a)" }; | |
const std::string op[2] = { "==" , "!=" }; | |
std::cout << "void f(bool a)\n" | |
"{\n"; | |
for(unsigned int l = 0; l < 6; ++l) |
NewerOlder