Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F | |
| # http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curl | |
| curl http://index.websolr.com/solr/a0b1c2d3/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' |
| convert -density 384 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Getting Started with Vue.js</title> | |
| </head> | |
| <body> | |
| <p>Empty html</p> | |
| </body> | |
| </html> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Getting Started with Vue.js</title> | |
| </head> | |
| <body> | |
| <p>Empty html</p> | |
| <!-- development version of vue, includes helpful console warnings --> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Getting Started with Vue.js</title> | |
| </head> | |
| <body> | |
| <div id="my-app"> | |
| {{message}} | |
| </div> |
| const buffer = Buffer.from("9999999999", "ascii"); | |
| const mask = 15; // 00001111 | |
| let result = 0; | |
| for (let i = 0; i < buffer.length; i++) { | |
| const place = 1 * (10 ** i); | |
| const pos = (buffer.length - i) - 1; | |
| result += (buffer[pos] & mask) * place; |