forked from j3d1/fiatlux
Compare commits
1 commit
stable
...
jedi/dev/r
Author | SHA1 | Date | |
---|---|---|---|
5affd3d2b9 |
3 changed files with 18 additions and 5 deletions
17
README.md
17
README.md
|
@ -69,3 +69,20 @@ In the project root run:
|
||||||
nix-shell --option sandbox false
|
nix-shell --option sandbox false
|
||||||
make firmware -j$(nproc)
|
make firmware -j$(nproc)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
>>> import htmlmin
|
||||||
|
>>> input_html = '''
|
||||||
|
<body style="background-color: tomato;">
|
||||||
|
<h1> htmlmin rocks</h1>
|
||||||
|
<pre>
|
||||||
|
and rolls
|
||||||
|
</pre>
|
||||||
|
</body>'''
|
||||||
|
>>> htmlmin.minify(input_html)
|
||||||
|
u' <body style="background-color: tomato;"> <h1> htmlmin rocks</h1> <pre>\n and rolls\n </pre> </body>'
|
||||||
|
>>> print htmlmin.minify(input_html)
|
||||||
|
<body style="background-color: tomato;"> <h1> htmlmin rocks</h1> <pre>
|
||||||
|
and rolls
|
||||||
|
</pre> </body>
|
||||||
|
|
|
@ -41,10 +41,6 @@ while($file = <FILES>) {
|
||||||
print(HEADER "Content-type: image/jpeg\r\n");
|
print(HEADER "Content-type: image/jpeg\r\n");
|
||||||
} elsif($file =~ /\.bmp$/) {
|
} elsif($file =~ /\.bmp$/) {
|
||||||
print(HEADER "Content-type: image/bmp\r\n\r\n");
|
print(HEADER "Content-type: image/bmp\r\n\r\n");
|
||||||
} elsif($file =~ /\.class$/) {
|
|
||||||
print(HEADER "Content-type: application/octet-stream\r\n");
|
|
||||||
} elsif($file =~ /\.ram$/) {
|
|
||||||
print(HEADER "Content-type: audio/x-pn-realaudio\r\n");
|
|
||||||
} else {
|
} else {
|
||||||
print(HEADER "Content-type: text/plain\r\n");
|
print(HEADER "Content-type: text/plain\r\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ void websocket_cb(struct tcp_pcb *pcb, char *data, u16_t data_len,
|
||||||
cmd = 'G';
|
cmd = 'G';
|
||||||
break;
|
break;
|
||||||
case 'F':
|
case 'F':
|
||||||
togl = ~togl;
|
togl = !togl;
|
||||||
signal_led(togl);
|
signal_led(togl);
|
||||||
{
|
{
|
||||||
auto *f = (fw_frame *) data;
|
auto *f = (fw_frame *) data;
|
||||||
|
|
Loading…
Reference in a new issue