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
def slack_it(msg): | |
''' Send a message to a predefined slack channel.''' | |
import urequests | |
# Get an "incoming-webhook" URL from your slack account. @see https://api.slack.com/incoming-webhooks | |
URL='https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX' | |
headers = {'content-type': 'application/json'} | |
data = '{"text":"%s"}' % msg |
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
! Trying to F*** with my keyboard. | |
! | |
! The theory is that if I make the caps lock be the "Mode_switch" key, | |
! then I can change what happens for each key when I press the "Mode_switch" key. | |
! | |
! I'm not using the "Mode_switch" key anyway... | |
! | |
! This will make the caps lock be the "Mode_switch" key. | |
clear Lock |
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 | |
import time | |
print time.time() |
NewerOlder