Skip to content

Instantly share code, notes, and snippets.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Voltage analysis\n",
"\n",
"Three nights were observed with different VI+ settings:\n",
"\n",
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Voltage analysis\n",
"\n",
"Three nights were observed with different VI+ settings:\n",
"\n",
@simonrw
simonrw / minimizer-evaluation.ipynb
Created August 7, 2015 09:01
Assessment of scipy minimizers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2015-08-25 17:20:10 +0100
./configure
--with-features=huge
--enable-multibyte
--with-macarchs=x86_64
--enable-perlinterp
--enable-rubyinterp
--enable-tclinterp
--with-tlib=ncurses
@simonrw
simonrw / python_pymysql_notes.md
Created September 18, 2015 19:01
Notes about pymysql connections

Database transactions

pymysql

  • Defaults to autocommit=False
connection = pymysql.connect(user='user', db='test')
cursor = connection.cursor()
cursor.execute('insert into test (value) values (10)')
@simonrw
simonrw / test_db.py
Created September 20, 2015 20:24
Database testing with transactions
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# In `db.py` or something
Base = declarative_base()
d51beb968548b560c10c
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.