Skip to content

Instantly share code, notes, and snippets.

import requests, pprint, time, random, datetime
check_url = 'http://something'
notify_url = 'http://something'
#pprint.pprint(r.text)
while True:
print(datetime.datetime.now())
r = requests.get(check_url)
print("Status: %s" % r.status_code)
if 'fantastic' in r.text:
r2 = requests.post(notify_url)
SELECT a.NAME,
b.COLLECTIONID,
sum(c.FILE_FILESIZEBYTES)
FROM V201_RPT00.COLLECTIONS_VIEW a
LEFT JOIN V201_RPT00.COLLECTION_MEMBERS_VIEW b on a.SOMEID=b.SOMEOTHERID
LEFT JOIN V201_RPT00.FILES_INFORMATION_VIEW c on b.SOMEID=c.SOMEOTHERID
GROUP BY a.NAME,
b.COLLECTIONID
ORDER BY b.COLLECTIONID ASC

People in Lab Display Changes

  • It was originally designed with only the main large screen display in mind. Let's add a URL that feeds a more friendly display for computer screens and mobile screens.

  • For those displays, we don't need the large picture of our staff in front of the SMBB building. With the extra room, we can fit more people's names on the screen and hopefully won't have to scroll as much.

  • For each person who is in the lab, let's show this info: Name: Time in:

Dear Nanofab Lab Members and PI's,

As of August 1, 2016 the Nanofab is converting to a paperless billing system, impacting the July invoices. All lab members and PI’s have the opportunity to review their monthly lab activities here: https://coral.nanofab.utah.edu/lab/cost/. You can access and review your account activity anytime during the month.

PI's will continue to receive an email on the first working day of the month reminding them to check their monthly lab activities for the previous month. PI's and students will have one week from the first working day of the month to notify us of any charges that need to be adjusted. After that, the authorized chartfield (activity or project) on your account will be automatically billed for that month’s invoice. After the Nanofab initiates the electronic transfer, subsequently identified adjustments will need to be transacted from within your department.

July invoices will be processed as follows:

  • August 1, 2016 - PI's receive an email reminder to review mon
;(function prefill_offcampus() {
$('.phone').val('801-123-1234');
$('input[name="company"]').val('Walmart');
$('input[name="billing_address"]').val('1252 Main St.');
$('input[name="billing_city"]').val('Salt Lake City');
$('select[name="billing_state"]').val('UT');
$('input[name="billing_zip"]').val('84105');
if (!$('input[name="cleanroom"]').is(':checked')) {$('input[name="cleanroom"]').click();}
})();
import img2pdf, sys, os, time
import Tkinter as tk
import tkFileDialog
root = tk.Tk()
root.withdraw()
image_directory = tkFileDialog.askdirectory()
for rootdir in os.listdir(image_directory):
subroot = os.path.join(image_directory, rootdir)
@saltlakeryan
saltlakeryan / example.txt
Last active July 22, 2020 15:54
installing pywin32 as regular user (not admin)
whl file From: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32
H:\python27>Scripts\pip.exe install Z:\pywin32-219-cp27-none-win_amd64.whl
Processing z:\pywin32-219-cp27-none-win_amd64.whl
Installing collected packages: pywin32
Successfully installed pywin32-219
H:\python27>python Scripts\pywin32_postinstall.py -install
@saltlakeryan
saltlakeryan / makepdf.py
Last active September 30, 2015 17:22
finds tifs and puts them into pdf file
import img2pdf, sys, os, time
if len(sys.argv) > 1:
image_directory = sys.argv[1]
print "I'm looking for TIFs in ", image_directory
else:
print "Please tell me the directory to look in"
sys.exit()
image_files = []
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
print 'First Argument: ', sys.argv[1]