Skip to content

Instantly share code, notes, and snippets.

@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 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 / 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
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.
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.
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/