Skip to content

Instantly share code, notes, and snippets.

@Gexos
Gexos / My GPG Public Key
Last active May 24, 2019 20:13
My GPG Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Keybase OpenPGP v2.1.0
xsFNBFzoMAYBEACoErTOYWl3M35ouLW/tIsk0efoPA1b0Z/n7ByQPuveB+jQPtmq
KyuU1CW/Ga3uZd+pGnSCIA9YJCDUo7jeIb26bWlb5sSSogsSk+h8sSX9896SaWo2
IYigK8hHCxoidNjimKzBDqSzNyvcyHZnSZSMHN/Xg8YtBeet0gLiQVsUrJnLZ7SO
xMWsIE4DczMlTUPY+bXWhYV0P1uZ2qCRahMG48Ojm4IrUBzZA52qI5hR2zhsiGHx
HGReVjF3vJpE3YLe0i/KsDXJV6DkWH1guhHj+P6ch1c3tsixsY7Ef/MQyy+uPdg3
EixeHYV2AMMTQnNPMS0+TbdV/ZgUlZnHiHePp7+kuGrbxviknAoJOgjD84enXw8p
RJoTLnD7My5gNNWhZ7gc6pjprVezKiznOmPEkdELYZuLzkzLQ23OMChvxmfpFc8x
# -*- coding: utf-8 -*-
import requests
request=requests.post(
'https://api.mailgun.net/v2/samples.mailgun.org/messages',
auth=("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"),
files=[("attachment", open("test.jpg"))],
data={"from":"foo@example.com",
"to": "bar@example.com",
"subject": "Hello",
"text": "Testing some Mailgun awesomness!",
# -*- coding: utf-8 -*-
import requests
request=requests.post(
"https://api.mailgun.net/v2/samples.mailgun.org/messages",
auth=("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"),
data={"from": "foo@example.com",
"to": "bar@example.com",
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
@Gexos
Gexos / ex2au3
Last active January 2, 2016 03:59
; This is my first script
MsgBox(0, "My First Script!", "Hello World!")
@Gexos
Gexos / ex1au3
Last active January 2, 2016 03:59
; This is my second script (with functions)
MsgBox(0, "My second script!", "Hello from the main script!")
TestFunc()
Func TestFunc()
MsgBox(0, "My Second Script!", "Hello from the functions!")
EndFunc
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
ZetCode PyQt4 tutorial
In this example, we determine the event sender
object.
author: Jan Bodnar