Want to handle arguments in vanilla JS? Here is how!
const args = process.argv.slice(2).reduce((accumulator, current) => {
let [key, value = true] = current.split('=');
accumulator[key] = value;
return accumulator;
}, {})
console.log(args);
Want to handle arguments in vanilla JS? Here is how!
const args = process.argv.slice(2).reduce((accumulator, current) => {
let [key, value = true] = current.split('=');
accumulator[key] = value;
return accumulator;
}, {})
console.log(args);
Esolangs are cool. I especially like Befunge. I like Befunge so much, in fact, that I'd like to write complex utilities and apps in it.
What? It can't be done? That's what they told me too. But I'll show them; I'll show them all!
This Gist is a proof of concept to demonstrate how to run Python commands from a Befunge programme -- opening up a world of opportunity.
B@SE JS
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
This uses Googles address auto complete to fill out a Neto checkout. Because of how Neto checkout works, we need to add in MutationObserver to check if the suburb has been updated by neto.checkout.js. Then we can add in the new field and then call the $.checkout_CalShipping()
function to calulate shipping cost.
HOSTS=host_a host_b | |
INVENTORY=../data/inventory.inv | |
PLAYBOOK=../playbooks/test.yml | |
TIMEOUT=600 | |
deploy: all_hosts | |
all_hosts: $(HOSTS) | |
$(HOSTS): |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru
Someone sent me an email asking me what advice I had for new developers. I get this question a bunch, so I wanted to put all my thoughts in one place, that I can update as I get more ideas!
I answered this a bunch on my AMA repo, so here's some initial general answers, before I get to some of the specific questions:
You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.
According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias amzn-ami-hvm-2016.03.3.x86_64-gp2
. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):
eu-west-1
- ami-f9dd458a
us-east-1
- ami-6869aa05