Skip to content

Instantly share code, notes, and snippets.

View neilus's full-sized avatar

Norbert Sana neilus

  • Budapest, Hungary
View GitHub Profile
@neilus
neilus / index.html
Created February 29, 2012 07:29 — forked from anonymous/index.html
index.html
<!doctype html>
<html>
<head>
<title>learningthree.js boiler plate for three.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-lalala
<script src="vendor/threex/THREEx.screenshot.js"></script>
<script src="vendor/threex/THREEx.FullScreen.js"></script>
<script src="vendor/threex/THREEx.WindowResize.js"></script>
@neilus
neilus / index.html
Created March 3, 2012 00:19
ifram tester
<!doctype html>
<html>
<head>
<title>learningthree.js boiler plate for three.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="css/main.css" rel="stylesheet"/>
</head>
<body>
@neilus
neilus / Rigging.py
Created March 27, 2012 19:51
A simple Blender UI for rigging
import bpy
class myButtons(bpy.types.Panel):
bl_label = "Rig Layers"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
@classmethod
def poll(self,context):
if(bpy.context.active_object.type == 'ARMATURE'):
>>> driver = ['IK.foot.L','IK.foot.R','IK.hand.L','IK.hand.R']
>>> drivermap = {'hand.L':2, 'forearm.L':2, 'hand.R':3, 'forearm.R':3, 'shin.L':1, 'foot.L':1, 'shin.R':2, 'foot.R':2}
>>> driver[drivermap[bpy.context.active_bone.name]]
'IK.hand.L'
@neilus
neilus / Makefile
Created August 15, 2012 22:57
webpage makefile
all: 404 zseries storage pseries contact scripts doc/all_references.html
scripts := src/head.sh src/head.htm src/menu.htm src/footer.sh
scripts:
touch tmp/scripts
clean:
rm -f doc/*.html
rm -f tmp/*
contact: doc/contact.html doc/contact_expanded.html
doc/contact.html: content/contact.htm $(scripts)
@neilus
neilus / progressbar.py
Last active December 11, 2015 15:09
Exploring threads with pyGTK
#!/usr/bin/env python
import gtk, gobject
class ProgressBar:
def __init__(self):
window = gtk.Window()
window.set_default_size(200, -1)
vbox = gtk.VBox(False, 5)
@neilus
neilus / README.md
Last active March 3, 2016 00:11
bootstrap script for Trac 1.0.1 project management system

this script woll bootstrap a Trac project management software.

I recommend to use virtualenvironment for this purpose, read: http://docs.python-guide.org/en/latest/dev/virtualenvs/

So before you begin you should have python 2.7.x, virtualenv (optionally virtualenvwrapper), pip and easy_install set up. Create a virtual environment, as described in the link above, enter in it, and you should start the bootstrap script:

@neilus
neilus / .gitignore
Last active October 21, 2015 16:04
Java gyak 2015
*.class
.idea/*
@neilus
neilus / .gitignore
Last active February 14, 2016 11:11
Prognyelvek - Java ZH
.idea/*
*.class