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
s = new Set(); | |
for (i = 0 ; i < 500000; i++) | |
s.add(""+i); | |
count = 0; | |
for (i = 0 ; i < 500000; i++) | |
if (s.has(""+i)) | |
count = count + 1; | |
console.log(count); |
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
from iaso.models import * | |
from django.contrib.auth.models import Permission | |
permission = Permission.objects.get(codename="iaso_completeness") | |
acc = Account.objects.get(id=20) | |
profiles = Profile.objects.filter(account=acc).filter(user__user_permissions=permission) | |
c = 0 | |
print("permission", permission) | |
for profile in profiles: | |
print(profile) |
OlderNewer