Skip to content

Instantly share code, notes, and snippets.

View lvrach's full-sized avatar

Leonidas Vrachnis lvrach

View GitHub Profile
gco master
git log | less #find the [sha] of merge you want to revert
git revert -m 1 [sha]
{
init: function(elevators, floors) {
var floorWait = floors.map( function(floor) {
return {up:false, down: false};
});
function distance(a,b) {
return Math.abs(a-b);
}
function addQueue(floorNum) {
@lvrach
lvrach / azure-blob-set-cors.js
Created April 17, 2015 13:09
set cors headers azure blob node.js
var azure = require('azure-storage');
var blobService = azure.createBlobService("name", "key");
var serviceProperties = {};
serviceProperties.Cors = {
CorsRule: [{
AllowedOrigins: ['*'],
AllowedMethods: ['GET'],
AllowedHeaders: [],
ExposedHeaders: [],