Random custom tile codes and other crap for custom levels. Free for all!
This file contains hidden or 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
| import ( | |
| "mime" | |
| "net/http" | |
| "strings" | |
| ) | |
| // Determine whether the request `content-type` includes a | |
| // server-acceptable mime-type | |
| // | |
| // Failure should yield an HTTP 415 (`http.StatusUnsupportedMediaType`) |
This file contains hidden or 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/env python | |
| from __future__ import print_function | |
| import requests | |
| import sys | |
| import json | |
| def hipchat_notify(token, room, message, color='yellow', notify=False, | |
| format='text', host='api.hipchat.com'): |