Skip to content

Instantly share code, notes, and snippets.

View fhars's full-sized avatar
🪲

Florian Hars fhars

🪲
  • Buxtehude, Germany
View GitHub Profile
@fhars
fhars / ModeratelyAccurateSkill.md
Created November 15, 2012 21:01
A simplified version of the TrueSkill algorithm

ModeratelyAccurateSkill™

ModeratelyAccurateSkill is a simplified variant of Microsoft's TrueSkill algorithm that uses just Bayesian nets with tabular CPDs as implemented in Programming Assignment 4 of the Coursera PGM Course.

The basic data structures

@fhars
fhars / PA6_RunTests.m
Created October 27, 2012 18:42
A simple test suite for PA 6 of the Coursera PGM couse
% A simple test suite for PA 6
%
% Based on the code by Mihaly Barasz posted on the forum.
%
% copy the CompareData.m file from last weeks test suite
% into the directory for this weeks assignment and save this file
% as PA6_RunTests.m
%
function result = PA6_RunTests(anyway)
@fhars
fhars / PA4_Run_Tests.m
Created October 14, 2012 13:49
A test suite for PA4 of the Coursera PGM couse
% A simple test suite for PA 4
%
% copy the comparedata.m file from last week's test suite or from
% http://www.mathworks.com/matlabcentral/fileexchange/1459-comparedata
% into the directory for this weeks assignment and save this file
% as PA4_Run_Tests.m
%
% If you call PA4_RUn_Tests, it will always run all tests in sequence until the
% first test fails.
function result = PA4_Run_Tests(anyway)
@fhars
fhars / PA3Test.m
Created October 7, 2012 14:18
A test suite for PA3 of the Coursera PGM couse
% A simple test suite for PA 3
%
% copy the comparedata.m file from last week's test suite or from
% http://www.mathworks.com/matlabcentral/fileexchange/1459-comparedata
% into the directory for this weeks assignment and save this file
% as PA3Test.m
%
% A test can have three different results:
% - If the test suite says "OK", your code produced the exactly the same
% output as the sample data.
@fhars
fhars / method-missing-from-profile.rb
Created December 9, 2011 07:51
Broken ruby-prof output
require 'ruby-prof'
class Bar
def foo(a)
print "foo\n"
a.map do |x|
a = x * x
yield a
end
end
@fhars
fhars / overflow-demo.html
Created November 23, 2011 15:36
Example for truncated options.
<!doctype html>
<html>
<head>
<title>jQuery UI MultiSelect Widget</title>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" rel="stylesheet">
<link href="http://layout.jquery-dev.net/lib/css/layout-default.css" rel="stylesheet">
<style>
select {
display: block;