This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Threading.Tasks; | |
using System.Threading; | |
using System.Threading.Tasks.Dataflow; | |
using System.Collections.Concurrent; | |
namespace LuaCoroutine |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace TestIENumerator | |
{ | |
public class DelayCall { | |
static List<Coroutine> queue = new List<Coroutine>(); | |
public static void Run() { | |
var p = queue[0]; |
This file contains hidden or 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
#coding:utf8 | |
#解析protobuf wireformat | |
#https://developers.google.com/protocol-buffers/docs/encoding | |
import struct | |
f = open('server0_5.json').read() | |
#filenum << type value | |
#0 varint |
This file contains hidden or 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 PIL | |
from PIL import Image | |
import xml | |
import xml.sax | |
import xml.sax.handler | |
import os | |
imname = ["TopLeft", "TopEdge", "TopRight", | |
"LeftEdge", "Middle", "RightEdge", | |
"BottomLeft", "BottomEdge", "BottomRight", |
This file contains hidden or 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 PIL | |
from PIL import Image | |
import xml | |
import xml.sax | |
import xml.sax.handler | |
import os | |
#filename = "itemicons5.imageset" | |
#expName = "export13" |
This file contains hidden or 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
#coding:utf8 | |
''' | |
用于将火炬之光 关卡布局 layout中 特定Layout文件导出为json文件, 用于unity中加载使用 | |
''' | |
import os | |
import sys | |
import json | |
import re | |
import codecs |
This file contains hidden or 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
#coding:utf8 | |
''' | |
生成mine.dat 所有的地图组成块 组件信息转化为 json 文件, 用于unity中加载使用 | |
''' | |
import json | |
import re | |
import codecs | |
import os | |
import json | |
import sys |
This file contains hidden or 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
#!BPY | |
''' | |
从火炬之光 mine.dat 文件中导入 矿洞 所需要的所有的 场景组件 | |
''' | |
bl_info = { | |
"name" : "torchlight tileset import", | |
"author" : "liyonghelpme", | |
"version" : {1, 0, 0}, | |
"blender": (2, 70, 0), | |
"location": "File > Import > layout (.dat)", |
This file contains hidden or 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
#!BPY | |
""" Registration info for Blender menus: | |
Name: 'OGRE (.mesh.xml)...' | |
Blender: 236 | |
Group: 'Import' | |
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.' | |
""" | |
''' |
This file contains hidden or 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
#coding:utf8 | |
#将oschina导出的html 转化为rss格式 | |
import re, sys, codecs, types | |
import htmlentitydefs | |
import urlparse | |
import HTMLParser | |
import urllib | |
rssheader = '''<?xml version="1.0" encoding="utf-8" ?> | |
<?xml-stylesheet type="text/xsl" title="XSL Formatting" href="/rss.xsl" media="all" ?> |