Skip to content

Instantly share code, notes, and snippets.

View Denis101's full-sized avatar
😎
sup

Denis Craig Denis101

😎
sup
  • London, UK
View GitHub Profile

Keybase proof

I hereby claim:

  • I am denis101 on github.
  • I am deniscraig (https://keybase.io/deniscraig) on keybase.
  • I have a public key ASCapsEDF36HmfPtpJkHveBDvInoOfA7SvUUdXRk0wO60wo

To claim this, I am signing this object:

@Denis101
Denis101 / play.js
Last active November 30, 2016 00:24
machinegame.com bots
function getClosest(pos, items) {
if (items.length <= 0) {
return null;
}
var posMag = Math.sqrt(Math.pow(Math.abs(pos.x), 2) + Math.pow(Math.abs(pos.y), 2));
var smallestMag = -1;
var smallest = null;
for (var i = 0; i < items.length; ++i) {
yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-4.0.1.tar.bz2
tar jxf mono-4.0.1.tar.bz2
cd mono-4.0.1
# THIS IS A PORT OF bootstrap.sh for centos box
# except we are now running:
# nginx, not apache
# php-fpm
# haproxy
# stop iptables for dev
sudo service iptables stop
sudo chkconfig iptables off