Skip to content

Instantly share code, notes, and snippets.

@OEP
OEP / output.txt
Last active August 29, 2015 14:05
buffet tox.ini
[11:40:15] pkilgo@conical:~/projects/django-buffet [9] tox -e django14
GLOB sdist-make: /local/pkilgo/projects/django-buffet/setup.py
django14 inst-nodeps: /local/pkilgo/projects/django-buffet/.tox/dist/django-buffet-0.1.0.zip
django14 runtests: commands[0] | pip install Django < 1.5
Requirement already satisfied (use --upgrade to upgrade): Django<1.5 in ./.tox/django14/lib/python2.7/site-packages
Cleaning up...
django14 runtests: commands[1] | "/local/pkilgo/projects/django-buffet/.tox/django14/bin/python" manage.py test core vcs sqldb
ERROR: InvocationError: could not find executable '"/local/pkilgo/projects/django-buffet/.tox/django14/bin/python" manage.py test core vcs sqldb'
____ summary _____
ERROR: django14: commands failed
@OEP
OEP / confirmation_required.py
Created August 5, 2013 19:59
Extensible Django view decorator for confirming things before doing them.
"""
Extensible confirmation decorator.
Simply decorate a view with @confirmation_required and a generic "check the
box" confirmation will show up.
By default the decorator passes the variables "title", "question", "prompt",
"form" and "error" to the template. Additional variables and overrides may be
specifies by passing a dict as the context parameter.
@OEP
OEP / nodetest.py
Last active January 24, 2024 08:27
Basic script for Blender Python nodes
import bpy
from bpy.props import IntProperty, FloatProperty, PointerProperty
import nodeitems_utils
from nodeitems_utils import NodeItem, NodeCategory
bl_info = {
"name": "Custom nodes",
"category": "Node",
}
@OEP
OEP / mayaOnUbuntu.sh
Created September 23, 2012 18:14 — forked from heiths/mayaOnUbuntu.sh
Shell script to install and setup Autodesk Maya 2013 on Ubuntu 12.04
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
@OEP
OEP / gist:3062835
Created July 6, 2012 21:26
Drive Primitive
public void write(byte bytes[]) {
int opcode = bytes[0];
opcode = (opcode < 0) ? opcode + 256 : opcode;
int velocity = (bytes[1] << 8) | (bytes[2] & 0xFF);
int radius = (bytes[3] << 8) | (bytes[4] & 0xFF);
System.out.println("write(" + opcode + ", " + velocity + ", " + radius + ")");
}
@OEP
OEP / DriveCreate.java
Created June 13, 2012 21:04
Example -- Drive iRobot Create for 1 Second and Stop in Java
import java.io.IOException;
import java.io.OutputStream;
import gnu.io.CommPort;
import gnu.io.CommPortIdentifier;
import gnu.io.NoSuchPortException;
import gnu.io.PortInUseException;
import gnu.io.SerialPort;
import gnu.io.UnsupportedCommOperationException;