Skip to content

Instantly share code, notes, and snippets.

Yuri yurivish

Block or report user

Report or block yurivish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jiahao / naivebayes.jl
Last active Apr 28, 2019
Multinomial naive Bayes in Julia, allowing for generic numeric types for the conditional probabilities. When using rational numbers, you can calculate exact probabilities without roundoff error.
View naivebayes.jl
struct MultinomialNaiveBayes{T, V<:AbstractVector}
fit(MultinomialNaiveBayes, [T,] features, labels, α = 1) -> MNB
fits a `MultinomialNaiveBayes` classifier `MNB` using the
`features` matrix and `labels` vector of `Bool`s.
rntz /
Last active Mar 4, 2018
An introduction to tone theory, and subtyping for a fragment of modal Datafun
(* A quick note about preorders; skip this if you know about them.
* A preorder is a relation (a ≤ b) satisfying two rules:
* 1. Reflexivity: a ≤ a.
* 2. Transitivity: if a ≤ b and b ≤ c then a ≤ c.
* A good example of a preorder is "lists under containment":
* let (X ≤ Y) if every element of the list X is also in Y.
* Preorders are like partial orders, but without requiring antisymmetry.
View pyfft.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View dispatchingNamedTuples.jl
julia> nt_proto_a_names = (:first, :last)
(:first, :last)
julia> nt_proto_b_names = (:larger, :smaller)
(:larger, :smaller)
julia> nt_proto_a = NamedTuple{nt_proto_a_names}
NamedTuple{(:first, :last),T} where T<:Tuple
julia> nt_proto_b = NamedTuple{nt_proto_b_names}
AlexanderWillner /
Last active Nov 16, 2019 — forked from avdgaag/
Command-line read-only interface to your local Things database of to do items.
Moved to
Reedbeta / cool-game-programming-blogs.opml
Last active Nov 26, 2019
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
View cool-game-programming-blogs.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<title>Graphics, Games, Programming, and Physics Blogs</title>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="" htmlUrl=""/>
rygorous / vr_urgh.txt
Last active Oct 6, 2018
What I mean when I say "I think VR is bad news".
View vr_urgh.txt
This just got linked to by the Y combinator news account, without proper context,
so a brief introduction: A month ago (end of May / early June 2014) I had a
Twitter conversation with a bunch of acquaintances. One tweet in the middle
of that thread, with obligatory hyperbole, was me saying that I think VR is
bad news.
Well, that part of the thread (but not the rest that provides context) recently
got retweeted, and then someone asked me if I could explain what I mean by that,
and because Twitter is a great platform for delivering 140 character slogans and
not so great for lengthy explanations, I wrote this. So, obligatory disclaimer:
use warnings;
use Getopt::Std;
# pcm file = $opts{f}
# samples per pixel x
$xscale = $opts{x} // 1200;
You can’t perform that action at this time.