Skip to content

Instantly share code, notes, and snippets.

View hughesadam87's full-sized avatar

Adam Hughes hughesadam87

View GitHub Profile
@hughesadam87
hughesadam87 / fib.py
Last active August 20, 2020 09:46
Fibonacci Python (memoized and unmemoized)
""" Python implementation of recursive fib with/without memoization and bottom up (with pytests) """
def fib(n):
assert n >= 0, f"n was negative ({n})"
# Base cases
if n in [0, 1]:
return n
return fib(n - 1) + fib(n - 2)
@hughesadam87
hughesadam87 / gist:5079544
Last active December 14, 2015 11:28
30nm/12nm NP dilution. Attempting it extrapolate to the absorbance at 100% for use in more accurate size/concentration determinations.
{
"metadata": {
"name": "AUDilution"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5022194
Created February 24, 2013 01:29
1mM HAuCl4 absorption spectra (to see if it is discernable in np extinction spectruM)
{
"metadata": {
"name": "HAuCL4"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5022133
Created February 24, 2013 01:05
12nm and 30nm batches ph4.3 glutamate binding
{
"metadata": {
"name": "glutamate"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5022135
Last active December 14, 2015 03:38
30nm nps binding to ph10 oxalic acid
{
"metadata": {
"name": "Oxalic_ph10"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5022140
Last active December 14, 2015 03:38
Absorbance spectrum sodium citrate added to AuNPs
{
"metadata": {
"name": "Citrate"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5016601
Last active December 14, 2015 02:49
Analysis of BSA binding to batch 2 (30nm or so) nps in ph5 soln.
{
"metadata": {
"name": "BSA_ph5_notebook"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5016589
Last active December 14, 2015 02:49
Analysis of BSA binding to 50nm tannic-acid capped nps
{
"metadata": {
"name": "50nm_BSA"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:5016538
Created February 22, 2013 21:05
Analysis of BSA binding to 12nm gold particles.
{
"metadata": {
"name": "12nm_BSA"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@hughesadam87
hughesadam87 / gist:4954390
Last active December 13, 2015 18:18
PyUvVis analysis of BSA in free solution
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "BSA_ph5_notebook"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{