Skip to content

Instantly share code, notes, and snippets.

Avatar
🥐
Baking

Benjamin Deonovic bdeonovic

🥐
Baking
View GitHub Profile
@bdeonovic
bdeonovic / master.vim
Created Aug 18, 2017 — forked from gmccreight/master.vim
A script that gives you a playground for mastering vim
View master.vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@bdeonovic
bdeonovic / example.jl
Last active Sep 21, 2018
Conditional Maximum Likelihood for Rasch Model
View example.jl
using Optim
using DelimitedFiles
using ForwardDiff
#data
X = readdlm("lsat.txt");
n, m = size(X)
r = vec(mapslices(sum, X, dims=2))
s = vec(mapslices(sum, X, dims=1))
f = [sum(r.==j) for j in 1:m]