Skip to content

Instantly share code, notes, and snippets.

@kdelwat
kdelwat / gist:aab3f4fa509ca070a7bc0ba21c9b543a
Created January 12, 2017 07:22
Privacy Policy - Momentum
Last updated: 12th January, 2017
This document outlines the privacy policy for the Momentum app. Momentum is bound by the Australian Privacy Act 1988 (Cth).
Collection of personal information
==================================
Momentum collects personal information local to your device for the purposes of fulfilling its purpose. It does not store personally identifying information except for user-inputted content.
Sharing of personal information
@kdelwat
kdelwat / secrets.pyi
Created January 3, 2017 02:34
Stubs for Secrets
# Stubs for secrets (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from hmac import compare_digest as compare_digest
from random import SystemRandom as SystemRandom
randbits = ... # type: Any
choice = ... # type: Any
@kdelwat
kdelwat / gist:d91fcc2388d24a627671ff68288210f1
Created December 29, 2016 00:16
Privacy policy for CadelTest
No-one else should be using this, but if you are, no personal information will ever be retained or used.
#!/bin/bash
git --work-tree=/var/notesworking --git-dir=/var/notes checkout -f
changed=$(git diff-tree -r HEAD | sed 's/^.*\s[A-Z]\s\s*//g' | sed 1d)
for filename in $changed
do
echo $filename
filetype=$(echo $filename | sed 's/.*\.//g')
if [ $filetype == "md" ]
then
import sys
#read Brainfuck from file and filter
filename = sys.argv[1]
with open(filename) as f:
bf = f.read()
legal = set('><+-.,[]')
bf = ''.join(c for c in bf if c in legal)