View this code at http://livecoding.io/5523152
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
<!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> |
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
<!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> |
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
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'): |
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
>>> 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' |
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
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) |
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
#!/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) |
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:
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
*.class | |
.idea/* |
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
.idea/* | |
*.class |
OlderNewer