Skip to content

Instantly share code, notes, and snippets.

.file 1 "main.c"
.section .mdebug.eabi32
.previous
.section .gcc_compiled_long32
.previous
#APP
.set push
.section .lib.ent.top, "a", @progbits
.align 2
.word 0
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAARElEQVQYV2NkwAT/gUKMyMIwDkgCBkBiKHx0RcgmwBQyIitCsQJqLNhqmNHoJqDwiTYJZDLcfiQPYHUTQd8hBwtGOAEAFG4RCdv6tWAAAAAASUVORK5CYII=
175 bool getEOTHeader(unsigned char* fontData, size_t fontSize, vector<uint8_t>& eotHeader, size_t& overlayDst, size_t& overlaySrc, size_t& overlayLength)
176 {
177 overlayDst = 0;
178 overlaySrc = 0;
179 overlayLength = 0;
180
181 size_t dataLength = fontSize;
182 const char* data = (const char *) fontData;
183
184 eotHeader.resize(sizeof(EOTPrefix));
@robotarmy
robotarmy / gist:4771932
Created February 12, 2013 18:11
Tom Murphy 7's way to enable his created fonts to be displayed in ie9.
/*
* This program is for setting TTF files to Installable Embedding mode.
*
* Note that using this to embed fonts which you are not licensed to embed
* does not make it legal.
*
* This code was written by Tom Murphy 7, and is public domain. Use at your
* own risk...
*/
@robotarmy
robotarmy / ccdist-spike.pl
Created August 17, 2012 23:39
CCDIST- SPIKE
#http://perldoc.perl.org/utf8.html
use utf8;
use strict;
use warnings;
#enable unicode print
binmode STDOUT, ":utf8";
use Lingua::ZH::CCDICT;
@robotarmy
robotarmy / specialsymbols.text
Created July 25, 2012 19:02
Special Symbols
\_ % is a _
\$ % is a $
\# % is a #
\% % is a %
\^ % is a ^
\& % is a &
\{ % is a {
\} % is a }
\~ % is a ~
\textbackslash % is a \ --- not \\ ( \\ is a line break)
@robotarmy
robotarmy / lessandgreater.tex
Created July 25, 2012 18:57
what are < and >
\textless % < or in html : &lt;
\textgreater % > or in html : &gt;
@robotarmy
robotarmy / quotes.tex
Created July 25, 2012 18:55
What are quotes in tex
``It was a dark and stormy night'', she began -- her tone hushed and deep.
The huddled children who sat around their campfire exclaimed together: ``GROAN!''
@robotarmy
robotarmy / quotes
Created July 25, 2012 18:55
What are quotes in tex
``It was a dark and stormy night'', she began -- her tone hushed and deep.
The huddled children who sat around their campfire exclaimed together: ``GROAN!''
@robotarmy
robotarmy / feature.tex
Created July 25, 2012 18:52
How to layout an image (aka graphic) in the middle of the page without it floating to the next page ( or to the middle of some page far below)
\usepackage{float}
\begin{figure}[H] % the H is what makes it do a strong 'here' - float is is used for 'H'
\begin{center}
\includegraphics[height=0.5\textwidth]{path/to/file.png}
\end{center}
\caption{This is the caption for the image}
\end{figure}