Skip to content

Instantly share code, notes, and snippets.

function main(args) {
return new Promise( async (resolve, reject) => {
console.log('current max is '+totalChars);
var options = {
uri: 'https://www.comicvine.com/api/characters',
qs: {
api_key: key,
@iotashan
iotashan / gist:4128173
Created November 21, 2012 22:06 — forked from joshualambert/gist:4128161
Switch loop
followMeSwtichCheckbox.eventOverride = false;
followMeSwtichCheckbox.addEventListener('change', function(e) {
if (!followMeSwtichCheckbox.eventOverride) {
if (checkSOSactive() === false) {
alert('SOS inactive.');
} else {
followMeSwtichCheckbox.eventOverride = true;
followMeSwtichCheckbox.value = !followMeSwtichCheckbox.value;
}