Skip to content

Instantly share code, notes, and snippets.

View harshitaarora's full-sized avatar

Harshita Arora harshitaarora

View GitHub Profile
[].slice.call(document.querySelector('#content ul').children).sort((a, b)=>{
const arr={'A':3,'B':1,'I':2};
return arr[a.children[0].nodeName]-arr[b.children[0].nodeName];
}).map(x => document.querySelector('#content ul').appendChild(x));
/*
Repeating Web client
This sketch connects to a a web server and makes a request
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or
the Adafruit Ethernet shield, either one will work, as long as it's got
a Wiznet Ethernet module on board.
This example uses DNS, by assigning the Ethernet client with a MAC address,
IP address, and DNS address.
/*
Repeating Web client
This sketch connects to a a web server and makes a request
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or
the Adafruit Ethernet shield, either one will work, as long as it's got
a Wiznet Ethernet module on board.
This example uses DNS, by assigning the Ethernet client with a MAC address,
IP address, and DNS address.