Skip to content

Instantly share code, notes, and snippets.

\documentclass{article}
\begin{document}
\begin{enumerate}
\item hello
\begin{itemize}
\item yuan
\item[-]bin
\end{itemize}
\item world
\end{enumerate}
\documentclass{article}
\begin{document}
\emph{Footnotes\footnote are often used by people using \LaTeX.}
\end{document}
\documentclass{article}
\begin{document}
Footnotes\footnote{This is footnote.} are often used by people using \LaTeX.
\end{document}
@hduffddybz
hduffddybz / putty_1.reg
Created September 29, 2015 08:16
General Putty color theme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\preempt-rt]
"Colour0"="197,200,198"
"Colour1"="234,234,234"
"Colour2"="29,31,33"
"Colour3"="0,0,0"
"Colour4"="197,200,198"
"Colour5"="197,200,198"
"Colour6"="29,31,33"
@hduffddybz
hduffddybz / putty.reg
Created September 29, 2015 08:14
Nice PuttY color theme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\preempt-rt]
"Colour21"="255,255,255"
"Colour20"="245,222,179"
"Colour19"="200,240,240"
"Colour18"="0,217,217"
"Colour17"="179,146,239"
"Colour16"="174,129,255"
"Colour15"="122,204,218"
KVERS = $(shell uname -r)
obj-m += param.o
build:kernel_modules
kernel_modules:
make -C /lib/modules/$(KVERS)/build M=$(CURDIR) modules
clean:
make -C /lib/modules/$(KVERS)/build M=$(CURDIR) clean
@hduffddybz
hduffddybz / rms_init
Last active August 29, 2015 14:22
rms_init
#include <rtthread.h>
#define THREAD_PRIORITY 25
#define THREAD_STACK_SIZE 512
#define THREAD_TIMESLICE 5
/* 指向线程控制块的指针 */
static rt_thread_t tid1 = RT_NULL, tid2 = RT_NULL, tid3 = RT_NULL;
static struct rt_rms rms1, rms2, rms3 ;
@hduffddybz
hduffddybz / rms
Last active August 29, 2015 14:22
rtt & rms
#include <rtthread.h>
#define THREAD_PRIORITY 25
#define THREAD_STACK_SIZE 512
#define THREAD_TIMESLICE 5
static rt_thread_t tid1 = RT_NULL, tid2 = RT_NULL;
static rt_rms_t rms1 = RT_NULL, rms2 = RT_NULL;
@hduffddybz
hduffddybz / application
Created June 1, 2015 05:42
test case for rms
#include <rtthread.h>
#define THREAD_STACK_SIZE 512
#define THREAD_TIMESLICE 3
#define PERIOD1 25
#define PERIOD2 15
#define PERIOD3 18
#define PERIOD4 20
#define PERIOD 20
#define WCET1 4
@hduffddybz
hduffddybz / tenth_line
Created March 31, 2015 11:06
Tenth Line
cat file.txt | sed -n 10p