const foo = "foo";
foo = "bar"; // should not assign
console.log(foo);
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
import hashlib | |
from django.conf import settings | |
from django.core.exceptions import PermissionDenied | |
def webhook_receive(request): | |
""" | |
View used to receive webhooks from BreweryDB | |
""" | |
isValid = hashlib.sha1(settings.BREWERYDB_API_KEY + request.GET['nonce']) == request.GET['key'] |
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
try: | |
response = requests.post( | |
"<URL>", | |
auth=( | |
os.environ.get('<USERNAME>'), | |
os.environ.get('<PASSWORD>') | |
), | |
data=json.dumps(payload)) | |
except Exception as e: | |
# do something |
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
(function(){ console.log("hacked!"); }()); |
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
Account address | Show boosts | Notify on new posts | Languages | |
---|---|---|---|---|
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false | ||
@[email protected] | true | false |
OlderNewer