This file contains 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
<property name="log.parser" value="=C:\\Program Files\\Log Parser 2.2\\LogParser.exe"/> | |
<taskdef name="frantic" classname="org.mxunit.xant.logparser.FusionReactorLogParser" | |
classpath="../xant.jar" /> | |
<!-- generate HTML reports from all the logs in 'mylogs' --> | |
<frantic logparser="${log.parser}" logdir="mylogs/" | |
format="html" maxrows="1" type="all" outputdir="out"/> | |
This file contains 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
<script type="text/javascript"> | |
/**---------------------------------------------------------------- | |
I reset timeOfLastKeyPress and the intervalId in the | |
userStoppedTyping so that it can continue to run | |
-----------------------------------------------------------------*/ | |
var timeOfLastKeyPress = new Date().getTime() * 2; // make it in the future | |
var maxMillisecondsBetweenKeystrokes = 600; | |
var millisecondsBetweenCheckingForStoppage = 200; | |
var intervalId = setInterval("userStoppedTyping()", millisecondsBetweenCheckingForStoppage); | |
This file contains 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
package hw4; | |
import java.util.HashMap; | |
public class Stats { | |
public static HashMap<String, Object> computeStats (int [ ] numbers){ | |
int length = numbers.length; | |
double med, var, sd, mean, sum, varsum; | |
This file contains 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
(function($){ | |
$.each(["live", "die"], function( i, name ) { | |
var method = $.fn[ name ]; | |
$.fn[ name ] = function( types, data, fn, origSelector ) { | |
if ( typeof types === "object" && !types.preventDefault ) { | |
for ( var key in types ) { | |
method.call( this, key, data, types[key], origSelector ); | |
} |
This file contains 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
/** | |
* Example of using WebDriverWait, to wait for an element to be available to the | |
* driver before timing out. | |
* */ | |
package tests; | |
import org.junit.After; | |
import org.junit.Assert; | |
import org.junit.Before; |
This file contains 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 org.apache.commons.mail.* | |
mail_server = 'mail.server' | |
def send_mail = { cnt,sender,recipient,headers -> | |
println 'sending mail ' + cnt | |
email = new SimpleEmail(); | |
email.setHostName mail_server | |
email.addTo recipient, 'to_' + cnt |
This file contains 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
<cfcomponent> | |
<cfscript> | |
//Hmmm .... how can we flatten without using state? | |
{buffer = [];} | |
function flatten(a){ | |
var dup = []; | |
buf = []; | |
_flatten(a); | |
dup.addAll(buffer); |
This file contains 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
; TextPad syntax definitions for Hadoop Pig | |
C=1 | |
[Syntax] | |
Namespace1 = 6 | |
IgnoreCase = No | |
KeyWordLength = | |
BracketChars = {[()]} | |
OperatorChars = -+*/<>!~%^&|=?: |
This file contains 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
/** | |
Prints some meta data about PreparedStatement parameters | |
*/ | |
import java.io.InputStream; | |
import java.io.Reader; | |
import java.math.BigDecimal; | |
import java.net.URL; | |
import java.sql.Array; | |
import java.sql.Blob; |
This file contains 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
package edu.gmu.mut4j; | |
import static edu.gmu.mut4j.Mut4JAssertions.*; | |
import java.util.HashMap; | |
import org.junit.Test; | |
public class ExampleDBMutationTest { | |
@Test |