Skip to content

Instantly share code, notes, and snippets.

Avatar

Arfon Smith arfon

View GitHub Profile
@arfon
arfon / generate
Last active Feb 20, 2020
Let's try and generate some codemeta files.
View generate
#!/usr/bin/ruby
# For an OO language, this is distinctly procedural. Should probably fix that.
require 'json'
details = Hash.new({})
capture_params = [
{ :name => "title", :message => "Enter project name." },
{ :name => "url", :message => "Enter the URL of the project repository." },
View Typesetting Equations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View long_tail.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View file.php
// -*- mode: ruby;-*-
def hello
puts "Hello World!"
end
@arfon
arfon / blog-post.md
Last active Aug 29, 2015
Jupyter blog post announcement
View blog-post.md

GitHub + Jupyter Notebooks = <3

Communicating ideas that combine code, data and visualizations can be hard, especially if you're trying to collaborate in realtime with your colleagues.

Whether you're a researcher studying Wikipedia, an astronomer investigating the movements of galaxies in our cosmic neighborhood or a data-scientist at fashion retailer Stitch Fix, producing insights from data and sharing is a common challenge.

Jupyter notebooks solve this problem by making it easy to capture data-driven workflows that combine code, equations, text and visualizations and share them with others. From today Jupyter notebooks render in all their glory right here on GitHub.

![Jupyter Notebook toggle](https:/

View lowe2015.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View arfon
# -*-mode: Ruby-*-
def hello
puts "HI!"
end
@arfon
arfon / cc56ddb3543679cfec9aa2b50ceed6905e477093.txt
Created Jan 23, 2015
cc56ddb3543679cfec9aa2b50ceed6905e477093
View cc56ddb3543679cfec9aa2b50ceed6905e477093.txt
Matlab:
7hi4g0/Codes/Math/mdc.m
91xie/Visual-Studio-2010/Projects/MathsApp/MathsApp/bin/Debug/u.m
AnisB/TakeALook/MatLab/Engine/barrage.m
Blaok/Assignments/Matlab高级编程与工程应用/A3/zigzag.m
Distrotech/swig/Examples/test-suite/octave/primitive_ref_runme.m
Distrotech/swig/Examples/test-suite/octave/smart_pointer_overload_runme.m
Distrotech/swig/Examples/test-suite/octave/smart_pointer_rename_runme.m
Frai/ImageProcessing/Last_assignment/ShapeProject 2/extractor/isborder.m
GromHoll/Wavelet-sem9/myFunction.m
@arfon
arfon / 4d2b6ee99e3f3e0ecef623c92342d04c05704035.txt
Created Jan 23, 2015
4d2b6ee99e3f3e0ecef623c92342d04c05704035
View 4d2b6ee99e3f3e0ecef623c92342d04c05704035.txt
Matlab:
7hi4g0/Codes/Math/mdc.m
91xie/Visual-Studio-2010/Projects/MathsApp/MathsApp/bin/Debug/u.m
AnisB/TakeALook/MatLab/Engine/barrage.m
Blaok/Assignments/Matlab高级编程与工程应用/A3/zigzag.m
Distrotech/swig/Examples/test-suite/octave/primitive_ref_runme.m
Distrotech/swig/Examples/test-suite/octave/smart_pointer_overload_runme.m
Distrotech/swig/Examples/test-suite/octave/smart_pointer_rename_runme.m
Frai/ImageProcessing/Last_assignment/ShapeProject 2/extractor/isborder.m
GromHoll/Wavelet-sem9/myFunction.m
View compiling.md

Fixing problems when compiling programs

Most of us in science learn to write and build computer program in an ad-hoc way, copying bits of Makefile from other people, and using trial and error to change things.

That's fine when everything works, but when stuff starts to go wrong it's useful to have an idea of what different steps are happening during compilation, so you can figure out what's going wrong. In this post I'll talk at a a fairly high level about what happens when you compile code, and in a bit more detail about fixing problems you might see when you doing so.

Interpreted vs Compiled