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
Start: | |
LDR R0, =GPIO_BASE | |
MOV R1, #0b00000100 | |
STR R1, [R0, #PORT_SIZE * PORT_E + GPIO_PORT_DOUTSET] |
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
# env/lib/python2.6/site-packages/django_auth_ldap/config.py | |
def is_member(self, ldap_user, group_dn): | |
""" | |
Returns True if the group is the user's primary group or if the user is | |
listed in the group's memberUid attribute. | |
""" | |
try: | |
user_uid = ldap_user.attrs['uid'][0] |
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
# Utdrag fra settings.py | |
# Dette gjøres gjerne i toppen av filen, så man kan bruke DIRPATH overalt | |
import os | |
DIRPATH = os.path.dirname(__file__) | |
# Dette blir pathen til alle globale templates, eller andre templates du vil inkludere | |
TEMPLATE_DIRS = ( | |
os.path.join(DIRPATH, 'templates/'), | |
) |
NewerOlder