Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am rahix on github.
  • I am rahix (https://keybase.io/rahix) on keybase.
  • I have a public key whose fingerprint is 9831 9517 6D7F 838C BA47 620A 6D60 5F3B 9DDB 1DA5

To claim this, I am signing this object:

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
View bootstrap.sh
#!/usr/bin/env bash
# Initial apt-get update
echo "Updating apt-get..."
sudo apt-get update > /dev/null
echo "Updating done."
echo "Installing apache2, g++, curl, libssl-dev, apache2-utils, git-core..."
sudo apt-get install apache2
sudo apt-get install g++ curl libssl-dev apache2-utils
@Rahix
Rahix / svg-animation.js
Created Aug 1, 2015
Example code for animated svg paths
View svg-animation.js
<script>
var state = 0;
function next_action()
{
var svg = document.getElementById("svg-container").contentDocument;
switch(state)
{
case 0:
svg.getElementById("DP1").setAttribute("class", "animatedInfoBubble");
state++;
@Rahix
Rahix / svg-internal-style.css
Created Aug 1, 2015
The stylesheet for animated svg paths.
View svg-internal-style.css
<style>
.hiddenPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
}
.animatedPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 1s linear forwards;
@Rahix
Rahix / addon.py
Last active Sep 12, 2016
Blender Plugin for my Spacestation Generator
View addon.py
import random
# This seems to be a well working system for loading the
# generator script, however I don't know
# wether it is required to look like this
if "bpy" in locals():
import importlib
importlib.reload(spacestation)
else:
from . import spacestation
@Rahix
Rahix / PKGBUILD
Last active Jan 10, 2018
gdk-pixbuf-vtf PKGBUILD
View PKGBUILD
pkgname=gdk-pixbuf-vtf
pkgver=2.1
pkgrel=1
pkgdesc="VTF GDK Pixbuf Loader library"
url="https://github.com/linux-source-tools/gdk-pixbuf-vtf"
arch=(x86_64)
license=(unknown)
depends=(gdk-pixbuf2)
makedepends=(cmake)
_commit=7fb2f837bd54af9296f43573877895d7e90b95fe
@Rahix
Rahix / PKGBUILD
Created Jun 4, 2018
PKGBUILD for lollypop-transparent
View PKGBUILD
# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
# Contributor: Frederic Bezies < fredbezies at gmail dot com>
# Contributor: Ian Brunelli (brunelli) <ian@brunelli.me>
pkgname="lollypop-transparent"
_gitname="lollypop-transparent"
_gitname_orig="lollypop"
pkgdesc='Lollypop with a transparent background'
pkgver=0.9.304.r573.g20395d12
pkgrel=1
@Rahix
Rahix / PKGBUILD-file-roller-vpk
Last active Jun 5, 2018
file-roller-vpk archlinux PKGBUILD
View PKGBUILD-file-roller-vpk
pkgname=file-roller-vpk
pkgver=3.28.0+33+g88d3ac6a
pkgrel=1
pkgdesc="File Roller with Valve Pak (VPK) support"
url="https://https://github.com/linux-source-tools/file-roller-vpk"
arch=(x86_64)
license=(GPL)
depends=(gtk3 libarchive file libnotify zip unzip)
makedepends=(intltool itstool docbook-xsl gnome-common git libnautilus-extension)
optdepends=("p7zip: 7z, arj, exe and encrypted zip files support"
@Rahix
Rahix / main.rs
Last active Dec 29, 2018
Static and Dynamic Dispatch at the same time
View main.rs
trait Foo {
fn bar(&self);
}
impl Foo for &dyn Foo {
fn bar(&self) {
(*self).bar();
}
}