I hereby claim:
- I am lognaturel on github.
- I am lognaturel (https://keybase.io/lognaturel) on keybase.
- I have a public key whose fingerprint is 3A30 F32D BB30 3EEF B4D4 14A4 5A97 E654 D02E 7DB3
To claim this, I am signing this object:
from pyodk.client import Client | |
import json | |
from functools import reduce | |
import urllib.parse | |
import os.path | |
def get_attachment_fields(): | |
schema_r = client.get(f"projects/{client.config.central.default_project_id}/forms/{FORM_ID}/fields?odata=true") | |
schema = schema_r.json() |
from pyodk.client import Client | |
PROJECT = 149 | |
FORMID = "audit-log" | |
# The web form URL you get from the New button on the Submissions tab | |
ENKETO_URL = "https://test.getodk.cloud/-/single/juNrxf5H94Dwc09rudQvjAOzCUKOVic" | |
client = Client().open() |
from pyodk.client import Client | |
import base64 | |
import json | |
import glob | |
import segno | |
from typing import Optional | |
import zlib | |
from PIL import Image, ImageOps, ImageFont, ImageDraw |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import uuid | |
import random | |
import os | |
import string | |
from PIL import Image | |
import numpy |
import base64 | |
import json | |
import segno | |
import codecs | |
import zlib | |
settings = { | |
"general": { | |
"server_url": "https://demo.getodk.org" | |
}, |
""" | |
Copyright 2022 ODK | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import shutil | |
def replace_ellipses_with_special_char(file_path): | |
with open(file_path, 'r') as file : | |
filedata = file.read() |
/** | |
* Workaround for this bug: https://code.google.com/p/android/issues/detail?id=222208 | |
* In Android 7.0 Nougat, spinner mode for the DatePicker in DatePickerDialog is | |
* incorrectly displayed as calendar, even when the theme specifies otherwise. | |
* | |
* Modified slightly from the equivalent fix for TimePicker from @jeffdgr8: | |
* https://gist.github.com/jeffdgr8/6bc5f990bf0c13a7334ce385d482af9f | |
*/ | |
private void fixSpinner(Context context, int year, int month, int dayOfMonth) { | |
// The spinner vs not distinction probably started in lollipop but applying this |
I hereby claim:
To claim this, I am signing this object:
# Uses Facebook Graph API to calculate birth month counts for your network. | |
# Get an access token from http://developers.facebook.com/tools/explorer/ (you'll need to check friend_birthday in 'Get Access Token' permissions) | |
import json | |
import urllib2 | |
def load(id, thing): | |
address = "https://graph.facebook.com/" + str(id) + "/" + str(thing) + "?access_token=" + ACCESS_TOKEN | |
return json.load(urllib2.urlopen(address)) |