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
Vibur:~ adamgriffiths$ pythonbrew install 2.7.2 | |
Use the previously fetched /Users/adamgriffiths/.pythonbrew/dists/Python-2.7.2.tgz | |
Extracting Python-2.7.2.tgz into /Users/adamgriffiths/.pythonbrew/build/Python-2.7.2 | |
This could take a while. You can run the following command on another shell to track the status: | |
tail -f /Users/adamgriffiths/.pythonbrew/log/build.log | |
Patching Python-2.7.2 | |
Installing Python-2.7.2 into /Users/adamgriffiths/.pythonbrew/pythons/Python-2.7.2 | |
ERROR: Failed to install Python-2.7.2. See /Users/adamgriffiths/.pythonbrew/log/build.log to see why. |
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
$ python -V | |
Python 2.7.2 | |
$ cython -V | |
Cython version 0.15.1 |
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
root@DLink-323:/# /ffp/start/transmission.sh stop | |
Stopping transmission-daemon | |
root@DLink-323:/# ps aux | |
PID USER COMMAND | |
1 root init | |
2 root [ksoftirqd/0] | |
3 root [events/0] | |
4 root [khelper] | |
5 root [kthread] | |
11 root [kblockd/0] |
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
<snip> | |
#import "Cocos+DefaultInits.h" | |
-(void) tryToRunFirstScene | |
{ | |
CCDirector* director = [CCDirector sharedDirector]; | |
// swizzle in our CCMenu fix for CCBuilder | |
{ | |
MethodSwizzle( [CCLabelTTF class], @selector(init), @selector(initWithoutParams) ); |
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
(pygly)Vibur:src adamgriffiths$ pip freeze | |
Cython==0.15.1 | |
PIL==1.1.7 | |
cocos2d==0.5.0 | |
numpy==1.6.1 | |
pyglet==1.2dev | |
pyobjc==2.2 | |
pyobjc-core==2.2 | |
pyobjc-framework-AddressBook==2.2 | |
pyobjc-framework-AppleScriptKit==2.2 |
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 sys | |
import pyglet | |
# on OS-X 10.7 (lion) | |
# the Quartz codec is buggered in Pyglet | |
if sys.platform == 'darwin': | |
# clear the existing codecs | |
pyglet.image.codecs._decoders = [] | |
pyglet.image.codecs._decoder_extensions = {} |
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 glfw | |
from OpenGL.GL import * | |
glfw.Init() | |
glfw.OpenWindowHint( glfw.OPENGL_VERSION_MAJOR, 3); | |
glfw.OpenWindowHint( glfw.OPENGL_VERSION_MINOR, 2) | |
glfw.OpenWindowHint( glfw.OPENGL_FORWARD_COMPAT, GL_TRUE) | |
glfw.OpenWindowHint( glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE) |
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 VertexBuffer: | |
def __init__( self, data = None, nbytes = None, handle = None ): | |
self.handle = handle | |
if not self.handle: | |
self.handle = glGenBuffers( 1 ) | |
if data: | |
nbytes = data.nbytes |
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
from flask import Flask, Blueprint, Response, request, request_finished, request_started | |
from flask.views import MethodView | |
from flask.ext.security import Security, MongoEngineUserDatastore, UserMixin, RoleMixin, current_user, auth_required, login_required | |
from flask.ext.security.utils import login_user, verify_password, encrypt_password | |
from flask.ext.security.decorators import _check_token | |
import mongoengine | |
from mongoengine import StringField, BooleanField, DateTimeField, ListField, ReferenceField, LongField, ObjectIdField | |
from flask.ext.mongoengine import MongoEngine, Document | |
import json |
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
Process: python2.7 [557] | |
Path: /Users/USER/*/python | |
Identifier: python2.7 | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: bash [443] | |
Responsible: iTerm [427] | |
User ID: 501 | |
Date/Time: 2014-06-13 03:16:45.990 +1000 |
OlderNewer