Skip to content

Instantly share code, notes, and snippets.

View fmvilas's full-sized avatar
👨‍💻
Working on AsyncAPI

Fran Méndez fmvilas

👨‍💻
Working on AsyncAPI
View GitHub Profile
@fmvilas
fmvilas / botdylanator.js
Last active August 29, 2015 14:23
Remove botdylan comments :trollface:
(function() {
var clickEvent = new Event('click');
var delete_buttons = document.querySelectorAll('[alt="@botdylan"]+.timeline-comment-actions .js-comment-delete button[type="submit"]');
for(var i=0; i < delete_buttons.length; i++) {
try {
delete_buttons[i].attributes.removeNamedItem('data-confirm');
delete_buttons[i].dispatchEvent(clickEvent);
} catch (e) {
console.log('Failed to remove comment.');
}
@fmvilas
fmvilas / asyncapi-basic-example.yml
Created May 16, 2017 13:42
AsyncAPI basic example
asyncapi: '1.0.0'
info:
title: 'Sign up email example'
version: '1.0.0'
baseTopic: 'hitch'
host: 'asyncapi.hitchhq.com'
schemes:
- 'amqp'
- 'mqtt'
@fmvilas
fmvilas / asyncapi-streetlights.yml
Created June 7, 2017 12:39
AsyncAPI Streetlights example
asyncapi: '1.0.0'
info:
title: Streetlights API
version: '0.1.0'
host: 'test.mosquitto.org'
baseTopic: 'smartylighting.streetlights.1.0'
schemes:
- mqtt
topics:
@fmvilas
fmvilas / asyncapi-control-panel.yml
Created June 7, 2017 12:51
AsyncAPI Control Panel example
asyncapi: '1.0.0'
info:
title: Control Panel API
version: '0.1.0'
host: 'test.mosquitto.org'
baseTopic: 'smartylighting.streetlights.1.0'
schemes:
- mqtt
topics: