forked from j3d1/fiatlux
Compare commits
No commits in common. "jedi/dev/replace_perl" and "stable" have entirely different histories.
jedi/dev/r
...
stable
3 changed files with 5 additions and 18 deletions
17
README.md
17
README.md
|
@ -69,20 +69,3 @@ 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,6 +41,10 @@ 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