Skip to content

Instantly share code, notes, and snippets.

@Rahix
Rahix / addon.py
Last active September 12, 2016 12:21
Blender Plugin for my Spacestation Generator
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 / node_editor.qml
Created March 9, 2016 16:00
QML Node editor proof of concept. Works with my gtk themes, but may not work with others (non-dynamic spacing)
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Extras 1.4
import QtQuick.Window 2.2
import QtPositioning 5.5
ApplicationWindow {
id: window
visible: true
width: 640
@Rahix
Rahix / svg-internal-style.css
Created August 1, 2015 14:08
The stylesheet for animated svg paths.
<style>
.hiddenPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
}
.animatedPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 1s linear forwards;
@Rahix
Rahix / svg-animation.js
Created August 1, 2015 14:05
Example code for animated svg paths
<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 / bootstrap.sh
Created March 9, 2015 17:01
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 / Vagrantfile
Created March 9, 2015 16:59
Vagrant file
# -*- 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"
@Rahix
Rahix / keybase.md
Created December 9, 2014 16:19
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: