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
| arm-none-eabi-nm -S target.elf | sort -k2 > symbol-size-noprintf.txt |
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
| git submodule foreach 'scp review:hooks/commit-msg $(git rev-parse --git-dir)/hooks' |
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
| rename 's/old-name/new-name/' filespec |
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
| find . -type f -print0 | xargs -0 sed -i 's/Application/whatever/g' |
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
| int FindPatternInFile(const char * file) | |
| { | |
| ifstream inFile; | |
| inFile.open(file);//open the input file | |
| stringstream strStream; | |
| strStream << inFile.rdbuf();//read the file | |
| string str = strStream.str();//str holds the content of the file | |
| boost::regex e("m{1000000}"); |
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
| int f = open(CONSOLE_LOG_CONSOLE, O_CREAT | O_RDWR, 0666); | |
| int out = dup(1); | |
| close(1); | |
| dup2(f, 1); | |
| // Do something | |
| fsync(f); | |
| close(f); | |
| dup2(out, 1); |
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
| unzip -o pod.zip | |
| flash_erase /dev/mtd3 0 0 | |
| nandwrite /dev/mtd3 linuximage -m -p | |
| ubiformat /dev/mtd4 -y -f root.ubi |
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
| arm-none-eabi-nm -S test.elf | sort -k2 > symbol-size-noprintf.txt |
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
| # Convert the note on/off events to frequency/duration pair | |
| # 1. Create the midi notes2frequency table. Tuning is based upon A=440 | |
| my $a = 440; # a is 440 hz... | |
| my @midi; | |
| for($x = 0; $x < 127; ++$x) | |
| { | |
| $midi[$x] = ($a / 32) * (2 ** (($x - 9) / 12)); | |
| } | |
| # 2. Parse the channel events |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
OlderNewer