Skip to content

Instantly share code, notes, and snippets.

@thisMagpie
thisMagpie / sfpX.dat
Created January 30, 2013 14:19
Xformat
P-Type
Field in mT = 149.5
Error field in mR = 2.99
13.94
12.00
9.97
7.98
6.04
3.99
2.00
@thisMagpie
thisMagpie / sfpY.dat
Created January 30, 2013 14:19
Y format
19.2
16.5
13.7
11.0
8.3
5.5
2.7
0.0
-2.8
-5.5
@thisMagpie
thisMagpie / sfpX.dat
Created January 31, 2013 04:59
input file format
P-Type
Field in mT = 156.15
Error field in mR = 2.99
Delta= 1.5
13.94
12.00
9.97
7.98
6.04
3.99
@thisMagpie
thisMagpie / Hall.java
Created January 31, 2013 04:59
hall offet calculations
import java.io.*;
import java.util.*;
public class Hall{
public static void main (String[] args) throws IOException {
@thisMagpie
thisMagpie / PlotUtil.java
Last active December 13, 2015 18:28
Be cause git is being difficult I haven't put in repo yet,
/*****
PlotUtil.java
This is a utility for data analysis
A helper utility for analysing data.
Composed entirely of static methods.
Copyright (C) 2013 Magdalen Berns
@thisMagpie
thisMagpie / Analyser.java
Created February 14, 2013 19:20
Gist won't let me put in repo on guest computer so gistin it. (from last night still still needas doing. will add)
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Analyser {
public static void main(String[] args) throws IOException {
@thisMagpie
thisMagpie / Analyser.java
Created February 18, 2013 04:59
Git playing up again
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Analyser {
public static void main(String[] args) throws IOException {
@thisMagpie
thisMagpie / removal.sh
Last active December 15, 2015 14:49
A simple but useful bash script to get rid of annoying files with a single command. just be careful not to delete things you want to keep!
#
# removal.sh
# =============
# Copyright (C) 2013 Magdalen Berns
# A simple but useful bash script to get rid of annoying files with a single command.
# just be careful not to delete things you want to keep!
#
# This script is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@thisMagpie
thisMagpie / AverageData.java
Last active December 15, 2015 14:49
Could have sworn I fixed a bug but found it here. I took the averaging out of the DataAnalyser.java class and gave it it's own class with a main method specially for performing this calculation. A lot neater than before and easy to see what is going on.
/*
AverageData.java
=============
This is a program to help with data analysis.
You can open a one column array and average all the data points.
File must be in the format where the first line gives its length
eg.
length = 30
x_1
@thisMagpie
thisMagpie / jhbuildrc
Created May 21, 2013 22:21
Setting file for jhbuildrc
# -*- mode: python -*-
# -*- coding: utf-8 -*-
moduleset = 'gnome-apps-3.10'
modules = ['meta-gnome-core']
# what directory should the source be checked out to?
checkoutroot = '/home/magpie/gnome/checkout'
# the prefix to configure/install modules to