Skip to content

Instantly share code, notes, and snippets.

View marksbrown's full-sized avatar

Mark S. Brown marksbrown

  • Grand Union Canal, UK
View GitHub Profile
import os
from simple_graph_sqlite import database as db
# import database as db
def nodes():
return {
'one': {'name': 'Apple Computer Company', 'type': ['company', 'start-up'], 'founded': 'April 1, 1976'},
'two': {'name': 'Steve Wozniak', 'type': ['person', 'engineer', 'founder']},
'three': {'name': 'Steve Jobs', 'type': ['person', 'designer', 'founder']},
'four': {'name': 'Ronald Wayne', 'type': ['person', 'administrator', 'founder']},
@marksbrown
marksbrown / puzzle.ipynb
Created July 27, 2019 20:54
Prisoner Puzzle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marksbrown
marksbrown / askfordate.py
Last active November 8, 2017 15:48
Simple Ask for Date Example
from datetime import datetime
def ask_for_date():
"""
Asks for a date until the user stops being silly
"""
while True:
new_date = input("Please enter a date in the format YYYY/MM/DD >> ")
try:
year, month, day = new_date.split('/')
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.
@marksbrown
marksbrown / LikelihoodSeifert.ipynb
Created September 19, 2012 10:56
LikelihoodSeifert
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marksbrown
marksbrown / Geant4Optimise.ipynb
Created September 19, 2012 10:54
Geant4Optimise
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marksbrown
marksbrown / photostatistics
Created September 11, 2012 13:32
Photostatistics
{
"metadata": {
"name": "Photostatistics"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@marksbrown
marksbrown / Geant4Analysis
Created September 11, 2012 13:29
Geant4Analysis
{
"metadata": {
"name": "Geant4Analysis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{