- Organisation: Digital Impact Alliance (DIAL) at UN Foundation
- DIAL Sub-Org: Pocket Science Lab
- Student: NAVEEN S R
- Social: Email, GitHub & Gitter, LinkedIn
- Project: Circuitpython busio compatibility layer for pslab-python
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
# {NO,Updatemy}IP | |
# https://www.noip.com/integrate/request | |
nouip () | |
{ | |
USER="" | |
PASSWORD="" | |
HOSTNAME="" | |
IP="" |
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
str ({format:#py, code:""" | |
'python'}) | |
<< PYTHON Code without triple double quote >> | |
"""}){#dart;} | |
<< DART Code without triple double quote >> | |
//""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class _Setattr_after_timeout(threading.Timer): | |
""" To set values after timeout to attribute of a object """ | |
def __init__(self, timeout, obj, **attrsAvalue): | |
""" | |
Args: | |
timeout (int): | |
Time (in seconds) after which value should be set to attribute of obj. | |
obj (object): | |
Object whose attributes have to set |
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 re | |
import shlex | |
def _until_dh(splited): | |
""" Slice until double hyphen """ | |
i = 0 | |
for i, s in enumerate(splited): | |
if s == "--": | |
return splited[:i], i+1 | |
elif s.startswith("--"): |
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
""" | |
To make non strict mode Roles and Permissions checks for discord-rebot | |
Example:: | |
Fn.auth = Roles['Admin'] # this will not allow DM or from other guild | |
Fn.auth = Anywhere(Roles['Admin']) # will allow | |
""" |
NewerOlder