Skip to content

Instantly share code, notes, and snippets.

function sendEmails() {
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2; // First row of data to process
var dataRange = sheet.getRange(startRow, 1, sheet.getLastRow(), sheet.getLastColumn())
// Fetch values for each row in the Range.
var data = dataRange.getValues();
for (i in data) {
var row = data[i];
var notificationSent = row[3];
Logger.log(notificationSent);
@bdunnette
bdunnette / untar-wsi.sh
Last active August 29, 2015 14:00
Untar WSI images in zoom level order
#!/bin/sh
echo "Extracting HTML Files"
for f in ~/*.tar
do
tar xvf "$f" --wildcards '*.html'
done
for n in 0 1 2 3 4 5 6 7 8 9
import feedparser
import urllib
feed = feedparser.parse('http://ws.audioscrobbler.com/2.0/user/lazymofo/podcast.rss')
for item in feed.entries:
item_url = item.links[0].href
print item_url
file = urllib.urlretrieve(item_url)
#!/usr/bin/env python
import hashlib
import os
import sys
import csv
# Set the directory you want to start from
rootDir = sys.argv[1]
BLOCKSIZE = 65536
csv_filename = "checksums.csv"
import sys
import os
import os.path
import zipfile
from lxml import etree
from lxml import objectify
tempdir = 'temp'
docfile = zipfile.ZipFile(sys.argv[1])
docfile.extractall(tempdir)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=620">
<title>HTML5 Demo: geolocation</title>
<link rel="stylesheet" href="css/html5demos.css">
<script src="js/h5utils.js"></script></head>
<body>
<section id="wrapper">
#!/usr/bin/python
#
# Delete the label image from an Aperio SVS file.
#
# Copyright (c) 2012-2013 Carnegie Mellon University
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, version 2.1.
// hacked together aperio support
(function( $ ){
/**
* A client implementation of the Aperio ImageServer Format
*
* @class
* @extends OpenSeadragon.TileSource
* @param {Number|Object} width - the pixel width of the image or the idiomatic
<html>
<head>
<title>Google Fusion Tables API Example</title>
</head>
<body>
<div id="content"></div>
<script>
function handler(response) {
for (var i = 0; i < response.items.length; i++) {
var item = response.items[i];
import sys
import cmislib
cmisClient = cmislib.CmisClient('https://lmp-alfresco.ahc.umn.edu/alfresco/cmisatom', sys.argv[1], sys.argv[2])
print cmisClient
repo = cmisClient.getRepository('48ebc2be-3a2c-4856-8e68-877ec40d9a20')
print repo.id
imaging = repo.getObjectByPath("/Sites/lmp-imaging/documentLibrary/Grosslab")
print imaging
new_folder = imaging.createFolder(sys.argv[3])