Skip to content

Instantly share code, notes, and snippets.

View makokal's full-sized avatar
🤖

Billy makokal

🤖
View GitHub Profile
@makokal
makokal / circle_random.py
Created October 8, 2013 12:19
Generate random points in a circle
# generate random points in a circle
import numpy as np
import pylab as plt
num_samples = 1000
# make a simple unit circle
theta = np.linspace(0, 2*np.pi, num_samples)
@makokal
makokal / pygame_install.sh
Created October 2, 2013 10:18
Install pygame ubuntu
# tested on ubuntu 12.04
# dependencies
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsmpeg-dev libportmidi-dev
# pygame
sudo pip install hg+http://bitbucket.org/pygame/pygame
@makokal
makokal / count_svn
Created May 15, 2013 16:48
count svn commits per user
svn log -v --xml | grep '<author.*/author>' | sort $* | uniq -c | sort -rn
# builds a "fixed" libnabo deb package for ros-kinetic
# output will be /tmp/libnabo_1.0.6.deb
cd /tmp
git clone https://github.com/ethz-asl/libnabo.git
mkdir libnabo/build
cd libnabo/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/ros/kinetic/ ..
make clean && make
sudo make install
@makokal
makokal / aaai_script.sh
Created June 21, 2016 23:48 — forked from chfritz/aaai_script.sh
This shell script produces the latex source-package of a paper as required by AAAI, in preparation for printed proceedings.
#!/bin/bash
# ----------------------------------------------------------------------
# This shell script produces the latex source-package of a paper
# as required by AAAI, in preparation for printed proceedings.
# Copyright (C) 2009 Christian Fritz "fritz at cs dot toronto dot
# edu"
#
# I thank Jorge Baier for his contributions and Shirin Sohrabi for her
# feedback that has lead to improvements to the script. Thanks also
@makokal
makokal / subl.settings
Created November 15, 2013 15:14
sublime custom settings
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Source Code Pro",
"font_options":
[
"subpixel_antialias"
],
"font_size": 12,
"ignored_packages":
@makokal
makokal / clean_held_back.sh
Created November 12, 2013 16:48
Clean held back packages in Ubuntu and related
dpkg --get-selections | grep deinstall | sed 's/deinstall/\lpurge/' | sudo dpkg --set-selections; sudo dpkg -Pa
apt-get --purge autoremove
# check that the count is now zero
dpkg --get-selections | grep deinstall | wc -l
@makokal
makokal / sfml.rb
Last active December 27, 2015 19:39 — forked from juniorz/sfml.rb
SFML 2.1 keg
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.1'
url 'https://github.com/LaurentGomila/SFML/archive/2.1.zip'
@makokal
makokal / dot_latexmkrc
Created September 19, 2013 17:19
Set evince as default viewer in ubuntu when using latemk
$pdf_previewer = "start evince";
$pdf_update_method = 0;
@makokal
makokal / stage_install_mac.sh
Created August 19, 2013 19:03
Installing stage 2D robot simulator on a mac (with homebrew already setup)
#install dependencies
brew install fltk cmake git pkg-config
# setup an install location e.g in home
mkdir $HOME/stg
# clone and compile stage
mkdir stage && cd stage
git clone git://github.com/rtv/Stage.git
export STG=$HOME/stg