Skip to content

Instantly share code, notes, and snippets.

Avatar

Florian Hars fhars

  • Buxtehude, Germany
View GitHub Profile
@fhars
fhars / overflow-demo.html
Created Nov 23, 2011
Example for truncated options.
View overflow-demo.html
<!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;
View method-missing-from-profile.rb
require 'ruby-prof'
class Bar
def foo(a)
print "foo\n"
a.map do |x|
a = x * x
yield a
end
end
@fhars
fhars / PA3Test.m
Created Oct 7, 2012
A test suite for PA3 of the Coursera PGM couse
View PA3Test.m
% 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 / PA4_Run_Tests.m
Created Oct 14, 2012
A test suite for PA4 of the Coursera PGM couse
View PA4_Run_Tests.m
% 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 / PA6_RunTests.m
Created Oct 27, 2012
A simple test suite for PA 6 of the Coursera PGM couse
View PA6_RunTests.m
% 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 / ModeratelyAccurateSkill.md
Created Nov 15, 2012
A simplified version of the TrueSkill algorithm
View ModeratelyAccurateSkill.md

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

You can’t perform that action at this time.