Skip to content

Instantly share code, notes, and snippets.

View virtix's full-sized avatar
💭
I may be slow to respond.

bill shelton virtix

💭
I may be slow to respond.
View GitHub Profile
<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"/>
<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);
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;
(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 );
}
/**
* 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;
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
<cfcomponent>
<cfscript>
//Hmmm .... how can we flatten without using state?
{buffer = [];}
function flatten(a){
var dup = [];
buf = [];
_flatten(a);
dup.addAll(buffer);
; TextPad syntax definitions for Hadoop Pig
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = No
KeyWordLength =
BracketChars = {[()]}
OperatorChars = -+*/<>!~%^&|=?:
/**
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;
package edu.gmu.mut4j;
import static edu.gmu.mut4j.Mut4JAssertions.*;
import java.util.HashMap;
import org.junit.Test;
public class ExampleDBMutationTest {
@Test