Skip to content

Instantly share code, notes, and snippets.

View bonifaido's full-sized avatar

Nándor István Krácser bonifaido

View GitHub Profile
@bonifaido
bonifaido / watch
Created September 8, 2011 11:45
Watch for Solaris
#!/bin/bash
usage() {
echo "usage: `basename $0` [-n secs] command"
}
if [ $# -eq 0 ]
then
usage
exit 1
@bonifaido
bonifaido / formattedtime.c
Created August 26, 2011 09:15
This small program prints a timestamp with milliseconds included
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
void printTime()
{
char buffer[32];
struct timeval timevalue;
struct tm *timeinfo;
@bonifaido
bonifaido / PolynomialFitter.java
Created June 2, 2011 13:20 — forked from sanity/PolynomialFitter.java
Horner's method is a much faster evaluation
/***************************************************************************
* Copyright (C) 2009 by Paul Lutus, Ian Clarke *
* [email protected], [email protected] *
* *
* This program 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 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *