Skip to content

Instantly share code, notes, and snippets.

LUA_CFLAGS=`pkg-config lua5.1 --cflags`
all: stringext.so
stringext.so: stringext.c
gcc $(LUA_CFLAGS) -O3 -fPIC -o stringext.o -c stringext.c
gcc -shared -O3 stringext.o -o stringext.so
@liyonghelpme
liyonghelpme / pro2.py
Last active August 29, 2015 14:02
python http proxy greenlet 非阻塞
#coding:utf8
import os, sys, thread, socket
from multiprocessing import Process
import time
BACKLOG = 50
MAX_DATA_RECV = 4096
DEBUG = False
#coding:utf8
import os, sys, thread
#, socket
import gevent
from gevent import socket
BACKLOG = 50
MAX_DATA_RECV = 4096
DEBUG = False
gist: c6ebd49af246825943d0 pro.py
gist: cbd360b4a0f7f74f6222 demo.go (golang http proxy)
gist: 39ef1ad4eca381c76009 pro2.py (python http proxy greenlet 非阻塞)
gist: 10353567 Makefile
gist: 3a7cb37777d302513875 etc.py (tranverse all png image 生成出来 etc1 文件 在 tempok中展示 图片的对比)
gist: 8662916 resign.sh
gist: 8215292 sketch_nov01a.ino
gist: 8054908 sketch_nov01a.ino
gist: 7581284 sketch_nov01a.ino
gist: 7466582 sketch_nov01a.ino
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 29, 2015 14:06
ogre mesh import blender with material for torchlight
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
skeleton
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 29, 2015 14:06
增加导入骨骼功能 骨骼位置的旋转矩阵计算需要引入parent的旋转才可以正确计算位置
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 29, 2015 14:06
ogre mesh 导入blender 带 骨骼绑定 以及 骨骼权重 采用ADD 方式混合
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 29, 2015 14:06
测试动画骨骼的旋转和缩放位置
joint
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 29, 2015 14:06
对joint做Animation动画,而不是对骨骼做ANimation动画,使用joint生成对应的骨骼位置,计算相对于restpose的旋转和缩放值
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''