Skip to content

Instantly share code, notes, and snippets.

@cindeem
cindeem / index.html
Created September 19, 2017 17:18 — forked from alphamu/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>Gallium built the Proxi.AI app as a commercial app. This SERVICE is provided by Gallium and is intended
for use as is.</p>
<p>This page is used to inform App Users regarding our policies with the collection, use, and
disclosure of Personal Information if anyone decided to use our Service.</p>
<p>If you choose to use our Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that we collect are used for providing and
improving the Service. We will not use or share your information with anyone except as described
@cindeem
cindeem / standard-privacy-policy.html
Created September 19, 2017 16:09 — forked from muddylemon/standard-privacy-policy.html
Standard Privacy Policy
<div class="privacy-policy">
<h1>Privacy Policy</h1>
<section id="privacy-information-we-collect">
<h3>What information do we collect?</h3>
<p>We collect information from you when you register on our site, place an order, subscribe to our newsletter, respond to a survey or fill out a form.</p>
<p>When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address, phone number, credit card information or social security number. You may, however, visit our site anonymously.
Google, as a third party vendor, uses cookies to serve ads on your site. Google's use of the DART cookie enables it to serve ads to your users based on their visit to your sites and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.</p>
</section>
@cindeem
cindeem / README.md
Last active August 29, 2015 14:06 — forked from takluyver/README.md

Copy nbflatten.py to somewhere on $PATH. Then, in the root of a git repository, run these commands:

echo "*.ipynb diff=ipynb" >> .gitattributes 
git config diff.ipynb.textconv nbflatten.py

When you change a notebook and run git diff, you'll see the diff of flattened, simplified notebooks, rather than the full JSON. This does lose some information (metadata, non-text output), but it makes it easier to see simple changes in the notebook.

This doesn't help with merging conflicting changes in notebooks. For that, see nbdiff.org.

@cindeem
cindeem / ecat2nii.py
Last active January 11, 2021 01:09
quick ecat to nifti
#! /usr/bin/env python
import sys, os
import nibabel as ni
import nibabel.ecat as ecat
import numpy as np
def print_smoothed(infile):
""" prints smoothing kernel FWHM for each file to stdout"""
try:
img = ecat.load(infile)