Skip to content

Instantly share code, notes, and snippets.

View HarryAmmon's full-sized avatar

Harry Ammon HarryAmmon

  • The Pensions Regulator
View GitHub Profile
@kirandasika
kirandasika / IntellisenseForLog4net.md
Created September 18, 2015 15:38
Intellisense for log4net in Visual Studio
  • Download the log4net schema from here
  • Add this .xsd to Visual Studio menu > XML > Schemas

Note that the XML menu item would be enabled only if an xml or a .config file is opened in the editor.

@balupton
balupton / cors.js
Created September 11, 2012 05:21
Acheiving CORS via a Node HTTP Server
// Create our server
var server;
server = http.createServer(function(req,res){
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Allow-Headers', '*');
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);