Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
epsilon_0 = 8.85418781762e-12 # C^2 * N^-1 * m^-2
pi = 3.14159265359
n_a = 6.02214129e+23 # mol^-1
e = 1.602176565e-19 # C
k_b = 1.3806488e-23 # J K^-1
t_abs = 298.15 # K
epsilon = 78.54*epsilon_0 # at 298.15 K
rho_0 = 0.99714 # kg * L^-1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@santiago-salas-v
santiago-salas-v / CO2 Equilibria.ipynb
Last active December 26, 2016 04:35
CO2 Equilibria
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@santiago-salas-v
santiago-salas-v / graph_approach.py
Last active January 26, 2017 06:37
Aq. chem. Stumm Werner 3.6
import numpy as np
from matplotlib import pyplot as plt
dpi_res = 250
npoints = 200
figure = plt.figure(dpi= dpi_res)
ax = plt.axes()
# HA + H2O <<==>> H3O(+) + A(-)
# 2H2O <<==>> H3O(+) + HO(-)
pKa = 6.0
import pandas as pd
import numpy as np
import scipy.stats as stats
import colormaps
import PySide
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
from pyqtgraph import PlotWidget
app = QtGui.QApplication([])
@santiago-salas-v
santiago-salas-v / open_docs3.py
Last active September 10, 2017 23:56
Recursive directory scan for first file index.hmtl (python 3) + sublime text plugin
"""
Open documentation files contained in directory.
"""
import os
import webbrowser
index_found = False
def enter_node(current_dir, index_html_files):
import sys
import string
import numpy as np
import colormaps
# noinspection PyUnresolvedReferences
import PySide
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
from scipy.integrate import ode