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
puts('Hello World!') |
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
/* mdates.c -- find number of days between 2 dates - mutation version | |
Mark Ardis, Rose-Hulman Institute | |
3/19/2006 | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#define MAXLINE 1000 // maximum input line size |
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
dependency_line = 'check : ' | |
targets = Array.new | |
1.upto(65).each do |testnum| | |
dependency_line << "#{testnum} " | |
targets << "#{testnum} : \n\t@(./mdates -v -i sampledata.txt | grep \"Killed mutant #{testnum}\" > /dev/null ) || echo \"Missing mutant #{testnum}\"" | |
end | |
puts dependency_line | |
puts '' | |
targets.each do |target| |
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
nesta new <yoursitename> --git | |
ln -s `pwd`/<yoursitename> /var/www/nesta | |
cd <yoursitename> | |
mkdir log | |
mkdir tmp | |
mkdir tmp/sockets | |
mkdir tmp/pids |
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
#include "ruby.h" | |
VALUE CExt = Qnil; | |
VALUE method_floatmul(VALUE self); | |
VALUE method_loop_floatmul(VALUE self); | |
void Init_CExt() { | |
CExt = rb_define_module("CExt"); | |
rb_define_singleton_method(CExt, "floatmul", method_floatmul, 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'twss' | |
# Read in from command line arguments | |
input_value = ARGV.shift | |
# make it more common | |
TWSS.threshold = 3.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
EAS 001 George Eastman Hall | |
RIA 002 Frank Ritter Arena | |
CLK 003 George H. Clark Gymnasium | |
SAU 004 Student Alumni Union | |
WAL 005 Wallace Library | |
LBR 006 Liberal Arts Hall | |
UNI/VIG 007A University Gallery/Vignelli Center for Design Studies | |
GAN 007B Frank E. Gannett Hall | |
GOS 008 Thomas Gosnell Hall | |
GLE 009 James E. Gleason Hall |
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
////////////////////////////////////////////////////////////////////////////// | |
// Linear Curve Fitting - This program fits a line to the data points in the | |
// file provided on the command line (one data point per line of text in the | |
// file). | |
////////////////////////////////////////////////////////////////////////////// | |
#include <fstream> | |
#include <list> | |
using namespace std; | |
#include <iostream> | |
#include "data.h" |
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
/****************************************************************************** | |
* Module (there is no .c file, only this header) to provide timing | |
* instrumentation macros. The timing instrumentation macros can be | |
* globally enabled and controlled as using the EN TIME macro. This macro | |
* can be defined or un-defined within a source code file (even within this | |
* file). If this is done then the timers cannot be controlled from the | |
* compiler command line. Since it will often be the case that the | |
* application would be built with and without the timers it is recommended | |
* that the EN TIME macro *not* be defined or un-defined directly in the | |
* source code. Instead, by using the “-D” command line option to gcc (as |
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
require 'optparse' | |
require 'pp' | |
options = {} | |
counts = [] | |
def count_stream stream, options | |
counts = [] | |
if options[:line] |
OlderNewer