Skip to content

Instantly share code, notes, and snippets.

View hello-world-main-psp.S
.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
View gist:5826453
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAARElEQVQYV2NkwAT/gUKMyMIwDkgCBkBiKHx0RcgmwBQyIitCsQJqLNhqmNHoJqDwiTYJZDLcfiQPYHUTQd8hBwtGOAEAFG4RCdv6tWAAAAAASUVORK5CYII=
View gist:4956885
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 Feb 12, 2013
Tom Murphy 7's way to enable his created fonts to be displayed in ie9.
View gist:4771932
/*
* 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...
*/
View ccdist-spike.pl
#http://perldoc.perl.org/utf8.html
use utf8;
use strict;
use warnings;
#enable unicode print
binmode STDOUT, ":utf8";
use Lingua::ZH::CCDICT;
View specialsymbols.text
\_ % 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)
View lessandgreater.tex
\textless % < or in html : &lt;
\textgreater % > or in html : &gt;
@robotarmy
robotarmy / quotes.tex
Created Jul 25, 2012
What are quotes in tex
View quotes.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 Jul 25, 2012
What are quotes in tex
View quotes
``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 Jul 25, 2012
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)
View feature.tex
\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}