This file contains hidden or 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 <stdlib.h> | |
| #include <stdio.h> | |
| /* Output string length */ | |
| #define OUTMIN 10 | |
| #define OUTSPAN 50 | |
| /* Offsets for the character strings */ | |
| #define CHANGEHAND 1 | |
| #define CHANGEROW 2 |
This file contains hidden or 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 <stdlib.h> | |
| #include <stdio.h> | |
| #define OUTMIN 8 | |
| #define OUTSPAN 32 | |
| // Valid characters | |
| const char q[] = "asdfghjkl"; | |
| const int qlen = sizeof(q); |
This file contains hidden or 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
| /* After seeing https://gist.github.com/anonymous/83b1f8d2da6ee35d172b | |
| * I realized I had never actually solved FizzBuzz on my own and that was | |
| * probably a good first step to figure out what in the hell is happening in | |
| * that solution. So... yeah. My FizzBuzz. | |
| * | |
| * I still have no idea what the hell is happening in the other one. | |
| */ | |
| #include <stdio.h> |
This file contains hidden or 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
| I made this patch that applies against GNUpod 0.99.8 and fixes a couple of | |
| deprecations since Perl 5.22 which are errors since I think Perl 5.23. My | |
| system has Perl 5.24. | |
| I don't know Perl and have never written any Perl in my life. But now I can | |
| sync my iPod with a light and minimal tool again! | |
| All of these fixes have been sitting in the Savannah bug tracker for years but | |
| it looks like they haven't merged fixes and cut a new release in a long time: | |
| http://savannah.gnu.org/bugs/?48112 |
This file contains hidden or 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
| # This Makefile exports PNGs from SVGs and optimizes the PNGs. It can also | |
| # compress them for distribution as an archive. | |
| VPATH:=src | |
| # Detect SVGs and generate the output file names | |
| SVGFILES:=$(sort $(notdir $(wildcard src/*.svg))) | |
| PNGFILES:=$(patsubst %.svg,%.png,${SVGFILES}) | |
| OPTFILES:=$(patsubst %.svg,.%_ranopt,${SVGFILES}) |