Skip to content

Instantly share code, notes, and snippets.

View peterforgacs's full-sized avatar

Peter Forgacs peterforgacs

View GitHub Profile
var request = require('request')
var postData = {"channel": "#bot-test", "username": "webhookbot", "text": "This is posted to #bot-test and comes from a bot named webhookbot.", "icon_emoji": ":ghost:"};
var url = "";
var options = {
method: 'post',
body: postData, // Javascript object
json: true, // Use,If you are sending JSON data
url: url,
@peterforgacs
peterforgacs / picture.html
Last active December 30, 2016 17:24
HTML Picture tag
<picture> <source media="(min-width: 1000px)" srcset="picture_large.jpg"> <source media="(min-width: 500px)" srcset="picture_small.jpg"> <img src="picture_default.jpg"> </picture>