This modem is also sold as a MegaFon M150-2 USB dongle
Install the needed packages via opkg tool
opkg update
| ''' | |
| Application to demonstrate testing tornado websockets. | |
| Try it wiith: python -m tornado.testing discover | |
| ''' | |
| from tornado import testing, httpserver, gen, websocket | |
| from ws import APP |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| ) | |
| var path = "/Users/novalagung/Documents/temp/test.txt" |
| var Comment = {] | |
| Comment.create = function (attrs) { | |
| return m.request({ method: 'POST', url: '/comments', data: attrs }) | |
| } | |
| // A view-model is basically a temporary, disposable copy of a model. | |
| // It allows the user can either commit or cancel the changes they make. | |
| Comment.vm = function (attrs) { | |
| attrs = attrs || {} |
| package wincommands | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "os/exec" | |
| "path/filepath" | |
| "strings" | |
| "time" |
| // Server for HTTPS protocol. Redirects to canonical hosts, reverse proxies requests to internal backing servers. | |
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| "time" |
| package httpclient | |
| import ( | |
| "context" | |
| "net" | |
| "net/http" | |
| "time" | |
| ) | |
| // DialContextFn was defined to make code more readable. |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io" |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "strings" | |
| "unicode" | |
| "golang.org/x/net/html" |