-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.html
95 lines (91 loc) · 5.7 KB
/
python.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Python</title>
<link rel="stylesheet" href="css/main.css" type="text/css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<!-- Prepare a container for your calendar. -->
<script src="https://cdn.rawgit.com/IonicaBizau/github-calendar/gh-pages/dist/github-calendar.min.js"></script>
<!-- Optionally, include the theme (if you don't want to struggle to write the CSS) -->
<link rel="stylesheet" href="https://cdn.rawgit.com/IonicaBizau/github-calendar/gh-pages/dist/github-calendar.css"/>
</head>
<body>
<div class="container">
<nav>
<ul class='nav nav-pills'>
<li id='home_page' class='nav-item'><a class='nav-link' href="/index.html">Home</a></li>
<li id='astronomy_page'class='nav-item'><a class='nav-link' href="/astronomy.html">Astronomy</a></li>
<li id='photography_page'class='nav-item hidden-xs-down'><a class='nav-link' href="/photography.html">Photography</a></li>
<li id='timelapse_page'class='nav-item hidden-sm-down'><a class='nav-link' href="/timelapse.html">Time-lapse</a></li>
<li id='publications_page'class='nav-item'><a class='nav-link' href="/publications.html">Publications</a></li>
<li id='python_page'class='nav-item hidden-lg-down'><a class='nav-link' href="/python.html">Python</a></li>
<li id='webdev_page'class='nav-item hidden-lg-down'><a class='nav-link' href="/webdev.html">Web Dev</a></li>
</ul>
</nav>
</div>
<div class='container'>
<div id='python_summary'>
<p>
Most of my code is written in Python. Everything from my Ph.D was in Python
as were all the scripts I wrote while working at the ING on La Palma.
Nothing has changed now that I am at Warwick. Around mid-2015 I began embracing
the power of version control (using Git) and I am slowly going back through all my
projects, creating repositories and pushing them to GitHub. I am tidying up and
documenting those that can be made public. My plan for this page is to highlight
anything I found interesting when coding a particular problem in Python, plus links
to my public repositories. The python modules I mainly use are:
</p>
<ul>
<li><a href="https://www.scipy.org/">SciPy</a></li>
<li><a href="https://www.numpy.org/">NumPy</a></li>
<li><a href="https://matplotlib.org/">Matplotlib</a></li>
<li><a href="https://ipython.org/">IPython</a></li>
<li><a href="https://www.astropy.org/">Astropy</a></li>
<li><a href="https://rhodesmill.org/pyephem/">PyEphem</a></li>
<li><a href="https://github.com/PyMySQL/PyMySQL">PyMySQL</a></li>
<li><a href="https://pythonhosted.org/Pyro4/">Pyro4</a></li>
</ul>
<div class='break'></div>
<p>
<strong>Numpy</strong>, <strong>Matplotlib</strong> and <strong>IPython</strong> are all
part of the <strong>SciPy</strong> mathematical ecosystem.
<strong>Astropy</strong> acts like astronomy glue allowing interactivity between
lots of existing astronomy codes. It includes FITS handling, space and time systems plus
much more. <strong>PyEphem</strong> provides astronomical computations in Python. It is
based the powerful XEphem code. <strong>PyMySQL</strong> is (as the name suggests) a python
interface to MySQL databases. Several Python interfaces to SQL databases exist, I picked
this one first and it seems to do the job for what I need. <strong>Pyro4</strong> is a library
that enables Python objects to communicate over a network. This is useful if you have scripts
running on different servers that need to be aware of one another.
</p>
<p>
Below is a summary of my public activity on GitHub for the past year. I will add snippets
and Python tips here over time.
</p>
</div>
<div class='row hidden-sm-down'>
<div id='githistory' class='container center-block'>
<div class="calendar">
Loading the data just for you.
</div>
</div>
</div>
</div>
<!-- jQuery first, then Bootstrap JS. -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$('#python_page').addClass('active');
});
</script>
<script>
new GitHubCalendar(".calendar", "jmccormac01");
</script>
</body>
</html>