Skip to content

Instantly share code, notes, and snippets.

View matejvelikonja's full-sized avatar

Matej Velikonja matejvelikonja

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am matejvelikonja on github.
  • I am matejv (https://keybase.io/matejv) on keybase.
  • I have a public key ASCuCoc7fqRKzq_U7LduDrguRQCqjxO1Krr0B_pTRuLRNAo

To claim this, I am signing this object:

View sublime-text-2.sh
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=/usr/local/sublime-text-2/sublime_text
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
View Scopa - distribution of cards
#!/usr/bin/env php
<?php
if (! isset($argv[1])) {
echo 'Usage scopa.php number' . PHP_EOL;
exit;
}
// offical for 3 players, 3 in hand, 4 on table
// r = (-i k-m+40)/(i k)
@matejvelikonja
matejvelikonja / rbenv-install.sh
Last active December 20, 2015 01:19 — forked from jnx/rbenv-install-system-wide.sh
Installs Rbenv and with ruby 1.9.3-p448
View rbenv-install.sh
# Update, upgrade and install development tools:
sudo apt-get update
sudo apt-get -y install curl build-essential git-core
# Install rbenv and rbenv-build:
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Add rbenv to the path:
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile