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
|
||||
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");
|
||||
} elsif($file =~ /\.bmp$/) {
|
||||
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 {
|
||||
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';
|
||||
break;
|
||||
case 'F':
|
||||
togl = ~togl;
|
||||
togl = !togl;
|
||||
signal_led(togl);
|
||||
{
|
||||
auto *f = (fw_frame *) data;
|
||||
|
|
Loading…
Reference in a new issue