heres some code

most of its C# and some of tis java, not sure if javascript and java