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
| abstract class Comment | |
| { | |
| public abstract void Generate(StringBuilder builder); | |
| public string Generate() | |
| { | |
| StringBuilder builder = new StringBuilder(); | |
| this.Generate(builder); | |
| return builder.ToString(); | |
| } |
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
21:57 < dook> You seem to be new to node, is that right?
21:57 < skidz> good to know... yes.. very
21:57 < skidz> but familar with JS but mostly a C# programmer
21:58 < dook> Ok so the basic premise is that to make Chrome run javascript fast, they made a JS->C++ compiler called V8
21:58 < dook> It makes JS compile into very fast, efficient code.
| /** | |
| * Module dependencies. | |
| */ | |
| var fs = require('fs'); | |
| var ogg = require('ogg'); | |
| var lame = require('lame'); | |
| var vorbis = require('vorbis'); |
| <script language="JavaScript" type="text/javascript"> | |
| // Comcast Cable Communications, LLC Proprietary. Copyright 2012. | |
| // Intended use is to display browser notifications for critical and time sensitive alerts. | |
| var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'; | |
| // var image_url='http://servicealerts.comcast.net:8080/images/mt'; | |
| var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images'; | |
| var headertext1='<strong>Comcast Courtesy Notice</strong>'; | |
| var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.'; | |
| var textline2='Please sign in for more information and to remove this alert.'; | |
| var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login¶mName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>'; |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| SILENT = ENV['SL_SILENT'] =~ /false/i ? false : true || true | |
| VERSION = '2.2.23' | |
| # SearchLink by Brett Terpstra 2015 <http://brettterpstra.com/projects/searchlink/> | |
| # MIT License, please maintain attribution | |
| require 'net/https' | |
| require 'uri' |
| function toCSV = function(table, cb) { | |
| ;;;;var cmd = spawn('mdb-export', [this.file, table]) | |
| ;;;;cmd.stdout.pipe(concat(function(err, out) { | |
| ;;;;;;;;;;;;if (err) return cb(err) | |
| ;;;;;;;;;;;;if (!out) return cb('no output') | |
| ;;;;;;;;;;;;cb(false, out.toString()) | |
| ;;;;;;;;})) | |
| } |