if __name__ == '__main__':
f = open("./gfwlist20170118.js","rb");
dest = open("./gfwlist_update.js","wb");
while 1:
line = f.readline();
if not line:
break;
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 easydict | |
import yaml | |
import argparse | |
config = easydict.EasyDict() | |
config.users_host_path = '/Volumes/more/source/ilotuo/gerrieSwitchhost/user.yaml' | |
config.host_path = '/etc/hosts' | |
config.host_prefix = '##user-mark' | |
def main(): |
public class GLDrawer2D {
private static final boolean DEBUG = true; // TODO set false on release
private static final String TAG = "GLDrawer2D";
private static final String vss
= "uniform mat4 uMVPMatrix;\n"
+ "uniform mat4 uTexMatrix;\n"
+ "attribute highp vec4 aPosition;\n"
+ "attribute highp vec4 aTextureCoord;\n"
public void drainAllEncoderMuxer(boolean endOfStream) {
final int TIMEOUT_USEC = 10000;
if (VERBOSE) Log.d(TAG, "drainAllEncoderMuxer(" + endOfStream + ")");
if (endOfStream) {
if (VERBOSE) Log.d(TAG, "sending EOS to mEncoder");
mEncoder.signalEndOfInputStream();
}
ffmpeg 写mp4 header
- copy from c - avformat_write_header fails with error "invalid argument - Stack Overflow
- test for Android ndk .
AVFormatContext* pOutFormatContext;
AVOutputFormat* avOutputFormat;
if ((avOutputFormat = av_guess_format(NULL, "mp4", "video/mp4")) == NULL) {
cerr << "Could not guess output format" << endl;
return -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
from AutoRig import * | |
scene.addAssetPath('mesh', 'mesh') | |
scene.addAssetPath('motion', 'ChrBrad') | |
scene.addAssetPath("script", "behaviorsets") | |
scene.addAssetPath('script', 'scripts') | |
scene.loadAssets() | |
autoRigPawn = scene.createPawn('autoRig0') |
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: QQ [3583] | |
Path: /Applications/QQ.app/Contents/MacOS/QQ | |
Identifier: com.tencent.qq | |
Version: 4.0.1 (17811) | |
App Item ID: 451108668 | |
App External ID: 811585058 | |
Code Type: X86 (Native) | |
Parent Process: ??? [1] | |
Responsible: QQ [3583] | |
User ID: 501 |