This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
ZetCode PyQt4 tutorial | |
In this example, we determine the event sender | |
object. | |
author: Jan Bodnar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This is my first script | |
MsgBox(0, "My First Script!", "Hello World!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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!"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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!", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----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 |