In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about the 01 knapsack algorithm realized by coffee and socket.io. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
Let's talk about why I wrote this first.
It's too hard to be a programmer, really, for a long time, I really don't have a high sense of achievement in moving bricks. at least they can build a building (they can also have a good figure). We may not know that one day a bear will have nothing to do with the hard drive.
I obviously didn't put my heart on the front end this semester. Khan, I still want to eat in the future, but there is absolutely no rest this semester, just busy with a lot of things that many people may think are boring.
Because there are too many boring things this semester, delayed a lot, but also let the mentor very disappointed, he is also very inferiority complex, tidy up the state of mind.
Because many of them are weird ideas for homework, so homework is not homework if you don't fool it, and I hope you can criticize it a lot.
Maybe it's because which article can solve the work.
I'd like to try Markdown.
Take a beautiful picture
Get to the point.
Backend implementation:
Io = require "socket.io" http = require "http" fs = require "fs" express = require "express" mime = require "mime" app = express () server = http.createServer app server.listen 8080 console.log "Listening 8080"
App.get "/", (req,res)->
Path = "# {_ dirname} / console.html" res.writeHead 200, "Content-Type": mime.lookup (path) res.end fs.readFileSync path
App.get "/ jquery.min.js", (req,res)->
Path = "# {_ dirname} / jquery.min.js" res.writeHead 200, "Content-Type": mime.lookup (path) res.end fs.readFileSync path
App.get "/ bootstrap.min.js", (req,res)->
Path = "# {_ dirname} / bootstrap.min.js" res.writeHead 200, "Content-Type": mime.lookup (path) res.end fs.readFileSync path
App.get "/ bootstrap.min.css", (req,res)->
Path = "# {_ dirname} / bootstrap.min.css" res.writeHead 200, "Content-Type": mime.lookup (path) res.end fs.readFileSync path
GetCurrentTime =->
D = new Date ()
Return "# {d.getFullYear ()}-# {d.getMonth () + 1}-# {d.getDate ()} # {d.getHours ()}: # {d.getMinutes ()}: # {d.getSeconds ()}"
Class dynamicPack
Pack: (data)-> c = [] iObject0 juni0 while I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.