Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
- Express Docs, if you want to get started and already know JavaScript this is the place to be
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |
| { | |
| "amendments": [ | |
| { | |
| "actions": [ | |
| { | |
| "text": "Amendment SA 4843 proposed by Senator Bingaman for Senator Rockefeller.", | |
| "acted_at": "2010-12-17T12:00:00Z", | |
| "type": "action" | |
| }, | |
| { |
| easterEgg.BadWorder.list={ | |
| "4r5e":1, | |
| "5h1t":1, | |
| "5hit":1, | |
| a55:1, | |
| anal:1, | |
| anus:1, | |
| ar5e:1, | |
| arrse:1, | |
| arse:1, |
| window.onload = function(){ | |
| var xhr; | |
| if(typeof XMLHttpRequest !== 'undefined') xhr = new XMLHttpRequest(); | |
| else { | |
| var versions =["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"]; | |
| for(var i = 0, len = versions.length; i < len; i++) { | |
| try { |
| 2014-11-03 * Coursera requires just another authentication key -- | |
| `__204u` | |
| 2013-12-01 * credentials file is used instead of passing directly | |
| "CAUTH" value | |
| 2013-09-24 * ignoring hidden lecture sections | |
| 2013-09-06 * ability to download resources by icon class | |
| * added new flags for setting target filename as original |
| " Beginners .vimrc | |
| " v0.1 2012-10-22 Philip Thrasher | |
| " | |
| " Important things for beginners: | |
| " * Start out small... Don't jam your vimrc full of things you're not ready to | |
| " immediately use. | |
| " * Read other people's vimrc's. | |
| " * Use a plugin manager for christ's sake! (I highly recommend vundle) | |
| " * Spend time configuring your editor... It's important. Its the tool you | |
| " spend 8 hours a day crafting your reputation. |
| library(XML) | |
| library(RCurl) | |
| library(ggplot2) | |
| results <- c() | |
| ## Loop through the 30 pages of player data | |
| for(i in 1:30){ | |
| theURL <- paste("http://www.nhl.com/ice/playerstats.htm?fetchKey=20122ALLSASAll&viewName=summary&sort=points&pg=", i, sep="") | |
| webpage <- getURL(theURL) |
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.