This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn log -v --xml | grep '<author.*/author>' | sort $* | uniq -c | sort -rn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pdf_previewer = "start evince"; | |
$pdf_update_method = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
NewerOlder