Archive for July, 2013

Simple Linked List example JavaSript

Wednesday, July 31st, 2013
// items of the list
var bird = {name:'Mockingbird'};
var cat = {name:'Keyboard'};
var dog = {name:'Fort'};
var duck = {name:'Scrooge'};

// the linked-list itself
var animals = {
    head : bird
};

// each item of the list stores a reference to the next one
bird.next = cat;
cat.next = dog;
dog.next = duck;

// output
var animal = animals.head;
while (animal) {
    console.log(animal.name);
    animal = animal.next;
}

source: http://blog.millermedeiros.com/linked-lists/

Chrome disable cross site web security FOR DEV

Friday, July 5th, 2013

Make a new application shortcut, select properties, append:

–allow-file-access-from-files –disable-web-security

 

http://joshuamcginnis.com/2011/02/28/how-to-disable-same-origin-policy-in-chrome/

C:\Users\USERNAME\AppData\Local\Google\Chrome\Application\chrome.exe –allow-file-access-from-files –disable-web-security