This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_block_view(). | |
*/ | |
function casetracker_block_view($delta) { | |
switch ($delta) { | |
case 'case': | |
if (user_access('access content')) { | |
$block['subject'] = t('Jump to case'); | |
$block['content'] = drupal_get_form('casetracker_block_jump_to_case_number'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Vector3D boundaryPositions(Vector3D position){ | |
double posX=position.getX(); | |
double posY=position.getY(); | |
double posZ=position.getZ(); | |
/*********** X Direction ***********/ | |
if(posX < 0) | |
posX = posX + lengthOfBox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sets the x y and z coordinate in a more compact way (saves a bit of space when calling the coordinates) | |
public void setDim(int i, double dimension) { | |
switch (i) { | |
case 0: | |
x = dimension; | |
break; | |
case 1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gnuplot << TOEND | |
# Set the output file | |
set terminal postscript eps color enhanced | |
set output 'nfnResiduals.eps' | |
unset key | |
set title "Residuals against Current for N-Type No field" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Hall{ | |
// private static final int rows=8; | |
// private static final int cols=2; | |
public static void main (String[] args) throws IOException { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
/* | |
***********************************8********************************** | |
***************** By Magdalen Berns for miniproject ****************** | |
********************************************************************** | |
* | |
* This is a generic IOUtil class to make IO matters more simple to handle. | |
* Not to be confused with UserInput which is full of static methods that are not very "transferable". (i.e. I am unlikely to use them again in another program) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ********************************************************** * | |
* ******************* By Magdalen Berns ******************** * | |
* ********************************************************** * | |
* CONTAINS: | |
* a static method to compute the gaussian distribution | |
* | |
* a static method to convolve two signals (expected input gaussian distribution and set of data points we wish to smooth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Hall{ | |
public static void main (String[] args) throws IOException { | |
if(args.length>0){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
class GNUPlot { | |
private double gradient; | |
private double xVariance; | |
private double yVariance; | |
private double offset; | |
private double xxVariance; | |
private double yyVariance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Hall{ | |
public static void main (String[] args) throws IOException { | |
OlderNewer